What a wanderer could wonder about...

Tuesday, May 08, 2007

Blogging with LaTeX

A cool tool for using the power of while blogging. It works like a charm, you just need to install the Greasemonkey's add-on for firefox and then install the LaTeX for Blogger script. (For more details, check the instructions provided by the author of the script).

Then you can simply write
$$e = \lim_{n\to\infty}\left(1 + \frac{1}{n}\right)^n$$
or
$$e = \sum_{n=0}^\infty \frac{1}{n\fact} = \frac{1}{0\fact} + \frac{1}{1\fact} + \frac{1}{2\fact} + \ldots$$

and get

or


Published on your blog :D
(As ashamed as I am, I'm illiterate in , so I might have written the formula not the best way possible, I just put it here as a proof of concept.)
--
By the way, recently I'm just fascinated by the constant e. It keeps popping up in the proofs for correctness and convergence of randomized gossip algorithms we study these days. I really regret why I didn't pay enough attention in the math classes, I wished I could free up some time and go back and study some real analysis and some linear algebra. Also some more graph theory... if I could I might have considered changing my field and go study math....

Another by the way! I'm buried (as usual) with my course work and my move to Switzerland (effective from September 2007) has added more complications to the situation, so you shouldn't expect this blog to be updated regularly for some time. Thanks for your understanding! :D

Tuesday, April 24, 2007

Can't walk!

Why run, until you can't walk?

Friday, April 13, 2007

Stay Hungry, Stay Foolish

Steve Jobs has given a commencement speech at Stanford College for 2005 graduates. It is quite moving and inspiring. (You can watch it on YouTube or read the speech here. For those friends who don't have access to youtube, the audio and video are available but you need to have iTunes, I'm not sure if it works with other podcast softwares)

"Again, you can't connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future. You have to trust in something — your gut, destiny, life, karma, whatever."

"Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle."

"No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true."

"Your time is limited, so don't waste it living someone else's life, don't let the noise of others' opinions drown out your own inner voice."

I have listened to it over and over and each time at the end, I felt a vacuum inside, kind of upset with myself for why don't I have the courage to "Stay Hungry, Stay Foolish".

Tuesday, April 10, 2007

And so is celebrated the birthday of the great ones

Today I came by a Birthday Tributes Speech by Herbert Wilf given on Donald Knuth's birthday in 2002. I quote some parts of the first half of the speech where he pulls Knuth's leg a little bit for his emphasis (obsession/passion?) on using correct notation and correct typesetting.

" [...]
Don is one of the great communicators of the twentieth, and we all wish for him, the twenty-first centuries. Actually, that depends a little bit on which endpoint of the vector of communication Don is sitting at. If he is at the initial vertex of that arrow, he is supreme. His papers, books, web site, and other writings and talks, are brilliantly original, and crystal clear. All of us, very much including yours truly, have learned a lot about clarity of scientific communication from his example.

On the other hand - if Don is sitting at the terminal vertex of the arrow of communication, life is a bit different. You have to do a lot of things right in order to get your thoughts through to him.

First, abandon e-mail, all ye who seek to enter here. [...] So you take the hint, and after writing 37 e-mail messages to various addresses that you thought might have gotten through to him, you decide on written communication. Of course, since you are about to write to the creator of TEX, you are not about to write in Microsoft Word, are you? Of course not. To show your respect for your addressee and his creations, you will write in TEX, and so you do. You spend a great deal of effort to get it to look pretty, and you send it off. Let's say that you're writing in order to describe a proof that P = NP which you've recently found. Unbeknownst to you, your letter will be placed on a stack that already has 5,379 letters that reached him before yours did, and which are waiting while he completes his latest additions to 47 new manuscripts and 311 revisions of already existing books. But one day, probably in the same year, your moment will come. He'll read your letter and give you his reply. You eagerly tear open the envelope that reaches you, and what you find inside is your own letter to him, on which he will have pencilled a number of pithy comments on your theorem. Really insightful comments, that make you pleased to have gotten the benefit of Don's knowledge and brilliance. For example, "It's best to use a backslash comma here, in order to get exactly .073 ems of space," or, "the backslash mathchardef doesn't belong here; see page 397 of the TEXBook for a better way," etc. [...]

You take a clue from Don's reply, which was a pencilled scrawl on your original message. That's it! You'll sit down and write, by hand, in pen and ink, on fine paper, the whole P = NP proof. Then, at least, you'll be past the TEX barrier and into real mathematical give-and-take. And so you do. [...]

Breathlessly you tear open the envelope once more, and again you read the now-familiar pencilled scrawl, this time wrapped around the words of your elegant handwritten letter. In one place it says "Good grief! The Euler numbers of the fourth kind cannot be denoted by E(n, k)! That notation went out in 1642 in the writings of Fermat, and since then everybody should be using the triple parentheses with the n upstairs and the k downstairs." [...]

I could go on with a description of the complete Inbound Communication Algorithm, but I won't because there's a better way. The Collected Works of Monty Python's Flying Circus are well known to have the property, shared only by the Bible, by the works of Shakespeare, and by The Art of Computer Programming, that whatever it is that you would like to say, they have already said it, and in a more interesting way than you would have. So let me show you a video of the Monty Python group doing the Police Station skit, which summarizes such communication problems as I have been describing, [...]"

It is quite a fascinating speech. He actually shows a Monty Python Video in the middle of his speech (you can find the part he is referring to here) and he concludes his talk by giving Don Knuth his birthday present, a Theorem in the subject of combinatorial
sequences! I just envy such a life, it is my utopian dream to receive a theorem as a birthday gift.

Saturday, March 31, 2007

Forever Hand in Hand

Windmill, Windmill for the land,
Turn forever hand in hand,
Take it all in on your stride,
It is ticking, falling down,
Love forever love is free,
Let's turn forever you and me,
Windmill, windmill for the land,
Is everybody in?

--Gorillaz / Feel Good Inc.
(source)

Forever Hand in Hand

Web 2.0 ... The Machine is Us/ing Us

There is this group called Digital Ethnography working under the supervision of Michael Wesch at Kansas State University. They have produced this fantastice piece of video called Web 2.0 ... The Machine is Us/ing Us. It is worth seeing.

You can see it on YouTube, or you can download it from here (WMV, 55MB).

Friday, March 23, 2007

Haft-Sin at KTH



Do you recognize the Sabze in the picture? It is the very lentil sprout dish I had posted the photos before! :)

Happy New Year!

Monday, March 19, 2007

The walls

"Sometimes you put walls up not to keep people out, but to see who cares enough to break them down."

Saturday, March 17, 2007

Run Run... or Stand and Stare!

This Run Run... post seems to have been quite controvercial! I can't say I totally agree with what I quoted there, but I found it an intriguing way of thinking about the whole race of life thing (which indeed was!).

Anyway, among the comments was:

"Life is a marathon, not a sprint! And sometimes you need to stay a while and look around carefully. ...".


It is so true, but I don't know why I have this tendency to forget it from time to time! It reminded me of this beautiful poem by W. H. Davis:

Leisure

What is this life if, full of care,
We have no time to stand and stare?
No time to stand beneath the boughs
And stare as long as sheep and cows
No time to see, when woods we pass,
Where squirrels hide their nuts in grass.
No time to see, in broad daylight
Streams full of stars, like skies at night.
No time to turn at Beauty's glance,
And watch her feet, how they can dance.
No time to wait till her mouth can
Enrich that smile her eyes began.
A poor life this if, full of care,
We have no time to stand and stare.

Monday, March 12, 2007

Die Deutschen und die Arbeit

These are some common German sayings:

"Arbeite nur, die Freude kommt von selbst." (Work only, the joy comes automatically.)
"Ohne Arbeit früh bis spät kann dir nichts geraten. Neid sieht nur das Blumenbeet, aber nicht den Spaten." (Without work early until late nothing can turn out for you. Envy sees only the flower patch, but not the spade.)

Lately, I've been trying to to follow this model. Yet "Arbeit ist das halbe Leben!". So, I'm living a half life!

Saturday, March 10, 2007

The Sprout




Tuesday, March 06, 2007

Run run Rudolph, Reeling like a merry-go-round

Every morning in Africa, a gazelle awakens knowing that it must run faster than the fastest lion in order to survive. Every morning a lion awakens knowing that it must run faster than the slowest gazelle in order to survive.

It makes no difference whether you are a lion or a gazelle. When the sun rises, you must run or you will die. This is the race of life...