#!/usr/bin/env python import string, cgi, os, whrandom, pickle, sys import cgitb; cgitb.enable() #sys.path.insert(0, '/home/mu.org/home/gus/fm/fmblog') #import fmbloglib,fmblog print 'Content-type: text/html\r\n' print ''' gus mueller
So what are Java Bits?

Well, I wanted to share with the world little pieces of code that I have written that I love to use over and over. So here they are.

If you are not java programmer, this stuff will not make any sense to you, so you might as well just stop reading right now....


How to test if two strings are equal to each other. This one sounds like a nobrainer- but there are actually a few tricks to take note of in here.

Getting consistent values out of HttpServletRequest(s)
Here is something to get over the fact that some web browsers don\'t like to play nice when passing parameters through forms.

Refactor your sql query code
Sick of typing out try and catch statements everywhere you do a sql query? Try this code on for size.

Let reflection do the work for you.
Use reflection to set the values in your object.

Here\'s how to dynamicly add your java classpath to your unix environment...
All things copyright © 2001, 2002 August Mueller

gmdc:
flying meat
contact
resume
photos
images
free font
cocoa bits
java bits
unix bits
osx bits
cvsdist
my words
mcommand
ja
links
my rss feed
book list
who\'s linken\'
login
wishlist
theories

people
andy
byron
jeff
jeremy
joe
kory
lynn
mary
murphy
ryan d

when bored
slashdot
maccentral
y! most viewed
cars
there gus
explodingdog
the onion
dotw
tonypierce
prior art
chimera

resources
Cafe au Lait
Cafe con Leche
design patterns
anitpatterns
java r.o.t.d
c.l.c
c.l.j
c.s.m.p.h
c.s.m.p.c



'''