objectiveC, C# and more interesting stuff
Call Us: +31 (0) 84 86 78 130

Archive for the ‘C#’ Category

string extension methods for C#

I admit, I have a big passion for writing useful extension methods in C#. I love how easy they make my job and keep me from writing code over and over again. There are some methods I use regularly and most of them apply to the string

Read more

Using NLog in your web.config

I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found

Read more

Reading big XML file with C# XmlReader

Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn’t really a possibility, because that would cause Out of Memory errors the minute I would try it. I

Read more

Resizing an image in C#

For a project I am working on, I was looking for a good way to resize images in a few different ways. I have done image resizing before, but it really feels that I am re-inventing the wheel every time I do this. So now I decided

Read more

Management of your pictures/videos etc.

I have (just as so many people probably) been struggling to keep my digital photo’s and home-made videos manageable. I tried so many photo/media management tools that I actually lost count and they never satisfied my needs. They always kept my library as messy as it now,

Read more

Using jQuery Dialog with ASP.NET

I have been playing around with jQuery a bit lately and I wanted to use the nice dialog boxes on my new project. The problem with the dialog boxes is, that they do not create a postback when one of the buttons is clicked. Also the values

Read more

Running Sitecore 6 on Windows 7′s IIS

Just posting this info, for all the people getting an error after installing Sitecore 6 on IIS7 of Windows 7. The error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and

Read more

foreach and mixed array

Yesterday I was just coding along and I was (accidently) filling an ArrayList with strings and Guids. After that I tried to read all strings from that ArrayList with just some simple code: foreach (string myString in myArrayList) { // some code here. } It bombed out

Read more

Braces and cases

Ok, I might be a n00b software developer or something, but today I found out something shocking, which I want to share with you. I was writing a bit of code, where I had a case statement. See my simple example below.

Read more

Multiple web.config files

We all know this problem, when publishing your web applications to different servers, you always need to take extra care of your config files. Because database connections and physical paths stored in the web.config are machine specific. Well there is no real solution for this kind of

Read more

Bad Behavior has blocked access attempts in the last 7 days.