iShare :) Baby in 6 hours!!!



Before starting the success story one must always tell others the difficulties he faced. So let me start from that. December 22nd 2008, I got my api key and secret key from SlideShare. I was playing a little bit with them but I did not have any idea what tool to create using them. Then I was browsing the developers page of SlideShare and found few apps for SlideShare. I knew they have an app for Linkedin and a tool for PowerPoint but I never knew they have one for Facebook. Damn!!! I made up my mind to create an app for Orkut then. But what app to make??? These came in my mind “I have used iLike which is to share music and videos, why shouldn’t I create an app to share slideshows.” I named it right away as “iShare” just because the idea was from iLike πŸ™‚ No offence. Then I went through Opensocial documentations I loved it immediately because it’s completely using JavaScript πŸ™‚ Now I have to take an important decision, which programming language should I use? Java, PHP or Rails? Rails I don’t have depth knowledge in it so now PHP or Java? Java I can say I will act like a pro if I have javadoc in my hands but I must accept it is really slow. What about PHP? Even in PHP I don’t have much of experience and knowledge but PHP is damn fast. So I decided to choose PHP for server side scripting and JavaScript for client side scripting.

Then I downloaded SlideShare api for PHP. It is known as SSUtil (I guess SlideShare Utility). I must say the only file I like very much in the api is readme file. In the first glance on readme file I got what are all stuffs my app can do in Orkut. So I made final decision on my app. My app must let user to search for slideshows from SlideShare using tags or user ids and user must also be able to add slideshows also using urls (Example: user finds some slideshow in SlideShare and likes it and also wants to add in his Orkut profile. He need not come and search for his slideshow in Orkut rather he can copy paste the url and add). And it is going to have one more feature which is still underdevelopment due to some issues with OpenSocial api will likely to be implemented before beta release πŸ™‚ And thats a surprise πŸ˜‰ Now I made decisions about everything. I started with setting up my localhost and created the skeleton with the features in 2 hours in my laptop. But this code was dropped later you can find the reason when you read more here. Now it is time for writing code using OpenSocial api to make a container for my app. And got done with it in less than 10 minutes. Damn!!! Even though I have a website (which I used for blogging) I don’t have a hosting service 😦 That’s really sad. Three things made me sadder 1) I don’t have a credit card to buy hosting space 2) I can’t afford so much money right now for hosting space 3) Reason for (2) is I don’t have any money on me and I am bankrupted 😦 Alright it is time to find a free hosting service provider. I searched I searched I searched and found only few good one with no free ad banners in my site. I tried with each one of them but my code was not working and did not show any errors. I was confused a lot. Fortunately one of the service provider has a channel in irc. I went there, posted my question and asked for reason. And I got the answer “allow_url_fopen = off” by all free hosting service providers 😦 Since I need to get data from using its api I needed that feature badly. Then I decided to buy hosting space for minimum period with affordable price. So started searching for service providers again and asked opinion from my friends too. Different opinions but I was not satisfied either by the price or the features. If the price is affordable then features are bad and vice versa. Finally I found Yahoo Small Business with a reasonable price and even GoDaddy. I decided to stick with Yahoo. What is the use of taking this decision? Even then I did not have any money or even now I don’t 😦 I decided to borrow from someone but I was embarrassed to ask. I decided to ask from very close friends. So went to Sidhartha but unfortunately he had no credit card or money on him and his dad was out of station. I was even more embarrassed and finally I asked Kannan and he was ok for paying $26+.

December 24th 2008, Morning Kannan called me up and gave his credit card details and I successfully registered an account in Yahoo for 3 months period. And finished the setups and configurations. Uploaded my code and started running. Unfortunately I got errors once again. I was really confused and did not know what to do. I posted my errors in #php channel in irc and got response saying “it might be because of PHP 4”. I was really shocked to hear this. I coded completely in PHP 5 and the error was not from my code unfortunately from SSUtil.php. Only good thing I made was registering with Yahoo with 30 days money back guarantee on dissatisfaction. I wondered how come a big organization like Yahoo still has PHP 4 and with no option to migrate to PHP 5. All other service providers have the feature of migrating from PHP 4 to PHP 5 and vice versa but WHY YAHOO DON’T HAVE???? I immediately mailed Yahoo customer care to cancel my account and asked for cash back. I was helpless once again. I didn’t wanna go and ask anyone for money again 😦 And I don’t have money to pay Kannan back 😦 Atleast I got 3 months time to pay him back but right now I don’t have money to buy hosting space. I almost dropped my idea of creating app. I went to GoDaddy where I registered my domain name to edit the configuration back to point my tumblr blog. And suddenly I saw something when I logged into my account saying “Free hosting space.” I thought not again but it said it comes with my domain name because of the promo coupon code I used when I bought this domain name. I didn’t want to waste this and wanted to give it a try. Successfully I finished configuring and saw the php.ini file and found “allow_url_fopen = on”. I must say thats one of my best moments in my life. I was so happy. I uploaded my files and started running. Everything was fine except for the free ads banners 😦 Except that everything was fine. It infact worked well inside Orkut also. But that free ads banners were so annoying. I can’t say people whoever uses my app that the ads are because of free hosting service. So I decided to drop this code and restart from the scratch once again. But anyways I need hosting and I don’t wanna lose this free space I got but I didn’t want ad banners in my app. Since this code was completely written using PHP and only few lines of JavaScript I decided to use complete AJAX and restart once again from the scratch. It was already 4 AM 25th December 2008. Christmas eve. I needed some sleep since I have been working a lot with less sleep. I went to bed saying “Merry Christmas” to myself.

I got up at 1 PM 25th December 2008. Really bad and such a waste of time I spent in my bed. I finished my daily routines and other works started coding right from the scratch once again. But this time completely using AJAX stuffs and much more usage of OpenSocial api. I handled the most possible way to avoid ad banners since I have all my PHP files hosted from GoDaddy so every response from the server comes with the ad banners attached. So I added ‘<message>’ to the both ends of responses. So I can easily get my responses using JavaScript like this response.split(‘<message>’)[1] Wow and my ad banners are gone now πŸ™‚ So finally found a way to avoid ad banners from free hosting services. I started speeding up my work and completed the coding part. Here I faced a big problem Orkut gets everything via proxy, say JS file, CSS file, images, videos, audios, etc etc and slideshows do come under this list. When everything else was loading well, slideshows alone were not loaded. And I found the reason was proxy and the transaction was not intialized by server. So I posted a question to SlideShare developers list asking is there any fix this but yet no reply from them 😦 So I had to find another way. And I found it. If the url is posted without this “; the embedded slideshow is playing properly. So I decided to change it dynamically and it works well πŸ™‚ So now the app is ready for testing. Infact I even decided to release the beta version and I was going through the Orkut developer guidelines and it reminded me I was not done with one more feature. Yeah I totally forgot about the “Updates” feature in Orkut (whenever you do something with your apps it can be posted to your friends as your updates, it will just increase the apps’ reputation exponentially and makes it popular). So I started working on it. But fortunately it kept failing again and again. And after few struggles I found I was posting the title part alone and I forgot about body. Even after body it kept failing because I had the slideshows image in it. So decided to drop the image and tried, Voila!!! it started working πŸ™‚ Now everything works fine and the app is ready for beta release πŸ™‚ But still I have one more feature which I would love to do often if it is added and I am on it now πŸ™‚

26th December 2008, Now I am giving out small demo to my friends in the web to test the stability and look out for bugs. Every now and then GoDaddy server goes down I have mailed them regarding this. So the baby is ready now to walk in the web world πŸ™‚ I must say this whole coding part took six hours for me to complete. But there is no artistic magical designing works in my app. It is simple and easy to use. Even a novice can come and use this without any trouble and that is all I want. Lets see whether this app makes any magic πŸ™‚


2 responses to “iShare :) Baby in 6 hours!!!

  1. If you ever want to read a reader’s feedback πŸ™‚ , I rate this article for four from five. Detailed info, but I just have to go to that damn msn to find the missed pieces. Thanks, anyway!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s