^ ^

13 09 2010

Happy Programmer’s Day! 🙂





:)

3 03 2010





Google Wave

29 09 2009

I really hope to play with Google Wave tomorrow.. WARGHHHHH





Playing With Unreal Engine

15 09 2009

Bored @ Uni..

Ooooo..Unreal Engine in the labs! *poke poke*





Format Large Drives to Fat32

28 03 2008

wonder why Win cannot format large drives to Fat32.

Anyways,  follow instructions here





Europa & Red Hat Struting Their Stuff

16 08 2007

Eclipse Europa + Red Hat Developer Studio (Exadel included) ROCKS big time for Struts projects!

Much MUCH more stable then the previous versions of Eclipse + Exadel setup.

still waiting for SVN plugin 😦





DynaBean Soup

13 08 2007

Java Struts.. now where do I start?

EXACTLY how I felt going thru the abundant (but mostly repetitive) tutorial available online. The model-view-controller stuff is enough to put ur head in a whirl spin.

So let’s start with an IDE:

  • Notepad: Ha! Good luck with that!
  • NetBeans: resource eating monster!
  • Eclipse: we have a winner!

Eclipse is pretty awesome for struts (thanks to the Exadel plugin). Problem is on a bad day, it’ll hang a zillion times but on a good day, u can go on struting ur stuff till kingdom comes 😀

One thing about struts is it’s flexibility. You can’t do stuff like

<html:link href="user.do?edit=<%=editFlag%>">Edit User</html:link>

instead you’ll have to place the entire link into editURL variable

<html:link href="<%=editURL%>">Edit User</html:link>

which i suppose is much “safer”.

Another thing about a struts application, your jsp pages can end up containing html, struts tags, Javascript, Java or all of the above coz when a struts tag don’t work the way i want it to (blardy <html:checkbox>) i end up using the good ol reliable html tags which leaves me wondering why on earth am i using struts then?!

Why?

for 1, the auto form validation saves u a ton of code! that is.. if u get it to work and u’re dealing with simple validation.

2. displaying a populated listbox has never been so easy!
<html:select property="favColour" value='<%= request.getParameter("favColour")%>'">
<html:options collection="colours" property="value" labelProperty="description"/>
</html:select>

3. DynaBeans – Oh How I Love Thee!! i call it the recyclable classes. don’t have to create and write new .java classes, just set as many properties as u like.

DynaBean userBean = new LazyDynaBean();
userBean.set("First Name", "John");
userBean.set("Last Name", "Doe");

4. <bean:define> can save ur coding arse all because u can declare it’s type. Yes my friends.. ALL data types! including java.util.ArrayList and java.lang.String[]

so end of the day project, am pretty sure there’s more tricks and what-nots that makes struts coders life easier.. i just haven’t found it yet and tis why i started this blog 😛

Happy Coding Amigos