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.
rm -rf $TMPDIR
mkdir -p $TMPDIR
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
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.
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?
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?”
Also, I still want to go to Texas tonight. We should leave by 6 at the latest. Comon, let’s go.
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.
Does anyone know what this thing on my foot is?
In keeping up with The Joneses I went ahead and implemented a photo blog type thingy on my site. You should be seeing a picture to the left and below my menu which is the latest picture I have uploaded with my camera phone and if you click it you should be able to see all the pictures I’ve uploaded with my camera phone. It’s an old idea, but it’s still pretty cool and I like it.
For the curious:
It’s an 11 line shell script that gets triggered from procmail. It grabs a Sprint URL from a standard Picture Mail message, uses wget to get the page and associated images, makes wild assumptions about what the image should be named, copies it to my Photo Blog gallery and my current webcam image which you see on the left.
If I want to take a picture and have it appear on my site all I do is snap the pic and send it to a certain email address on my server. It’s three clicks.
Behold! The Internet!
I totally felt my spine this morning. That’s so awesome.
I decided to cut the week of starvation short. I was in rough shape this morning. Going to try to bring myself back to life today and then just stick to the normal diet for the rest of the time. I think I accomplished what I wanted to do though, which was to break through 214 where I had been stuck. As long as I eat carefully over the next few days I should be able to keep that off and finally reach my goal.
Believe me, I’m ready to be done dieting.
“This is the first human-poultry interaction system ever developed,” said professor Adrian David Cheok, the leader of the team, who has been developing the technology for nearly two years.
Get all the steamy details at Wired