Skip to content
July 11, 2009 / Shamal Karunarathne

Fly a F16 on Google Earth

Yes, There’s a hidden flight simulator in Google Earth 4.2 and above. Why wait? start Google Earth and press ‘ctrl+alt+a’ (or if you are in a mac ‘cmd+opt+a’). If you don’t have Google Earth application installed download and install it by clicking here.

You have two choices of planes in the latest version. F16 and SR22.F16

Click on ‘Start Flight’ button and you are ON.


Cool. Have fun.

July 11, 2009 / Shamal Karunarathne

User Model for Software Frameworks

One of the concepts in software frameworking for easier, efficient framework management is having a fully covered user model. This makes it easier for developpers to have an overall look at the framework without going through hours of inspection. Moreover, a user model helps to identify flaws, priority points in the framework.

As an example, following is the Flickr user model: (Click on the image for a high resolution version)

Flicker User Model

July 9, 2009 / Shamal Karunarathne

Golden Sayings

Never doubt that a small group of thoughtful, committed citizens can change the world. Indeed, It is the only thing that ever has.

Margaret Mead

July 6, 2009 / Shamal Karunarathne

Switching to Linux OS @ work

This week, I switched to Fedora 11 at (my career provider). There are a lot of interesting stuff. The desktop effects seem attractive.

But, I encountered a problem while remote accessing the server (which is running on CentOS) using NX. The keymap from Fedora 11 was not compatible with the keymap in CentOS. Therefore I had to monitor the keystrokes received at the remote machine using ‘xev’ command (try it, it’s quite interesting. It shows all the details of the inputs received. mouse moves, keystrokes etc.).

And then I had to create a shell script that run all the time I log in using NX.

echo “changing key maps”
xmodmap -e “keycode 113=Left”
xmodmap -e “keycode 114=Right”
xmodmap -e “keycode 111=Up”
xmodmap -e “keycode 116=Down”
xmodmap -e “keycode 110=Home”
xmodmap -e “keycode 108=Alt_R”
xmodmap -e “keycode 110=Home”
xmodmap -e “keycode 118=Insert”
xmodmap -e “keycode 119=Delete”
xmodmap -e “keycode 112=Prior”
xmodmap -e “keycode 117=Next”
xmodmap -e “keycode 115=End”
xmodmap -e “keycode 105=Control_R”
xmodmap -e “keycode 109=NoSymbol”

Now it seems quite ok. If you know a better method, pls do comment.

July 4, 2009 / Shamal Karunarathne

Amazing Browser Experience

Better to experience rather than reading about it.


Don’t worry, it’s not spam or a hoax. =)

June 28, 2009 / Shamal Karunarathne

Twelve or Thirteen

Today I received the image below by email. Which was a challenge for me to figure out how the 12 men become 13 men (or 13 men become 12 men) just by altering the top halves of the image. I’m still trying. Help me to figure out.

twelve or thirteen

**NOTE: The image changes very slowly, be patient.

June 27, 2009 / Shamal Karunarathne

Evolution of Internet

Watch the history of INTERNET, which made it possible for me to write this blog post.