<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;DUEMRn4yeCp7ImA9WxFVGUk.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394</id><updated>2010-06-19T16:41:27.090+05:00</updated><title>Shuaib's World on the Web</title><subtitle type="html">Thoughts from yet another software geek...</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>74</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ShuaibsWorldOnTheWeb" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="shuaibsworldontheweb" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUEMRnw6cCp7ImA9WxFVGUk.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-4137353292532124925</id><published>2010-06-19T16:38:00.002+05:00</published><updated>2010-06-19T16:41:27.218+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-19T16:41:27.218+05:00</app:edited><title>New blog</title><content type="html">I've moved to a new blog: &lt;a href="http://www.bytehood.com/"&gt;http://www.bytehood.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-4137353292532124925?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/4137353292532124925/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=4137353292532124925" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/4137353292532124925?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/4137353292532124925?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/06/new-blog.html" title="New blog" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUcHRHc9cCp7ImA9WxFXGEk.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-2723467218397739517</id><published>2010-05-26T08:53:00.003+05:00</published><updated>2010-05-26T09:10:35.968+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-26T09:10:35.968+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="blogging" /><title>Moving to a new domain</title><content type="html">I've  been on and off on blogosphere since around 2004. This blog has lived the longest out of all of my previous blogs, lasting for around one and a half year. And it has served me well. I liked writing on it, even without any considerable amount of readership, which is perfectly okay since getting any wasn't the intention.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But, now I am over with a personal blog that is too personal. I've been sharing all kinds of things on the blog, from daily tidbits and hangouts, to college life, to tech events I attend. But I think now it's time to take it to the next level. I will be moving to a new domain pretty soon, with a new blog, that'll again be personal, but with a more selective choice of topics I am passionate about, that I hope will be of interest to a wider group.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So don't be surprised if this blog isn't there anymore in the coming days.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-2723467218397739517?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/2723467218397739517/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=2723467218397739517" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/2723467218397739517?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/2723467218397739517?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/05/moving-to-new-domain.html" title="Moving to a new domain" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;C04FSX4_cCp7ImA9WxFQEks.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-6238564262156994495</id><published>2010-05-08T00:09:00.004+05:00</published><updated>2010-05-08T00:51:58.048+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-08T00:51:58.048+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="entrepreneurship" /><category scheme="http://www.blogger.com/atom/ns#" term="startup" /><title>Startups Insider Session</title><content type="html">&lt;a href="http://www.pasha.org.pk/"&gt;P@SHA&lt;/a&gt; and &lt;a href="http://seecs.nust.edu.pk/"&gt;SEECS&lt;/a&gt; collaborated to have a Startups Insider Session at NUST campus, Islamabad. Unless it is really difficult for me to attend any such session, I hardly miss one. And this one was so close to home, so I definitely attended. The panel included:&lt;br /&gt;&lt;br /&gt;Faizan Buzdar, CEO, &lt;a href="http://www.iscrybe.com/" target="_blank"&gt;Scrybe&lt;/a&gt;&lt;br /&gt;Owais Anjum, CEO, &lt;a href="http://www.numetrics.com/" target="_blank"&gt;Numetrics&lt;/a&gt;&lt;br /&gt;Shehryar Hydri, CEO, &lt;a href="http://www.trangointeractive.com/" target="_blank"&gt;Trango Interactive&lt;/a&gt;&lt;br /&gt;Usman Khalid, CEO, &lt;a href="http://www.aspire.com/" target="_blank"&gt;Aspire&lt;/a&gt;&lt;br /&gt;Rahim Lalani, VP &amp;amp; Head of &lt;a href="http://www.trgtech.com/" target="_blank"&gt;TRG Tech&lt;/a&gt;&lt;br /&gt;Jehan Ara, President of &lt;a href="http://pasha.org.pk/"&gt;P@SHA&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;One of the things that really bug me about the entrepreneurship scene of IT in Pakistan is that a reasonable amount of stuff is going on, new startups are emerging, and young people have started to have the guts to actually take the plunge and risk in order to do what they are passionate about, instead of what is considered best for them as profession by their elders. Yet, only rarely do we get to know about such ventures. Unless you are totally and closely connected with the people in the field, you won't know of much happenings in the startups scene in Pakistan.&lt;br /&gt;&lt;br /&gt;This is why I think such sessions are so important in order to give students inspiration and convert the potential entrepreneur hidden inside them into a reality.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S-Ru2puk1DI/AAAAAAAAAWI/xjfgriOsxFk/s1600/P5070134.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S-Ru2puk1DI/AAAAAAAAAWI/xjfgriOsxFk/s320/P5070134.JPG" alt="" id="BLOGGER_PHOTO_ID_5468617732727821362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Interesting stories were shared by the panel. The problems faced, lessons learned, reasons of quiting cushy day jobs and starting a venture of their of own, VC funding, marketing, business planning, everything came under discussion. If I have to summarize it for you in one paragraph, it would be as following:&lt;br /&gt;&lt;br /&gt;Know your self. What is it that you want to do in life? Having your own startup may sound cool, but it is a scary and bumpy road to drive on. And unless you really want to do it, don't! Definition of success is a personal thing to everyone. If having a good paying day job is something that keeps you happy, you are successful already. But if, even after earning a hefty amount and good living from your day job isn't giving you the kick that you desire in life, may be your definition of success is what is defined by entrepreneurship. You may have a hard time, face lots of failures and hardships, but eventually will get to where you want. And even if you don't, you would still be happy trying being successful with what you really enjoy. That alone in its own way is a success.&lt;br /&gt;&lt;br /&gt;Other than that, things related to business tactics know how, marketing skills, and pairing up with like minded people also came under discussion.&lt;br /&gt;&lt;br /&gt;At the end of the session, while talking to one of the panelists, I asked why was it that we don't see much role models to follow in tech industry startups in our desi environment. Why do we always have to look up to the likes of Joel Spolsky, Eric Sink, and Paul Graham to get to know about startups and how they are done? Not that we don't have the lack of the wisdom regarding the matter, as was evident from the session itself where the panelists shared some real wise stuff about the whole desi startup scene. And the answer I got was that not everyone is comfortable with sharing their success stories in desi environment. Mostly because most of the startups are based on services based model, no one wants to share their services acquisition tactics and sources, because after all, there is a little bit of Pakistani hidden amongst all. We are always scared of sharing. The few people that would like to share their stories and help new entrepreneurs, are either too busy in trying to be successful,  or are just not up to the task of writing a good blog. So the only way to get the inspiration from existing entrepreneurs is to stay connected through offline means, and be part of any sessions like the one held today on regular basis.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-6238564262156994495?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/6238564262156994495/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=6238564262156994495" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6238564262156994495?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6238564262156994495?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/05/startups-insider-session.html" title="Startups Insider Session" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S-Ru2puk1DI/AAAAAAAAAWI/xjfgriOsxFk/s72-c/P5070134.JPG" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CUUNRHcyfyp7ImA9WxFQEUU.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-5432305843177965097</id><published>2010-05-07T02:50:00.002+05:00</published><updated>2010-05-07T03:01:35.997+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-07T03:01:35.997+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="algorithms" /><title>Shortest code to find GCD of two numbers</title><content type="html">Here is the shortest line of code that will get you the GCD of two numbers, i.e. large and small.&lt;br /&gt;&lt;br /&gt;&lt;pre class="postCode"&gt;&lt;br /&gt;int x, y, z;&lt;br /&gt;for(x=large,y=small;z=x%y;x=y,y=z);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That's it, "x" is your GCD. It uses &lt;a href="http://en.wikipedia.org/wiki/Euclidean_algorithm"&gt;Euclid's algorithm&lt;/a&gt; to find it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-5432305843177965097?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/5432305843177965097/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=5432305843177965097" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5432305843177965097?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5432305843177965097?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/05/shortest-code-to-find-gcd-of-two.html" title="Shortest code to find GCD of two numbers" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CUUCSX05eip7ImA9WxFRGUw.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-3146776930856883231</id><published>2010-05-04T00:00:00.000+05:00</published><updated>2010-05-04T00:01:08.322+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-04T00:01:08.322+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="music" /><title>Playing with madness</title><content type="html">&lt;object width="480" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/eRbCoVE5Jhc&amp;hl=en_US&amp;fs=1&amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/eRbCoVE5Jhc&amp;hl=en_US&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-3146776930856883231?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/3146776930856883231/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=3146776930856883231" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/3146776930856883231?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/3146776930856883231?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/05/playing-with-madness.html" title="Playing with madness" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkACR3g7eSp7ImA9WxFRF0g.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-327489205203088701</id><published>2010-05-02T02:41:00.003+05:00</published><updated>2010-05-02T02:52:46.601+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-02T02:52:46.601+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="programming" /><title>Ease of Python, speed of C...?</title><content type="html">No I don't have the tool with that property to show you here. ;)&lt;br /&gt;&lt;br /&gt;Just that, I was practicing past algorithm problems of Codejam, and I realized Python won't be of much help there. For one of the problems, I wrote a program that got the solution right for the small input, but it was taking considerable amount of time for the large input... suggesting that Python might not always be suitable for the task when you need to have the output well before the 8 minutes given time for output submission.&lt;br /&gt;&lt;br /&gt;Wish Python was a compiled language, with speed comparable to C. ;)&lt;br /&gt;&lt;br /&gt;Though on a related note, I've seen people using C++ in awesome fashion in such competitions, at times even writing less line of code than the Python alternative for certain problems and getting it right. So basically it boils down to lots of practice, looking at code of great programmers, and improving consistently.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-327489205203088701?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/327489205203088701/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=327489205203088701" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/327489205203088701?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/327489205203088701?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/05/ease-of-python-speed-of-c.html" title="Ease of Python, speed of C...?" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkMMRX84fyp7ImA9WxFSF00.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-5307639253079625431</id><published>2010-04-19T22:57:00.003+05:00</published><updated>2010-04-19T23:08:04.137+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-19T23:08:04.137+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iphone-dev" /><title>iPhone-Dev: Multiple Font Styles on a single UILabel</title><content type="html">It isn't possible with the current SDK (3.1). If you want to have some string written over a UILabel with part in one font style (family, bold/italics) and another part in different style, you'll have to resort to other methods.&lt;br /&gt;&lt;br /&gt;One way is to have two labels side by side, faking it as if it is a single label with multiple font styles. You can read more about this method on this &lt;a href="http://stackoverflow.com/questions/1417346/iphone-uilabel-containing-text-with-multiple-fonts-at-the-same-time"&gt;thread on stackoverflow&lt;/a&gt;. But this won't always help. For example, if you have a label that is going to have text in multiple lines, you'll never know the exact position where to put the next label. If the text in next label is supposed to be appended at the end, than what if the first label's last line ends midway, before the end of the label's total width?&lt;br /&gt;&lt;br /&gt;&lt;a href="http://github.com/zynga/FontLabel"&gt;FontLabel&lt;/a&gt; is a nice extended version of UILabel that you can use instead, for this purpose. The library consists of multiple classes, also having an alternative string class that has the ability to have attributed strings letting you use multiple styles to show in labels. All you have to do is to use FontLabel instead of UILabel where ever you want the desired effect. There is sample code in the repository to get you started. So hope you'll have no problem using it. It can also be used for adding custom fonts to your application.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-5307639253079625431?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/5307639253079625431/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=5307639253079625431" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5307639253079625431?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5307639253079625431?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/04/iphone-dev-multiple-font-styles-on.html" title="iPhone-Dev: Multiple Font Styles on a single UILabel" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkYGQ3s-eyp7ImA9WxFSFk0.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-7181275615263598862</id><published>2010-04-18T19:43:00.004+05:00</published><updated>2010-04-18T20:22:02.553+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-18T20:22:02.553+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="books" /><title>The Five People You Meet In Heaven -- Mitch Albom</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S8sh1xf68WI/AAAAAAAAAWA/XUquQxO4uUQ/s1600/mitch-albom-the-five-people-you-meet-in-heaven.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 219px; height: 320px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S8sh1xf68WI/AAAAAAAAAWA/XUquQxO4uUQ/s320/mitch-albom-the-five-people-you-meet-in-heaven.jpg" alt="" id="BLOGGER_PHOTO_ID_5461496180820865378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I've been reading lots of books recently but haven't really blogged about any. So thought I would start with the latest I just finished, "&lt;a href="http://www.amazon.com/Five-People-You-Meet-Heaven/dp/0786868716"&gt;The Five People You Meet In Heaven&lt;/a&gt;". Don't get mislead by the title the way  I did. I thought it was going to be about some new reinterpretation of the concept of heaven and hell the way they are put in religions. But hey, it's all about the world you are living in right now, albeit put in a unique fashion.&lt;br /&gt;&lt;br /&gt;It's a story of an 83 year old man, who works as the maintenance guy at an amusement park, getting killed in an accident, and his encounter with five people as he moves from this world to the after life. You might expect new revelations about the after life, but actually the book is more about the way things are in the present world. Eddie, the main character of the book, gets to meet five people each giving him a new lesson to think about. Though I seriously wonder what he would need those lessons for now that he is well beyond the boundaries of the present world, but I guess the author just wanted us to learn those lessons, instead of paying too much heed to the way the story is constructed.&lt;br /&gt;&lt;br /&gt;In short, the first lesson is about how everything in this world is related. How no event is small or big on its own,  rather it becomes big or smaller from the perspective it is being looked upon. You might not consider an event to be significant, but it would have larger effects for someone else, or yourself, some time somewhere in future. It is like the &lt;a href="http://en.wikipedia.org/wiki/Butterfly_effect"&gt;Butterfly Effect&lt;/a&gt;. Small events leading to bigger changes of huge significance later in future.&lt;br /&gt;&lt;br /&gt;Another takeaway from the book is that no compromise in this world is a lost. When you lose something, you actually give something else to someone else that might be in more need in the circumstances.&lt;br /&gt;&lt;br /&gt;Lesson three was that love is ever lasting. It doesn't end with the end of life of the person or thing being loved. Love has no time boundaries. It is without any strings attached, and timeless. I leave it up to you to agree or disagree with that.&lt;br /&gt;&lt;br /&gt;Lesson four is the most important take away from the book. When we are living in this world, we see everything from just one angle, just one perspective, ours! And that's pretty much fair enough to start with. It's not like we are in a movie that we can float away from our body, and look up on the world from a higher altitude and see everything and everyone from a side angle seeing everything happening in parallel. You have two pairs of eyes and one brain that you take away with you everywhere, and only perceive things as you experience them. It is hard to know about everyone else's experiences, their inner state of mind, their angle of view of events, and thus judge people and events keeping everyone else's perspective in mind. Though that is to say that the better you become at looking at things from different angles, the better it is for your own self and the people around you. It's not always that only your take on an event is the correct one, chances are higher that it isn't.&lt;br /&gt;&lt;br /&gt;Lesson five, I didn't really get. I guess you should just read the book and explain it to me. :P&lt;br /&gt;&lt;br /&gt;Overall, it was a very nice read. The book is small in size, and very easy on nerves. I read it in two sittings, though I could have as easily done it in one.&lt;br /&gt;&lt;br /&gt;It's a recommended read.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-7181275615263598862?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/7181275615263598862/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=7181275615263598862" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7181275615263598862?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7181275615263598862?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/04/five-people-you-meet-in-heaven-mitch.html" title="The Five People You Meet In Heaven -- Mitch Albom" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S8sh1xf68WI/AAAAAAAAAWA/XUquQxO4uUQ/s72-c/mitch-albom-the-five-people-you-meet-in-heaven.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DUMDQnc8fSp7ImA9WxFSEUg.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-8456176197170471331</id><published>2010-04-13T16:11:00.003+05:00</published><updated>2010-04-13T16:17:53.975+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-13T16:17:53.975+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mac os x" /><category scheme="http://www.blogger.com/atom/ns#" term="leapord" /><title>Mac OS X on Dell Inspiron 6400</title><content type="html">I wrote about my effort to install &lt;a href="http://mshuaibkhan.blogspot.com/2009/07/mac-os-x-on-dell-inspiron-6400.html"&gt;Mac OS X on my Dell Inspiron 6400&lt;/a&gt; some time back, not giving details, rather keeping it for later. I see from my analytics report that many people land on my blog searching for this. So the deal is, I was able to run it on my machine, both &lt;a href="http://www.insanelymac.com/forum/index.php?showtopic=77069"&gt;Kalyway&lt;/a&gt;, and Snow Leopard from the retail DVD. But I wasn't even remotely satisfied with the setup. It is by no way a good substitute for buying a Mac machine (Mac Mini is the cheapest option to get running latest OS X).&lt;br /&gt;&lt;br /&gt;But if I get enough comments on this post requesting all the details, I can write a detailed blog post for you. Otherwise, go get a Mac machine. :)&lt;br /&gt;&lt;br /&gt;Happy hacking!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-8456176197170471331?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/8456176197170471331/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=8456176197170471331" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8456176197170471331?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8456176197170471331?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/04/mac-os-x-on-dell-inspiron-6400.html" title="Mac OS X on Dell Inspiron 6400" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;Ck4ARXc5cCp7ImA9WxBaGUs.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-7187104140944699431</id><published>2010-03-28T08:16:00.004+05:00</published><updated>2010-03-30T19:55:44.928+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-30T19:55:44.928+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="college life" /><title>Conan O'Brien's Commencement Speech At Harvard</title><content type="html">Watch, listen, and learn. Or laugh. Or do both.&lt;br /&gt;&lt;br /&gt;&lt;embed src="http://www.guba.com/f/root.swf?video_url=http://free.guba.com/uploaditem/3000034406/flash.flv&amp;amp;isEmbeddedPlayer=true" quality="best" bgcolor="#FFFFFF" menu="true" name="root" id="root" scalemode="noScale" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" height="430px" width="530px" align="middle"&gt;&lt;/embed&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-7187104140944699431?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/7187104140944699431/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=7187104140944699431" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7187104140944699431?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7187104140944699431?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/conan-obriens-commencement-speech-at.html" title="Conan O'Brien's Commencement Speech At Harvard" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkEHRX4zeyp7ImA9WxBaEU4.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-6093849134171070055</id><published>2010-03-21T04:13:00.005+05:00</published><updated>2010-03-21T05:17:14.083+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-21T05:17:14.083+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="programming" /><category scheme="http://www.blogger.com/atom/ns#" term="career" /><title>How to become a better programmer...</title><content type="html">Don't let the title mislead you into thinking that you'll find my wisdom, about becoming a better programmer, acquired over the course of a long time period of software development, in this post. If you are reading this not long after it is written, I'm most probably like you, a person who types the title phrase once in a while into Google in order to read other great programmers' thoughts about becoming a good programmer. I just did. And this piece is about putting my thoughts out there on what I just read in today's session. And today, I mostly read &lt;a href="http://www.codinghorror.com/blog/"&gt;Coding Horror&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The thing about becoming an excellent programmer is not so much so about becoming good at writing excellent lines of code and coming up with great algorithms as solutions for the problem at hand. You know whether are not you are good at that from the start. Most probably in the first one or two years of the time you're in college. And that is not a skill you acquire if you don't have it already. Just as Bill Gates puts it and Jeff quoted in his &lt;a href="http://www.codinghorror.com/blog/2007/01/how-to-become-a-better-programmer-by-not-programming.html"&gt;how to become a better programmer by not programming&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt; &lt;i&gt;Does accumulating experience through the years necessarily make programming easier?&lt;/i&gt; &lt;p&gt; Bill Gates: No. &lt;b&gt;I think after the first three or four years, it's pretty cast in concrete whether you're a good programmer or not.&lt;/b&gt; After a few more years, you may know more about managing large projects and personalities, but after three or four years, it's clear what you're going to be. There's no one at Microsoft who was just kind of mediocre for a couple of years, and then just out of the blue started optimizing everything in sight. I can talk to somebody about a program that he's written and know right away whether he's really a good programmer.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;Jeff goes on to explain how it is more important that you become a better programmer by trying to learn about things that aren't directly linked with coding, but they are the things you code about. Like if you are writing a software for some biological task, you should know something about biology. If you are writing code to demonstrate a phenomenon in physics, you need to know about physics. Also, it is essential that you have people skills. Software development isn't just about putting the code out there, it is pretty much more about communicating your thoughts on the code to the rest of the team, coming up with a design and then putting it in a form that others that would like to know about your design have easy time comprehending it. You need to be a good team player, become better at communication.&lt;br /&gt;&lt;br /&gt;Over the time, you'll become &lt;a href="http://www.codinghorror.com/blog/2004/08/why-im-the-best-programmer-in-the-world.html"&gt;the world's best programmer&lt;/a&gt;, not because you'll produce bugless code that has super efficiency, but because you won't, and be humble about it, and acknowledge it. You have to constantly keep a check on what you code, and try to &lt;a href="http://www.codinghorror.com/blog/2006/03/sucking-less-every-year.html"&gt;suck less at it every year&lt;/a&gt;. You have to acknowledge that the code you wrote &lt;a href="http://www.codinghorror.com/blog/2004/10/we-make-shitty-software-with-bugs.html"&gt;is shitty, and has bugs&lt;/a&gt;. Because it is, and has bugs anyway, but by not acknowledging the fact, you are just trying being a smart ass that isn't ready to accept his own flaws, hence not improve upon them.&lt;br /&gt;&lt;br /&gt;Over time, you'll improve as a programmer not because you know more about programming, but because you know more about the things that surround it. That's what will decide whether you are going to be in the elite club of programmers who enjoy their work and thus are good at it, or the mediocre ones who are doing it all just because they were pushed into the field and they have to get the pay check. That can make a &lt;a href="http://www.codinghorror.com/blog/2004/09/skill-disparities-in-programming.html"&gt;huge difference&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-6093849134171070055?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/6093849134171070055/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=6093849134171070055" title="7 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6093849134171070055?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6093849134171070055?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/how-to-become-better-programmer.html" title="How to become a better programmer..." /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>7</thr:total></entry><entry gd:etag="W/&quot;C0QNSH8-eCp7ImA9WxBaEEg.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-7534892165359718497</id><published>2010-03-20T07:02:00.002+05:00</published><updated>2010-03-20T07:16:39.150+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-20T07:16:39.150+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="management" /><category scheme="http://www.blogger.com/atom/ns#" term="career" /><title>Keeping a 24 hours a day schedule</title><content type="html">I got comments from more than one friends on my previous post, regarding having a 28 hours day, that made me feel my post might have created some confusions. I better clear them up.&lt;br /&gt;&lt;br /&gt;1- Having a day lasting more than 24 hours is counter productive and not recommended. At times you have to go with it, in cases like if you have a hard deadline to meet at job, or some special event that you are part of. But making it a routine is going to create problems for you. Most of the world work in 24 hours a day schedule. If you go against that, you will most likely live as an outcast.&lt;br /&gt;&lt;br /&gt;2- Keeping in check your sleeping timings is very essential to properly manage your schedule, and that means having enough sleep to give yourself proper rest, but not even a little more than that. I am not the expert on this matter, so take my advice with caution, but in my opinion, six hours sleep should do you good. That is about enough to keep you fresh, and at the same time not that much so that you won't feel sleepy at night at the right hour. Remember what the wise saying says, "early to bed, early to rise ... ".&lt;br /&gt;&lt;br /&gt;In short, more (or even less) than a 24 hours a day schedule isn't a good idea. More sleep might sound like an awesome idea, but it isn't. ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-7534892165359718497?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/7534892165359718497/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=7534892165359718497" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7534892165359718497?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7534892165359718497?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/keeping-24-hours-day-schedule.html" title="Keeping a 24 hours a day schedule" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkUDRX06fCp7ImA9WxBaEEw.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-8927074365606635039</id><published>2010-03-19T19:42:00.003+05:00</published><updated>2010-03-19T19:51:14.314+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-19T19:51:14.314+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="programming" /><title>&gt;24 hour day for computer geeks</title><content type="html">Does it happen to every computer geek? I mostly have my day last more than 24 hours, usually making it to around 28 hours. In case you don't get the concept, it means staying up for 20 hours and then sleeping for 8 hours, consistently.&lt;br /&gt;&lt;br /&gt;There is no problem with that if you are a hardcore nerd who doesn't care about his social life and everything that is worth on planet Earth resides inside your computer. But if you aren't in that place, then having a day lasting more than 24 hours can seriously mess up your day's schedule. You will have each day start four hours later than the previous one, and it gets weird.&lt;br /&gt;&lt;br /&gt;Only yesterday I had a phase change where I stayed awake for 28 hours in order to let my day start early in the morning, and I need to keep a check on my sleep, not letting it turn into over-sleeping and once again putting me back in a continuous run with my start of the day.&lt;br /&gt;&lt;br /&gt;Happy coding, weirdo programmer bros. Cheers!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-8927074365606635039?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/8927074365606635039/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=8927074365606635039" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8927074365606635039?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8927074365606635039?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/24-hour-day-for-computer-geeks.html" title="&gt;24 hour day for computer geeks" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEEBR34zeyp7ImA9WxBbGUQ.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-5873149615042427230</id><published>2010-03-19T06:06:00.004+05:00</published><updated>2010-03-19T16:04:16.083+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-19T16:04:16.083+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="intelligence" /><category scheme="http://www.blogger.com/atom/ns#" term="career" /><title>Kinds of intelligence</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S6LTosb2WDI/AAAAAAAAAVo/RZhvQT0CvdU/s1600-h/brain.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 240px;" src="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S6LTosb2WDI/AAAAAAAAAVo/RZhvQT0CvdU/s320/brain.jpg" alt="" id="BLOGGER_PHOTO_ID_5450151195147917362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;This post is going to be somewhat a continuation of my previous posts on &lt;a href="http://mshuaibkhan.blogspot.com/2010/03/overreaction.html"&gt;overreaction&lt;/a&gt;, and&lt;a href="http://mshuaibkhan.blogspot.com/2010/03/on-maturity-and-winning-arguments.html"&gt; on maturity and winning arguments&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The common term &lt;a href="http://en.wikipedia.org/wiki/Intelligence_quotient"&gt;IQ&lt;/a&gt;, is very well known. We are used to hearing about it from a very early age. Theories about it are well established and measuring scales and tests have been devised for it and improved upon for ages now. Though, this has resulted in very common misconception. Students and kids showing early signs of a high IQ are deemed specially gifted and more intelligent than other kids. They are expected to show brilliance in their early life academics, and later on, in their life and career. But that is only partially true. While high IQ might ensure one achieving higher grades in academics, it certainly doesn't ensure success in life and career in general. There is more to it than just IQ.&lt;br /&gt;&lt;br /&gt;The problem partially lies in the term itself, "Intelligence Quotient". As if it is the measurement of all the intelligence a person possess. Nothing can be far from truth. IQ is used only as a measure for your ability for mathematical and spatial reasoning. While such abilities can help in academic success, our general life is not all about mathematics and pattern recognition. It is also about emotions recognition, and common sense behavior in general day to day life situations.&lt;br /&gt;&lt;br /&gt;That's why two new types of intelligence have started to get attention of researchers and behavioral scientists. Namely, Emotional Intelligence (EIQ), and Practical Intelligence (PIQ). Robert Sternberg has come up with a new theory of intelligence knows as &lt;a href="http://en.wikipedia.org/wiki/Triarchic_theory_of_intelligence#Practical_.2F_Contextual_Subtheory"&gt;Triarchic theory of intelligence&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So what's basically happening is, now we have started to realize that certain person with higher IQ only isn't more gifted than a person with higher EIQ and PIQ but with average IQ. In my own experience, I come across many people with higher IQs struggling in life with stress due to lower EIQs and PIQs.&lt;br /&gt;&lt;br /&gt;It is of high importance that people start paying more attention to their EIQ and PIQ levels instead of just focusing on their academic abilities as that alone is never going to guarantee a happy and successful life.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-5873149615042427230?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/5873149615042427230/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=5873149615042427230" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5873149615042427230?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5873149615042427230?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/kinds-of-intelligence.html" title="Kinds of intelligence" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S6LTosb2WDI/AAAAAAAAAVo/RZhvQT0CvdU/s72-c/brain.jpg" height="72" width="72" /><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CUMFQHc6fSp7ImA9WxBbFEU.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-1181701711138115910</id><published>2010-03-13T17:23:00.003+05:00</published><updated>2010-03-13T17:30:11.915+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-13T17:30:11.915+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="music" /><title>Tuk Tuk - Hadiqa Kiani</title><content type="html">I do not watch much TV. Rather, I don't watch it at all, other than for 5 minutes only once in a while when I am having a tea break and the TV is on in the cafe. And for that matter, I do not watch PTV (state television network of Pakistan) at all. So when I stumbled up on the following video of Hadiqa Kiani, I wondered if it has ever been aired on PTV. I've nothing against the video, I like the song, Hadiqa Kiani is one my favourite Pakistani singer. But what would be a surprise for me if PTV has come of age and started to air such videos. The last time I remember I used to watch PTV, this video would certainly not have been aired.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;object height="385" width="480"&gt;&lt;param name="movie" value="http://www.youtube.com/v/tCfIZlKf88U&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/tCfIZlKf88U&amp;amp;hl=en_US&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="385" width="480"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-1181701711138115910?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/1181701711138115910/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=1181701711138115910" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/1181701711138115910?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/1181701711138115910?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/tuk-tuk-hadiqa-kiani.html" title="Tuk Tuk - Hadiqa Kiani" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>5</thr:total></entry><entry gd:etag="W/&quot;CkUDQ3Y_eip7ImA9WxBbFE0.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-2389222759121650198</id><published>2010-03-12T16:08:00.005+05:00</published><updated>2010-03-12T18:24:32.842+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T18:24:32.842+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="college life" /><title>On maturity, and winning arguments</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_tPOK4g4lQ0g/S5oon1UErsI/AAAAAAAAAVg/CAKjMR6IruI/s1600-h/argument.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 218px;" src="http://4.bp.blogspot.com/_tPOK4g4lQ0g/S5oon1UErsI/AAAAAAAAAVg/CAKjMR6IruI/s320/argument.jpg" alt="" id="BLOGGER_PHOTO_ID_5447711364049317570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Note: The following is a follow up to a conversation that happened on my college's private mailing list. I didn't want to continue the conversation &lt;s&gt;their&lt;/s&gt; there, so just trying to add my final thoughts on it here. And I am not advertising this post &lt;s&gt;their&lt;/s&gt; there, so unless someone from the original thread finds it out his/herself, the following remains a trash. And the rest of you, read and see if you can deduce something useful from it. :P&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It's funny how our elders think that maturity is a function of a person's age. Douglas Engelbart had a better theory about maturity, "The rate at which a person can mature is directly proportional to the embarrassment he can tolerate."&lt;br /&gt;&lt;br /&gt;I've seen younger people acting more mature in a situation where elders are so over themselves. And the opposite as well. So the 'age leads to maturity' theory is certainly flawed.&lt;br /&gt;&lt;br /&gt;Here is a definition of Snowball effect from wikipedia: &lt;b&gt;Snowball effect&lt;/b&gt; is a figurative term for a process that starts from an initial state of small significance and builds upon itself, becoming larger (graver, more serious), and perhaps potentially dangerous or disastrous (a &lt;a href="http://en.wikipedia.org/wiki/Vicious_circle" title="Vicious circle"&gt;vicious circle&lt;/a&gt;, a "spiral of decline").&lt;br /&gt;&lt;br /&gt;This is specifically true about the little debates you have with your friends usually in college life. The seemingly harmless one-liners and teaser lines. But what might not be so evident is that if certain one-liners and nicknames are used consistently for longer period of time, they might cross the line and instead of remaining joyful teasers, trip over into an offence, and just like the snowball effect, become dangerous and disastrous.&lt;br /&gt;&lt;br /&gt;Some terminologies:&lt;br /&gt;&lt;br /&gt;Smart Ass: This isn't so much of a "name calling" as it is of describing a certain personality trait, the kind where someone obnoxiously try to rub in your face how they are superior to you in some ways.&lt;br /&gt;&lt;br /&gt;Brahmans: In Hindu ideology, this is a class of people which is regarded to be on the highest level in society, as compared to Shodurs, which is regarded as a loathing and lowest class.&lt;br /&gt;&lt;br /&gt;Dork: This can be somewhat a "name calling", but usually with a low tone.&lt;br /&gt;&lt;br /&gt;Now on winning arguments:&lt;br /&gt;&lt;br /&gt;1- Never overreact. Stay subtle and calm. Otherwise you'll divert the attention from the person who was originally wrong onto yourself and the purpose won't be achieved.&lt;br /&gt;&lt;br /&gt;2- Never say you are sorry in a conversation, unless you are perfectly sure the other party is going to take responsibility too for their actions. Otherwise you become responsible for everything.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-2389222759121650198?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/2389222759121650198/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=2389222759121650198" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/2389222759121650198?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/2389222759121650198?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/on-maturity-and-winning-arguments.html" title="On maturity, and winning arguments" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_tPOK4g4lQ0g/S5oon1UErsI/AAAAAAAAAVg/CAKjMR6IruI/s72-c/argument.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0ECQ346cSp7ImA9WxBbE04.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-6823969710364979009</id><published>2010-03-12T00:23:00.002+05:00</published><updated>2010-03-12T00:27:42.019+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-12T00:27:42.019+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="life" /><title>Overreaction</title><content type="html">Have you ever had the experience where someone was so utterly wrong and provocative, that you lost all temper and reacted too harsh, making it almost an overreaction...?&lt;br /&gt;&lt;br /&gt;Guess what the result is. People are going to forget who was wrong in the first place, and start blaming you for your overreaction.&lt;br /&gt;&lt;br /&gt;Winning an argument is a deceiving art.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-6823969710364979009?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/6823969710364979009/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=6823969710364979009" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6823969710364979009?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6823969710364979009?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/overreaction.html" title="Overreaction" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0UGQnYzfip7ImA9WxBbEkg.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-7518989208326682364</id><published>2010-03-11T02:53:00.005+05:00</published><updated>2010-03-11T03:13:43.886+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-11T03:13:43.886+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Islamabad" /><category scheme="http://www.blogger.com/atom/ns#" term="life" /><title>McDonald's parking space</title><content type="html">The title of this post is lame. Couldn't come up with something spicier...&lt;br /&gt;&lt;br /&gt;... but the last few times that I went to McDonalds late night, I have been noticing the potential uses of the parking space over there (McDonalds in F-9 park, Islamabad). Usually if you go there late into the night, I am talking about after 2:00 AM, you would notice a few fancy cars parked there, either having a couple, or a bunch of teenagers or boys in their early twenties, having a smoke and listening to weird music (out loud).&lt;br /&gt;&lt;br /&gt;That is, until today...&lt;br /&gt;&lt;br /&gt;I went through the drive-thru, grabbed myself a nice meal of McArabia, and turned the car towards the parking. As soon as I turned the switch off, the guard came charged at me ...&lt;br /&gt;&lt;br /&gt;"Saab, meharbaani karien gari bahir le jain, parking band ho gai hai ab." (Sir, please take the car out, parking is closed)&lt;br /&gt;&lt;br /&gt;I was like, "whaaaaat" (squeaky barney stinson tone). And from the little bit info from the guard, what I could assert was that there would be no more parking allowed in the parking area of McD after 2 AM. Hmmm... interesting. Did I miss on some scene that was so off the norm that McD's admin had to actually close the parking area after 2? :P&lt;br /&gt;&lt;br /&gt;I usually go there alone... whenever I get hungry during my work sessions late into the night (which is everyday, well almost). But the question, whether McD is doing the right  thing here, i.e. closing the parking area after mid night to cut on the activities of Islamabad youth, is an open question to me. I don't like the overly conservative society that we have turned into ... but I hope we don't trip into the other side of the extreme by trying to undo that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-7518989208326682364?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/7518989208326682364/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=7518989208326682364" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7518989208326682364?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/7518989208326682364?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/mcdonalds-parking-space.html" title="McDonald's parking space" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;D0MCSHs8cCp7ImA9WxBbEUU.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-6685533354905439849</id><published>2010-03-10T02:22:00.007+05:00</published><updated>2010-03-10T06:44:29.578+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-10T06:44:29.578+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="programming" /><title>Deceiving bugs</title><content type="html">You see that a certain piece of code you just added doesn't work as expected. You change some lines, delete some, add some new ones, compile and run again... the behavior is changed, but still not what you desired. You use a debugger and dirty print statements to restrict the cause of the unwanted behavior to certain locations in the code... and spend the rest of the day making all kind of changes in the code only to notice that nothing sane whatsoever is helping.&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Take a break&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Return to work. Have a fresh look at the code... and you realize, everything you tried previously, shouldn't have been, and wasn't, necessary at all. Only a slight change to a single line of code at a location you previously didn't even expect to have an effect in the on going scene, fixes all the problems.&lt;br /&gt;&lt;br /&gt;It was such a day today at work. :/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-6685533354905439849?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/6685533354905439849/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=6685533354905439849" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6685533354905439849?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6685533354905439849?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/deceiving-bugs.html" title="Deceiving bugs" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DU4BQn88eyp7ImA9WxBbEEk.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-1376614739802935192</id><published>2010-03-08T16:28:00.003+05:00</published><updated>2010-03-08T16:32:33.173+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-08T16:32:33.173+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="movies" /><title>Iron Man 2: Official trailor</title><content type="html">Ladies and gentleman, get ready, Tony Stark is back with his suit made of iron. Expecting awesome action, great acting, and exhilarating display of gadgetry...&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/FNQowwwwYa0&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;hl=en_US&amp;amp;feature=player_embedded&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowScriptAccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/FNQowwwwYa0&amp;amp;color1=0xb1b1b1&amp;amp;color2=0xcfcfcf&amp;amp;hl=en_US&amp;amp;feature=player_embedded&amp;amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-1376614739802935192?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/1376614739802935192/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=1376614739802935192" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/1376614739802935192?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/1376614739802935192?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/iron-man-2-official-trailor.html" title="Iron Man 2: Official trailor" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkYMRnc6eCp7ImA9WxBUF0w.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-5853197097471847311</id><published>2010-03-04T05:52:00.018+05:00</published><updated>2010-03-04T19:49:47.910+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-04T19:49:47.910+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="iphone-dev" /><title>iPhone Dev: Implementing your own delegate protocol</title><content type="html">Recently in one of my iPhone development ventures, I came across a design issue where it wasn't easy to callback the desired function in response to certain event. Think of it like this:&lt;br /&gt;&lt;br /&gt;I have a custom UIView, lets call it A, that I want to add as a subview to another UIView, B. Both UIView's have their own view controllers, and UIView A has a number of custom buttons, which are to be linked with action methods in view controller of B. Due to the lose coupling between a UIView and it's controller, it's not so straight forward to reach to the view controller of superview. In such situation, designing a custom delegate protocol for your custom view would greatly simplify things for you.&lt;br /&gt;&lt;br /&gt;In my case, I designed a delegate protocol for my custom view A, and while instantiating it in B's view controller, I set it's delegate to "self" which would be B's view controller.&lt;br /&gt;&lt;br /&gt;Here are the steps to design and implement your own delegate protocol:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1- Define:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Decide what methods your delegate protocol should have. For example if you want a buttonPressed method to be part of your protocol, here is how to define it in the header file (e.g. myViewController.h) of your controller class.&lt;br /&gt;&lt;br /&gt;@protocol myViewController &lt;nsobject&gt;&lt;br /&gt;@optional&lt;br /&gt;-(void)buttonPressed:(id)sender;&lt;br /&gt;@end&lt;/nsobject&gt;&lt;nsobject&gt;&lt;/nsobject&gt;&lt;nsobject&gt;&lt;/nsobject&gt;&lt;br /&gt;&lt;br /&gt;The above goes to the top of your header file before the @interface. @protocol tells the controller that you are about to define a protocol for your view controller. You inherit from NSObject allowing easy access to delegate protocols up the inheritance chain. Everything else is put before @end. @optional tells the protocol that the methods below are optional and not strictly required for later usage of the delegate protocol in some other view controller.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2- Define a delegate property&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In order to set some other view controller as a delegate of to your custom view controller's delegate protocol, you have to define a delegate variable. E.g. in this case, we put the following in our header file (myViewController.h)&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;@interface myViewController : NSObject {&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;    id &amp;lt;myViewController&amp;gt; delegate;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;@property (assign) id&lt;myviewcontroller&gt; delegate;&lt;/myviewcontroller&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;myviewcontroller&gt;&lt;/myviewcontroller&gt;&lt;/p&gt;&lt;p&gt;&lt;myviewcontroller&gt;&lt;br /&gt;&lt;/myviewcontroller&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;At some later stage in another view controller, you can &lt;/span&gt;&lt;span&gt;set the delegate of your instance as following:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span&gt;myViewController *myView = [[myViewController alloc] init];&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span&gt;myView.delegate = self;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3- Link to the delegate method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you need to link up your delegate's methods to their proper implementation provided by whatever is set as the delegate to your custom delegate protocol. In order to do that, put the following code at an appropriate place, where you think a certain protocol method is to be called in response to some event. E.g. if there is a button clicked, and you would want to call a delegate method defined in the controller implementing your protocol:&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;-(IBAction)pushedButton;(id)sender {&lt;br /&gt;if (self.delegate != NULL &amp;amp;&amp;amp; [self.delegate respondsToSelector:@selector(buttonPressed:)]) {&lt;br /&gt;[delegate buttonPressed:sender];&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;You first check that the delegate is set and is not NULL, and also that the delegate has implemented the buttonPressed method and thus responds to it, and then you call upon that method.&lt;br /&gt;&lt;br /&gt;That's it. If you have ever used a built in Apple delegate in the iPhone SDK, the rest of the story is familiar to you. Everything else is exactly the same from here onwards.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-5853197097471847311?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/5853197097471847311/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=5853197097471847311" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5853197097471847311?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5853197097471847311?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/03/iphone-dev-implementing-your-own.html" title="iPhone Dev: Implementing your own delegate protocol" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;AkIESH4_fip7ImA9WxBVGEw.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-4437240022543913101</id><published>2010-02-21T21:01:00.013+05:00</published><updated>2010-02-22T11:01:49.046+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-22T11:01:49.046+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="trips" /><category scheme="http://www.blogger.com/atom/ns#" term="life" /><category scheme="http://www.blogger.com/atom/ns#" term="photos" /><title>Trip to Murree and Bhurban</title><content type="html">So I and a friend went for a trip to Murree and Bhurban this weekend. Apart from having great fun, and seeing the snow, I got the chance to put my digicam to test. I enjoyed the hi speed captures. The pictures turned out to be pretty sharp and neat even while we were cruising in the car. And I think... I think... I am developing an eye for identifying the right scenery. May be it's about time I get a heavy weight DSLR. :P&lt;br /&gt;&lt;br /&gt;Here is a high speed capture through the side window.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4ITJCjKXYI/AAAAAAAAAUQ/1IHDPmp6cO8/s1600-h/P2200011.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4ITJCjKXYI/AAAAAAAAAUQ/1IHDPmp6cO8/s200/P2200011.JPG" alt="" id="BLOGGER_PHOTO_ID_5440932345841081730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A high speed capture through the windscreen.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IU4aMxKLI/AAAAAAAAAUg/QWj570r8H5g/s1600-h/P2200028.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IU4aMxKLI/AAAAAAAAAUg/QWj570r8H5g/s200/P2200028.JPG" alt="" id="BLOGGER_PHOTO_ID_5440934259155085490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;And here is a priceless desi moment. :P&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IVt-0PmeI/AAAAAAAAAUo/zBCuPSntc58/s1600-h/P2200066.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IVt-0PmeI/AAAAAAAAAUo/zBCuPSntc58/s200/P2200066.JPG" alt="" id="BLOGGER_PHOTO_ID_5440935179517401570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here is the hut we had dinner at. You can see the snow outside.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IXHu9ITfI/AAAAAAAAAUw/Q3uJ9gt2Xvc/s1600-h/P2200097.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4IXHu9ITfI/AAAAAAAAAUw/Q3uJ9gt2Xvc/s320/P2200097.JPG" alt="" id="BLOGGER_PHOTO_ID_5440936721447931378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Another priceless highspeed capture. :P&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IYGBd1ZBI/AAAAAAAAAU4/7XKeT4umayU/s1600-h/P2210161.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IYGBd1ZBI/AAAAAAAAAU4/7XKeT4umayU/s320/P2210161.JPG" alt="" id="BLOGGER_PHOTO_ID_5440937791568831506" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;View from the terrace of PC Bhurban ...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IZ1Qhct9I/AAAAAAAAAVA/B6UCKGO2jhQ/s1600-h/P2210219.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IZ1Qhct9I/AAAAAAAAAVA/B6UCKGO2jhQ/s320/P2210219.JPG" alt="" id="BLOGGER_PHOTO_ID_5440939702576003026" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;... where we stalked people ...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4Ia_rrzwQI/AAAAAAAAAVI/GiDfSqVE34w/s1600-h/P2210223.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4Ia_rrzwQI/AAAAAAAAAVI/GiDfSqVE34w/s320/P2210223.JPG" alt="" id="BLOGGER_PHOTO_ID_5440940981177532674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;... and had lunch.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IdVC3hhXI/AAAAAAAAAVY/fTyntY4Pzl0/s1600-h/P2210230.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_tPOK4g4lQ0g/S4IdVC3hhXI/AAAAAAAAAVY/fTyntY4Pzl0/s320/P2210230.JPG" alt="" id="BLOGGER_PHOTO_ID_5440943547201193330" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-4437240022543913101?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/4437240022543913101/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=4437240022543913101" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/4437240022543913101?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/4437240022543913101?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/02/trip-to-murree-and-bhurban.html" title="Trip to Murree and Bhurban" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S4ITJCjKXYI/AAAAAAAAAUQ/1IHDPmp6cO8/s72-c/P2200011.JPG" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;Dk4AQH88cSp7ImA9WxBVE0w.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-8414775710074340168</id><published>2010-02-16T15:08:00.002+05:00</published><updated>2010-02-16T15:09:01.179+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-16T15:09:01.179+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="humor" /><title>Someone is wrong on the Internet...</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S3pur9GboMI/AAAAAAAAAUI/b4lhz4DxTAA/s1600-h/internet-joke.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 330px;" src="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S3pur9GboMI/AAAAAAAAAUI/b4lhz4DxTAA/s400/internet-joke.gif" alt="" id="BLOGGER_PHOTO_ID_5438781201418264770" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-8414775710074340168?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/8414775710074340168/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=8414775710074340168" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8414775710074340168?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/8414775710074340168?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/02/someone-is-wrong-on-internet.html" title="Someone is wrong on the Internet..." /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_tPOK4g4lQ0g/S3pur9GboMI/AAAAAAAAAUI/b4lhz4DxTAA/s72-c/internet-joke.gif" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0cDQX0yeyp7ImA9WxBQFEg.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-6329085971982534771</id><published>2010-01-14T13:46:00.004+05:00</published><updated>2010-01-14T13:51:10.393+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-14T13:51:10.393+05:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="humor" /><title>iPhone Dev humor</title><content type="html">&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S07axHNESII/AAAAAAAAAUA/BzGzWNyiZwE/s1600-h/rtfm.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 200px;" src="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S07axHNESII/AAAAAAAAAUA/BzGzWNyiZwE/s200/rtfm.jpg" alt="" id="BLOGGER_PHOTO_ID_5426515138310326402" border="0" /&gt;&lt;/a&gt;Ending of a question from a user on StackOverflow that made me LMAO: :D&lt;br /&gt;&lt;blockquote&gt;The type of answer I would NOT appreciate is "RTFM" because I already have, and anybody who's developed for the iPhone so far knows that there is very little useful M to F-ing R.&lt;/blockquote&gt;Hahahahahaha!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-6329085971982534771?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/6329085971982534771/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=6329085971982534771" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6329085971982534771?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/6329085971982534771?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2010/01/iphone-dev-humor.html" title="iPhone Dev humor" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_tPOK4g4lQ0g/S07axHNESII/AAAAAAAAAUA/BzGzWNyiZwE/s72-c/rtfm.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkYDRXg7eip7ImA9WxBTFk4.&quot;"><id>tag:blogger.com,1999:blog-5146139059435773394.post-5456517062689524254</id><published>2009-12-12T19:58:00.002+05:00</published><updated>2009-12-12T20:02:54.602+05:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-12T20:02:54.602+05:00</app:edited><title>Cloning with Mercurial behind  a proxy</title><content type="html">To clone a remote repository using mercurial, use the following command:&lt;br /&gt;&lt;br /&gt;$hg --config http_proxy.host=yourHttpProxy:Port clone https://remoterepo directory&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5146139059435773394-5456517062689524254?l=mshuaibkhan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://mshuaibkhan.blogspot.com/feeds/5456517062689524254/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=5146139059435773394&amp;postID=5456517062689524254" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5456517062689524254?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/5146139059435773394/posts/default/5456517062689524254?v=2" /><link rel="alternate" type="text/html" href="http://mshuaibkhan.blogspot.com/2009/12/cloning-with-mercurial-behind-proxy.html" title="Cloning with Mercurial behind  a proxy" /><author><name>M. Shuaib Khan</name><uri>http://www.blogger.com/profile/16461889635884684325</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="04569124294311366034" /></author><thr:total>0</thr:total></entry></feed>

