iPhone + Gmail IMAP = Awesome

iphonegmail.jpg

If you read my blog, then you know that I love my iPhone, and I love Gmail. However, out of the box, paired together, I just didn’t like how they worked.

My problems come from the fact that Gmail has been using the POP (Post Office Protocol) for accessing email outside of their Web client. POP is lame if you check the same email account on multiple devices. The Emails are downloaded onto the device that checked the mail. Copies of sent and received emails end up in your inbox and read emails aren’t synced to the server, so if left unchecked the number of unread emails in the Gmail boxes on your iPhone grows rapidly. It got very confusing when responding to emails on the go also.

Recently Gmail opened up IMAP (Internet Message Access Protocol) to their users. IMAP keeps your devices, computers, and Gmail all in sync! If you send an email from your iPhone, it will be in the sent box of all your other devices, read something, its marked as read in all the other devices. It’s the ultimate in email protocols. Trust me, once you’ve gone IMAP, there’s no going back!

To get your iPhone hooked up with Gmail, Google has released some instructions (http://mail.google.com/support/bin/answer.py?hl=en&answer=77702), and a youtube video

[youtube uQ22euWXYog]

Trying to photoBlog from my iPhone

mobilepushr-icon.png

I like my iPhone, and I like Flickr, I also like to blog and photoBlog.

The iPhone has a really good camera and a constant internet connection and real web browser. It sounds like the ultimate photo Blogging tool, right?

Problems

  1. There is not file access to iPhones pictures through the web browser, so forget uploading pictures directly to Flickr
  2. It’s possible to email pictures to Flickr, but AT&T has a hidden back door charge of $0.50 for ever picture emailed via the iPhone, so uploading 20 pictures would cost me $10 extra! forget that!

I modified my iPhone a while back, and there are two applications currently that get around both of these problems, iFlickr and Pushr

iFlickr sucks because you have to take the picture using their application, and you cant upload any existing pictures on your IPhone.

Pushr is closer to what I want. You take pictures with the default camera application, then fire up Pushr. Pushr will push ALL the pictures you have on your phone to Flickr. This sounds good in theory, but what if you don’t want to push all your pictures to Flickr? You have the option to de-select the pictures you don’t want to send. So if you have 100 pictures, and you only want to upload one, you will have to de-select the 99 you don’t want to send. The whole de-select process seems counter intuitive. I think you should be able to select the pictures you want to send and just push those.

Because of the current limitations of both iPhone Flickr related apps, I am with out a good way to send my pics to Flickr.

I decided to send an email to Chris Lee the creator of Pushr and ask for a change in the software…

Josh Highland to Chris Lee:
Is there a way to make Pushr work in such a way that a user selects what pictures they want to send to flickr, rather then picking the photos they dont want to send?

example : I have 100 photos on my iphone, and i only want to send one of them to flickr. I would liek to select that one photo to send, instead of removing the 99 photos to not send

Chris Lee to Josh Highland
Hi Josh,
Currently, there is no way to do that. However, it’s a feature request
I’ve gotten, so I may add a preference for it in a future version.
Thanks for using Pushr!

So at least a change like that is on the radar of the developer of Pushr. I hope it gets implemented soon. Until then I’m stuck having to wait until I get to a computer to upload all my cool pics to my photo blog.

If you know of a good solution to my iPhone + Flickr problem, please let me know!

Amazon S3 + PHP = Awesome image hosting solution

Recently I have been looking for a solution to allow users of notpopular.com to have photo albums of unlimited size. Its a popular trend in social networks, and its way cooler then the 5 tiny images that are allowed on notPopular.com (1.0)

There are many technical problems that associated with having this kind of open system. One of the biggest problems is storage (disk space), and load on the web server. Each image takes up space on the hard drives, and requires attention from the web server when an image is requested, taking attention and CPU from other more important processes.

After looking at several options, I came across Amazon S3 (Simple Storage Service). Amazon S3 is an online storage web service offered by Amazon Web Services. It provides unlimited storage through a simple web services interface. Data can be easily stored and retrieved at any time, from anywhere on the web. Amazon charges in proportion to the amount of data stored and applies charges for sending and receiving data. A perfect solution for what I’m looking to do!

S3 would store the data, and would handle the load of the requests coming from users, allowing my web server to focus on more important tasks like PHP processing and MySQL queries.

Here is the price break down for amazon S3 usage:

  • Storage
    • $0.15 per GB-Month of storage used
  • Data Transfer
    • $0.10 per GB – all data transfer in
    • $0.18 per GB – first 10 TB / month data transfer out
    • $0.16 per GB – next 40 TB / month data transfer out
    • $0.13 per GB – data transfer out / month over 50 TB
    • $0.01 per 1,000 PUT or LIST requests
    • $0.01 per 10,000 GET and all other requests

Using the calculator tool they have, and looking at the notpop data and projected traffic, my monthly costs would be around $20 a month, and even if things doubled in time, it would still only be $40 a month. Very reasonable for the speed and reliability that a company like Amazon offers.

I found some great php classes to work with S3, particilarly one from Geoffrey P. Gaudreault over at neurofuzzy.net

I am also planing on using some CNAME records on the notPop server to mask the amazon URL. Should be easy to do.

Last night I started to sew Amazon S3 into the pending notPop 2.0 code base. I will make some follow up posts about how it goes once I really start using it.

Mentors last words: The hacker manifesto

isa_modem.jpg

Lurking around online this morning I ran across the hackers manifest, written by Mentor. I haven’t read this in a solid 10 years. Going over it again brought back found memories of 1993 and my x468 66mhz (my phone is faster then that now!), with a 14.4 kbps modem.

If you have never read Mentors famous last words, hackers manifesto, here it is for you.

Another one got caught today, it’s all over the papers. “Teenager
Arrested in Computer Crime Scandal”, “Hacker Arrested after Bank Tampering”…
Damn kids. They’re all alike.

But did you, in your three-piece psychology and 1950’s technobrain,
ever take a look behind the eyes of the hacker? Did you ever wonder what
made him tick, what forces shaped him, what may have molded him?
I am a hacker, enter my world…
Mine is a world that begins with school… I’m smarter than most of
the other kids, this crap they teach us bores me…
Damn underachiever. They’re all alike.

I’m in junior high or high school. I’ve listened to teachers explain
for the fifteenth time how to reduce a fraction. I understand it. “No, Ms.
Smith, I didn’t show my work. I did it in my head…”
Damn kid. Probably copied it. They’re all alike.

I made a discovery today. I found a computer. Wait a second, this is
cool. It does what I want it to. If it makes a mistake, it’s because I
screwed it up. Not because it doesn’t like me…
Or feels threatened by me…
Or thinks I’m a smart ass…
Or doesn’t like teaching and shouldn’t be here…
Damn kid. All he does is play games. They’re all alike.

And then it happened… a door opened to a world… rushing through
the phone line like heroin through an addict’s veins, an electronic pulse is
sent out, a refuge from the day-to-day incompetencies is sought… a board is
found.
“This is it… this is where I belong…”
I know everyone here… even if I’ve never met them, never talked to
them, may never hear from them again… I know you all…
Damn kid. Tying up the phone line again. They’re all alike…

You bet your ass we’re all alike… we’ve been spoon-fed baby food at
school when we hungered for steak… the bits of meat that you did let slip
through were pre-chewed and tasteless. We’ve been dominated by sadists, or
ignored by the apathetic. The few that had something to teach found us will-
ing pupils, but those few are like drops of water in the desert.

This is our world now… the world of the electron and the switch, the
beauty of the baud. We make use of a service already existing without paying
for what could be dirt-cheap if it wasn’t run by profiteering gluttons, and
you call us criminals. We explore… and you call us criminals. We seek
after knowledge… and you call us criminals. We exist without skin color,
without nationality, without religious bias… and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us
and try to make us believe it’s for our own good, yet we’re the criminals.

Yes, I am a criminal. My crime is that of curiosity. My crime is
that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me
for.

I am a hacker, and this is my manifesto. You may stop this individual,
but you can’t stop us all… after all, we’re all alike.

ah to be young and think you knew it all.