Search Here

Sunday, November 30, 2014

Blog development environment setup - A hello world post

Seriously, Yes. As a developer, I have been trained to,

1. Set up environment

2. Learn new things with "hello world"

I naturally followed the same above steps for this blog. I thought, I need a good desktop environment for blog development, so I spent close to 3 hours to find the right environment. My conclusion is,

Nothing !! No environment required.

I started with "Blogilo", KDE Desktop based blog client for Linux. It allows me to configure various blogger host services like blogger.com, wordpress.com etc..  allows to create content offline and upload it.

I thought, Its my IDE for blogs and literally started this blog in it with screen shots. When I submitted the blog, it was submitting ....  submitting... submitting ... I finished coffee and my mind strated working again. Hey! Why are you taking so long time?

I closed the Blogilo app its crashed and the post was not submitted to blogger.com. WTF?

I tried to debug, Found that, when you insert an image (in my case, screenshots), Blogilo app inserts following html code,

<html><head></head><body><img src="file:///tmp/And2.png"></body></html>


Looks normal, But when you look st the image source, it is pointing to local machine. So the Blogilo need to upload the image first and the upload my post But blogger.com API or Blogspot.com API doesn't support uploading media.



This explains the crash problem with Blogilo.  

I found a trick to overcome this problem. Open the Libreoffice Writter (equivalent to  MS Office Word) and copy paste the image / insert the image then copy the image (Ctrl+C) and paste in Blogilo in this case Blogilo adds the image with base64 encoded binary data, Not as a link to local machine.

But base64 bloats up the size and its a very cumbersome way of doing anything.

Ok, Its open source world, If not Blogilo, there should be something else.

Unfortunately, under linux, I did not find another good blog editing desktop client. I found one called ScribeFire, which is a firefox extension and runs under firefox. I installed it,

But, If I can open the firefox, I can browse to www.blogger.com and use its awesome online WYSWYG editor. Hey , its an experiment, dont put more thoughts..

ScribeFire also suffers the same problem of Blogilo. But
ScribeFire is little intelligent, when I try to insert an image, It tried to upload the image to Google Picasa and tried to insert a link than img src from local machine but this operation fails.
 

Hmm... What could be wrong, Why Blogilo is behaving this way. Why dont I find a good open source desktop blogger tool?

After some more readings and understanding, I found that the limitation comes from the blog hosting services. Unless they export the APIs, its impossible to develop the clients.

Looks like Wordpress supports most of the APIs so Blogilo would be more suitable to Wordpress.

I thought a moment to migrate the blog to Wordpress but decided to keep my blog in blogger because of the admin simplicity and its powerful web statistics.

Conclusion is that I am going to use blogger.com's web interface to add the blog posts and officially I have learned "Hello World" in www.blogger.com.


                                          "Hello World"
                                          "Hello Blogger"



How does its started????

Welcome 

You are one of my early reader. Thank you.

No. I am not gonna tell my love story again !!!. This blog is dedicated for the technology (at least its description says).

As the good old saying "A LOT can happen over a cup of coffee", we were having a half sleeping morning cup of coffee in office (I strongly believe coffee is waking up most of the software engineers mind in the morning without a hot cup of coffee in the morning, we would be continue to sleep... Hey come back to story man... Opps yes , Sorry first post, Read on ...)

I was with @Prabhu Desai and @Pavanesh Netrakar at the NXP coffee table in the morning. I don't think these guys needs a coffee to kick start their day (Ya, exception from above statement), These guys are always charged yet drinks Coffee just to be a social animals.

I was talking about my experiments with Android x86 in Linux KVM (I even posted a screen shot in Facebook.  Yes, Facebook !!! and even Pavanesh liked it !!). Though, they never mentioned, I think Pavanesh and Prabhu thought I need a better place to talk about technology not in Facebook.

They asked a important question, "Hey bakki, Have you updated this information about Android and KVM expriments in you blog?" but I never had a blog, Pavanesh said, "I am surprised !!, you should blog".

I took it seriously !! After a multiple lazy week ends. This blog born.

I thought to keep an update of my experiments and my thoughts in various software fields here. Mainly, if you wanna know more about Software Build and Test automation, Linux, Android, Perl, some times my crazy ideas, You wouldn't be disappointed.

@Prabhu Desai and @Pavanesh Netrakar - Thanks Guys.