Wednesday, August 11, 2004

good news: postgresql v8 beta is on its way...

xorg release plan includes a working sis dri driver. am crossing my fingers that this include the m650 series so i can finally play RTCW at decent framerates rather than the unusable opengl in software mode...

bluetooth and gprs article... if only gprs is affordable here in the philippines.... early this year i was torn between choosing a bluetooth only and a wifi only pda, i couldnt afford a device which has both, i opted for the latter as the office has wifi AP and at home i use wifi usb in ad-hoc mode to have a wireless lan (peer to peer is more appropriate) between the desktop, pda and the mobile desktop (degatto)... i was very tempted to buy teh tungsten t2 which has bluetooth but the expensive gprs rates is too unpractical for me... i can still connect my pda to a gprs phone via infra if the needs arises. of course sans the geekness and convenience of a similar bluetooth pda-phone pair...
The CharacterData interface makes thing clearer... java strings are composed of utf-16 chars....
stupid me, its not just ñÑ that causing the feature, este, bug... oh well...
"0x11 is not allowed in XML content"

String evolution.... back then in good ol' C/C++ a string is a string... an array of chars... memory mapped... now developing a program that deals with strings are no longer trivial... now there are different encodings to deal with... which reminds me of tacacs hell that i had to go thru with my first real unix program, to parse tacacs text files to produce subscriber usage reports for billing purposes... makes me want to do the perl-lee shell dance... now back to this bug... to my dear users please avoid sending text messages with ñÑ for the moment... hmmnn... this means am not doing java's encode and decode functions the right way... GOOGLEEEEEEEE!!!

Tuesday, August 10, 2004

am a few java classes away from being EJB free... finally, J2EE without those excess fats....

Monday, August 09, 2004

philmusic no more... its now just a photo gallery of the pinoy music scene... sayang, i like their magazine type articles back then pa naman... everybody moves on i guess....
totally loving junit testing, and how damn trivial it is to do this with eclipse ide... a REALLY nice break away from the monotony of EJB's CMP/CMR... of course this was made possible with spring framework's lightness... its IoC feature totally rocks!
Migs Paraz - What is Not ? myGlobe G-Blogs Mobile Blogging... from the venerable migz... i guess pinoy's are getting into the blogging trend... and being the mobile indie's that we are, the cell phone is a convenient means of posting one's thoughts on the web...

my office desk... the epitome of spartan simplicity... hehehehe.... i know its not that clean but some say that "a clean desk is a sign of a sick mind"...
KiwiCamara.com the nephew of our CEO.... comp sci and mathematics as his undergrad and will be finishing law at harvard this sept 2004... and his a filipino... we should clone him as our nation is in dire need of filipinos like this...
Second Life: Your World. Your Imagination.... this thing is wickedly cool!

Sunday, August 08, 2004

ok, continue with spring hibernate plumbing... i deferred using hibernate collection mapping in favor of simpler direct methods for getting collections/list associated with a class...

Saturday, August 07, 2004

its 3am and am really getting frustrated with hibernate to do my bidding... to some extent its working but why i DO NOT like the sql queries produced by hql... sigh... maybe i should go with teh sql way of doing things since hibernate does support this method...
"There are two varieties of one-to-one association:

*

primary key associations
*

unique foreign key associations

Primary key associations don't need an extra table column; if two rows are related by the association then the two table rows share the same primary key value. So if you want two objects to be related by a primary key association, you must make sure that they are assigned the same identifier value!

For a primary key association, add the following mappings to Employee and Person, respectively.





Now we must ensure that the primary keys of related rows in the PERSON and EMPLOYEE tables are equal. We use a special Hibernate identifier generation strategy called foreign:




employee


...
class='Employee'
constrained='true'/>


A newly saved instance of Person is then assigned the same primar key value as the Employee instance refered with the employee property of that Person.

Alternatively, a foreign key with a unique constraint, from Employee to Person, may be expressed as:



And this association may be made bidirectional by adding the following to the Person mapping:



"
Chapter?5.?Basic O/R Mapping having a problem with hibernate mapping... its a bit different than the ejb way am used to...

Wednesday, August 04, 2004

ok, migrated the layers to spring and hibernate... basically the apps i design has the following layers:

POJO - directly maps to each record on a table
DAO - contains data access methods for each POJO
Service - the business logic which often spans to several DAO's
Managers - the front end friendly wrapper for the service

spring really separates these layers nicely...
ok... on the coding front... was able to manage having the backend buildable via the CLI (command line interpreter or a shell etc)... was able to do cheesy unit testing because everything is now accessible even without an EJB CMP/CMR container... sweet :)... spring also literally separates the layers so all in all everything is much more flexible now... the next task is to remove resin dependencies so that i can make this thing work on suns free application server...

this face inspires me to do the imposible, reach for higher goals, and brings hope on this lowly geek to face the formidable challenges of today and tommorow... and last but not hte least, never fails to make me smile and laugh... ahhh the simple joys of being a father... am a ROJAN fanatic!!!

Monday, August 02, 2004

just to recap on what works on the degatto running on gentoo linux...

clie peg-tj37 works! i suggest to stick with copy from pda option for gnome-pilot tho. mounting usb-mass storage devices worked for me without a hitch, both the digicam and clie memsticks are recognized as /dev/sda1 devices... sound works nicely as well as playing dvd's and vcd's etc via totem... rhythmbox takes care of streaming audio... the msi cb54g wireless lan card works via the ndiswrapper... ok, back to work... will get back on this latter...

all in all i can everything "Mostly Works" (TM) ;)

Sunday, August 01, 2004

Mischiefblog ? Hibernate and Spring: Lessons Learned... funny i cant find anything mentioning aopalliance.jar on the springframework.org... oh well... i spent the better wee hours this morning why my downloading spring package doesnt have it... :(