Skip to content

Monthly Archives: April 2008

Taiwan, my home country

This post has nothing to do with my study.
I just saw this video on Youtube about my home country, Taiwan. Do take a look at it.
http://www.youtube.com/watch?v=gRu2oK0Kqc4

Follow your enthusiasm

I know I have an enthusiasm with computer engineering, but that same enthusiasm never shows in my research. What was going wrong, I wondered, for a long long time.
I was always “thinking” what I “should do,” not following what I “wanted” to do. My life was always divided into two pieces, one on my study, […]

Ruby on Rails

A friend said on his Twitter, “用PHP做Rails做的事真不是人幹的XD.”
After a short dialog over the email, I learned I should be able to do with RoR everything that can be done with PHP. I have to admit that PHP makes me suffer, but I always thought it was because I was not used to it.
Seems time to learn […]

Core Java

I have read several different books while learning various computer languages. For Pascal, my first language, I used D. Cooper’s “Oh! Pascal!” For C++, I read S. Lipman’s “C++ Primer.” For Perl, I read R. Schwartz’s “Learning Perl.” For Java, I read “The Java Tutorial” and “Core Java.”
Among all the books I have read, Core […]

Default packages

In a class A, which belongs to package pkg, declare a variable of a class whose source file is in default package?
I think it should be able to. But it doesn’t work.

Wordpress wanna-do’s

Commenter Email address verification plug-in: Sends an email to 1st-time commenter. The email contains a verification code that requires the commenter to enter before a comment can be submitted for the blog-admin to approve.

To-learns about Java

Layout
modal?

wrapper div

I never understood why a wrapper div is necessary in an HTML file to contain all the other blocks. Now I learned why it’s simply too difficult, if not impossible, to align elements without a wrapper div.

Simplicity is Beauty

This experience illustrates the KISS principle—Keep It Simple and Silly.
While I was making a WordList class to implement multi-user Boggle game, the first data structure that came to my mind was a trie.
Lazy, I made a quick and dirty array implementation, and found it only 0.8 second slower than an existing trie implementation […]

Three files to unblock

It turned our that there are three files to unblock in order to run NetBeans. Two of them are java.exe in the JRE installation, and one of them is under the JDK directory tree. No wonder I never suspected that.
C:\Program Files\Java\jre1.6.0_05\bin\java.exe
C:\Program Files\Java\jdk1.6.0_05\jre\bin\java.exe
C:\Program Files\Java\jdk1.6.0_05\bin\java.exe