A story posted on hacker news about Google logging every single
email you ever wrote is an interesting discussion piece. Of course,
that is assuming that someone of the communication chain is using
Google's services.
At each point, an opportunity of
storing the data is presented. Let's look at the chain. But let me
premise that I am not network engineer, so they will be gaps in my
analysis.
- Joe sent the email on his computer to his brother Peter. A copy is saved on his email client. Typically in his sent folder.
- The mail server received his email to dispatch to the recipient. The mail server could save a copy of the email.
- The receiving mail server accepts the email and stores it until Peter is ready to take it. The mail server here stores it.
- Peter connect to the mail server and download the email. It is stored in the Peter's inbox.
Just with my simple communication chain, each link provides an opportunity to stored the email.
Once
you throw in a smartphone, cloud email clients that are accessible on
multiple computer, the opportunity increases quite quickly.
I took a deep breath and jumped in. You know what, the water is fine.
I finally made the small jump into Android development. Although, I am just hacking about, I am determine to build something useful. Firstly, useful for me as the first customer, and the useful for anyone else.
The stimulus for getting started in the Android development is the release of the SDK from Google that is easy to install and to get started upon. The one thing that really threw me off to get started on development on the Android platform getting the development environment working correctly.
I have always had a low budget x86 PC as my home computer, and this is what I was going to use as my development machine at home. To get the Android development working nicely on this was a nightmare. I recently bit the bullet and got a Mac Mini with a Intel I7 core. Even with this modest setup, it proved to be the silver bullet for me to get started. The nicely packaged SDK also help enormously.
I downloaded the SDK for Mac from Google. The download from Google installed a properly configured Eclipse and SDK in their correct location. I can simply start Eclipse and start following the Android developer's training.
To round up the overall development, I signed up for a Github account. I also had to install Git, but that was pretty painless after following the instructions here. I have resisted installing any Git GUI client as I really like the command line interface.
I was going crazy trying to workout a way to upload data into the my blogger account. Sure, I could just write a post via the post option within blogger, but I want to do this in an automatic manner.
My first was to sent an email via the command line to blogger. The problem is that while it sort of work, I came across the problem that the post is uploaded and marked as a draft version. So I still need to login and publish it. Another problem is that my posts have pictures in them. I am unable to embedded a picture in the email that I am sending via the command line.
The second attempt is to access the Blogger API directly. However, during my research in the Blogger API, I came across googlecl.
googlecl is Google's answer to accessing data to their services. Their services includes Blogger, Picasa, Docs and many more.
googlecl is also able to upload a file. So if that file is a html file, it would be rendered quite nicely by blogger.
The commandline is
google blogger post --src [filename.html] --title "a title" --tags "awesome"
The article has some hints if googlecl docs are too confusing.