Archive - Apr 2008

Date

April 29th

violated

you look nice
there seems to be a glow i cannot place
i dont want to know how your weekend went
or what they did to you
but you seem more full of life
you feel… different
touching you was easier on the fingers before
i’m not sure if i like it this way
or if i will get used to this
but i am happy you’re better and with me now
i was worried i’d lost you entirely
i’m just glad you were covered under AppleCare.

| |

April 28th

linked list

April 24th

Recursive Food

From Everything2:

A CS professor once explained recursion as follows

A child couldn’t sleep, so her mother told her a story about a little frog,
who couldn’t sleep, so the frog’s mother told her a story about a little bear,
who couldn’t sleep, so the bear’s mother told her a story about a little weasel…
who fell asleep.
…and the little bear fell asleep;
…and the little frog fell asleep;
…and the child fell asleep.

It goes on to explain fractals as:

A mathematical figure that is self-similar; that is, as you zoom into it, you will see the same pattern repeated over and over again.

I should point out to all my non-geeky readers that recursions and fractals are an important part of computer science culture. We used to sign up for programming competitions in high school / undergrad as Recursive Nightmare(where a guy has a dream in a dream in a dream in a dream… stack overflow, head explodes!), and I’ve seen text books where the index contains jokes like “Recursion……. see recursion”.

Obviously, such intriguing contexts have to be applied outside computer science, and what better place to try this out than the wonderful world of food? Here’s presenting the wild world of recursive food!

We first start with an extreme version of the Terducken. The Terducken is an extreme Thanksgiving dish, “consisting of a partially de-boned turkey stuffed with a de-boned duck, which itself is stuffed with a small de-boned chicken”. Anne Petch, of Heal Farm in Kings Nympton, UK took this a few steps further, making a mind-boggling twelve bird variant of this; “turkey on the outside, goose, chicken, pheasant, three ducks, poussin, guinea fowl, partridge, pigeon squab and quail.”

The next bite of awesomeness comes from the awesome folks at Evil Mad Scientist, who created Fractal cookies:

Our final bit of awesomeness is… The Fractal Pizza!:

The fractal pizza is made by first making a bunch of small, itty bitty sized pizzas. These are then used as the topping for a larger set of pizzas. These pizzas are then used as the topping for the final big pizza, the recursive monster pictured above.

So, what fractal food can you think up?

| |

April 23rd

Web 2.0 and the relational database

Yes, this is yet another rant about how people incorrectly dismiss state-of-art databases. (Famous people have done it, why shouldn’t I?) It’s amazing how much the Web 2.0 crowd abhors relational databases. Some people have declared real SQL-based databases dead, while some have proclaimed them to be as not cool any more. Amazon’s SimpleDB, Google’s BigTable and Apache’s CouchDB are trendy, bloggable ideas that to be honest, are ideal for very specific, specialized scenarios. Most of the other use cases, and that comprises 95 out of a 100 web startups can do just fine with a memcached + Postgres setup, but there seems to be a constant attitude of “nooooo if we don’t write our code like google they will never buy us…!” that just doesn’t seem to go away, spreading like a malignant cancer throughout the web development community. The constant argument is “scaling to thousands of machines”, and “machines are cheap”. What about the argument “I just spent an entire day implementing the equivalent of a join and group by using my glorified key-value-pair library”? And what about the mantra “smaller code that does more”?

Jon Holland (who shares his name with the father of genetic algorithms) performs a simple analysis which points out a probable cause: People are just too stupid to properly use declarative query languages, and hence would rather roll their own reinvention of the data management wheel, congratulating themselves on having solved the “scaling” problem because their code is ten times simpler. It’s also a hundred times less useful, but that fact is quickly shoved under the rug.

It’s not that all Web-related / Open Source code is terrible. If you look at Drupal code, you’ll notice the amount of sane coding that goes on inside the system. JOINs used where needed, caching / throttling assumed as part of core, and the schema allows for flexibility to do fun stuff. (Not to say I don’t have a bone to pick with Drupal core devs; the whole “views” and “workflow” ideas are soon going to snowball into the reinvention of Postgres’s ADTs; all written in PHP running on top of a database layer abstracted Postgres setup.)

If Drupal can do this, why can’t everyone else? Dear Web 2.0, I have a humble request. Pick up the Cow book if you have access to a library, or attend a database course in your school. I don’t care if you use an RDBMS after that, but at least you’ll reinvent the whole thing in a proper way.

April 21st

The Dalai Lama visits Ann Arbor

Tenzin Gyatso, Nobel Peace Prize Winner and the 14th Dalai Lama delivered the annual Peter M. Wege Lecture on Sustainability at the Crisler Arena last Saturday. This was his second trip to Ann Arbor, the last one was in 1994.

I was woken by a phone call from Akash, informing me that he had an extra ticket to the Dalai Lama show, and wanted to know if I was interested in coming. I jumped at the offer, it is always fun to see famous people. Given that these tickets were extremely rare and were selling at absurd amounts of money on Craigslist; I’m not sure if I should be grateful to Akash or rebuke him for his choice of ticket recipient.

Walking to the Crisler Arena was fun; throngs of people dressed in their hippiest — for some reason Bob Marley t-shirts, flowing handloom skirt and jute sandals were appropriate fashion decisions for a lot of people that day. It reminded me of the Harry Potter book releases; I saw a middle aged woman with short white hair walk by me wearing the maroon and orange monk clothing that the Dalai Lama always wears. I find it quite amusing how rastafarianism, sprituality, liberalism and fantasy are seem to occupy the same space in the brain of some people, entwined into a singular non-conformist happy-thought.

In stark contrast to this crowd were the slowly growing crowds of the Chinese protesters, conspicuously dressed in “Keep Olympics 2008 out of politics” t-shirts. Considering the huge furore over Tibetan and human rights protesters sabotaging almost every Olympic Torch rally, I had expected this. Many of them had tickets and made a concerted effort to be as visible as possible during the event, the rest were outside holding signs that said STOP LYING, driving around the arena with the Chinese flag flown as a mark of solidarity. The message was clear — as a friend’s Facebook status read, “Tibet was, is and always will be a part of Mainland China”.

The arena was packed; and the event started with a group of flautists playing random “spiritual sounding” tunes; which was nice, except that if I recall correctly, one of their tracks was the background score of some Indian-esque movie I can’t put my finger on, while another was a film song depicting a rather pubescent Sunil Shetty crooning over the delicious Shilpa Shetty. But hey, whatever gets you in the mood.

We then had some words by the head of the host-department and the President of the University Mary Sue Coleman, who then invited the Dalai Lama to talk.

So, what did I think of the speech? A lot of people asked me if this was a life-changing experience for me and whether I was moved by the greatness of the man and his words. To be honest, what really impressed me was not His Holiness’s words; but, wrong or right, the solidarity shown by the Chinese people to defend their country’s image against the Free Tibet media machine.

For those interested in watching the speech, here’s the video of the event:

image credits: IShutterTothink, alexander, heathzib and MLive.

update: Old friend Anita has some interesting commentary from the other side of the planet.

April 18th

being joe black

A quote from the movie Meet Joe Black:

So tell me Joe… How come a man as attractive, intelligent, well-spoken… diffident in the most seductive way, and yet… powerful… is all alone in this world?

…well what can I say, it’s a hard life!

| |

April 17th

When will they ever learn...

Facebook just launched a new Google Trends-esque toy called Lexicon:

Today we’re announcing the launch of Facebook Lexicon, a tool where you can see the buzz surrounding different words and phrases on Facebook Walls. Lexicon pulls from the wealth of data on Facebook without collecting any personal information in order to respect everyone’s privacy.

Basically they look at what everyone types on their walls, and then reports popularity across time. Here’s a graph of the phrases “party tonight” vs “hangover”. This is probably the funniest phase shift I have seen in 2 dimensions.

| |

April 8th

aural voyeurism

Muxtape is “a simple way to create and share mp3 mixtapes”. Reminds me of Webjay.

Mixtapes are public, and it’s interesting to look into people’s collections and stumble upon some rather wonderful pieces of music (this has a cost though; some of the japanese midi electronica was jarring).

| |

April 2nd

The Fuzzy Threshold Problem

this one is for all you Cake fans

| |

April 1st

April Fools!

This April Fools’ day, certain perpetrators took upon the task of magically changing YY’s desk into a silvery workspace. Everything, from the LCD screen to the pens, books, and even slippers were “foiled”. Here are some before and after pics:

| |