Better!
May 31, 2005 12:00 am [1 Comment]
I discovered that my little photoblog script was grabbing a fairly low quality thumbnail of the actual image that I sent so I fixed up the script to grab the “Original” quality image. It’s still terrible, but at least it’s as good as it can be. The script is a bit more complicated now since Sprint makes me jump through several hundred thousand hoops to get at the pictures, along with the fact that the servlet (I assume) that actually serves up the pictures is braindead but it (the script, remember?) seems to work just fine.
For the heck of it, here’s the script that gets called from procmail to find, download and archive the images.
I know I am a terrible Bash scripter and you could have done it in one line of Perl for $250,000 less and in 14 seconds but you didn’t.
#!/bin/bash
TMPDIR=/home/jason/tmp/picmail
DESTDIR=/usr/local/orion/applications/vonnieda/web/images/dc/PhotoBlog
DESTEXTRAFILE=/usr/local/orion/applications/vonnieda/web/images/webcam.jpg
rm -rf $TMPDIR
mkdir -p $TMPDIR
URL=`grep “^http.*MMS$”`
IMAGEURL=`wget -P $TMPDIR -O – $URL | grep “\/mi\/” | sed -e “s/.*\(http.*\.jpeg\).*/\1/”`
wget -P $TMPDIR — $URL $IMAGEURL
IMAGEFILE=`ls $TMPDIR/*.jpeg* | head -1`
cp -f $IMAGEFILE $DESTDIR/`date +%s`.jpg
cp -f $IMAGEFILE $DESTEXTRAFILE
Poor Impulse Control
May 30, 2005 12:00 am [9 Comments]
Well, since no one would go to Texas with me and I was bored on Saturday morning I went and bought a 2004 Mazda RX-8 with all the trimmings. It’s so hot that the word hot is really just an introduction to getting started with describing it.
I’m tired as hell so I’ll write more about it later. Suffice to say I’ve gone through 2 tanks of gas and about 450 miles since 3pm Saturday afternoon.
For the time being there are some pics here and more to come.
Oh man, I love it.
Hear My Plea!
May 27, 2005 12:00 am [1 Comment]
Start: Merriam, Kansas, United States
End: Galveston, Texas, United States
Total Distance: 832.0 Miles
Estimated Total Time: 12 hours, 30 minutes
Will no one go to the beach with me?
Ha, ha!
May 27, 2005 12:00 am [No Comments]
One DJ says to the other, “Do you want to go to a movie tonight?” and the other one says, “I don’t know, who’s the projectionist?”
Ha!
Also, I still want to go to Texas tonight. We should leave by 6 at the latest. Comon, let’s go.
Roadtrip!
May 27, 2005 12:00 am [No Comments]
I need sun and salt water. Bryan says I can get them both in Texas 12 hours from here. I don’t have to be back to work till Tuesday. Who’s in? Seriously.