Entries Tagged as 'Uncategorized'

Tuesday, October 6th, 2009

Luhn Digit Generation Oracle PL/SQL Implementation

Here's how to generate a Luhn Mod-10 Check Digit. It's implemented as a function in oracle PL/SQL. I spent 2 hours looking for this online, then decided to implement it myself since it's not that hard. Anyway, I thought I'd post it here for the next person trolling google for it. This is useful for [...]

Wednesday, January 2nd, 2008

Postgres select replace with regular expression

Postgres seriously kicks ass, here's a quick way to do a substring based on a regular expression. A Co-worker wanted to get the first word out of a column that contained a sentence. If we were using something lame like oracle we'd have to do gymnastics to do that.
It's a one-liner in postgres.

SELECT substring('this is [...]

Thursday, October 18th, 2007

Upgrade to Gutsy Gibbon Fast

Everyone is excited that Ubuntu 7.10 is finally out. (Have a look at the new feature tour here.)
But the servers are getting hammered, so most people are waiting on the upgrade (voluntarily or otherwise).
No need to wait! The more people who download from Bittorent, the faster your speeds! Grab it while it's [...]

Friday, October 6th, 2006

Here We Are Now, Entertain Us!

public class HereWeAreNowEntertainUs{
public static void main(String[] args) {
System.out.println("Here we are now, entertain us!");
}
}

Bookmark to: