April 19th, 2007

pinkie pie

Phone providers always break photo email.

How I sent photos to Flickr on my Fido phone:

  1. Take photo
  2. Send to Flickr photo-posting address from phone

How I send photos to Flickr on my new Virgin Mobile phone:

  1. Take photo
  2. Send to an email address of mine which feeds into a program, which
  3. Extracts the HTML part from that message
  4. Pulls the message text and a URL out of that HTML part
  5. Retrieves that URL, which links to a thumbnail of the image
  6. Pulls a second URL out of Javascript source on that page
  7. Retrieves the second URL, which links to the full-sized image’s page
  8. Pulls the image URL out of the full-sized image’s page
  9. Requests the image, but with curl(1) instead of libwww-perl, since libwww-perl mysteriously produces 500 Internal Server Errors on that page only, even though the previous two pages loaded fine
  10. Bundles up a new MIME message with the text from (2) and the image
  11. Sends that to the Flickr photo-posting address

Real elegant. Oh, well, at least it works. I knew going in that Virgin Mobile makes data-related things a bit difficult, but that just kept getting sillier and sillier.

Originally posted at rich text.
pinkie pie

Ikea box charging station

I now have a charging station for portable things!

Ikea charging box

This Ikea storage box has a recessed lid with a hole in it, making it a great charging station. I got the idea from this Instructables post, but didn’t bother with the switch, and used an extension cord instead of a power bar because space is at a premium and those adapters don’t need three-prong plugs. It also has the benefit of needing a smaller exit hole for its plug.

The plastic cuts easily with a utility knife to make the hole through which the power cable exits.

Still to do: Outlet multipliers to charge more things, labels on the cables, LED nightlight so the box glows when it’s plugged in, a USB power adapter so I can charge things that have proprietary USB cables.

Originally posted at rich text.