Wednesday, February 10, 2010

Dumb mistake

So I made a rookie mistale today and it took me a while to figure it out. I copied a code snippet form one ASP.NET page to another and got myself into trouble. I should know better than to copy and paste code. :)


I had the following code in my page, and I couldn't figure out why I was getting a stack overflow problem.


protected void Page_Load(object sender, EventArgs e)
{
base.OnLoad(e);
//Other code
}


for those who don't quite see the error, the call to the base class causes another call to the Page_Load method in this class and recursion that never ends is ensured.

What I meant to have is:

protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
//Other code
}

It's good to make a dumb mistake once in a while, keeps me from thinking too much of myself. :)

Friday, February 05, 2010

Autotune yourself

A site went live not that long ago that I helped create, and while it is a silly site I am quite proud of the technological achievement it is. Let's just say that I really came trough for my client on this one.

The site is to be found at www.u-tune.nl and allows people to karaoke sing. The achievement here is that the vocals are then transformed using Autotune and after being merged with the music are played back to the user. As far as I know this is the first instance of Autotune being used on the web, it is intended to be a studio tool with a human configuring it. We really took the AUTO part of it seriously. :)

The project was one of the most challenging but also one of the most fun projects I have done lately.