Thursday May 26, 2005 |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LINKS template by Helquin |
[Help Wanted] Where are the dolphins? I always believe I still carry a young
and innocent heart, that why, my girl friend always call me
childish, that's another story. Well, this has all change after I read Tor Norbye's blog
last night In his blog, he pointed "deceptive" picture, where most kids who see the picture see dolphins. I just can't! Here's the picture: ![]() I had spent a good 30 minutes last night just to locate dolphins from the picture,this include rotate my monitor, change brightens and contrast of my monitor, change color, photoshop it and layer it and others, but where is the damp dolphins? Could u help? this is very urgent.Thanks! ( May 26 2005, 08:07:00 PM MYT ) Permalink Comments [6]
Top five non technical reasons why u have to use eclipse
Number 5: You work for IBM or IBM Partner. Please change your email subject before replying a email I feel annoy when receiving a reply email, where the email content are not related with the email subject. People are just “lazy” to compose new email, and fill in address field with new email subject, they simply wanted hit reply button, where the addree is pre-filled, even if the content is not related to the subject. Here's what happen to me today. (Phone ringing) What do you u think? [Tips]: Boost your WIFI Data Transfer rate! Check this out, and let me know the result...enjoy! ( May 17 2005, 07:11:04 PM MYT ) Permalink Comments [0]
[My First Comic] Software Wars III - Revenge of the..
This is my very first comic. All characters are created from Planearium web site which I discovered from my friend Paul's Blog. At the same time, I also found another great blogger, introducing the only Sun Supper Support Girl,
very fun blog to read! Anyway, here we go ... [Tips] Wanted to use Log4j with Sun Java System App Server 8? I prefer log4j over JDK 1.4 logging library, hera are some of the "obvious" reasons: How about log4j comes with more appenders compare to JDK1.4 Logging, it easier to configure, and support many layouts. However, log4j does not “sits” very well in our App Server, some of identified problems are: 1.Deployed logging configuration file (i.e. log4j.properties) is totally ignore, even we put in correct class path. 2.Logger ClassCast Exception upon restart of an application server instance. A further investigate reveal that our Apps Server use JDK1.4 logging (i.e. Java.util.logging) via apache commons-logging, which should be avoided according to this article http://www.qos.ch/logging/thinkAgain.jsp, I agree. So, here's propose “work around”: 1.Write you own log4j wrapper class. Refer to “Ch9, Log4j, the complete manual” by log4j author Ceki Gülcü for more information on how to write a good log4j logger wrapper class. 2.Create a new Logger Manager, which will a)Configure log4j properties if is not configured yet b)Return the logger wrapper class to calling class. As an example of such Logger Manager class: 1: 2:public class MyLogManager { 3: private static boolean isLogPropertiesConfigure = false; 4: 5: 6: public MyLogManager() { 7: } 8: 9: 10: public static MyLog4JWrapper getInstance(String logInstance) { 11: try { 12: if (!isLogPropertiesConfigure) { 13: PropertiesConfiguration pp = new PropertiesConfiguration(Constants.PRJ_PROPERTIES_FILE); 14: String configFile = pp.getString( 15: "log4j.properties.file"); 16: FileInputStream istream = new FileInputStream(configFile); 17: 18: Properties props = new Properties(); 19: props.load(istream); 20: istream.close(); 21: PropertyConfigurator.configure(props); 22: isLogPropertiesConfigure = true; 23: } 24: } catch (Exception e) { 25: System.out.println("Error :" + e.toString()); 26: } 27: 28: return new MyLog4JWrapper(logInstance); 29: } 30:}3. Finally, use LoggerManager, and MyLogJWrapper for logging in your J2EE applications, example: 1:public class MyClass{ 2: static MyLog4jWrapper log= MyLoggerManager.get(MyClass.class.getName()); 3: 4: 5: 6: public void someMethod() { 7: log.debug("Testing..."); 8: } 9:}( May 13 2005, 02:17:41 PM MYT ) Permalink Comments [0]
[FireFox Tips]: Edit and Preview CSS on the fly Do you know that you could edit and preview CSS on the fly using Firefox, great tool for any web page designer, here's how:
1. You have to use FireFox 1.0 and above (Isn't that obvious?)
2. Download and install Web Developer extension.
3. Once installed, a new toolbar name "Web Developer toolbar" will be made available. As shown in figure below:
Photos from My recent Beijing Trip I am very lucky.. attended Sun Enterprise Web Services Product Master Training at Beijing last week. Eventhough we are on a very tight training schedule (From 8am to 6:30pm), My Wife (see note A) and I "manage" (see note B) to visit some of the Beijing famous spots, here are some
of the photos:
At Tianan'men Square, which is the heart of Beijing and of China
A date with Chinese Peking Opera at "Lik Yaun"
English subtitle at Peking Opera, in case you don't understand what's going on..!
Summer Palace, looks at my tummy, I am so fat!!!
Dinner at Fangshan (Imperial), it was opened in 1925 by chefs who used to work in 'royal kitchen'
The "yummy" starter dish at Fangshan.. and Finally:
The Great Wall!
Note A: I am not officially married yet..but since Joyce and I has been stay together for pass 5 years, sometime I am a bit confuse about her roles she could be my Girl friend, Home Minister, or Wife base on number of parameters. Anywhere, official or un-official, she the only one I love.
Note B:This note is for my boss, Bernard, in case he read my blog..I swear I did not skip any classes..I attended very track on Application server, and our tools you have ask me to attend..peace!
Tips: Making Hibernate 3.0 work with Sun App Server 8.1 I am struglling a bit recently on making a J2EE references architecture
(JSF 1.1 + Hibernate 3.0) work for our Sun App Server 8.1. for a local
project here. It work finally, here what I have learn: grant { and finally 3. Copy Hibernate libraries (together with the runtime libraries, such as your JDBC driver) to the Sun Java Application Server Class Path. For Sun App Server 8.1, this will be at $AppServer8InstallDir/domains/domain1/lib/ext Restart your application server, cheers Cheers James Khoo ( Apr 12 2005, 12:14:00 AM MYT ) Permalink Comments [0]
Addicted to Blogging?
Clingan started an interesting discussion about Blog investment!,
which trigger me a lot of thinking, ever since I started my blog here
in Sun, I have spend at least two hours a day on blogging, this include
read and comments other people blogs, and prepare my blogs (a lot be
tossed away. Recently, I discover that, this first things come to my
mind every morning is what to blog today! Oh my god!
Finally, I got my resident evil 4 for GameCube! Broadband for free? My ISP charge me Malaysia Ringgit 88 a month for a 1 Mbits ADSL connection (~= US 24), which consider quite high in this region. So, I am seeking alternative or ideas on lowering down my ADSL connection fees for the past few months, an idea, which base on our utilities computing comes to my mind this morning.. You see, I hardly spends more then 4 hours per day doing online things at home, so my PC together with my ADSL connection is consider “Under Utilize”. I believe the same goes to all my neighbor PCs, all presume "under utilized". So I am thinking if I can some how convince my neighbor to install Solaris 10 on their PC, and they all go and setup a virtual container for public access. We then create a grid of all these virtual containers, install some software for access control, and exchange this grid computing will my ISP in return of free broadband access..will this work? Will any ISP buys this idea? ( Mar 14 2005, 03:19:00 PM MYT ) Permalink Comments [0]
am I sexy/handsome today?"
Wei Nee: - “'Ai ya', why u so 'I
See'
( Mar 11 2005, 09:33:57 AM MYT )
Permalink
Comments [5]
Comments – We Malaysian, in regardless or our race, like to speck with Malay, Chinese's and 'localized' English. The above sentence should translated to “Please , I don't understand why u so love yourself.” Me: “What's wrong?" Wei Nee: “You are so sick, I don't know anyone who doing this..” I am confuse, am I the only one who doing this, please commnets..
Another advantage of blogging at Sun
Google have put my webblog as the first place when searching my name
"James Khoo"..even if I just entered one blog so far. cool!
5 Years at Sun! It's my habit to check my Sun's email prior of any of my morning activities, this include my not so regular Yoga routine, news paper, bath, and my breakfast (FYI, My Nerd score is 87, so you can imagine that). |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||