Realtime connections between web servers and web browsers

In the early days of the web, web pages were very static in content, once the page was loaded nothing on the page would change until you reloaded it. Then came Ajax and allowed us to do partial reloads of the page. During the last few years the web has evolved even more. Today you […]

Read more Realtime connections between web servers and web browsers

Javascript on the server side

For the last decade javascript has been a language that has almost exclusively been run on the client side, in the web browser. But during the past year it seems like Javascript has found its way to the server side as well, to the joy of some developers while others wrinkle their nose and wonders […]

Read more Javascript on the server side

Reference types are always passed by value in C#

Last week i had a discussion with a friend about C# and passing parameters to methods. My friend asked why it is possible to use the ‘ref’ keyword for a reference type in C# when passing it to a method, he was under the impression that reference types are passed by reference to methods. This […]

Read more Reference types are always passed by value in C#

A simple image sprite generator in C#

Last week I posted the source code to a small program I wrote in Java to merge images into a sprite. This week I present the same application but in C#, pretty much translated line by line 🙂 using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; namespace NSpriteGenerator { class Program { static […]

Read more A simple image sprite generator in C#

Nginx: Protecting a folder using htaccess

First we need to install the htpasswd application, it is located in the apache2-utils package. This package has no dependencies on apache, so it is safe to install it – it will not download the full apache for you 🙂 To install it on ubuntu type: sudo apt-get install apache2-utils Once installed we can use […]

Read more Nginx: Protecting a folder using htaccess

A simple image sprite generator in Java

For some time I have been playing around with writing games for Android. The game loads the graphics in form of image sprites, so I needed a way to easily stick several png images into one image. I though there would be tons of free applications available for this purpose, but I didn’t find any, […]

Read more A simple image sprite generator in Java

AppHarbor – Heroku for .NET?

I have been reading about this new startup that offers a service called AppHarbor. It seems very much as the same idea as Heroku for Ruby, but for .NET. The basic idea is that you deploy your code by pushing your code onto the server using Git, the server then builds, runs unit tests and […]

Read more AppHarbor – Heroku for .NET?

Comparing every version of Internet Explorer

A few weeks ago I posted a video where Windows was upgraded all the way from Windows 1.0 to Windows 7. This week I found a video of a guy who compared all versions of Internet Explorer, from version 1 to the recently released version 9. Quite hillarious to see that IE5 actually scored better […]

Read more Comparing every version of Internet Explorer

MVC 3 RTM Install Error (after upgrading to VS2010 SP1)

Yesterday I installed Visual Studio 2010 SP1 on my home computer. After the installation I wanted to upgrade MVC3 to the RTM version (I had the RC version installed), so i uninstalled the RC and downloaded the new version. The installation came half way, then stopped, in the log file i found this: Installation failed […]

Read more MVC 3 RTM Install Error (after upgrading to VS2010 SP1)

The must have tools for C# development

Visual Studio 2010 I don’t think Visual Studio needs an introduction. VS 2010 brought us .NET 4.0 that contains a lot of new goodies! ReSharper ReSharper is the absolut must have for Visual Studio. It provides very improved navigation and search, refactoring, code generation, code cleanup and unit testing. I have gotten so used to […]

Read more The must have tools for C# development

Older posts
Newer posts