Archive for January, 2008
Kung Fu Dunk

So, last time we got Shaolin people playing soccer, this time we got Kungfu people playing basketball. Written by Takehiko Inoue (my favorite Slam Dunk manga author), Kung Fu Dunk is about Jay Chou playing basketball using Kungfu. That’s pretty much the summary of the movie. Expect it to be released February 2008. Untill then, enjoy these videos :)
Trailer
Leaked Video ?
Interesting + Addictive Game
While waiting for my upload finish, I decided to write about these two game that I found out from Lowyat. I’m warning you though, one of the game is very addictive even though you’ll get bored of it at the end since there’re not so many levels. The other one, well, it’s very funny and hard at the same time.
Crayon Physics
The game is very simple, all you have to is make sure the ball (I think it’s a ball) to move and touch the star. Use your imagination to draw box, stick, or whatever necessary to reach the goal. This game is even better if played on a tablet pc.
You can download it from the official website.
It is actually a prototype of the Deluxe Version which is being developed, here’s a video demo of the Deluxe Version. More info can be found on the official website.
Update: Info about the second game deleted
Death Note 3 – L Change the World
Apparently, there’s another movie made for Death Note. I’ve never like these movies much, maybe because of those actors don’t give me the same feeling as the anime. But since it’s Death Note, it’s definitely on my must watch list. So, as far as I understand, this movie is about L living his remaining life before he’s dead on the 23rd day.
Visit the official website.
For those who don’t know, previous movies are about the battle between two geniuses, one good and one evil. One of them somehow got hold of a book called Death Note which belongs to a Shinigami (Death God) which he can write any name and that person will be dead later. It’s pretty interesting and refreshing story. I just don’t like the actors, both of them doesn’t look genius enough especially Kira and L looks like a retard that is not a genius where he should act as a retard, but a total genius, XD. But that’s just me, who knows you’ll like them :)
UPDATE: Videos removed
Reading MyKad in Linux
If this is your first time reading my guide in reading MyKad, I suggest you read my first post regarding MyKad. It will give you the basic idea what this is all about.
This article will only guide you what you should do so that you can read MyKad in Linux. However, your success rate still depends on the type of hardware you use, especially the reader since there are not so many reader that support Linux. These are my working environment in Linux:
- Slackware 12
- JDK 6 Update 3
- Netbeans 6.0
- Athena Smart Card Reader
For more info about the application used at the end of this guide, please refer to my post about Reading MyKad in Windows. I would like to thanks my colleague for guiding me on how to do this before. So, here it goes:
- Login as root first.
- Since my reader use USB, I need to get libusb library.
- Install libusb library
1 2 3 4 5 6 7 8 9
tar zxvf libusb-0.1.12.tar.gz cd libusb-0.1.12. ./configure make make install
- Get the latest version of PCSC Lite.
- Install PCSC Lite
1 2 3 4 5 6 7 8 9
tar zxvf pcsc-lite-1.4.4.tar.gz cd pcsc-lite-1.4.4 ./configure make make install
- For pcsc-lite-1.5.1, change the 3rd line to
./configure --enable-libusb --disable-libhal
Thanks to pakdo for the update :)
- Download the driver for the reader first. In this case, I’m using a reader from Athena.
- Install the driver
1 2 3 4 5 6 7 8 9
tar -xjvf asedriveiiie-usb-3.5.tar.bz2 cd asedriveiiie-usb-3.5 ./configure make make install
- Get Windows Binary of JPC/SC Java API, I know it’s for Windows but it also has precompiled linux library in it.
- Extract, copy and update
1 2 3 4 5 6 7
unzip jpcsc-0.8.0.zip cd jpcsc/bin/linux cp libjpcsc.so /usr/lib ldconfig
- Start the pcsc service
pcscd -f - Download the application here.
- Run. It should be working now.
Reading MyKad in Windows
For my first post in this blog, I decided to give out an example application to read MyKad which is written in Java. This application has successfully read:
- Old and new IC number
- Name
- Sex
- Date of birth
- Birth place
- Nationality
- Race
- Religion
- Address
- Photo
Do take note that for the photo part, it is not completely bug free, I’ll fix it when I got time which may not be happening :) There are a few things that I need you take note first:
- Almost 70% codes of this application are not written by me. I’m merely putting pieces together from multiple references in order to read the MyKad.
- Main credit should be given to Xenon who somehow managed to reverse engineered MyKad APDU so that we can read it without needs to pay a single cent for the SDK.
- Don’t expect a perfect code here since it’s my first time writing Java codes after 3 years and I don’t see any needs to upgrade it, at least for now. But you can be sure that it’s working at the time of this post is written.
- Even though it’s written in Java, it can be a guide for you to write in your own favorite programming language.
- This application only reads data from Jabatan Pendaftaran Negara (JPN).
These are the system environments that I use to run this app:
- JDK 6 Update 2 (JDK 5 should be working just fine).
- Windows XP.
- Netbeans 5.5 (you may need to update the GUI Builder Pack to the beta version if you want to edit the GUI, however it’s recommended you use the latest version).
- A smart card reader, I use Athena (got Linux support). Other brand will do, just make sure the driver is installed correctly.
Follow these steps to read your first MyKad:
- First thing first, you need to download Windows binary of JPC/SC Java API.
- Get the Netbeans project file here.
- You must include jpcsc.jar as the library. You can get the file from Step 1.
- You must also put jpcsc.dll into your main project folder and if you want to distribute the application, you MUST put it together with your main jar file. You can also get it from Step 1.
- Plug in your reader.
- Run the application (either directly or from Netbeans).
- Insert your MyKad.
- Wait till the app finished reading it.
- A GUI will popup presenting your MyKad data.
- If no data is showing, it is possible that your MyKad chip is spoiled that is if you’ve done everything correctly. It will only take 14 days to get a new one.
If you have any question regarding the Java itself, you can ask in the comment section, but if you got question about the APDU commands, I suggest you read this post by Xenon, the explanations given are very detail. There’s also a simple application made by him to read MyKad written in C.
Screenshot of the interface:
![]()
Summarize links of all files in this post:
Stay tune for the Linux version :)
Update 1: Linux version is available here.
Update 2: Read MyKad using Visual Basic


