Wednesday, October 26, 2011

The Objective

Few months ago, my ex-colleague, Wilson Mak, sent me an interesting youtube video which really inspiring me a lot. The title of that video is called Try Something New for 30 Days. This video is about how can I have my goal set and stick to it until it is done in 30 days. In the long run, I could gain a big change on myself.


I didn't sure how effective it is, but I did try it for one month, which is studying struts framework in just 30 days. Sound like mission impossible to me. Anyhow, the conclusion was failed because I don't have much time allocate into it.

One thing I am pretty sure is by having an objective set to myself with a duration of one year. I had been doing this for about 4-5 years. Every company I joined must have an objective set into it, and I will reviewing it once a year to see whether my objective has been achieve? Or need to stay for another year in order to get the objective done? Once I found my career has stagnate and not moving, first I will talk to my superior on my career path. If the situation couldn't improve, then only I will decide to move on. What if the objective can be achieve by reassigning me a new task? Definitely I will stay, for another year, and then review it again.

I always remember this: I am not working for you nor your company, I am working for my objective.

As of 2011, I had made my first move into JAVA stack. I only left 20 years for me to code. I am running out of time now. I can not wait for another 10 years to get myself certified as a J2EE developer, I need to have a 30 days plan. Plan it short so that I can achieve my objective earlier.

Sunday, October 23, 2011

Diary evolution

Diary, is a activity that could help me in writing a good essay during my school. By practicing it daily, one short paragraph (approximately 30-40 words) in a day, it could be various topics happen in my life, I will gain a wealth skills in essay writing. This is what teacher told me in school.

My diary book consist of small exercise book, a various kind of look and feel bought from gift shop, professional executive diary, hard cover, soft cover, thick one, thin one, cheap one, and expensive one. The smallest one I been using for my diary is '555' pocket notebook. I used to carry it along with me, write everything at everywhere. Due to the size is so small, I couldn't write much thing in it. And I give up using it.

As my age growth, my diary writing getting lesser and lesser. One of the reason is I am no longer need it to write a good essay, no more worry about scoring. At one time, I'm totally stop writing anything. Because I felt annoying in writing dairy.

I'm using Excel to write my diary recently, with three columns in it, one for date, one for time, and one for activity. Keep the content short to one to three sentences. My new way of writing dairy. Have been practicing it for 2 months. It is just so interesting to write. And it could be my time logger as well. Inspecting where my time spend on or waste on. With the help of smartphone device and cloud service, I can carry it anywhere, write anytime, and retrieve on the go.

At last, I no need to worry about how my diary should keep, and it save a lot of space in my bookshelf.

Sunday, September 11, 2011

Time waste on diagnosing my tomcat

I have my tomcat setup in my desktop PC and JDK is ready to be call. Anyhow I am not able to wake up my tomcat. Checking out the catalina.log showing me the following error:
blah blah blah missing "("
I have spend half of my day diagnosing this problem, I found out that the java, javac, any other binary inside my JDK/bin are not able to execute. Digging into the DuckDuckGo, found out that I have install the 64bit JDK in my PC (my PC is running in 32bit). My bad :p

Joke of the day


This joke is cheering up my day. :o)

Saturday, September 10, 2011

Using DuckDuckGo search engine

Today, I am not using Google because I'm trying duckduckgo search engine. I was so surprise on the search result because I feel more comfortable on the result than Google. I doesn't mean Google doesn't do its job. Let's start the test:
How to start JSP page?
My intention of this question is to ask the expert on how could I write a JSP code and then render it on the web browser.

I ask Google, RoseIndia tutorial is return in the 1st entry of the list. This page is giving a tutorial on writing the JSP code, the require server in order to run the JSP, the tool need to build a JSP, but it doesn't teach on how to upload the JSP into a server.

I ask DuckDuckGo, DeniWeb forum is return in the 1st entry of the list. This page returning a search result of a forum. That guy asking the same question as mine. Not exactly the word but have the same meaning of mine. This page doesn't show the exact result of my search, but the answer reply from the thread already provide me the clue for my search.

To conclude my investigation, I found out that the result return from DuckDuckGo are more focus on discussion forum search. Whereas Google are more focus on the resource search. Another good thing about DuckDuckGo is the search page is auto load when reach to the end of the page and support keystroke interaction too. ;)

What is inside the Web App?

It has been a hard time for me in last week to figure out what is inside Web Application Archive, so called WAR. I was really stressing myself in building this shit using pure ANT script. Basically this file consist of two main portion, the 1st portion storing the JSP file, whereas the 2nd portion is the WEB-INF directory. Now the interesting one, WEB-INF must contain classes (containing the compile binary of java code), lib (containing third party jar file, usually only jar), and web.xml (I don't really bother what the heck is this). 

Wednesday, September 22, 2010

Unable to start Tomcat from Eclipse plug-in

I just found a Tomcat for Eclipse plug-in from eclipsetotale, which is very convenient for me to start and stop Tomcat just right in the Eclipse. It is not a Tomcat, but it provide a shortcut to trigger Tomcat. Thus you still need to point the Tomcat directory in order for this plug-in to trigger Tomcat.

Anyhow, sometimes it might failed due to the Tomcat service has already been started before you start it (again) in the Eclipse. There will be an error showing int the stack trace:

Address already in use: JVM_Bind:8080

To verify whether the Tomcat is started, go to Tomcat directory and execute the tomcatw.exe, this will pop up Tomcat service window. The status info will be shown in the window. You may stop it if it already started. Try start again the Tomcat from Eclipse once the Tomcat service has stopped.