Disable Administrator Login on Windows7 Welcome Screen

Here is the easiest way to disable the Administrator account login screen on Windows7 welcome screen. You have to make sure the current user has administrator access to run the dos command prompt. If you were having trouble fixing your computer's hosts file access denied issues due to the sypware or virus on your computer, you can find the answers here.

According to http://support.microsoft.com/kb/555910
To enable the build-in Administrator account, follow these steps:
1. Click Start, and then type cmd in the Start Search box.
2. In the search results list, right-click Command Prompt, and then click Run as Administrator.
3. When you are prompted by User Account Control, click Continue.
4. At the command prompt, type net user administrator /active:yes, and then press ENTER
5. Type net user administrator , and then press ENTER.
Note: Please replace the tag with your passwords which you want to set to administrator account.
6. Type exit, and then press ENTER.
7. Log off the current user account.

To revert do exactly the same thing but change
net user administrator /active:yes to
net user administrator /active:no

Stop Remote Comment Spam Bot on WordPress Blog

SPAM!
Image Source: SPAM Courtesy Of: MasterMan

If you are running WordPress blog, you may already suffer the lost of your valuable time on fighting for the remote comments submitted by the Remote Comment Spam Bot. It's a known issues with WordPress and there is a work around solutions.

Block WordPress Remote Comment Spam Bot


Your can Read Terence Chang's Living The Dream Lifestyle blog and find out the solution he improved that has stop the spam bot.

CodeIgniter image_lib bug in the image process loop

This bug has me scratch my head for hours and finally found the solutions to fix it.

In CodeIgniter, you can upload multiple images and do resize, crop and watermark stuff. It's cool that you can use one library to do many awesome stuff. However there is problem when using image_lib in the loop.

Problem:

I upload few image and want to loop through each one of them and resize them differently based on their original size. So I put the resize function in the loop. However, the dimension is based on the previous image.

For example. the first image is resized to 100x200. The second image should be resize to 50x100, but is resized to 100x200. The third one should be resized to 400x300, but is resized to 100x75.

In other words, the second image was resized using the dimension from the previous resized image based on the second image's longer side (W or H). The first image was resized to 100x200, so the second image was resized to 100x200 because the original dimension of the second image was 50x100 (Height is larger than width). So it take the first image's height to resize the second images. Crap!

Solutions:
In the image_lib in CodeIgniter, there is a function to clean the setting ($config). However, there is missing parameters in the function.

So I add two lines in the function clear().

$this->width = '';
$this->height = '';
Add the above two lines before closing the function.

Problem solved!

Facebook Social Plugin load page twice on Firefox and Google Chrome

There is weird issues with FireFox and Google Chrome. The page will be loaded twice, if Facebook Social Plugin such as LIKE button installed on your site.

There is a solution post on Terence Chang's blog!

Prevent Facebook Social Plugin to load page twice – CodeIgniter

iPhone is not recoganized on XP / Vista as Camera drive

In some case, the USB driver was not working right so iPhone is not recognized as camera drive or external storage drive.

Here are the step to make it works.
  1. Connect your iPhone by USB
  2. Open Windows Device Manager (right-click My Computer and select Manage). You may find your iPhone under “Universal Serial Bus Controllers” or possibly under “Portable Devices”.  At any rate if your phone can sync with iTunes it will be in there somewhere.  It should be called Apple Mobile Device USB Driver.   
  3. Right-click and select “Uninstall” but don’t remove the files from the PC.
  4. Disconnect your iPhone and reconnect. You should see the iPhone showing as one of the camera drive or external storage.
In case you still not seeing your iPhone showing up. Make sure you have at least one photo in your Camera Roll.

Fix YouTube overlay issues with WordPress Menubar

Problem:
YouTube Video is covering up the menu bar. It's due to the flash play that has the top priority.
 
Solutions: 
Add the wmode=opaque parameter to the embed code. 

< object width="460" height="307" VIEWASTEXT>
 < param name="movie" value="src="YOUR_YOUTUBE_URL_HERE"">
 < param name="allowFullScreen" value="true">
 < param name="allowscriptaccess" value="always">
 < param name="wmode" value="opaque" />
 < embed src="YOUR_YOUTUBE_URL_HERE"
  type="application/x-shockwave-flash"
  allowscriptaccess="always"
  allowfullscreen="true"
  width="460"
  height="307"
  wmode="opaque">
 < /embed>
< /object>

iPhone Google Active Sync Stop working - Keep asking password

iPhone Google Active Sync keep asking to enter correct password. There is chance that the Captcha is locked. To unlock it visit the following site and enter the correct Google account.

https://www.google.com/accounts/UnlockCaptcha