Wednesday, June 13, 2007

Spring cleaning

Although spring has passed and summer is here, I thought it might be a good idea to begin doing some spring cleaning in my draft posts.
Typically I get a gazillion ideas for posts I want to make and I instantly begin writing them, but pretty quickly I get another new idea that I'd rather post, resulting in a lot of half-finished draft-posts.
Through the next couple of days I'm going to do some cleanup - probably post some drafts and delete some others - so have patience if you thing it's old-news I'm posting.

Surfing Linkedin

I just had a brief surf through my linkedin contacts and I saw that my good friend Mats Hellström from EPiServer has joined the blogging sphere way back in march.
Welcome, Mats - I hope to see more postings soon!

Check out Mats' blog here.

Friday, June 8, 2007

ShotCode - Let's reinvent barcodes!


About a year and a half ago I was amazed at some of the new java applications for cameraphones I saw at the NeXT conference, among others were a reinvention of barcodes where the idea was that if a special 2d barcode was put on a poster, everybody with a cameraphone could scan it and get someinformation contained in the barcode, typically an ID number which an online service could translate to a URL or something else meaningful.
Of course I hurried home, downloaded the software and tried, but it almost never worked as it should so I gave up.

Today I found another similar service that actually seems to work quite well. And on top of storing your urls in a smart looking circular barcode they even offer to convert the webpage to a format more suitable for the phone that requests it (admitted, that specific part of their service doesn't seem to work too well, but anyway).

I saw the service in use at getjar.com - my favourity source for java apps for my nokia 6380 and there it worked quite impressive...Just start the shotcode application on the phone, take a picture of the barcode on the screen and begin downloading the java-application. Then I checked out Shotcode.com and after a quick registration I found it quite easy to create my own shotcodes....Now I suppose I'll just sit back and wait until this becomes an industry standard so everybody has it on their phones!

Sunday, June 3, 2007

The Meaning of Life

If I were a religious man I might believe that there's one truth in this world, known only to God (and perhaps Knuth also figured it out, but I digress).
If there really was such a one single truth, it should be possible (although perhaps not economical) to let a computer figure out what it is.
Someone once said that if you fill a room with monkey's and typewriters and give it enough time (and bananas!), eventually they will have written the collected works of shakespeare - I suppose this is the idea behind any brute force algorithm (although some might argue that given enough time the monkeys will have evolved into Shakespeare, but again I digress).
But it must be possible to speed up such a process....What if I custom-built the typewriters so they could only write real words that shakespeare used? And what if I had the almighty inspire the monkeys to which words should come in sequence? Perhaps I could shorten down the production time of my shakespeare - or the meaning of life...
So, eager to learn the true meaning of life (okay, who said "42" ?? shut up!) I devised the following plan:

  1. Gather a collection of quotes from some of the most clever men I can think of (e.g. Einstein, Decartes, Voltaire, Vonnegut & Twain).
  2. Calculate a Markov Chain over the bigrams in their sentences
  3. Fill in Divine interaction (in the shape of a random generator)
  4. Start to generate the meaning of life as random quotes

Now, the only problem I face is to determine when my generator actually comes across the meaning of life.... Good proposals can be posted here!



My "Meaning of Life" Random Quote Generator.

If you want to have a "quote of the day" on your website, feel free to use this javascript:

<SCRIPT TYPE="text/javascript"
SRC="http://www.mizar.dk/QuoteGenerator/Javascript.aspx">
</
SCRIPT>