If you are using anything below Eclipse 3.7 (Indigo) then upgrade!
Help > About Eclipse > Installation Details > Installed Software tab > Uninstall...
The yii-user module was written by Mikhail Mangushev (who has the user name mishamx on various systems). The module is for user registration, login, re-sending passwords, reseting password etc.
The trouble is that there are several copies on the internet in various locations all claiming to be the latest version. Each one is followed by several years worth of comments asking for help as each version is unstable.
I tried contacting Mikhail but he never replied. I publish the email as an open letter incase he wants to comment.
Please can you tell me which source repository is the latest as there seems to be a lot of confusion.
Searching Google gets you too the yii-user page on the yii site:
Clicking the click for the Home page takes you to:
However the "send bugfix" page on the yii site says point to the following location
then disappears into a comparison page!
And everyone says that there is another set of sources on github.
People, including myself, are uncertain where the project is. Some bugs have been reported with google and others with github.
This confusion has lead to people downloading old versions and forums are full of wasted yii-user effort.
Please can you have a look at sorting out the documentation for where everything is.
But this doesn't help! So here is a list of the current versions and numbers from around the internet so that other people can save themselves literally hours of wasted effort.
I've gathered all the information and versions into his one place to try and sort out the mess.
From page: http://www.yiiframework.com/extension/yii-user/
Points to yii-user-0.3-61-gfc69518 released on 12 Jun 2012
So inspite of the version numbers apparently going backwards from 0.3.61 to 0.3r107. I think that 0.3.88 is the latest.
If anyone can confirm this as the latest, I think we'd all be very pleased to hear from you!
Just some notes that I found useful
- Change config/console.php to use 127.0.0.1 instead of localhost. While they should be interchangeable there are certain situations like, running migration upgrades on the console, where it doesn't work. And it doesn't work in a not very easy to find way!
- Unpack file into
- I found that the migration complained about dates and timezones, so I had to add
to all the files in
- Sit in document root and type:
to create the user tables.
protected/yiic migrate --migrationPath=user.migrations
While at breakfast, the waiter came to clear our table and from out of nowhere 2 street urchins appeared and started hoovering up all the left overs. By the looks of things this was a regular occurrence. The waiter seemed to have dealt with these boys before and, because he was only going to throw the food away, he showed willing to remove them but actually let them help themselves.
Today was a free day so a lot of the other guests went for a massage conducted by blind people or deaf mutes. Disabled massages seem to be popular over here as a way to employ them. I decided to do a bit of shopping and get some North Face stuff.
Bumped into Mary and Babs who were going to go to the Gurkha museum after they called the bank. That sounded a lot more interesting than shopping so I asked if I could tag along. Natwest kept cancelling Mary’s credit cards in spite of her telling them she was coming to Nepal weeks ago. She spent half an hour on the phone and I spent the time in the internet cafe clearing my inbox and doing a few work tasks. They had a coffee while I finished up and joined them after.
We enquired about the best way to get to the Gurkha museum. Surprisingly, the simplest way is to get a taxi to the museum, get the taxi man to hang around for an hour outside then take us back. After a bit of haggling we agreed a price of 600rs (£6)!!!
The museum was great, I could have easily spent another 3 hours in there but we had agreed the time with the taxi man and didn’t want to pay any more. The museum charted how the Gurkha’s became associated with the British Army from defending the East India Company through to the modern day. There were a large number of citations of acts of valour and accounts of medal wins by Gurkha soldiers. On the 3rd floor there was an impressive collection of photographs and uniforms capturing the growing importance of the Gurkha regiment in the British Army.
Time was ticking and Babs and Mary had to get back for their massage. Babs knee cap had slipped off while getting off the elephants so I suggested to her that instead of suffering in silence, she get the holiday insurance people involved. When my ex-gf twisted her knee skiing the insurance company sorted out seats on the plane and wheelchairs through the airport. Pabi helped organise a doctor to come to the hotel and check her out. Insurance was called too and now Babs was much happier about the pending journey home. Jon took her place at the massage and I went for a wander with Ali.
Walked up the strip and tried on a few North Fake rain coats. The price seemed to be very changeable between shops but eventually I found one I liked. The shopkeeper told me it was a fake but assured me that it was made from off-cuts and similar materials. I didn’t believe a word of it but the jacket felt comfortable and I like the colour. Did a bit of haggling and I was quite pleased as I got it down from 2000rs to 1700rs.
It was beer o’clock so Ali and I followed the edge of the lake all the way around until we came to the boats crossing over to the island. We enquired about the fare and it was only 300rs for a return trip. It seemed okay, so we asked if we could get a drink when we were there. The ticket man said the only thing on the island was a temple. After an extremely short conversation with my Scottish companion, we decided that we had seen enough temples and beer o’clock was fast approaching.
We carried on following the lakes edge and came upon a river people-carrier. It was a cage on tires that transported 10 people 50 meters over to (another) island with a posh hotel on it. We found out that the 10 people limit actually meant 10 Americans so it wouldn’t cause offence. Americans were out of season so it was taking 20 “normal” people each way. The covered platform was powered by a man in the middle pulling a rope to drag it through the water.
While on the people-carrier, I got talking to a man who ran Guy’s Trust, a charity that was building a school in the local area. He had the help of Action Aid and that day they had been sourcing the bricks. The man said that Guy was his son who died in a par-ascending accident a couple of years ago. Ironically the previous conversation I had just had with Ali before getting on the platform was about how he had broken is back twice in par-ascending accidents and his doctor refused to help him if it happened again.
Ali and I sat in the outdoor hotel bar overlooking the lake. It was really nice apart from the tree above us was shedding its seeds so we had to put napkins over our drinks. Sat there for a bowl of chips and a natter. Over heard one of the ignorant guests saying that rape was just a case of a man scratching an itch. I was going to set him straight but the other members of his party beat me to it.
I was a little worried about being trapped on the island with the first hotel swimming pool we had come across but the waiter assured me it was a 24-hour crossing service. Finished up and meandered back to the hotel.
In the evening we went to a restaurant which had some traditional Indian dancing going on. The downstairs was full so we were seated upstairs were we couldn’t see any of it! Fillet steak was on the menu and it was beef steak not “buff” so we all went for that. Rob described how he wanted the steak cooked and asked for chips as well. Nik was clever and asked what the steak came with and just ordered the steak. We all had what Nik had and described how we wanted it cooked. Over an hour later 4 sizzling steaks came out all cooked exactly the same and Rob had an extra plate of chips which took us a while to figure out where it had come from.
Tired after eating we went for a night cap at the “Amsterdam” bar where we watched a Nepali covers band sing Guns’n'Roses and other assorted rock tunes. They were a bit hit and miss but there heart was in the right place. We tried the local whisky called Signature. Steve had been banging on about it each time we went into a super market. It was a bit rough but drinkable and cheaper than an imported whisky. When the band finished it was time for bed!
Another early morning with breakfast at 7am. Porridge toast, boiled eggs and a spicy savoury potato dish with coffee.
Group photos on the lawn and then we set off for Pokhara. We stopped after 5 minutes because there was a Maoist demonstration. We wanted to check it wasn’t on any of our roads out. It was, but an inspector came aboard the bus to verify we were all tourists and let us through. So off we set.
The journey to Pokhara took us up 1000m in altitude. Roads were treacherous, narrow and extremely bumpy. I could hear yelps from the other passengers as we were occasionally thrown completely out of our seats. It’s safety first for me so I always wore a seat belt. I figured out they had been fitted to the bus incorrectly so I fixed mine. All this meant was that I wasn’t thrown quite as far up as the others but my bum still left the seat! Oh, and if the coach decided to join any of the hundreds of coaches that had taken bad turns and rolled down the hill, I’d be the only survivor!
After 2 hours we stopped for a rest break near a large bridge. We walked along down to the river which was a beautiful opaque turquoise colour, probably due to the high mineral content in the area. The sand was light grey but it glinted like diamonds. On closer inspection there were lots of tiny flecks of quartz mixed in with the sand. Butterflies fluttered next to the water’s edge. When they were grounded they were jet black but when they took off they revealed bright cyan colours under their wings.
The other guests on the tour had nicknamed me the Pied Piper because all the children seem to migrate towards me. I think its because I’m the tallest in the group, or they associate better with odd socks or it’s some kind of morbid curiosity; I seem to be the one they hassle first for sweets.
Back in the coach and continued the journey. I sat in the cab of the coach for a few minutes and saw the driver’s eye view. It was extremely frightening, hurtling around blind corners on a mountain pass at 30mph, but after a while you kind of got used to it. It was all about watching what was on the road ahead and remembering it - a bit like driving in the countryside except that if you make a mistake it was a 500 meter drop instead of hitting a bush or tree.
As we travelled through a small village we saw a film crew. It looked quite interesting so after a straw poll we decided to make a stop here and have a nose around. Pabi said she recognised the policeman character but didn’t know the rest. We later found out that the policeman was the lead character in a TV cop show and, by all accounts, was a bit of a heart throb in Nepal. This went a long way to explaining why the stop was sudden and unscheduled and why Pabi was practically drooling while we all watched what was going on. Elsewhere on the set there was a barber complete with posters of dolly girls stuck to the walls of his shack. Nepal is a bit religious, so all the dolly girls were fully clothed and properly presented; no Page 3 here!
Finally made it to Pokhara at about 5pm and checked into the hotel. This was a real hotel with an en suite bathroom. As usual I was sharing with Jon again who had been a bit unwell over the journey and so was the first to try out the facilities. The toilet didn’t flush properly so he had to do some DIY to fix it.
I’d been stuck on the bus all day and was gasping for a pint. Went for a wander to find somewhere to have a drink. Pokhara feels a lot like one of the Greek Islands: a central strip with tourist shops selling tat. Every other shop was a camping shop pushing knock-off North Face gear at rock bottom prices. Most of the people where white or Chinese and I can’t say I liked it as much as the other places we had visited.
Found our way on to a platform which extended out into the lake. Unfortunately there was a haze that spoilt what would have been a wonderful view. After admiring the haze for a bit we continued our search for some amber nectar. Found a nice place with some good trance tunes and plenty of shade. Had a couple of beers with Rob and watched the sun set.
Most of the time my computer runs using the Balanced power plan. This turns the display off after 10 minutes and puts the computer to sleep after 30 minutes. So you can imagine how upset I get when the computer goes to sleep after 30 minutes, before it can complete the 2 hour download or 3 hour video transcode.
In the control panel (Control Panel -> Hardware and Sound -> Power Options) you can select different power plans. You can then set up desktop shortcuts to configure the system to use the different power profiles. Sadly this is something that you have to remember to do before you start the special program and again after the special program has completed.
I looked all over the internet for a program that will alter the power options (or power plan) automatically depending on which applications were running. Needless to say I couldn’t find one! So I’ve had to write it myself using PowerShell.
Version 1 of the program is really simple. The program has 2 power states, one for when a special program is running and one for when no special programs are running.
There are a few things you need to do to get yourself going.
- Open a Control Panel -> Hardware and Sound -> Power Options find or create 2 power plans. I changed Balanced to turn off the display after 10 minutes and send the computer to sleep after 30 minutes. I created another power plan called No Sleep which switches the display off after 5 minutes and never puts the computer to sleep.
- Open a command prompt and type:
Existing Power Schemes (* Active)
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced) *
Power Scheme GUID: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c (High performance)
Power Scheme GUID: a1841308-3541-4fab-bc81-f71556f20b4a (Power saver)
Power Scheme GUID: b1b44a00-a3a0-4cf7-9ef1-a2a1c117dc5f (No Sleep)
- Pick the 2 power schemes from the list and update the variables
$programs_not_running_cfg_guidinside the program.
- Next we have to find out the names of the special programs, so we can watch for them. Open a Powershell command line. Type:
Get-Process. Load in the special program and type
Get-Processagain. Compare the outputs of the command to yield the process name.
PS C:\Users\mrn> Get-Process
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
——- —— —– —– —– —— – ———–
152 15 3364 8776 57 1864 Azureus
- Do this for each special program you want to add.
- Take the ProcessNames and add them as a quoted comma separated list to the variable
Finally, add the program to your start menu Startup folder. If this is the first time you are using PowerShell you may have to change the execution policy to RemoteSigned to allow it to run.
Obviously the program is really simple so if anyone creates an update or a better version then I’d be happy to update this post to share the changes. So without further a do, here it is: