Home » Archive

Articles in the Code Category

Code, Projects, featured »

[1 Jan 2010 | 3 Comments | ]
Core Graphics Tutorial : How to create a sleek Weather View

In this tutorial i will show you how to create a sleek looking and self contained Weather View using Core graphics for iPhone. Also, how to use shadows and gradients to create an impressive UI. We will also see how to use libxml & XPath for easier XML Processing. You can get sample source code on github.

Code, featured »

[29 Dec 2009 | 6 Comments | ]
iPhone Development Tip : Custom UINavigationBar

More and more developers are creating custom user elements these days to give ‘Branded’ feel to the application. While doing so, we have to keep in mind Human Interface guidelines Apple has provided us. The easiest way to create your own custom element is to subclass Apple’s existing UI elements. Here is a quick tip on how to create custom UINavigationBar, so that simple properties like background, text color & tint can be customized.
In this Article, i will show you how to subclass UINavigationBar to get the desired look and feel.
Step …

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, featured »

[28 Oct 2009 | One Comment | ]
iPhone Development Tip : Debugging Memory release

I was struggling with a bug in my latest iPhone application, and frankly i got very frustrated with retain-release concept. I missed good old ( well, not that old ) garbage collector, but following code helped me a lot in understanding the release-retain cycle and getting the backtrace of whats actually going on. Here is the code :

Code, 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 …

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 …

Code »

[25 Sep 2007 | Comments Off | ]
How to Add Picasa Slideshow on Orkut’s Profile Page

Orkut had added the support for adding your picasa album feeds to orkut profile page,..but lets admit, its very minimal.You go to a friends page and then click on picasa feed link which displays picasa albums inside orkut and if you still want to browse you have to click on album link which takes you to the picasa page,..can these steps be minimized ?? how can i have a quick look on my friends picasa photos just by going on his/her profile page ?? Can something be done ??
Oh ya …

Code »

[21 Sep 2007 | Comments Off | ]
How to Add Dictionary to Orkut

This is the new greasemonkey script that i developed just today.concept is very simple.I want to add dictionary search to Orkut which can be used while adding a scrap or adding a topic in communitiy.
Here are the screenshots :

Follow these steps to install this script :

Install greasemonkey extension for firefox if you have not already done so.
Go to http://userscripts.org/scripts/show/12450 and click on the “Install this Script” link on the right side

Thats it …now browse orkut.com and Dictionary search will apear on Scrapbook and Community message page.
Happy Orkuting :)

Code »

[18 Sep 2007 | 3 Comments | ]
How to Add GTalk gadget inside Orkut

Recently i felt need of an IM client just inside orkut so that i can be in touch with who are online ,although i knew ultimately orkut will add this feature someday ..but why wait for them to take initiative :) so i made this greasemonkey script which does same thing,it also has support for multiuser conference :). Have a look at the screenshot and you will understand the difference

So , how to use this ? follow this step by step guide :

Install greasemonkey extension for firefox if you …

Code »

[28 Aug 2007 | 2 Comments | ]
How to resize Orkut so as to fit widescreen

Orkut has changed their design recently…

But,you have a widescreen monitor and orkut’s new design doesn’t look good on it.what you want to have is this

here is the solution for your problem .Just follow these steps one by one :

Install greasemonkey extension for firefox if you have not already done so.
Go to http://userscripts.org/scripts/show/11782 and click on the “Install this Script” link on the right side

Thats it …now browse orkut.com and whole content should be resized to 99% of your screeen automatically.
for those of you who want to look at the script …