Archive for 'C#'

 

 
0

Posted on 01. Feb, 2010 by Wim Haanstra.

 

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 am using a XmlReader for this and I noticed [...]

Continue Reading
 

 
2

Posted on 26. Jan, 2010 by Wim Haanstra.

 

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 to write a nice static method which can [...]

Continue Reading
 

 
0

Posted on 25. Jan, 2010 by Wim Haanstra.

 

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, which is a HUGE directory, with files which [...]

Continue Reading
 

 
0

Posted on 08. Sep, 2009 by Wim Haanstra.

 

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 of any controls inside the dialog are always [...]

Continue Reading
 

 
14

Posted on 27. Feb, 2009 by Wim Haanstra.

 

Just posting this info, for all the people getting an error after installing Sitecore 6 on IIS7 of Windows 7. The error 1 2 3 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 where it originated in the code.   Exception Details: System.Security.Cryptography.CryptographicException: The system [...]

Continue Reading
 

 
0

Posted on 17. Dec, 2008 by Wim Haanstra.

 

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: 1 2 3 4 foreach (string myString in myArrayList) { // some code here. } It bombed out with an exception, telling me that it couldn’t cast a Guid to a String. I [...]

Continue Reading
 

 
0

Posted on 16. Dec, 2008 by Wim Haanstra.

 

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.

Continue Reading
 

 
0

Posted on 14. Dec, 2008 by Wim Haanstra.

 

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 problem, at least not one I could find. So [...]

Continue Reading
 

 
3

Posted on 10. Oct, 2008 by Wim Haanstra.

 

As I mentioned earlier, I moved my hosting to MyDomain.com, which has a nice Windows based hosting plan. There is only one problem, they are running .NET Framework 2.0 and don’t have the intention to actually upgrade it for you. I wrote the backend of my iPhone app in C# 3.5, using LINQ and Ajax, so [...]

Continue Reading
 

 
0

Posted on 02. Jul, 2008 by Wim Haanstra.

 

I have been looking around the net to find the best way to keep track of the total number of concurrent sessions. There is one piece of code, that is posted on a lot of websites. The code that I find mostly is the following (I editted a bit, to match my coding style): Global.asax [csharp] protected void Application_Start(object [...]

Continue Reading
 

 

WallPaper3 Stats

Latest Images

What I'm Doing...

Posting tweet...

Powered by Twitter Tools