Spread and use Firefox
Advertise on this blog!
-->

Subscribe to my posts via Email


Delivered by FeedBurner

I'm an Indian
Darn proud of being an Indian!

Links...

Categories

Archives

Friends



Subscribe





External Links



You might want to check out...

Online Casinos - A guide to the best online casinos, gambling sites and casino bonuses

Sep 21

How to stip tags, script and style off the HTML


(Posted at 5:07 am)

Havn’t you just wished sometimes that all the html, script and style tags would just vanish from the html pages and all you get is pure text (for fun and profit). Well, here’s how I am managing it :)

require "open-uri"
require "hpricot"
require "sanitize"

html = open("http://www.google.com")
hp = Hpricot(html.read)
hp.search("script").remove
hp.search("style").remove
sanitize(hp.innerHTML, okTags="")

And output?

“GoogleWeb Images News Orkut Groups Gmail more ▼ Books Scholar Blogs YouTube Calendar Photos Documents Reader even more » iGoogle | Sign inIndia   Advanced Search  Preferences  Language ToolsSearch: the web pages from India Google.co.in offered in: Hindi Bengali Telugu Marathi Tamil Gujarati Kannada Malayalam Punjabi Advertising Programs - About Google - Go to Google.com©2008 - Privacy”

Now you can use this text to any imaginable use - as I mentioned earlier - maybe fun & profit :)

Libraries - hpricot, sanitize, open-uri

Have fun!

Sep 17

Earthquake in Pune


(Posted at 2:52 am)

This is probably the first time in my life when I was fuly aware of the quake - and am close enough to a laptop to blog about it. As per timeanddate.com, its 3:20 AM on 17th Sept 08 morning. Lets see, what do the newspapers report tomorrow :)

Sep 10

Hello World - all over again!


(Posted at 1:18 am)

Hello World FF Extensions
Saying hello to FF extensions :)

Aug 26

PuneTech.com interviews ApnaBill.com


(Posted at 11:15 am)

PuneTech.com just posted an online interview about ApnaBill.com on how it started, challenges it faced and some tips for budding entrepreneurs. Don’t miss it!

[A snip from the interview]

There was this funny thing that set us back by almost 1 month…

We applied for a PAN card for Four Fractions. First, our application somehow got lost in the process. Then someone in the government department managed to put down our address as 108 when it was supposed to be 10 B (8 and B are very similar looking). Read more…

[/A snip from the interview]

PuneTech.com is an initiative from Navin Kabra - with an intent to bring together in one place all information about interesting software technology in Pune - the companies, the products, the people, and the technologies.

Aug 22

Next stop…


(Posted at 11:26 am)

New Delhi!

New Delhi

(Hopefully) I’ll be reaching Delhi before Midnight Saturday (23rd Aug 08). Very excited and anxious at the same time as I’m traveling via Train :(

Bon voyage Maku!

Aug 22

Introducing ApnaBill.com - Recharge your prepaid mobile online!


(Posted at 1:09 am)

ApnaBill.com - Utility Bill Payments, Simplified!

Aug 22

How to Recharge Prepaid Mobile online?


(Posted at 12:46 am)

Ever wondered that if you have a Prepaid mobile connection for Spice, Airtel, Idea, Vodafone, BSNL, MTNL, Reliance or other prepaid services like Dish TV or TATA Sky - how can you recharge it online?

The solution is simple!

Using ApnaBill.com, now you can recharge your prepaid mobile in just seconds. The process is very simple.

How to recharge?
1) Visit www.ApnaBill.com
2) Select a coupon
3) Click pay
4) Pay via netbanking or credit cards
5) PIN code is delivered via SMS

Some benefits of using ApnaBill.com
- 100% safe transactions
- No transaction surcharge - 100 bucks coupon for just 100 bucks!
- Great discounts!
- Netbanking for almost all banks - UTI, ICICI, HDFC, etc.
- Excellent and responsive customer support

Now can anyone beat that?

Aug 19

Wishing Samu a very Happy Birthday :)


(Posted at 12:13 pm)


Today, the biggest doggie in this picture turned 24!
Wishing him a very very Happy Birthday :)

Aug 15

Back to the top!


(Posted at 10:44 pm)

Google has some awesome tools for Web Masters. I’d recommend them to anyone looking for better Google visibility.

Aug 14

Dare to Dream?


(Posted at 3:44 am)

 

Dream what you want to Dream,

Go where you want to Go,

Be what you want to Be,

Because you have only one life and Only one chance to do what you want to do!

Found on a profile on Orkut.

Aug 11

Come Sunday - and we iRock!


(Posted at 10:28 pm)

The week has just started and wait for the weekend has already begun! Here’s why…

iRock

The finals for IRock are scheduled here in Pune and you bet we arn’t going to miss them!
Dodge this - I have just booked 13 (yes thirteen) tickets for this Sunday!
Its also my much awaited birthday party (well sorta :P)

So come Sunday - and we iRock! :)

Aug 3

Getting back to the drawing board…


(Posted at 9:31 pm)


Drawing boards are so much more fun than paper’n pencil :)

Aug 1

Head on with OpenSocial - Orkut Apps!


(Posted at 4:51 am)

Pushing ApnaBill.com into a Zarro Boogs state suddenly gave me the much needed time to start tinkering with other things in the roadmap. Hence the next obvious destination for me was OpenSocial - about which I’ve been hearing for quite some time now, almost everyone I know is writing some sort of social apps (FaceBook or Orkut)… moreover, these apps can bring a whole new sense of visibility to ApnaBill.com.

Thanks to Rohan, I started off with an inclination towards Orkut apps.

I must say, Google has done nice job of documenting the OpenSocial API’s. The starting point was ofcourse Orkut developer docs

Ofcourse, to use any of these - you need the Developer Sandbox access to Orkut

The docs and the presented examples seem all good - but if you are a first time OpenSocial developer, the disconnect would be very obvious to you - specially how the OpenSocial API’s and Gadget API’s and JS API’s are all connected.

What I understood from all the reading was that OpenSocial is a set of API’s which all conforming web services expose. Each of these web service (Orkut/Hi5/etc) is a Container and each container exposes some proprietary API’s as well. So if you are developing an app which is to be deployed across multiple websites, make sure you do not use any proprietary code.

And what was the best way of understanding the codebase? Read the Examples! All of them! The more you read them, the more you would be able to the connect between all ingredients of OpenSocial API’s.
OpenSocial apps are primarily HTML and JavaScript - styled using CSS. The HTML forms the display of your app while the JS (bulk of your app) helps you fetch and render the data to & fro from your web service (Orkut/Hi5/etc).

There’s something interesting to note here…
Orkut’s sandbox environment requires your app to be stored on a publicly accessible location. That mean, if you have a website where you can host your JS/XML/CSS - you are good to go instantly. If not, try the Google Gadget Editor and save your files on google’s server.

I was lucky when it came to app hosting. Tata Indicom in Pune, gives static public IP’s for postpaid broadband connections. That means if I run apache on my server and dump my app files on /var/www/orkut folder (Ubuntu) then I can edit the files on my local machine while Orkut sandbox environment can fetch them straight from my machine - awesome! Now I get to use my favorite editor… yay!

OpenSocialApp - 1
App’s main view - Canvas

OpenSocialApp - 2
Profile view of the app

As you can see, my app does nothing intelligent - just lists my friends and their details. But what’s interesting is, I can detect at runtime that which view is being rendered - is it app’s main view or is the app being shown in my profile.

Think of this in more productive sense. If I am building an app for ApnaBill.com (lets say), I can display summary or something on the profile view and a more detailed analysis of the same thing in the app view - isn’t that interesting :)

What’s next? - Giving purpose to my app! :D

My example codebase - app.xml, canvas_view.js, profile_view.js
Please replace REPLACE_ME_1 with path to canvas_view.js and REPLACE_ME_2 with path to profile_view.js
Note - I am learning JS as I am proceeding with OpenSocial apps. Please use the above code at your own risk.

[update]
I am a big fan on “Emote” application on Orkut - so decided to examine how it works… loaded up Emote and inspected the “net” tab in Firebug and found this - http://www.rockyou.com/google_apps/emote_example/view/Emote_XML.php -if you can see, Emote is using completely different set of HTML for canvas and profile views. It also has included “dynamic-height” feature to hide the nasty scrollbars - interesting! You might also be interested in checking out the localization technique and the app headers - lots interesting information is there on how they should be used.

Jul 31

Zarro boogs found!


(Posted at 11:22 pm)

0 Bugs

This is the sweetest possible message Bugzilla can ever show a developer :D
Tonight, I’ll be syncing live ApnaBill.com with the most stable version we ever had - the operations are still getting formalized but the code-base looks awesome!

If you come across any bug @ ApnaBill.com, feel free to ping us at our support channel - who knows, you might just save the day for thousands of users :)

Jul 30

More pictures from Proto.in


(Posted at 1:34 am)


Sameer leading ApnaBill.com pitch at Proto.in


Check him out - isn’t he just too much into the presentation? :D


Taking questions from the audience…


Finally the team together on stage - its so tough to get all 3 in one frame!!!
Sameer, me and Sandy

BTW - the ApnaBill.com Tee’s are ultra hot! I already have the next versions planned… :)

Source: Proto.in July Edition photo set on Flickr



Some External Links
Casino - Play online casino games from home.