Monday, July 13, 2009

Da Vinci Code

More audio book related post.
I'll be finishing up Da Vinci Code this week.
I'm currently at chapter 10.

By the time I'm done, I can probably start with Angels & Demons.
Not sure if I'd read Deception Point or Digital Fortress. Probably not.

Sunday, July 12, 2009

USB MP3 Player

In 2003 I bought a car MP3 player. It was very expensive and I was very young.
In 2006, I gave it away.

Since then, my car has remained without a radio.
I don't really need it. I don't really listen to songs nowadays.

Due to my recent addiction to audio books, I bought an MP3 car player today.
Its less than half the price of the unit I bought in 2003, I can plug in my USB stick and I can the auxiliary input as an output for my Sony Walkman.

Technology is nice.

Saturday, July 11, 2009

Horrible code - Malaysian Airlines

I disabled javascript and went to http://www.malaysiaairlines.com/.
I was shocked to see an empty page.
Right-click, View Page Source.
This is what i saw


var addr = location.hostname;
//alert (addr);
//Malaysia
if (addr == "www.malaysiaairlines.com.my"){
window.location="http://www.malaysiaairlines.com/my/en/home.aspx";
}else if (addr == "www.malaysia-airlines.com.my"){
window.location="http://www.malaysiaairlines.com/my/en/home.aspx";
}else if (addr == "www.mas.com.my"){
window.location="http://www.malaysiaairlines.com/my/en/home.aspx";
}

else if (addr == "www.malaysia-airlines.com"){
window.location="http://www.malaysiaairlines.com/hq/en/home.aspx";
}
....
...
...



I thought to myself, wow, MAS is paying a lot to get crappy code. Congratulations.
I always wonder, why do people pay for crappy codes?

I this could be handled in httpd.conf (or something similar).

Its nothing, but it makes the site looks like it was done with someone with a few hundred hours of computer experience. I mean, at least the front page should be visible even if you disable javascript.

Wednesday, July 01, 2009

MP3 Player and Phone

I lost my phone on Friday.
Now i'm using my spare phone, Nokia 1200.

I bought an MP3 player, it comes with 2GB of space. Maybe i should have bought one with a higher capacity.

The problem I had with the previous MP3 player, (I borrowed my wife's MP3 player) was seeking was slow. If was listening to an audiobook and I need to forward to minute 50, it took me roughly 20 minutes. Now, i can forward to minute 50 in around 1 minute.

Come to think of it, my next MP3 player purchase better come with a bookmark function, I guess that's all I need.

I've completed Freakonomics.

Saturday, June 27, 2009

Freakonomics

I've just finished the audio book. Good reading. For instance, if drug dealers are so rich why do they still live with their moms?

Monday, June 22, 2009

No jam?

For some reasons that I have not been able to figure out yet, traffic was bearable today.

Wednesday, June 10, 2009

June

June is great.
My wife's birthday is in June.
My wedding anniversary is in June.
A new version of eclipse should be out in June.

BTW,
A funny thing happened to JSF 1.2 + Tomcat 6.0.18. I'm not sure if its wrong or right,
and if its wrong, who's fault is it, JSF or Tomcat (The evil voice inside me says that JSF is always wrong), but in JSF 1.2 and Tomcat 6.0.18, I keep getting ZERO for my Integer values when I submit an empty space for the text box.

The Hitchhiker's Guide to the Galaxy

I saw the movie.
I haven't actually read the book, but I'm listening  the audio book now.
Just started actually.
Since i have no audio device in my car, I'm borrowing my wife's portable music player.
Its always good when someone reads to you.

I'm also reading "The Tipping Point". Its a good book. I've downloaded the audio book for "Blink", and I'll probably buy that along with "Outliers".

I wish I could get an audio book on "The mythical man-month" (once a coder, always a coder).

My wish list for this year, Neil Gaiman's Sandman series. Currently I have just this

Work is bad. Traffic jam to work is bad. Can't wait for this 3-month contract to end. BTW, I've just served 1 month. 1 down, 2 to go.

Saturday, May 30, 2009

Optical Illusion


Here is a nice one.
It's not an animated image, but it looks like its animated.

Thursday, May 21, 2009

QUnit - jQuery Unit Testing

qUnit
I've been playing around with qUnit for awhile. Its pretty solid.
I used jsTester for javascript testing before this, but qUnit seems so much lighter.

Wednesday, May 13, 2009

New IDE

I'm testing a new IDE for java development. Downloading STS now.