Blog

Don’t negotiate on your estimates

My dad made a remark once that if you want to be good in sales, you can’t just believe that the glass is half full. You have to say with a straight face that a half-full glass is better than a completely full glass. Anyhow, my shop has generally good relationships between the technical team

08 Jun 2009
/

Get LINQ to SQL results into a DataTable

There are two ways to get LINQ to SQL results into a DataTable, as explained here. I use Sample II: public DataTable ToDataTable(System.Data.Linq.DataContext ctx, object query) { if (query == null) { throw new ArgumentNullException("query"); } IDbCommand cmd = ctx.GetCommand(query as IQueryable); SqlDataAdapter adapter = new SqlDataAdapter(); adapter.SelectCommand = (SqlCommand)cmd; DataTable dt = new DataTable("sd");

02 Jun 2009
/

Error 1606 when configuring an IIS website

When installing an IIS application on Vista, you may receive the following error: Error 1606. Could not access network location SystemDrive\inetpub\wwwroot\ To correct this error, you will need to make a quick change in the registry: Make a backup of your registry. Start | Run | regedit Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp using regedit Change the key

02 Apr 2009
/

The four stages of programming competence

One of the basic pillars of the study of human psychology is the analysis of the subconscious and conscious mind. Sigmund Freud was one of the first to clearly identify and characterize the ‘areas’ where our psychic energy flows. During the first part of his notable life he stated that these were the ‘subconscious’, ‘preconscious’

27 Mar 2009
/

MKCOL … 405 Method Not Allowed Subversion error

I use DreamHost to store and manage all my Subversion repositories. When trying to commit a while back, I got this strange error: svn: Commit failed (details follow): svn: MKCOL of '…/images': 405 Method Not Allowed Searching around, I managed to find a couple of reasons this could occur — wrong charset or a connectivity

24 Mar 2009
/

Exclude Spotlight from indexing External Drives and folders

Getting Spotlight to skip indexing particular folders in a fixed drive is as simple as dragging the folders into Spotlight’s Privacy Settings tab. However, in order to get Spotlight to stop indexing external drives (USB drives, external hard disks, etc), the Privacy Settings tab only disables it temporarily – when you remount the volume, indexing

19 Mar 2009
/

Backup Windows files into a Ubuntu file server via rsync

I have a Linux file server on Ubuntu 8.10 (Intrepid Ibex) running a rsync daemon, and a Windows server running a freeware rsync GUI called DeltaCopy. I wanted an automated, incremental backup every weekend. Configuring the Ubuntu machine is pretty straightforward. Install and configure rsync and xinetd There are a couple of changes from the

19 Feb 2009
/

Optimizing Code for Speed

Optimization of code is the term that was applied to a process in which a code is tuned to be better in some respects: either speed, memory consumption, Input/Output (disk read and writes or network reads and writes), etc. In Mathematics, Optimization means a process in which one finds the values with the best performance.

15 Feb 2009
/
theme by teslathemes