Friendly URLs in ASP.NET using URLRewriter.NET

I was having a chat the other day with Danish Peter (yes, another one) about URL rewrites in ASP.NET. In a previous post I wrote about how to use friendly URLs in the Zend framework, in this post, which is based on our discussion, I will discuss how to do this in ASP.NET. Friendly URLs […]

Read more Friendly URLs in ASP.NET using URLRewriter.NET

Functional programming in C# 3.0 and LINQ

I first learned about functional programming a few years ago when I took a class in Haskell programming at my university, Chalmers. While Haskell might not be for everyday use, many of the concepts are very compelling, such as higher order functions, pattern matching, lazy evaluation, list comprehensions, lambda functions and map/fold/filter. Over the years […]

Read more Functional programming in C# 3.0 and LINQ

Clearing a form in ASP.NET

You would think that ASP.NET would have build in support for something so simple as clearing all input fields on a page, but no. However, this easy to add. Add the following to your Page_Load (btnClear should be the name of your clear button): btnClear.Attributes.Add(“onClick”, “document.forms[0].reset();return false;”);

Read more Clearing a form in ASP.NET

An update on the mono memory issue

The workaround I tested a few weeks ago did not really solve my problem – actually it made it worse. The autorestart caused mono to hang and not restart at all, so my site stopped responding every 6th hour. I quickly had to disable this. Still I had the memory consumption problems. From various sources […]

Read more An update on the mono memory issue

mod-mono-server2 memory consumption problems

Lately I have been experiencing that the mod-mono-server2 process running on the server hosting the video upload web-service (I blogged about this in my last post) has been consuming a lot of memory. Once, it even reached the point where all memory (1.5GB) of the server was consumed and the Linux OOM-killer killed the mod-mono-server2 […]

Read more mod-mono-server2 memory consumption problems

Building a distributed web service using Amazon Web Services

A few months ago my employer asked me if it would be possible to create a web service for encoding videos. I had been playing around with Amazon’s web services for a while, and it seemed like the perfect foundation for building this. I decided to build the backend in Python and use ffmpeg for […]

Read more Building a distributed web service using Amazon Web Services

Newer posts