Archive for July, 2008

Scamschool master finally defeated

Posted on July 31st, 2008 in Technology | No Comments »

Back to basics with this episode: another tough match puzzle *almost* guaranteed to win you a drink. Remember: Tricks get you attention, but selling the answers to puzzles gets you drinks.

The rules are simple: using 6 matchsticks, create 4 equilateral triangles. All 4 triangles have to be the same size, and the sides of each triangle have to be one matchstick long.

http://revision3.com/scamschool/3Dmatchtrick/

Wii MotionPlus Video

Posted on July 31st, 2008 in Links | No Comments »

Here is a video of the wii motionplus, the video is impressive, i wish there will be good games that will use this.

Text to speech on mac

Posted on July 31st, 2008 in Technology | No Comments »

If your like me and you hate reading the web and let someone (the computer) read it for you then mac has a good feature that lets it read any selected text. The procedure follows:

* Open System Preferences
* Go to Speech
* Text to speech tab
* Then select Speak selected text when the key is press
* Enter your key combinations
* and your done.

I tried it using firefox and it works perfectly. I hope Orca on Ubuntu would worked properly by default.

Transaction on cakephp 1.2

Posted on July 31st, 2008 in Programming | No Comments »

The execute function had been removed from cakephp 1.2 and this left us with use the query function. If you need to use transaction on cakephp 1.2 here is the most simple example.

$this->Model->begin();
$returnQuery = $this->Model->query($query);
if($returnQuery !== false){
$this->Model->commit();
}else{
$this->Model->rollback();
}

$this->Model->begin();
begin will start the transaction

$returnQuery = $this->Model->query($query);
will execute your query (but not and assign the returned value to the returnQuery variable

if($returnQuery !== false){
strict check if return the query returns false

$this->Model->commit();
commit the transaction

$this->Model->rollback();
cancel the transaction

Vista Blues

Posted on July 30th, 2008 in Technology | No Comments »

The song here is so true, i’m not a mac fanboy nor a MS hater but vista really sucks.

Will It Blend? - iPhone3G

Posted on July 29th, 2008 in Technology | No Comments »

While a lot of people are dying to get the iphone 3g, this person just blended his new iphone.

Microsoft helps Open Source?

Posted on July 26th, 2008 in Technology, linux | No Comments »

Microsoft supporting Open Source? Yes its true see this article, but there is one thing that you will notice here is that MS knows that 80% of PHP programmer are doing their development on a Windows and deploying it in linux. I wanted to point out that yes we do this but our development server is still linux.

So why linux instead of windows as deployment platform? There are many reasons but here are mine:
* Software are considered part of the system after you install them so you can combine all software and make one ultimate software for your site
* Cron or automatic job in in linux is a lot simpler
* Windows file structure is so hard to get around using command prompt, look at your keyboard where is / and \.
* Windows command prompt doesn’t feel right meaning MS created them to be GUI and why the heck would you still use command line when you have a GUI

And the ultimate reason and also the reason why linux is not mainstream.
Most of the software for servers are created for linux not microsoft, and vice versa most of the software for desktop are created for microsoft not linux. So if the Linux feels that it’s so hard to get the mainstream desktop, MS will feel the same on servers no matter what or who MS is coz if you will be saying MS is MS, then why linux still lead this market after all this years.

Firefox 3 in Mac is beautiful

Posted on July 26th, 2008 in Technology | No Comments »

Recently we shifted to Actionscript 3 and because of that i need to use my mac since vmplayer and virtualbox is not working properly for me. And the first thing i need is to update Firefox and quicksilver. And i had used Firefox 3 in XP, Ubuntu and now mac, and i have to say firefox 3 in mac is the most beautiful (in terms of GUI). The tabs looks great, the star is blue, the password pop thing is in black, the bookmark panel looks a lot better. Well done Mozilla.

Batman in 4d Cinema

Posted on July 25th, 2008 in Other, Travel | No Comments »

My friend from Switzerland came to Hong Kong and he wanted to watch the batman so to make his experience unique we decided to watch it on a 4D cinema tough the film was in 2D it was so different to him, different on a way that the cinema itself is 230+ seater, the screen is 2-3x bigger than other cinema and the sound is a lot better (that is if you can hear the difference). About the movie, this should be the best film after LOTR for me, i love the way the focus more on other character except batman, what i mean is joker and two face has more exposure then batman.

Where is the 4d cinema? Its located inside Hong Kong International Airport Terminal 2, a 4d cinma inside an airport? Yes, its weird but its true. The airport here is so big that it have 2 mall, one on terminal 1 and the other on terminal 2. For more information about this http://www.hongkongairport.com/eng/index.html

“Last Lecture” CMU Professor Randy Pausch Dies

Posted on July 25th, 2008 in Technology | No Comments »

Randy Pausch, the charismatic young college professor who chronicled his battle with pancreatic cancer in a remarkable speech widely-known as the “Last Lecture,” has died.

If you haven’t see his video, i highly recommend you to watch it

more info at http://abcnews.go.com/GMA/Story?id=4614281&page=1