Monday, September 29, 2008

Watch with tears

If Heeah can play piano with her 4 fingers and Tony Melendez can play guitar without hands what complaint you still have? If you watch below video without tears, look at yourself at a mirror, think again!

Saturday, September 27, 2008


My friends expect me carrying the latest iPhone, most of them don't know me well enough.

I may like electronic gadgets but mobile phone is different, certainly iPhone is very different. iPhone is not just a phone it's a computer. I just don't like talking to people over the phone and my mobile is always in silence mode.

Another concern is of course the carrier, the latest is that you could now order one online from local Apple Store. It says now

iPhone 3G purchased at the Apple Online Store can be activated with any wireless carrier. Simply insert the SIM from your current phone into iPhone 3G and connect to iTunes 8 to complete activation.

I still won't buy one because I have enough time with computers.

Friday, September 26, 2008

$10 million idea, do you have one?

I read John's Book some 2 years ago. Now you don't have to leave your company to change the World. Let Project 10 to the 100 help you to help others.

Google is putting $10 million on the table, got an idea so don't hesitate.

Tuesday, September 23, 2008

Moved a few sites

Got a little problem with Tinyau's Tag Cloud plugin after allowing the /user/cache/ folder to be writable. Now it's solved by clearing the old cache in that folder.

I have also moved Karen's and Because I Learn to this new LEMP server. During the WP WXR import I had to change post_max_size and memory_limit in addition to upload_max_filesize in /etc/php5/cgi/php.ini or else I'll get Allowed memory size of 33554432 bytes exhausted error from WP.

Thursday, September 18, 2008

Moved to LEMP server

Now I'm eager to see if LEMP would be better.

Having installed firewall moving from one slice to another is a piece of cake.

  1. create a site file at /sites-available/, in this case I just copied the file that I have been using for test and edit the domain name

  2. symlink it to /sites-enabled/

  3. remove the symlink that belongs to the test site being replaced

  4. change DNS setting at SliceManager, basically changing IP address

  5. wait for a while

This theme is a very quick modification to the default K2 theme. I am not using any jQuery scripts for a faster page load, do you feel it?

Time Machine backup

Latest addition of 500G to backup my MacBook

Wednesday, September 17, 2008

I locked myself out

Over the long weekend I was playing with my slices. I was initially stuck with importing mysqldump to a fresh new Habari installation at a new slice. This great timing is also inline with schema change of Habari so there were many possible causes of my failure. I was also very bad at Mysql command line and phpmyadmin graphical interface is my only option.

Eventually I managed to import the database into a new slice. Earlier failure was due to extremely large mysqldump mostly due to logs, file size reduced from 16 to 4.5Mb.

I then hit another problem, I locked myself out. It was like slam closed my main door without the key in hand, all windows were also shut to keep the rain out, how nice!

How am I going to get in if I purposely made the sshd_config and firewall to stop anyone getting in. There is in fact a safety backdoor available at slicehost however editor nano isn't very useful there according to this thread. My only 'key' to get back in is using Vi, a 30+ years old editor available to almost any UNIX/Linux distro, to edit sshd_config at console.

I have been very comfortable with nano because that reminds me of WordStar which I learnt to master when the original IBM PC came into market. I was a kid then.

Googled a bit about Vi looking for howto, tutorial and cheatsheet and the like I found this interesting read and this tips. I'm sure there are still a lot of 'died hard' fans to this 'old editor'. Younger generation is just too lazy to climb an apparently steep learning curve. It was said that badly designed systems aren't bad as long as you can get used to it, e.g. QWERTY keyboard isn't a good logical design (I can type fast by the way). During the 500 years of piano history there were also so called genius logical design of multiple keyboards (as in organ, so that you don't need to stretch your hands) and curved keyboard but none of these lasted very long.

PS: now I'm in my house again using editor Vi. I have yet to setup firewall at the new slice before I decide to switch to LEMP from LAMP. I also found that the apparent speed issue of loading this site is due to the jQuery scripts that I'm using rather than performance of Apache.

Saturday, September 13, 2008

Is Nginx better?

I first tried Nginx back in November last year when I entered the world of VPS. The first ride wasn't smooth as I couldn't get php to work with Nginx.

I recently tried installing the Linux Nginx (Often called Engine X) Mysql and PHP, or the LEMP stack, again and this time I finally cracked it. My little experience is recorded here. I also recorded how to install phpmyadmin which is useful if I have to transfer database between servers.

Now I'll have to test out how I could move database across after that I'll decide if LEMP would be better for my use. My sites currently are of low traffic consuming only about 2G per month but I could see this number growing.


VirtualBox is a free download this is perhaps the last one that I haven't tried.

I have just tried this using an old image of ubuntu 8.04. This forum thread is a good start. The steps I have taken is not exactly as described for example.

  1. At the end of the installation ubuntu didn't restart itself I have to reset the guest OS from VirtualBox

  2. The VBoxAdditions didn't come out in Vista instead I have to mount a CD image on desktop then run /media/cdrom0/ in command line.

In general my first experience of VirtualBox is very nice, e.g.

  • getting in and out of the guess OS the mouse behaves smoothly

  • network is detected automatically during installation

  • graphic works perfectly without tweaking at commend line during startup although you may still want to adjust color depth from 16 bit to 24 bit

  • if you select a screen resolution, say 1024x768, and shrink the VirtualBox window the guess OS resolution will be adjusted dynamically (font/icon size remains unchanged) and windows open within will stay inside the OS window without having the horizontal and vertical scroll bars created due to the smaller VirtualBox window. This is a really nice feature because I just don't like navigating using scroll bars

I gave ubuntu only 512M of RAM and I see that VirtualBox overall consumes more RAM than other applications of this kind but with less CPU usage. This is a lot better than Microsoft's VPC I tried earlier.

I'll also try version 2.0.2 for OS X at home tonight, VMware Fusion will have to give way.

Wednesday, September 10, 2008

Yundi Li again

I don't remember I went to his concert only beginning of the year.

This time we sat at first row just on his right hand back. This wasn't too bad as we saw his hands in action.

In the programme I like that one "Andante spianato et Grande Polonaise brillante, Op 22" which I rarely listen to. I think I have to dig my Chopin albums out again.

Tuesday, September 9, 2008

When Gmail is filled

Who said I never had to delete another email?

Few years ago I have to move around a lot carrying my notebook all the time for work and study. Since I spent very little time in the office I have no access to office emails served by Microsoft's exchange server. So I set up email rules such that incoming emails are copied to a gmail account setup solely for that purpose. I haven't logged into that account lately as I thought gmail is bottomless.

I was alerted by my colleagues that they have received bounce back from gmail saying that my mailbox is full, I don't believe that.


In fact I have more than 11,000 mails in the inbox that I have not read.


Saturday, September 6, 2008

Tidy up my PC at work

I have dual boot Vista and Ubuntu for my DIY PC now in use at work. I have no time for Linux at work so I wanted to remove the ubuntu installation. In dual boot GRUB has taken over the MBR so I have to remove it. Something that I haven't done for ages so I googled it.

This post showed me how, i.e. must have my Vista disk ready, boot up with the DVD then choose command line.

bootrec.exe /fixmbr

It's that simple!

I then deleted and reformatted the partitions to NTFS. I also changed the drive letters around.

Friday, September 5, 2008

Stanley in Stanley for Douglas

This was taken by the new Canon last week in Stanley.


Thursday, September 4, 2008

Goodbye Site5

I signed up Site5 on 21 September 2005 and said goodbye to them on 3 September. I'll have to pay $143.4 if I renew on anniversary, I can't find any good use of it yet so I decided to quit.

As a shared hosting they have done a good job for the last 3 years. There were problems from time to time but they have served me well in fixing issues and people are friendly.

Before Site5 I have also tried DreamHost and Yahoo if I ever want shared hosting again Site5 will be the one that I would return to.

Wednesday, September 3, 2008

Acid3 on Chrome

Is this good enough for a beta?

acid3 on chrome

I don't know if Google intends to have Chrome to be 100% compliant. By the way Safari scores 77/100 (using same Webkit rendering engine), FF3 scores 71/100 and IE8 beta 2 scores 21/100. If you like putting browsers on a race track see also this post for javascript benchmark test results. I also look forward to trying Safari 4 which allegedly could score 100/100.

Chrome has the simplicity I like on the outlook. It doesn't come with the font rendering I like in Safari but I think in due course those eye candy features will come either in the core or from plugins.

At first start up it didn't impress me because it took a long time to render Google's personal home page and crashed. Once a few pages are cached it was alright. In Task Manager I see few instances of Chrome, one for the chrome itself then one for each tab. There is also one for default functions such as shockwave flash etc. You can try ending those processes one by one and you'll know what has been terminated and taken away.

I have yet to see if it may suffer memory leakage so I'll start this for the whole day. Edited: I think Google is ready to show off. Chrome has its own Task Manager (press Shift+Esc) below and you can see which process is consuming how much. It's like Windows' Task Manager and you could end any naughty process that may be causing problem.


Try open a new tab and enter 'About:memory' in the address bar you'll see more about memory usage. Google is ready to show off, i.e. putting Chrome side-by-side with other browsers running. They know you'll be comparing are you not doing that right now?


Tuesday, September 2, 2008

Google's browser Chrome

As a developer can you cope with the pace of new broswers and standard? Google is launching their own browser very soon. It's like a car builder now having their own engine factory.

I have seen commercial sites around here still WARNING users that their site is best viewed by IE 5.1 or 6 while IE7 is nearly obsolete with IE8 just round the corner.

I have also seen websites still support only IE without any consideration of users using Safari, Firefox or Opera. I guess with the pace of new broswers/standards joining the race it must be good business helping businesses to update their website designs.

Monday, September 1, 2008

Notebook stand

My latest addition is a Logitech Alto notebook stand

What I like is the USB hub that comes with it. It provides 3 ports at the back and 1 at the front. The total output is 2,400mA while the other one 7 ports USB hub I have has only 2,000mA output.