Pure-Essence.Net

Archive for the ‘geeky’ Category

Grails: I will not use you

Posted by: pureessence on: June 8, 2011

After the cijug presentation on Grails, I’ve decided I will not use it. I know Grails is hot and cool but I don’t like it. It’s probably just a personal preference. Why don’t I want to use Grails It’s built on spring and hibernate, so why not just use them directly? It’s just adding another [...]

So I upgraded to jQuery UI version 1.8.2 at work and thought that I should instead of using the autocomplete plugin which is deprecated, switch over to use the jQuery UI build-in autocomplete widget. jQuery UI autocomplete widget is NOTHING like the original jQuery autocomplete plugin!!! At least by jQuery UI version 1.8.2 it’s not. [...]

Eclipse: stop it from searching certain directories

Posted by: pureessence on: May 25, 2011

It’s always annoying when you do a search (ctrl+h) in Eclipse and it produces results from directories you do not care about. In my particular case, the project’s ant build expands the built war files into a directory named target. Since this directory duplicates the files in the regular WebContent directory, often times I end [...]

I’m just went through all of my 10 years of posts on pure-essence.net one by one to correct its syntax so I can use this super awesome sourcecode shortcode on wordpress.com. Yea I know I’m crazily obsessed with my blog. Sentiment from going through all of my posts I’m proud that my oriental wordpress theme [...]

Eclipse 3.6 toggle comment findings

Posted by: pureessence on: May 20, 2011

Despite of the usual convention of using ctrl+/, I found ctrl+shift+c is actually the way to go if you want it to work on everything. I care mostly about being able to toggle comment in the following file types: source code – comment with // or /* and */ block markup e.g. xml/html – comment [...]

WordPress.com lightbox/thickbox trick

Posted by: pureessence on: May 20, 2011

Click for an example. In your theme widget, add the socialvibe widget to your sidebar. Add the class “thickbox” in any of your links to an image. e.g. To use the gallery feature, use the same rel attribute for multiple image links. e.g. To see it in action, visit my layouts page. Credits: sensicology, thickbox.

Spring row mapper

Posted by: pureessence on: May 18, 2011

A coworker and I were chatting regarding spring rowMappers and I did a little more research and found the following: Spring’s simpleJdbcTemplate deprecated methods with parameterizedRowMapper in spring 3. The class ParameterizedRowMapper is not deprecated. Spring’s jdbcTemplate however only has methods that take RowMapper<T> so it will continue to work with parameterizedRowMapper. But it seems [...]

Spring: check if a column exist using resultset

Posted by: pureessence on: May 12, 2011

If you have a strange requirement in the rowMapper to check if a column exists or not, you could try to catch a SQLException of invalid column name or you could try:

Dynamically invoke methods using spring config

Posted by: pureessence on: March 25, 2011

A business rule at work requires some flexible configurations. I attempted to fulfill the need by create different spring batch steps/tasklets to execute each requirement based on a property value. For example, step 1 will need to execute methodOne on the class Repository with the appropriate parameters. The method signature & parameters are determined by [...]

How to execute IN() SQL in spring jdbcTemplate

Posted by: pureessence on: March 16, 2011

So for a long time, I wondered how you’d do the sql IN() using spring jdbcTemplate. Today I had an opportunity to work it out. Normally I used It’s not too friendly if you do If you wish to use the “where in” sql, there is a pretty elegant way to do it in spring [...]


My most adorable Pomeranians

Categories

Archives

SocialVibe


Follow

Get every new post delivered to your Inbox.