Binding custom object to Datagridview
Thanks to the use of generic collections it is supereasy to bind your favourite object to a datagridview!
First create a new BindingList for the type you want to use as the datasource.
BindingList data = new BindingList();
Now create a new object of the type BindingSource and set your bindinglist as it's datasource
BindingSource dsData = new BindingSource();
dsData.DataSource = data;
Now you have the datasource of your DatagridView. Simply assign it to the Datasource project of your DataGridView.
dgvYourDataGridView.DataSource = dsData;
The only thing you need to make sure of is that the class you are using has properties. Each property represents a column!

The entire code:
BindingList data = new BindingList();
BindingSource dsData = new BindingSource();
dsData.DataSource = data;
dgvYourDataGridView.DataSource = dsData;
That's all for today folks!

Debugging a windows service
Just add the following snippet to your code (C#):
#if DEBUG
System.Diagnostics.Debugger.Launch();
#endif
It will break the service and let's you select the debugger you want to attach it to.

Web Security
While browsing the I came across an article that deals with web security.
As it is commonly rejected and left aside by most webdevelopers because it takes too much time and there are more important issues... Web Security IS a big deal and needs to be taken into account to prevent your site from becoming a toy for hackers or people who just like to have fun at the cost of others.
I came across a very interesting article on the web that adresses these issues, and what to do about them. It was written by Dr. Johannes Ullrich from the SANS Technology Institute.
You can find the article here: http://www.sans.edu/resources/securitylab/audit_web_apps.php

Unexplainable spaces between table cells
Today I was working on transforming a photoshop design into an HTML file so that later on the logic could be added.
While doing that I've discovered something truly BIZAR!
As you know may Visual Studio has a feature to automatically align all your HTML into (readable) aligned HTML tags. Anyway after using this I saved and refreshed my webpage in the Internet Explorer browser. Suddenly all my aligned tablecell's where having a little empty space at the bottom of the cell.
I've looked for about two hours to figure out why but could not find it.
Then I came up with the idea to check my latest working design in sourcesafe and saw the following:

My links where shown as this:



Nothing wrong with that right? Well look for yourself what the difference is between that and the following html:
In internet explorer, the spaces that are generated from Visual Studio's autoformat function will cause a strange padding between all the images making you're site look like a newbie frontpage ripoff.

Cheatsheets
I've discovered some very very nice cheatsheets which can be worth a look and a timesaver for the following languages: All credits go to http://www.ilovejackdaniels.com/!
If you are looking for the .png version, you can download it from their website!