Archive for July, 2009

jar xf to the rescue

Sometimes I have to open some honking 4gb+ zip of vm junk and zip acts like a freaktard…

B U S T E D ! ! !

% unzip some_fat.zip
Archive:  /home/brian/some_fat.zip
warning [/home/brian/some_fat.zip]:  787777765 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [/home/brian/some_fat.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
   appropriate BINARY mode and that you have compiled UnZip properly)

Solution:

% jar xf some_fat.zip
# go have a coffee...

Leave a Comment

quality is job 1

Ever notice the world seems to work like this?

job[ 1 ] = quality;
for( i = 0 ; i < job.length ; i-- ) job[ i ]();

Leave a Comment

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

facebook ball busters

I’ve been playing with the facebook API, but figured I’d test the waters by putting my Ball Busters game up for now.

Maybe I’ll add some high score stuff at some point.

The JS API looks pretty neato… from what I’ve seen so far, most games use the APIs to let you easily spam your friends with game invites…

LOL, I guess the social networking killer app turns out to be word of mouth advertising… hilarious.

Leave a Comment

Older Posts »