Archive for July 15, 2009

what I saw and what I thought

Ok… so I was drving in this morning and I saw a kooky bumpersticker like this:

Immediately two things popped into my head:

1) drill here in the middle of the Kimbell Bridge Road in Alpharetta, GA? WTF?!

and

the urge for juvenile humor… man! Feels good to get that out!

Leave a Comment

adding empty constructors

Here is a kooky cli I cooked up to add empty constructors to all the model objects in the project that have explicit constructors but no empty constructors…

vim $( for o in $( for m in $( nocvs |grep /model/ ) ; do c=$( echo ${m} | sed ’s,.*/,,;s,\..*,,’ ) ; grep -c “public ${c}()” ${m} | sed “s,^0$,${m},” ; done | grep src ) ; do c=$( echo ${o} | sed ’s,.*/,,;s,\..*,,’ ) ; grep -l “public ${c}” ${o} ; done )

Madness!

Leave a Comment