Creating a ‘Windows Installation’ bootable USB drive

Recently I was in need to setup some new hardware and I’ve found myself doing this procedure over and over (because I am a cheap b*****d and I only own few USB pen drives ) again. So even if there are plenty of posts out there offering more or less t


Sql Server - Scramble / Mask database production data

Sometimes you might need to test your product using some ‘production’ data to better simulate what users do with your software. There are situations in which having only your test database, with your own (well formed) test data is not enough: just t


Save time stopping the build process (in case of errors)

I don’t remind where I originally got this Tip, but it’s proven to be very useful to save lots of time when you have very big solution and your projects are failing to build. I am reporting it here as a note to myself because I really missed it when


Winforms: improving rendering performances with BackgroundImage and BackgroundImageLayout

Even after years you always have something to learn...this time I had a windows forms application with a lot of graphics in it: big and heavy background images, graphic buttons with transparent background, mixed bitmaps, Jpegs and PNGs...the whole th


Castle NHibernate Integration Facility: how to get the configuration object

This is a simple tip, I’ve used the Castle Windsor NHibernate Integration Facility to build up the data access services in one of the projects I’m working on, I also wanted to use the NHibernate SchemaExport utilities to build up the database from sc


A very dirty trick to open a Popup after a PostBack operation

I’m not very proud of this cause it indicates a very poor interface design, but in a legacy project I’m working on we had the following scenario: 1- the user interact on some elements of the UI 2- the user clicks a button, at the PostBack ope...


ASP.NET - Tagging and Hiding the columns of a GridView

This is a simple trick that came into my mind working on a legacy ASP.NET application, the scenario is: we have a series of components that use a GridView to show some data, each GridView have several columns and according to the situation some...


Create an EML file the easy way

Many email readers (like Windows Mail, Outlook, Thunderbird...) use this format to store emails in files; I needed an easy way to create those files to send emails using the default email program the client has configured on his system. Lookin...


How to migrate a Windows XP installation from an IDE to a SATA hard drive

These days I made myself and my bro a ‘Christmas Gift’ and I bought a couple of 10k rpm hard drives to give our systems some speed up. In my childlike mind I thought: migrate the system will be easy..just clone the HD data to the new one, maybe...


Using Regular Expressions to identify possible bugs in code

In the past few days I was moved to analyze some legacy code from a huge web application written by a company I work with. I have to write some new modules to integrate in this application; but while I was reviewing the code to ‘learn’ the styl...


 1 di 3   1   2   3  »  Last »