New blog

I've moved to a new blog: http://www.bytehood.com

Moving to a new domain

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.

Startups Insider Session

P@SHA and SEECS 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:Faizan Buzdar, CEO, ScrybeOwais Anjum, CEO, Numetrics

Shortest code to find GCD of two numbers

Here is the shortest line of code that will get you the GCD of two numbers, i.e. large and small.int x, y, z;for(x=large,y=small;z=x%y;x=y,y=z);That's it, "x" is your GCD. It uses Euclid's algorithm to find it.

Ease of Python, speed of C...?

No I don't have the tool with that property to show you here. ;)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 ...

iPhone-Dev: Multiple Font Styles on a single UILabel

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.

Mac OS X on Dell Inspiron 6400

I wrote about my effort to install Mac OS X on my Dell Inspiron 6400 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 Kalyway, and Snow Leopard from the retail DVD. But I wasn't even remotely satisfied with the setup.

Conan O'Brien's Commencement Speech At Harvard

Just listen to it, and learn. Or laugh. Or do both.