Entries from June 2007

Friday, June 29th, 2007

One Time Case Insensitive Vim Search

Everyone knows you can type :set ic to ignore case in vim, however sometimes you want to do a case insensitive search on a ‘case by case’ basis, no pun intended. to do that you’d type /\csearchstring That way you don’t have to go insenstive for your whole session. Bookmark to:

Wednesday, June 20th, 2007

Randomizing Query Results in Oracle

I was doing some work this afternoon, and I needed some sample id's from a database query, however all the data ended up being related to the same person because of the ordering of the results. There must be a better way, i want random results in my resultset. Here's how (in oracle), order by [...]

Tuesday, June 19th, 2007

So Elite it Hurts

Great post over at coderspiel that explains how to use scala to do some Java heavy lifting easily -- writing a wicket and hibernate app in scala. For those who don't know ,scala is one of the new breed of JVM based programming languages that can integrate with Java libs. Cool stuff. Bookmark to:

Thursday, June 7th, 2007

Java Date Validation is Annoying (Regexes too)

*EDIT* Thanks for the tips in the comments. Today I had a user complain that they could enter 2 digit years in their app. Hmm I took a look at the code and I didn't see how that was possible. Here was my date validation method, more after the jump. Bookmark to: