Tuesday, January 31, 2006

summer of '69 in karachi

Bryan Adams was in Karachi on the 29th


BA in action © reuters

A couple of people I know went there and had a hell of a good time, Adams supposedly knows how to rock a crowd

Of course, professional musicians like Adams know that lip-synching is considered a boo-boo among civilized societies - if only someone would tell those goons on Pakistani TV

Karachi is a much maligned city, and cricket matches there are usually called off by visiting teams, on account of security so it was a nice surprise to see a top music star coming over to perform - Karachi maybe has less of a security problem than London did at the time of the IRA bombings but unfortunately it's bad image has refused to go away

good books


This C&H comic says it all - when looking for a good book to read, people look at the reviews on the jacket, find out if the autor is famous, has been interviewed on TV etc. when the word of mouth is the best advice

After I had finished all the Enid Blyton books I could find in my childhood, I started reading authors for "older" people like Agatha Christie, Jeffery Archer, Michael Crichton and god forgive me, even Sidney Sheldon - other than Christie, most of the books were crap, where all the books followed the same pattern: have a handsome hero and a drop-dead gorgeous, techie heroin, a devious, secretive, well-connected villian; run their stories in alternate chapters, end each chapter with either a "and his head was reeling when he realized...." or "she screamed when she saw that...." ; and force the reader, through these cheap tactics to turn pages. When the novel ends, the reader thinks he has read a good book, only a couple of days later he realizes what shallow nonsense he has wasted his time on

So I decided to see what the great thing was about all books people called the classics and started reading the freely available books available online at gutenberg (many of the classics listed here can be found for free online, since their copyright has expired). And some of those books were definitely one of the best I had ever read

Below is my list of Must Read books followed by a list of Close To Must Read books, in no particular order:

1. Catch-22 by Joseph Heller - this book is probably the darkest and funniest book I have ever read - it was intitially rejected by many publishers because it was written in a very wacky way - as one review said "it gives the impression of having been shouted onto paper.”"

2. The Alchemist by Paulo Coelho - a very good read, encourages you to follow your dreams etc. I would not suggest reading the rest of his books, his The Devil and Miss Prym was excreble - the problem with some writers including Douglas Adams (more about him below) is that they manage to write with some restraint in their first novel and after it's a huge success, they manage to divulge all their crazier, unpalatable, story-wrecking ideas in their following books

3. Cakes and Ale by Somerset Maugham - Maugham was an MD by profession, who turned to writing after the success of his first novel, Liza of Lambeth, which came out of observing how the poor lived in pre-WWII England - his philosophy towards life is the sopposite of Coelho's above, he warns people not to go into the arts unless they are absolutely sure they are extra-ordinary, otherwise an ordinary arist is almost a failure. All his books are very readable including the collections of Short Stories (in his Ant and the Grasshopper short story, the grasshopper wins :), Of Human Bondage and many others

4. The King's General by Daphne du Maurier - du Maurier belonged to an aristocratic family of Cornwall, in England and most of her stories centered around this area. She also wrote "The Birds", which was turned into the movie by Hitchcock, only in her story, the birds won - her stories are all fantastic reads, to say the least - other excellent books include The Scapegoat, Rebecca & Frenchman's Creek

5. Ivanhoe by Sir Walter Scott - this is a book full of excellent diatribe, chivalrous knights, a Jewish beauty, Knights Templars, King Richard and even Robin Hood - the best 18th century roller-coaster novel, in my opinion

6. Hitchhiker's Guide to the Galaxy by Douglas Adams - this started as a radio program on BBC in the late 70's and very soon became a cult classic - sequels to HHGG books are pretty useless though

7. Faraway Tree & Wishing Chair Series by Enid Blyton - I am not sure about other older readers but I still enjoy Enid Blyton books, these two series were the best :)

The following books I would recommend highly, although if you miss them, you would not miss a major part of life :)

1. Candide by Voltaire - the story of a young, naive man and his mentor - a classic

2. Don Quixote by Miguel de Cervantes - pretty lengthy but very, very readable

3. Pride and Prejudice by Jane Austin - forget the crappy movie made by holly/bollywood - read the real, unabridged novel - I must have read it 10-12 times by now

4. Harry Potter by JKR - I really mean this one, no subconscious media pressure :)

5. First Among Equals by Jeffrey Archer - by the end of the novel, you will have a very good idea of how the British parliamentry system works, very informative if you live in a country that is democracy-lite at the best of times and have no idea how civilzed countries run their political systems

6. Angels & Demons and Da Vinci Code by Dan Brown - I found the first one infinitely better, the other Dan Brown novels stink to high heaven though

All classics are not good reads though, Jane Austin's Emma was pretty boring and so was Madame Bovary - James Joyce's Ulysses was a torture to read, I guess you need more patience (and a degree in literature) to understand someone like him

One book that I would like to read ASAP is Anna Karenina....

Monday, January 30, 2006

the office

The Office is a sitcom from BBC - it ran for six seasons and it's one of my all-time faves

The program centered around David Brent, who is the manager from hell - he thinks he is very articulate, politically correct etc. but is the exact opposite, reminds me of a manager of mine - Gervais, who plays Brent is also the show's writer/creator

Many of the series clips can be seen here, Brent's are the funniest

In this clip, David is accused of being racist so he decides to make disprove it

Thursday, January 26, 2006

luv in india

Posting this due to popular demand


This was captured during the Pakistan-India Cricket Series 2004. Zaheer Khan is an Indian bowler

Wednesday, January 25, 2006

b&w to color

Found this really cool app, recolored - it let's you take black & white photos and change them to color with a small amount of input - you specify which gray areas should take which color and it handles it all, including highlights and specular spots

It is available for download here

The series of the pics on the main page are pretty straightforward. I managed to "colorize" a Marilyn Monroe pic, it turned OK, not too bad - I guess you need a fair amount of practice and some knowledge of photograph colors will be of help

Unfortunately, the intermediary picture which generated the colored one was lost, much as I hate to post incomplete works - Murphy was definitely around today...

Some tips, keep this in mind while working, also do look at this very useful tutorial

a. thickness of the stroke does not matter
b. start with marking out main areas, like clothes and background
c. follow up by fixing areas where color bleeds in
d. test out color dropper, pen, eraser & color replacer, all 4 tools - to change hue, dbl-click color swatch

Another attempt, notice the color bleed around the knees, this can be fixed by putting the correct color stroke where the bleed occured

Tuesday, January 24, 2006

hyperscore

I have been playing around with HyperScore for a few days, spending a few minutes each time, trying to make sense out of it


The application is driven out of a PhD project of an MIT Media Lab student. It's purpose is to help kids (and musically ignorant adults) to create music in an intuitive manner. Download it here

It lets you create MIDI files which can be emailed to mobile devices (in the US) for a small fee - you cannot make an MP3 out of it, that might be available in the paid version - however, if you are using WinXP, there is hack to do it - I wrote about it in a previous post

Hyperscore lets a user write music by painting squiggly (or straight) lines to denote music thingies like motifs & harmony - while painting in the Melody window tool (see the tut for details), you can select a variety of instruments from drums to flute to electric guitar

It's pretty confusing if, like me, you don't know a motif from a score - but this tutorial helps you make sense of it

The Hyperscore forums www.h-lounge.com lists users' tones - it also has a web-based player so you can sample the sounds without downloading the composition files

indian blogger in lahore


An Indian blogger managed to do what I could not, living in Pakistan - photographing Lahore - he visited the historic city as part of a TV news team and wrote about meeting the drum beating dervishes and cringing at the sight of stripped chickens

It's funny at times - if you are Lahore fan or just someone who would like to know how an Indian sees Pakistan, do read it... the article and pics on Cooco's cafe are particularly nice


Every Thursday afternoon, qawwali singers from around Pakistan gather at the shrine of Data Ganj Bakhsh Hajveri to perform. Nusrat Fateh Ali Khan has performed here, and it is said to be quite an experience...... The dynamics within each group were fascinating: if one guy had energy and fire in his singing, another had a soothing voice – they would harmonise, play off each other, and move into impassioned choruses.

It's a wonder that the men in Pakistan are so big and the autos[rickshaws] are so small," remarked my friend and colleague Dileep Premachandran as we walked the streets of Lahore.

The roads are conducive to this speed. Everywhere in Lahore we have seen wide, smooth roads -- with no garbage anywhere to be seen, unless we are in a self-deprecatory mood. Last night, when we got in, we were stunned by the lights of Lahore

Friday, January 20, 2006

quotes about programming langs

  • There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
  • It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter. (Nathaniel S Borenstein)
  • [The BLINK tag in HTML] was a joke, okay? If we thought it would actually be used, we wouldn't have written it! (Mark Andreessen)
  • First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. (George Carrette)
  • If buffer overflows are ever controlled, it won't be due to mere crashes, but due to their making systems vulnerable to hackers. Software crashes due to mere incompetence apparently don't raise any eyebrows, because no one wants to fault the incompetent programmer and his incompetent boss. (Henry Baker)
  • Classes struggle, some classes triumph, others are eliminated. (Mao Zedong)
More here

one does not simply...



stumbled upon this gif - must appeal to LOTR fans... (please note this is a 1.4 MB file)

Tuesday, January 17, 2006

professor walter lewin demos physics 101

[Update: Pakistan's HEC is now mirroring MIT OCW here]


If you have ever wondered if the period of a pendulum is independent of the mass hanging from it, see this video available on Physics MIT's OCW page

See the last 5 minutes of the Lecture 11 video as professor walter lewin demonstrates a basic principle of physics

christmas lights

This is amazing....

Carson Williams, 40, spent nearly two months hooking up 25,000 lights, programing them to flash to Christmas music. Hundreds of cars drove by his house north of Cincinnati. The music was broadcast through a low FM transmitter, so that passers-by could pick it up on their car radios and the music wouldn't be played through the neighborhood.

Now the Cincinnati Zoo & Botanical Gardens is courting Williams to set up a Christmas display later this year.

"We have a long history of bringing in new entertainment. His would rank right up there as one of the best shows," zoo spokesman Chad Yelton said.

link to news

time for some satire

please note that both these websites have some off-color humor, do not go there if don't like such humor

the onion and satirewire are two of the best satire sites on the net - the latter is disontinued though and only the archives of the former are funny anymore now though but I found a couple of "news" too funny to pass up

ESPN Courts Female Viewers With World's Emotionally Strongest Man Competition


"The hour-long weekly show, which will run opposite ABC's Monday Night Football, features an international cast of powerfully caring, emotionally resilient, deeply sensitive men pushing themselves and each other...."

"Other strong overall performances were turned in by Martin "There, There" Richards, a graphic designer who remembered to make his wife's beloved tapioca pudding on the anniversary—not of their marriage—but of their first date; Garth "The Embrace" Josephsen, who maintained some form of reassuring but undemanding physical contact with his fiancée for nine consecutive hours...."

(ow, ow, ow, even reading this stuff makes my head and stomach hurt)

TORMENTED BY NEW U.N. CLASSMATES, SWITZERLAND ALREADY WANTS TO GO HOME

("The Swiss voted Sunday to join the United Nations, moving their country warily but decisively closer to the international community after centuries of neutrality and independence." — L.A. Times, March 4, 2002)

"According to U.N. school nurse Martha Kelly, the Swiss ambassador to the U.N. has visited her office no less than three times in the past 24 hours, twice complaining of a stomach ache, and once sporting a pair of black eyes."

"This isn't a community of nations, it's a zoo," said the Swiss ambassador after a voting bloc of central African nations ran his boxer shorts up a flagpole

"I was talking with Kamalesh Sharma, (India's ambassador to the U.N.), whom I had met on the train," Nordstrom wrote, "when (Chinese Ambassador) Wang comes swaggering up and sneers, 'Hey Switzerland, you're getting off to a bad start, making friends with losers. Maybe I should teach you a lesson.'"

"According to witnesses, moments later Nordmann was punched in the left eye by the Pakistani ambassador, who was upset that the Swiss was talking to an Indian. Nordmann then reportedly asked the Indian ambassador to punch him in the other eye, so as not to appear to be playing favorites."

For some more gems, see the archives of the onion & satirewire

p.s. Snakistan sounds suspiciously like another country I am familiar with....

Monday, January 16, 2006

how to fold a t-shirt in 2 seconds (almost)

I was looking for this video for sometime now - it has to be seen to be believed...

RNGs detect major events

Now this is something totally weird - a Random Number Generator system that detects and sometimes even predicts major cataclysmic events happening around the world. And this is no paranormal mumbo-jumbo experiment conducted by a questionable psychic society.

From wikipedia: Global Consciousness is the idea that there is a collective consciousness in which all individual consciousness participates in, in some ways comparable with an electromagnetic field. There are many hypotheses as to how the field might operate. A project in Princeton University called Global Consciousness Project is created to study it. It was started in 1998 by Roger D. Nelson.

There is a hypothesis that the global consciousness has been getting stronger for the last decade because of communications networks which create more coherence between individual minds around the globe. (about the dot, if you cannot see it properly, you need firefox)

"The Princeton Engineering Anomalies Research (PEAR) studies anomalies arising in human/machine interactions" - much of the stuff here belongs to the exciting :) field of stats so I really cannot make sense of much of it but it's conclusions are pretty exciting nevertheless...

The department was created by a Robert G. Jahn, who, in 1979, was Dean of the School of Engineering and Applied Science at Princeton University.

Their most significant project is the Global Consciousness Project where they have been collecting data from a global network of random event generators since August, 1998. The RNG's are located all over the world from NJ, USA to India to Fiji. "The network has grown to about 65 host sites around the world running custom software that reads the output of physical random number generators and records a 200-bit trial sum once every second, continuously over months and years. The data are transmitted over the internet to a server in Princeton, NJ, USA, where they are archived for later analysis."

The data is collected and graphs are created from the random numbers collected from RNG's around the world - but just before the graph is created, a prediction is made on the shape of the graph - in case of a catastrophe that has affected hundreds of thousands of people physically (earthquake or flood) or mentally (reading in the newspaper or watching on TV), a noticeable spike is seen in the results - the probability of these spikes occuring otherwise is very little, < 0.1% - the people running the show here insist that this shows that the Random Number Generators (RNG) are somehow affected by the consciousness of the people of the world and hence, show a departure from the norm.

Some points in time where a major spike was noticed are listed here (notice the last column, "Z-score statistic for the analysis, and its associated probability" alongwith a description including 9/11, Pak-India cricket series 2004 and the Pakistan eartquake in Oct 2005

See this for a near real-time display of the graph

How this happens and what are the implications, no one is sure of it - this is just too wierd and maybe intangible a science to make any use of it... atleast for now...

Friday, January 13, 2006

firefox screws up & live mk4

Upgraded to Firefox 1.5 (from 1.0.7) and it started actign up, refusing to show embedded Flash movies - after a lot of searching (and many reinstallations/reboots), found the source of the problem, the Adblock extension - in order to make it work, disable tools->adblock->preferences->adblock options->obj-tabs

More details here


One of the first videos I saw after fixing firefox is this hilarious MK spoof

my google video

I uploaded a video to ggl video

It's a 14 minute basic video teaching a beginner in Alias Maya to build a glass tumbler using NURBS and the software's default renderer - I will update this post when the film is online - I encoded it using WMEnc which is probably the easiest way to make a tutorial movie but google asks for MPEG2+MP3 - it may take longer to verify...


(had some problems with capturin video, see this for help if you want to capture screenshots of your video)

Wednesday, January 04, 2006

downloading google videos

found a way to download google videos - thanks to an alumnus of mine

1. select a google video from - http://video.google.com

2. from the menu, select view->source and find /googleplayer.swf?videoUrl= and copy text between videoUrl=" and ">

3. Save this text on your machine with the extension .html (e.g. paste in notepad and save file as "converter.html" - with the quotes)
    <html><input type="input" size="70" id="converter" title="convert"><input type="button" size="70" id="btn" title="convert" onclick="func()"><script language="javascript">function func(){converter.value=unescape(converter.value)}</script></html>
4. Paste the text copied above in the edit box and click convert - copy the text again (which will now contain a correct url and paste it in the location bar - save the file to disk when it prompts)

5. Add .flv to the end of filename and play it using flvplayer

Tuesday, January 03, 2006

i am on tokyo time

im back from my holidays... spent some time in lahore and the rest at home in 'Pindi, with a really bad case of flu...

the following comic reminds me of myself, very much :)


© c&h