source code bean

Archive for April, 2011

18 Apr, 2011

A simple image sprite generator in C#

Posted by: Peter In: .NET|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 [...]

18 Apr, 2011

Nginx: Protecting a folder using htaccess

Posted by: Peter In: Linux|Web

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 it [...]

12 Apr, 2011

A simple image sprite generator in Java

Posted by: Peter In: Android|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, [...]

06 Apr, 2011

AppHarbor – Heroku for .NET?

Posted by: Peter In: .NET|C#|Web

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 [...]


Adwords

About

Welcome to source code bean! On this site I post stuff that I encounter in my job and spare time. The content is mostly related to .NET development, but my interest in techonology is very broad, so often you will find posts on totally different subjects!