Headline
[25 Jun 2009 | 6 Comments | ]
How to find Out User’s Geolocation with Javascript on Firefox, Chrome, Safari and IE

Few days back i shifted to Windows 7 from my old installation of windows XP, after that i was reinstalling all the application.So, i thought lets take firefox 3.5 for a spin, people are saying nice things about it and it has got new features like Private Browsing Mode, new TraceMonkey JavaScript engine, Support for native JSON, HTML5 <video> and <audio> elements, downloadable fonts,HTML5 offline data storage for applications and web worker threads. But main feature that i wanted to try was Location Aware Browsing.Although i knew about this feature …

Read the full story »
Browse Categories

/dev/brain »

[28 Nov 2009 | Comments Off | ]

There are a lot of great programming quotes out there. Which one do you like? Here are few that i love :

Code »

[27 Nov 2009 | One Comment | ]

The iPhone has limited memory,and as developer its our responsibility to manage memory optimally. On one hand caching improved performance while on other hand it uses ‘expensive’ memory, and we must optimally balance between both sides.

Once you received memory warning you can release unwanted objects to free up the memory, but knowing how much memory is available OR free on iPhone will help you make calculated decisions before low memory warning is even triggered. OR simply you can ask user to restart the iPhone and then launch the application.This Tip will help you calculate Available Memory for your application.

Code, Hacker's Approach »

[4 Nov 2009 | One Comment | ]

While working on an iPhone project i wanted a way to dynamically initialize classes, and then i found one simple way. Sharing it here since it may help someone someday.

Code, Hacker's Approach »

[25 Mar 2009 | 2 Comments | ]
Chrome Extension to Fix Orkut Width Problem

Google has introduced a basic extensions feature in its popular Chrome browser, although its still availble in developer release.So, i thought i should try to write my popular Orkut 99% width greasemonkey script for chrome because normally i use chrome. I am in love with the speed and responsiveness of chrome,only thing that make me open firefox is use of firebug,web developer toolbox or yslow.I miss my extensions for firefox, but speed matters most for me.
Anyways, here i will show you how to enable extensions for google chrome,and to install …

/dev/brain »

[13 Feb 2009 | Comments Off | ]
Say no to Side Middle Birth

Today Railway Minister Lalu Prasad Yadav presented the interim Railway Budget for 2009-10 in Parliament, fares will be reduced,new trains are launched and everything but what i seriously complain about railway is not fares but Side Middle berth.
I know that number of people travelling by trains in india is far greater than the resources railway ministry has,and they are doing something about it.But Side Middle brith is not a good option,i get it.. its way to increase the capacity of a carriage but not a good option,certainly not for passenger travelling on these berths.
But whats …

/dev/brain »

[10 Feb 2009 | One Comment | ]
Amazon Kindle 2

Amazon has launched new Amazon kindle 2,the next generation wireless reading device. With a sleek and thin design that makes Kindle 2 as thin as a typical magazine and lighter than a paperpack, the new Kindle has seven times more storage and now holds over 1,500 books. It has a longer battery life and faster page turns. An advanced display provides even crisper images and clearer text for an improved book-like reading experience. And Kindle 2 even reads to you, with “Read to Me”, amazon’s new Text to Speech feature.
New Features …

/dev/brain »

[24 Jan 2009 | One Comment | ]
Visualizing Twitter as Obama became president

On Jan 20 2009, Barack Hussein Obama officially became 44th president of USA with a beautiffuly written inaugural speech. But whats interesting is how the twitter was buzzing with related news tweets worldwide.Guys at flowingdata.com have visualized how excited was twittersphere starting from early Moring morning, with huge activity on tuesday. You can check out the visualization of Twitter here.
Another interesting point to note about Obama’s speech is that “Hope” is the most used word after “Change”. Words like “common”,”generation”, “prosperity” and “world” featured prominently but no use of words like “Policy” and “recession”.
Here is the visual …

/dev/brain »

[14 Jan 2009 | Comments Off | ]

John Resig and his team had rolled out new version of jQuery, on birthday of jQuery.Today jQuery becomes 3 year old and got a new present .. new selector engine named Sizzle.
Along with sizzle, jQuery v1.3 includes many new features :

Live Events: Event delegation with a jQuery twist
jQuery Event Overhaul: Completely rewired to simplify event handling.
HTML Injection Rewrite: Lightning-fast HTML appending.
Offset Rewrite: Super-quick position calculation.

More details can be found on release notes.
This is great news for jQuery developers like me, Happy Birthday jQuery