Posts filed under 'Geeky stuff'

Building xcode project from command line : A tutorial

Recently, I had to integrate a xcode project into a build script such that the code compiles from command line and then installs into the required location. xcode doesn’t use Makefile to build the project. It has its own build system. However, it does have a way to build the project very easily from the command line.

(more…)

Add comment November 10, 2009

Detecting taps and events on UIWebView – The right way

Recently, I was working on a project which required detection of tap and events on the UIWebView. We wanted to find out the HTML element on which the user taps in the UIWebView and then depending on the element tapped some action was to be performed. After some Googling, I found out the most of the users lay a transparent UIView on top of the UIWebView, re-implement the touch methods of UIResponder class (Ex: -touchesBegan:withEvent:) and then pass the events to the UIWebView. This method is explained in detail here. There are multiple problems with the method.

  1. Copy/Selection stops working on UIWebView
  2. We need to create a sub-class of UIWebView while Apple says we should not sub-class it.
  3. A lot other UIWebView features stop working.

(more…)

39 comments August 26, 2009

Detecting a shake using iPhone SDK

Accelerometer has added an all new dimension to the iPhone. There is no limit on how we can use the accelerometer API in iPhone SDK. The following are some of the well known simple uses of shake/motion detection

  1. Refresh the current view
  2. Go to next/previous screen
  3. Start editing
  4. Shuffle
  5. and the list goes on

Today lets check out how we can detect a simple shake using the API

(more…)

3 comments July 28, 2009

Using iPhone SDK MapKit Framework – A tutorial

Recently I was working on an application in which the map was required to be shown with in the application itself. I tried looking for some online resources that could be of some help but did not find any. I was not able to find any good tutorial that explains how can an address be shown on a map with the application. Therefore, I decided to write one and here it is. Hope it will be of some help.

(more…)

93 comments June 22, 2009

The beauty of private implementation (Pimpls)

In C++, when anything in a header file changes, all code that includes that header either directly or indirectly needs to be recompiled. Therefore, sometimes even a very trivial change might need to compile a lot of code. Also, when we usually declare both the public and private interfaces in the same c++ header file. Basically, the class declaration lets you peek at its private parts, which should actually be of no concern to the user of the class. Pimpl basically, decouples the interface of a class from its implementation (Bridge Pattern?). Any compile time dependencies are also eliminated. Lets see how.

(more…)

1 comment December 20, 2008

Tools to make a freelancer’s life easy

Every freelancer starts with an unorganized life and there are many who never get organized just because they don’t know how to. Communicating with clients is the most important part of a freelancer’s job. Not many of us like it just because most of the times we have to search through our mess (emails, documents etc) in order to keep our clients updated. Here are list of some tools that can make every freelancer’s life really easy and well organized.

(more…)

1 comment November 21, 2008

5 Simple C++ optimization techniques

We should generally not bother optimizing our code until we know where to optimize. We should first know where the processor is spending most if its time and then figure out how to optimize the code rather than guessing where to apply it. The flip side of optimization is that it makes the code less readable and we all know that developer’s time is more valuable than the machine’s time. Apart from writing code, someone has to maintain it and therefore one should write extensive comments where ever the code is less readable. But there are some simple optimization techniques that can easily applied be applied while writing the code itself.

(more…)

Add comment October 7, 2008

svn+ssh using TortoiseSVN

TortoiseSVN supports all subversion protocols including svn+ssh. Its really very simple to execute all the SVN commands using TortoiseSVN. Though there are enough documents covering server side configurations (Installing subversion, OpenSSH Installation, key generation etc) in depth, there is not much on what needs to be done on the client side when it comes to svn+ssh using TortoiseSVN. Its an easy 3 step process.

(more…)

Add comment September 10, 2008

An introduction to Scrum

For about a year now I have been developing product using the scrum methodology. Scrum is an iterative, incremental process for developing any product or managing any work. At the end of every iteration we have a potentially shippable set of functionality.

(more…)

Add comment May 11, 2008

Good programming practices

These practices apply to almost all Object Oriented Languages and should be followed by almost every developer (or programmer or whatever you call). These are simple rules that can save considerable amount of time( and money) but are not followed by most of the developers. Whatever is your background, these rules can help you write better programs in less time and with fewer headaches. So lets begin…

(more…)

2 comments October 8, 2006

Previous Posts


Recent Posts

Category Cloud

Food for thought Freelancer Geeky stuff General Humor Inside stories iSight Short n Sweet

On the web

TinyTweets

Archives

Feeds