Archive for February 2009

Slow IIS on Vista with Firefox, Chrome or Safari

Ever noticed that sites are way slower in Firefox / Safari / Chrome and so on when you try to debug a website localhost on Vista.  Apperently there is some kind of DNS bug caused by IPv6. To fix it in Firefox you can type about:config and look up network.dns.disableIPv6 but this doesn’t fix the [...]

file_get_contents() in asp.net/C#

The URL shortening service http://bit.ly has a really simple and convient API that lets just get a short url like this. http://bit.ly/api?url=http://www.myreallylong.com/url/with/lots?of=crap I’ve used this in a wordpress installation with PHP before and there i could just do. $twitter_url .= file_get_contents(’http://bit.ly/api?url=’ . get_permalink()); Simple and clean. But today i wanted to do the same thing [...]