Thursday, May 05, 2005
Wednesday, May 04, 2005
Tuesday, May 03, 2005
since my goal is to be able to run the webapp to other application servers aside from resin, container managed authentication and authorization doesnt fit the bill. now am looking at acegi so that it would inflict less pain when switching applications servers. i found a nice intro to acegi in this article -> Javalobby - Java J2EE Programming Forums - Securing Your Java Applications - Acegi Security Style...
previously i was using this format for loading my spring context files:
String configFiles[] = {"/applicationContext-orm.xml", "/applicationContext-manager.xml",
"/applicationContext-wrapper.xml"};
these require that you copy the context files to your webapps WEB-INF/ directory.
but if you want to carry it around your jar for convenience you can also use the classpath syntax:
String configFiles[] = {"classpath:applicationContext-orm.xml", "classpath:applicationContext-manager.xml",
"classpath:applicationContext-wrapper.xml"};
this is relative to your jar's classpath.
String configFiles[] = {"/applicationContext-orm.xml", "/applicationContext-manager.xml",
"/applicationContext-wrapper.xml"};
these require that you copy the context files to your webapps WEB-INF/ directory.
but if you want to carry it around your jar for convenience you can also use the classpath syntax:
String configFiles[] = {"classpath:applicationContext-orm.xml", "classpath:applicationContext-manager.xml",
"classpath:applicationContext-wrapper.xml"};
this is relative to your jar's classpath.
Monday, May 02, 2005
of weekends and kung fu movies:
had a nice long weekend... family time as usual. rented a couple of kung-fu inspired movies like kung fu hustle, crouching tiger hidden dragon and house of flying daggers. kung fu hustle was a good one, its like watching those popular dragon ball z fight sequences done by live actors. crouching tiger was a bit boring, house of flying daggers was much much better.
of java and the spring frameworK:
also finally managed to port some apps to spring mvc. to those using xsl as your view component, stay away from version 1.2 for the meantime. it has a bug that causes the improper view to appear.
the nice thing about this framework is there's a tendency for the developer think about modular code. for example: i use to have methods goes something like getTransactionsByDateInXML in the service layer. this is neatly separated in spring mvc via a separate object doing the DOMification.
of blogging:
read that there will be an ongoing blog summit. varying topics to be discussed seems to be fun. way back memory lane the early form of blogging was thru publishing .plan's or creating just static pages full of todo's and random notes for the day. then it was migrated to personal online journals. i think the blog summit should also emphasize on the idea that blogs are personal. a lot of blogs started that way. you don't care about traffic, and even content. you write what you want to write. if people stumbled on your blog and say it sucks, tell them its YOUR blog and you can write whatever you wanted to write. nobody should care if 90% of your entries goes like "nothing happend today, so i have nothing to blog".
but then, if your aim is to be a blog star, then by all means, study the medium. create mind-boggling, thought-provoking, etc etc content. but if its not your aim, just do it, write it, its all about freedom. but then, it only applies to you, think twice when what you write is not about yourself.
of cs teachers and profs:
sometimes i cant fathom why students complain that their teachers arent relatively linus torvald's like material. and most specially if its students of top notch universities. compared to what i have gone thru, studying cs in the province (where resourcefullness is a must to be able to keep up with the times), i think those kids are very lucky. man, look at how they write, their english writing skills are to die for. i think they are still much, much fortunate compared to the majority of the student population who has to go thru sub-standard colleges. they have the resources and facilities. i think the main problem is the lack of SELF-MOTIVATION. the ability recognize these challenges as opportunities. in reality, their diploma stating what school they graduated is already considered an ace. so heck, why dont they just ride thru it and just spend their energy on honing their skillsets thru PRACTICE. indeed, more often than not, we see students who thinks you can learn everything by reading, or, pray tell, spoon feeding. for short, happy enough they know how it works in theory, only to curse the console later in life. also, there seems to be lack of of focus on learning the fundamental problem solving skills nowadays. indeed, we have a lot of people wandering around who knows the syntax well enough, but seems to have great difficulty when, and where to use them.
*sigh* spur of the moment blogging. my apologies if its crap. its my blog... whatever....
had a nice long weekend... family time as usual. rented a couple of kung-fu inspired movies like kung fu hustle, crouching tiger hidden dragon and house of flying daggers. kung fu hustle was a good one, its like watching those popular dragon ball z fight sequences done by live actors. crouching tiger was a bit boring, house of flying daggers was much much better.
of java and the spring frameworK:
also finally managed to port some apps to spring mvc. to those using xsl as your view component, stay away from version 1.2 for the meantime. it has a bug that causes the improper view to appear.
the nice thing about this framework is there's a tendency for the developer think about modular code. for example: i use to have methods goes something like getTransactionsByDateInXML in the service layer. this is neatly separated in spring mvc via a separate object doing the DOMification.
of blogging:
read that there will be an ongoing blog summit. varying topics to be discussed seems to be fun. way back memory lane the early form of blogging was thru publishing .plan's or creating just static pages full of todo's and random notes for the day. then it was migrated to personal online journals. i think the blog summit should also emphasize on the idea that blogs are personal. a lot of blogs started that way. you don't care about traffic, and even content. you write what you want to write. if people stumbled on your blog and say it sucks, tell them its YOUR blog and you can write whatever you wanted to write. nobody should care if 90% of your entries goes like "nothing happend today, so i have nothing to blog".
but then, if your aim is to be a blog star, then by all means, study the medium. create mind-boggling, thought-provoking, etc etc content. but if its not your aim, just do it, write it, its all about freedom. but then, it only applies to you, think twice when what you write is not about yourself.
of cs teachers and profs:
sometimes i cant fathom why students complain that their teachers arent relatively linus torvald's like material. and most specially if its students of top notch universities. compared to what i have gone thru, studying cs in the province (where resourcefullness is a must to be able to keep up with the times), i think those kids are very lucky. man, look at how they write, their english writing skills are to die for. i think they are still much, much fortunate compared to the majority of the student population who has to go thru sub-standard colleges. they have the resources and facilities. i think the main problem is the lack of SELF-MOTIVATION. the ability recognize these challenges as opportunities. in reality, their diploma stating what school they graduated is already considered an ace. so heck, why dont they just ride thru it and just spend their energy on honing their skillsets thru PRACTICE. indeed, more often than not, we see students who thinks you can learn everything by reading, or, pray tell, spoon feeding. for short, happy enough they know how it works in theory, only to curse the console later in life. also, there seems to be lack of of focus on learning the fundamental problem solving skills nowadays. indeed, we have a lot of people wandering around who knows the syntax well enough, but seems to have great difficulty when, and where to use them.
*sigh* spur of the moment blogging. my apologies if its crap. its my blog... whatever....
Saturday, April 30, 2005
best ubuntu wallpaper daw? -> ubuntu-calendar-march_original.jpg (JPEG Image, 1600x1200 pixels) - Scaled (51%)
Friday, April 29, 2005
and if you thought barangaywireless.net sounds hard, try doing it in iraq -> MAKE: Blog: Hacking in Iraq, Interview with Jake Appelbaum... fascinating!
here's a <1 href="http://www.livejournal.com/users/ioerror">link to his blog...
here's a <1 href="http://www.livejournal.com/users/ioerror">link to his blog...
Thursday, April 28, 2005
this rocks! -> Coredump: Ubuntu installation photos
never expected to see one locally... a few blogs back i posted something similar...
never expected to see one locally... a few blogs back i posted something similar...
Tuesday, April 26, 2005
Monday, April 25, 2005
many summers ago (since we dont have winter), i used to write html input type default value in xsl like this:
our simple xml:
hello xm-xsl world
first we declare an xsl variable like so:
then we write our html input like so:
resulting to a boring html input box with a default value of "hello xml world"...
recently discovered there's another way to do it via. using the sample xml above we can create a similar output with:
text
text
if page/input_value doesnt exist it simply produces a blank input box. the default value is commonly used when validating a form and you want to retain the user inputted values but wanting to do some fancy label highlighting of the offending fields...
our simple xml:
first we declare an xsl variable like so:
then we write our html input like so:
resulting to a boring html input box with a default value of "hello xml world"...
recently discovered there's another way to do it via
if page/input_value doesnt exist it simply produces a blank input box. the default value is commonly used when validating a form and you want to retain the user inputted values but wanting to do some fancy label highlighting of the offending fields...
speaking of june, my eldest would already start going to school... rojan had a perfect score at her entrance exam... my wife is the one responsible for this achievement, as she can still find time to teach rojan the basics amidst her hectic schedule... the school said rojan can already be accelerated to kinder... but we decided that would be too much and we still want her to enjoy being a kid... am really excited to see her wearing her first school uniform and make "kwento" about her first day in school...
Digital Life by Chin Wong -- This old notebook... nice article.. i feel rather stupid whining about one stuck pixel on my lappy... but then again i aint no rich fellow with much disposable income... so i feel pain even if its just a single stuck pixel... as june drew nearer, life's competing priorities will come in full force... and i wonder if i will be able to have the luxury to buy one again... crossing my fingers this thing will last me at least 3 years at the minimum... but would really be happy if would extend to 5 years and hopefully it would still be suited to run the current breed of applications by that time...
Sunday, April 24, 2005
i'd say coding and cooking have much in common... there are many ways to solve a particular problem domain as there are many ways to to cook a particular dish... both has a distinct science at the background... the more exotic the solution/dish the more complicated it gets....
spring me baby... spring me...
that said... the spring framework documentation direly needs some diagram lovin'...
spring me baby... spring me...
that said... the spring framework documentation direly needs some diagram lovin'...
Friday, April 22, 2005
Wednesday, April 20, 2005
heise online - Linux notebooks by Hewlett-Packard... another good news for today... ibm, dell, asus etc.. when will you follow?
Subscribe to:
Posts (Atom)