GWT - Overriding without extending, adding event handlers to SimplePanel

May 22nd, 2008

Google Web Toolkit\'s Logo I’ve been working with GWT lately, and it’s one heck of a toolkit. It totally changed my way of web development at least.

Anyway, I’ve had problems on adding event handlers to the SimplePanel class without having to extend it. The reason for the requirement of not extending is simple: I am only using it once in my code. E.g. I want to add a callback for the onLoad method.

It’s quite simple actually, and I’ve wondered why I’ve never come across it on any documentation online. The only downside is it needs to be added on class instantiation — in the new line.

mySimplePanel = new SimplePanel ()
{
  protected void onLoad ()
  {
    /*
    Add method functionality here.
    */
  }
};

CSS Art - A new kind

May 9th, 2008

http://nedbatchelder.com/blog/200805/css_homer_animated.html

Pictures are worth a thousand words… or in this case, a hundred letters or so embedded in divs and positioned via CSS.

Enjoy!

Deceit and Betrayal

May 7th, 2008

He who works deceit shall not dwell within My house. He who tells lies shall not tarry in My sight.”

Deceit and betrayal…

They come very close hand in hand… but not always.
When one tends to deceive, for what purpose?
I can think of only one purpose at end: to further one’s agenda in mind at the end.

To control, to manipulate, to guide, to direct…
When one assumes the responsibility of the director of Life,
I wonder what the consequences are if/when one fails such responsibility.

How will one know when it is time to be the director?
How will one know when it is time to tip the weights to that cause?

It is difficult to assume the role of a judge.
For when one passes judgment, one must be careful that that same measure may be used against one’s self.
How will one ultimately know the truth…?

Deceit is the act of concealing the truth…
For what purpose?

Not many people can handle the truth.

or is it because some just think others cannot handle the truth…

Soft Keyboard with SCIM and WideStudio

May 7th, 2008

I’ve been doing some projects that involved creating a soft keyboard and japanese character input. For this, I had to get my neck deep into SCIM codes… well… not that deep really, just enough to be able to make use of SCIM to do the japanese character input for me in the application.

Thanks to some people at http://www.scim-im.org/forums for giving a one line tip, it pointed me to the right direction.

So where to begin?

Read the rest of this entry »

Batch Print Center (osCommerce mod) missing label print fix

April 27th, 2008

Update: The fix below only works for printing the first order number in the range. For the complete fix on Labels per page, please download the zip file added below.

I’ve had some time to look at the codes, and I managed to fix the bug for this missing label print.

Basically, the bug occurs when you select the “Labels” type of template, then select a range of orders, say 1-10, and click Send. The output pdf only shows labels for orders 2-10.

Read the rest of this entry »

Inama Mushif (Montage)

April 13th, 2008

“Inama Nushif”, Music and Lyrics by Brian Tyler

Read the rest of this entry »

Protected: The Stages of Love

April 12th, 2008

This post is password protected. To view it please enter your password below: