Recently in Cool Category

I have an iPhone. I'm finding myself very prone to snapping photos now, whereas before I was completely unlikely to tote a camera. I also discovered that Movable Type works just fine on the iPhone, I even posted an entry on my personal blog from it while we were at the ice cream place.

But you know what? I want to put up a photo I just blogged. But transferring a photo via anything but email is a pain. Enter perl. I whipped up a perl script to receive iphone photo email, piped via procmail, and save the photo attachment to a path, then email back the phone address with the filename it used. Just make sure you set the path in the script to somewhere down from your DocumentRoot, and then you can immediately reference the photo with an img tag.

Now I can photoblog directly from the phone, which is pretty fun.

Requires
sendmail (for the outbound msg, but I bet you could adapt any other mail program)
perl
MIME::Parser
procmail

Here's the relevent part of my procmail entry (note that photoblog is an alias that goes to my user account via /etc/aliases):

:0H
* ^TO.*photoblog@ender.com
|/home/matt/iphotoparse.pl

And the code, which you can get here: iphotoparse.pl

Happy photoblogging from the phone.

Welcome to Text-Only Counterstrike

You are in a dark, outdoor map.
> GO NORTH
You have been pwned by a grue.

Gotta love 'em

| | Comments (0) | TrackBacks (0)

Cool nerds.

Jeff Bezos

Such an alpha nerd. He's rumored to be a crazed idea guy who can brainstorm up innovation the way most people decide what to have for lunch. The Taco Bell commercials, the bizarre business branches of Amazon, they all just add to the mystique. I just wish he'd fight harder for patent reform.

Mark Cuban

You just have to love Mark Cuban. Fired for closing a sale, relentless entrepreneuer, funds the EFF, looking for disruptive tech all the time... he's awesome. And his irreverent personality is the clincher. More fines than anyone in NBA history? Check. Anything he can't do? I'll leave that box blank.

Richard Branson

You just gotta love it. Self made mania, with little tentacles in so many diverse industries, you have to wonder if his prowess just comes from a deal with the devil. Music, transportation, cell phones, health clubs... this guy is awesome.

Janus Friis, Niklas Zennstrom

First, you make Kazaa. Then, because you can't buy the particular small country you wanted, you make Skype. After pocketing 2.4B from that, you're still thinking: what next? So you start making a P2P TV app. THYS? Bad. Ass. They're like a more commercialized version of Justin Frankel, on crack.

September 2010

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Creative Commons License
This weblog is licensed under a Creative Commons License.