Saturday, December 22, 2012

Beware of Fake Federal Express Emails

When I maintained my client's computer few days ago, I found his computer infected by trojan downloader Win32/Kuluoz.B

These trojans infected my client's computer since he clicked on the fake email claimed from Federal Express.

As a matter of fact, the delivery companies like Federal Express, UPS, DHL and US Post Office never send email notification. They don't know your email. If they cannot delivery package, they will left a note at your door.

It took me an hour to clean up and re-scan whole computer to make sure it clean. So, beware when you check email.

Saturday, December 15, 2012

Microsoft Exam 70-480: Programming in HTML5 with JavaScript and CSS3

I passed the Microsoft Exam 70-480 Programming in HTML5 with JavaScript and CSS today. I am so happy. I took this exam for FREE! using this voucher code: HTMLJMP (voucher code available through 3/31/2013 or while supplies last). In the past few months, I spent sometime to learn and using HTML5, CSS3, JavaScript and JQuery. Here are some resources I used to learn:

Sunday, November 25, 2012

How to Open the HTML File in Plain Text Mode Using TextEdit

Open the HTML file using TextEdit in Mac/OS will render it in the rich text format by defaut. If you would like to view the HTML tags or edit it by typing your own HTML statements, you need to open it in plain text format. To open in plain text form:
  1. Click on Preferences
  2. Select the Open and Save
  3. Click on 'Ignore rich text commands in HTML files

 This is why many developers prefer to use gedit from GNOME as a text editor

Sunday, November 18, 2012

Visual Studio 2010 Keyboard Shortcuts

These keyboard shortcuts are helpful. Some of them are not document in Visual Studio 2010 Express, for example:
<Ctrl> F5 to run the application without debug
<Ctrl> Period or <Ctrl> Space for code completion.
<Ctr> <Shift> <B> to build the solution

For more download the Visual Studio 2010 Keybinding Posters from Microsoft.

Credit: Visual Studio 2010 Keyboard Shortcuts - ScottGu's Blog

DevCurry: 30 Favorite Visual Studio Keyboard Shortcuts

Sunday, October 21, 2012

Install Android Development Tools on Ubuntu 12.10 (Quantal Quetzal)

  1. First thing first. Make sure Java Development Kit (JDK) install. Go to Terminal and type 'Java -version' to check. You should see the following:
    java version "1.7.0_07"
    OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-1ubuntu1)
    OpenJDK Server VM (build 23.2-b09, mixed mode)
  2. If Java Development Kit is not installed, you can install it from Ubuntu Software Center. Click on Ubuntu Software Center icon from left side bar and search for Java. Here, I selected 'OpenJava JDK 7 runtime'
  3. Go to to download Eclipse Classic 4.2.1 (Juno)
  4. Go to your downloads folder and extract it. Move 'eclipse' folder to your home directory.
  5. Launch Eclipse 4.2.1 (Juno) from 'eclipse' folder.
  6. Install Android Developer Tools (ADT) plugin for Eclipse. Click on Help -> Install New Software and add the URL '' on the input text box next to 'Work with' and click the 'Add' button.
  7. Download and install Android SDK from Eclipse 4.2.1. Click on Window -> Android SDK Manager. If Android SDK is not install, Eclipse will display a windows like this:

    Otherwise, select the existing Android SDK and specify location if it already installed. 
  8. Go to Windows -> AVD Manager to make at least one Android Virtual Device (AVD). Here is the screen shot for AVD using Galaxy Nexus skin.

Thursday, October 18, 2012

How to upgrade to Ubuntu 12.10 (Quantal Quetzal) from Ubuntu 12.04 LTS (Precise Pangolin)

The latest version of a great Linux distribution, Ubuntu 12.10 code name Quantal Quetzal, release today. You should receive the notification of this new release on Update Manager. If not:

  1. Go to Settings on Update Manager and change 'Notify me of a new Ubuntu version' to 'For any new version''
  2. Check again. You will see a notification 'New Ubuntu release 12.10 is available'. 
  3. Click the 'Upgrade' button to upgrade to Ubuntu 12.10

Sunday, October 14, 2012

Manual Install WordPress on GoDaddy 2G Web Hosting Plan

You may got this message "This application is NOT compatible with any of your hosting plans" when attempt to install WordPress on GoDaddy 2G Web Hosting. If you did not want to upgrade to 4G plan, you can manual install a latest version of WordPress by yourself.
  1. Make sure the setting for PHP version is 5.3 in Programming Languages section.
  2. Create MySQL database for WordPress from your GoDaddy Web Hosting control panel. Here the database name is same as user.
  3. Download the latest stable release of WordPress (Version 3.4.2) here.
  4. Unzip the archive, modify wp-config-sample.php as instructed in Famous 5-Minutes Install page.
  5. Upload to GoDaddy web hosting.
If you experience the Http error 500, check your wp-config.php to make sure the database user name has no @ sign (myusername not myusername@ for example)

Tuesday, September 25, 2012

How to Check Gmail and Hotmail Services Status?

I could not login to my Hotmail today. Is Hotmail down?
To check for Hotmail or other Microsoft Windows Live services status, use this link:

To check Gmail or other Google App service status:

Sunday, September 16, 2012

How to restore the Package Explorer in Eclipse?

Click on Windows -> View -> Package Explorer to restore the Package Explorer view on Eclipse IDE.

Saturday, September 8, 2012

Reinstall Guest Additions on Ubuntu Virtual Machine

Each time Ubuntu virtual machine running on Apple Mac OS/X host machine upgraded to new kernel or major upgrade, Oracle VM VirtualBox Guest Additions need to re-install. Also, it need to upgrade when Oracle VM VirtualBox upgrade to new version.

Saturday, August 25, 2012

Windows 8 Preview on VirtualBox

Microsoft Windows 8 Consumer Preview or Enterprise Preview will run perfectly on VirtualBox virtual machine. However, after I installed VirtualBox Guest Additions, Microsoft Windows 8 Preview did not run correctly. I could not open my email client or desktop. So, I wiped out the virtual machine and start over without install Guest Addition.

Monday, August 20, 2012

Silverlight on Ubuntu

  1. Using Firefox browser to download Moonlight plugin from 
  2. Following instruction to install the plugin and restart browser.
  3. Go back to the web page running Silverlight for example to install Microsoft Media Pack by right-click on the Silverlight

Saturday, July 14, 2012

How to show hidden files in Mac OS X

To show hidden files in Mac OS X:
1. Open terminal
2. Type the following command turn show hidden files:
defaults write AppleShowAllFiles true
3. Restart the Finder application by this command
killall Finder

To hide the hidden files, replace the 'true' value with 'false' in command at step 2 above

Wednesday, June 27, 2012

Upgrade Eclipse IDE and Android SDK

Today, a new version of Eclipse IDE and Android released. Eclipse released Eclipse Juno 4.2. It has a special package for mobile developer. Google released Android 4.1 SDK, codename Jelly Bean. I'm going update my MacBook Pro with these new software.
  1. Downloaded Eclipse Juno 4.2 for Mobile Developers, 142 MB.
  2. Extracted it to Downloads folder.
  3. Removed existing Eclipse (Indigo) folder from Application.
  4. Moved new Eclipse folder from Downloads to Application
  5. Started Eclipse and re-install Android Development Tools (ADT)
  6. On Eclipse Juno 4.2 IDE, select Windows -> Android SDK Manager to update Android SDK Tools to rev. 20 and downloaded Android 4.1 Jelly Bean
  7. Create new AVD for Android 4.1 from AVD Manager
  8. Re-tested old projects to make sure they ran as expected.

Wednesday, June 13, 2012

Is Verizon Share Every Thing Plan Good?

Yesterday, Verizon wireless revealed a new plan to allow customers share a pool of data for up to 10 devices. Is the new plan better for a customer with five smartphones?

Verizon: CurrentVerizon: NewAT&TT-Mobile Value
2 Years$6,718.80$6,000.00$5,519.04$2,999.52
Activation Fee$175.00$175.00$180.00$175.00
Cell Phones$999.95$999.95$999.95$1,999.95
Est. Sales Tax$232.50$232.50$213.12$154.61
Total Cost$8,126.25$7,407.45$6,912.11$5,324.13
Compare with T-Mobile$2,802.11$2,083.31$1,587.980

Full retail price for Samsung Galaxy S III 4G 16GB at Verizon Wireless is $599.99, at AT&T Wireless is $549.99
Buy Google Galaxy Nexus $399 to use with T-Mobile Value Plan. Amazon Wireless sells Samsung Galaxy S III 4G Android Phone 16GB (GSM for AT&T and T-Mobile) for $649.99

Conclusion:The new Share Every Thing plan is cost less than the current plan for five smart phones. However, there is 1GB data to share between five devices. Both Verizon plans still more expensive than AT&T and T-Mobile.

Sunday, June 3, 2012

How to fix run-time error: Could not find class 'winterwell.jtwitter.Twitter'

If you follow the Marakana Android Bootcamp Series 2012 Video Tutorials, you may get this run-time error when practice the sample application Yamba-1.

06-03 10:48:43.695: E/dalvikvm(274): Could not find class 'winterwell.jtwitter.Twitter', referenced from method com.marakana.yamba1.StatusActivity.onCreate
06-03 10:48:43.695: W/dalvikvm(274): VFY: unable to resolve new-instance 42 (Lwinterwell/jtwitter/Twitter;) in Lcom/marakana/yamba1/StatusActivity;
06-03 10:48:43.695: D/dalvikvm(274): VFY: replacing opcode 0x22 at 0x0045
06-03 10:48:43.695: D/dalvikvm(274): VFY: dead code 0x0047-0057 in Lcom/marakana/yamba1/StatusActivity;.onCreate (Landroid/os/Bundle;)V
06-03 10:48:43.955: D/dalvikvm(274): GC_EXTERNAL_ALLOC freed 794 objects / 58272 bytes in 127ms
06-03 10:48:44.184: D/AndroidRuntime(274): Shutting down VM
06-03 10:48:44.184: W/dalvikvm(274): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
06-03 10:48:44.194: E/AndroidRuntime(274): FATAL EXCEPTION: main
06-03 10:48:44.194: E/AndroidRuntime(274): java.lang.NoClassDefFoundError: winterwell.jtwitter.Twitter
06-03 10:48:44.194: E/AndroidRuntime(274):     at com.marakana.yamba1.StatusActivity.onCreate(
06-03 10:48:44.194: E/AndroidRuntime(274):     at
06-03 10:48:44.194: E/AndroidRuntime(274):     at
06-03 10:48:44.194: E/AndroidRuntime(274):     at
06-03 10:48:44.194: E/AndroidRuntime(274):     at$2300(
06-03 10:48:44.194: E/AndroidRuntime(274):     at$H.handleMessage(
06-03 10:48:44.194: E/AndroidRuntime(274):     at android.os.Handler.dispatchMessage(
06-03 10:48:44.194: E/AndroidRuntime(274):     at android.os.Looper.loop(
06-03 10:48:44.194: E/AndroidRuntime(274):     at
06-03 10:48:44.194: E/AndroidRuntime(274):     at java.lang.reflect.Method.invokeNative(Native Method)
06-03 10:48:44.194: E/AndroidRuntime(274):     at java.lang.reflect.Method.invoke(
06-03 10:48:44.194: E/AndroidRuntime(274):     at$
06-03 10:48:44.194: E/AndroidRuntime(274):     at
06-03 10:48:44.194: E/AndroidRuntime(274):     at dalvik.system.NativeStart.main(Native Method)

Looked back into the Yamba-1 folder, jtwitter-yamba.jar was there.

Make a new folder called libs under Yamba-1 and move this external libary inside sub-folder libs

Sven Rau

Sunday, May 27, 2012

Android Programming Tutorial Videos

I would like to share some great videos about Android development.

Androidology by Android Developers

Marakana: Android Bootcamp Series 2012 Video Tutorials,1017/index.html

Android Bootcamp Training by Marakana TechTV

Episodes of xtensivearts: Android Video Tutorials & Training

TheNewBoston - Android Application Development by ChangingTheUnknown

200 Videos Android Application Development

mybringback Series: Android Basics

mybringback Series: Android Basics

Sunday, May 20, 2012

How to Fix Error "The processing instruction target matching ... "

When I imported the example Android application FragmentsBasics into Eclipse IDE, I got this error message: "The processing instruction target matching "[xX][mM][lL]" is not allowed."
Open the AndroidManifest.xml and other XML files to move this line
<?xml version="1.0" encoding="utf-8"?>
to the top. The first line of XML file cannot be the comment line.

Monday, May 7, 2012

Is Windows Phone third place?

Few days ago, I read "Windows Phone:  Surprisingly Easy to Develop For" written by on April 02, 2012 on Dr. Dobb's
From a consumer's viewpoint, Windows Phone is firmly the third OS by market share at present, following Android and iOS. Some analysts reckon that Windows Phone may be second only to Android by 2015 in a world with only four major mobile platforms left: Android, Windows Phone, iOS, and BlackBerry.
It's not true.

According to comScore report on May 1st, 2012
More than 106 million people in the U.S. owned smartphones during the three months ending in March, up 9 percent versus December. Google Android ranked as the top smartphone platform with 51 percent market share (up 3.7 percentage points). Apple’s share of the smartphone market increased 1.1 percentage points to 30.7 percent. RIM ranked third with 12.3 percent share, followed by Microsoft (3.9 percent) and Symbian (1.4 percent).
Nielsen reported on May 7, 2012
  1. Android OS 48.5%
  2. iOS 32.0%
  3. RIM Blackberry 11.6%
  4. Windows Mobile 4.1%
  5. Windows Phone 1.7%
  6. Other 2.1%
But Microsoft tried to get into the third place in next couple years according to Steve Ballmer, Microsoft CEO:
"I think with a little bit more effort, a little bit more energy, the level of enthusiasm from the customer base is high enough we've just got to kick this thing to the next level. And I think we're in absolute good shape in order to be a very strong third ecosystem in the smart phone world.

Saturday, May 5, 2012

Quickly Lock Your Screen using Keyboard

To quickly lock your computer using keyboard shortcut:
  1. On Ubuntu: Press <Ctrl><Alt>L at the same time 
  2. On Apple OS/X: Press <Shift><Ctrl><Eject> keys at the same time 
  3. On Microsoft Windows: Press <Windows> and L keys at the same time 

Monday, April 23, 2012

Claim your free 25GB skydrive now

If you have Hotmail account, you should claim your free 25GB now. Today, Microsoft released the new SkyDrive apps gives you automatic access to your files across PCs, Macs, iPad and mobile. The drawback, Microsoft reduced the free 25GB to 7GB. For existing Skydrive customers, you must claim 25GB now or your account will be reduce to 7GB.

Microsoft notified you your SkyDrive free storage is changing.
Take action
Now, I can keep my free 25GB storage

Sunday, April 22, 2012

How to rename multiple files in Ubuntu?

Using the rename command and Perl expression. In the terminal:

To rename all upper case file names with extension .JPG to lower case

Test first.
rename -n 'y/A-Z/a-z/' *.JPG

Execute and show the operation.
rename -v 'y/A-Z/a-z/' *.JPG

To remove all colon character out of of the file name:
rename -vn 's/[:]//g' *

To remove all non-alphanumeric characters:
rename -vn 's/[^A-Za-z0-9._]//g' *

For more inforation, type 'man rename'

Sunday, April 15, 2012

Compare Family Cell Phone Plans

Buy your own device without contract or a discount cell phone with 2 years contract, which one is better? Let compare three contract plans from big three against T-Mobile Value Plan Bring Your Own Device (BYOD). Assume all five lines in a family account using smart phones as of April 15, 2012

For 4G Android smart phones

Verizon WirelessAT&T WirelessSprintT-Mobile Value Plan
Monthly$279.95 (1)$229.96 (2)$239.96 (3)$124.98 (4)
2 Years$6,718.80$5,519.04$5,759.04$2,999.52
Activation Fee$175.00$180.00$0.00 (5)$175.00
Cell Phones$999.95 (6)$499.95 (7)$0.00 (8)$2,999.95 (9)
Est. Sales Tax$251.87$174.35$266.00$232.50
Total Cost$8,425.57$6603.3$6,265.00$6,299.45
Compare with T-Mobile$2,126.12$303.85-$34.45

(1)Verizon Nationwide Family Share Plan: 700 minutes. Unlimited text. 4GB data per line.
(2)AT&T Nation 700 FamilyTalk w/Rollover® Minutes. Unlimited Calling and Messaging to or from any Mobile in the U.S. DataPlus 300MB for Smartphone 4G LTE.
(3)Sprint Everything Data Family 1500 minutes plan. Unlimited data, messages and calls to any mobile, anytime while on the Sprint Network.
(4)T-Mobile Family Value Plan: 1000 minutes. Unlimited domestic messages (text, picture, and video). Unlimited - Plus (up to 2GB of high speed) data. $9.99 SIM or Micro-SIM card waive for web order.
(5)Activation fee at Sprint is $36 per line. This activation fee is waive for the promotion as of April 15, 2012
(6)Two years contract price for HTC Rezound is $199. Its full retail price is $649.99. HTC Rezound has 1.5GHz dual core processor, 1GB DDR2 RAM, 16GB internal storage, 8MP camera in the back, 2MP camera in the front, and 4.3” super LCD screen, 720 x 1280, HD 720p
(7)Two years contract price for HTC Vivid is $99.99. Full price at AT&T is $499.99. HTC Vivid has 1.2 GHz dual core process, 16GB internal storage, 8MP camera in the back, 1.3MP front camera, and 4.5" qHD, 540 x 960, Super LCD with LED backlight
(8)Free Goolge Nexus S 4G for two years contract.
(9)HTC Amaze 4G sell at Amazon Wireless is $599.99.

Using iPhone 4S 16GB for all carriers

Verizon WirelessAT&T WirelessSprintT-Mobile Value Plan
Monthly$279.95 (1)$229.96 (2)$239.96 (3)$124.98 (4)
2 Years$6,718.80$5,519.04$5,759.04$2,999.52
Activation Fee$175.00$180.00$0.00 (5)$175.00
Cell Phones$999.95$999.95$999.95$3,245.00
Sales Tax$251.49$251.85$314.84$251.49
Total Cost$8,425.19$7,180.80$7,313.79$6,544.50
Compare with T-Mobile$1,880.69$636.30$769.29

Friday, March 30, 2012

Google Drive

There is a rumor Google will launch the Google Drive soon. Maybe next week. One said it will have 2GB. Other said it will have 5GB. Another guessed it maybe 7GB. I wonder Google can match up with Microsoft SkyDrive for 25GB of free storage or not?

Sunday, March 25, 2012

Unity Launchpad error in Ubuntu 12.04 LTS (Precise Pangolin) Beta 1

In the last couple days, I encountered the Unity Launchpad error in Ubuntu 12.04 LTS (Precise Pangolin) Beta 1. I got the error dialog box displayed, closed it, got a blank screen, nothing there. No launchpad.

How I got into the terminal or launched the application? How I fixed it?

Launched the keyboard shortcut by pressed these keys together <Ctrl><Alt>T

Now in the terminal, I ran these commands:
~$ sudo apt-get update
~$ sudo apt-get upgrade

I thought the new updates would fix it. Still no launchpad. I typed this command at the terminal
~$ unity

The launchpad launched. Still some glitches. Reboot. Repeated these processes above couple times, it worked.

Thursday, March 22, 2012

Hot Computer Languages: PHP, Python, and Ruby

Udemy had this interesting post regarding to these scripting languages. I love to use all three of them :)

Wednesday, March 21, 2012

Read Error in LibreOffice

If you cannot open the LibreOffice document due to read error as the picture below

Un-install LibreOffice version 3.4 and install LibreOffice 3.5 will solve the problem. I got this problem when saved a file in LibreOffice 3.5 in Mac and attemped to open it in Ubuntu.

Sunday, March 11, 2012

Ruby and Ruby on Rails Resources

Ruby Programming Language is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. Ruby was first designed and developed by Yukihiro Matsumoto (a.k.a. Matz), a Japanese computer scientist and software programmer, in the mid-1990s in Japan.

Ruby on Rails (RoR) is an open-source web framework using Ruby programming language. Ruby on Rails released as open source by David Heinemeier Hansson, Danish programmer, in July 2004. Like many web frameworks, Ruby on Rails uses a variant of the Model/View/Controller (MVC) architecture pattern to organize application programming. As of March, 2012, there are more than 200,000 sites using Ruby on Rails per

Programming Ruby: The Pragmatic Programmer's Guide

Ruby in Twenty Minutes Software Engineering for Software as a Service

Stanford Open Class Room: Web Application is the Ruby community's gem hosting service.

RubyForge is a home for open source Ruby projects

The Pragmatic Bookshelf | Learn to Program

Learn Code The Hard Way

Ruby Tutorials for Beginners

RubyMonk - Interactive ruby tutorials to learn Ruby

Rails 3 screencasts

Free episodes from

Ruby Koans

Sunday, February 26, 2012

Automatically Show and Hide Dock Bar on MacBook Pro

By default, the dock bar always show on MacBook Pro. It consume a lot of space on screen. To make it automatically hide and show:

1. Right click the middle space between icon, go to dock preferences.

2. Check automatically hide and show the Dock

Click on the Apple icon on the top left screen to access Dock preferences
or really quick: Press <option><command><command>D keys at the same time to turn on/off the automatically hide and show the Dock

Sunday, February 12, 2012

How to Open Two Excel Files Side by Side in Two Monitors?

The best solution is using LibreOffice. With LibreOffice Calc, you can open one Excel spreadsheet in one monitor and another speadsheet in other monitor to compare, view or edit.

Change the configuration in Excel 2007 or 2010 is another solution by check the check box 'Ignore other application that use Dynamic Data Exchange'. You may encounter with the run-time error when you attempt to close or open again.


Sunday, February 5, 2012

Troubleshoot Internet Connection

  1. Make sure you can connect to your router by ping to your router IP (for example: from command line (Windows) or terminal (Mac or Linux) or access to the router web page using the browser. If you cannot ping or see the router web page, check your network configuration on your computer.
  2. Are you using the wireless? If yes, connect the CAT 5 Ethernet cable connect to your computer.
  3. Is the wired connection working? If yes, your wireless has issue.
  4. If the wired connection is not working, is other computer in your home, your office or your LAN can access to the Internet? If just only your computer, check your network configuration.
  5. If all computers in your LAN could not access to the Internet, power down both the router and cable modem.
  6. Wait for 15 seconds, and turn them on.
  7. If you still not connect, check to see there is outage in your area. If not, verify your router is working.
  8. To verify your router is in good condition, hook up another spare router or your computer directly to the cable modem. Note: If you hook up your computer directly to the cable modem, make sure the firewall on computer enable and all ports other than 80 are closed. Connect computer with open ports: 20, 21, 139, 3389 directly to cable modem or Internet is dangerous and not recommend. Here, I'm using my test computer running GNU Linux with all closed ports to connect directly to the router.
  9. If you can connect to the Internet without router or with another router for an hour or more, your existing router is bad. It need a replacement.
  10. If you cannot connect to the internet, chance is your cable modem or the link from cable modem to your internet service provider have issue, call your internet service provide technical support.

Wednesday, January 25, 2012

Delete Facebook Message

How many clicks to use to delete a Facebook message?
1. Click on Action
2. Click on Delete Message
3. Click on Delete All button
4. Click on Delete Conversation button

and to delete a regular email: one click. Which one is easy?