Entries by Kevin Godden

Shutting Down Windows from C++

Windows can be programmatically shutdown using the ExitWindowsEx() Win32 function.  However it turns out that the trick to getting it to work is to first grant shutdown priviliges to the calling process via some rather ugly security functions – this type of faffing around can never me remembered so I will post some sample code […]

Broadcasting from a muddy field!

Ever wondered where the term ‘broadcast’ comes from? Well according to a programme on the Beeb called ‘Victorian Farm‘ (which i’ve been watching!) it has slightly startling rural roots – it seems that it originally referred to a method of sowing seed by hand where the sower casts handfuls in a broad arc across his […]

Dual Personality Properties with Lambdas in .NET

Some time ago (!) I wrote about an investigation that I had carried out into how a literal value could be mapped to and stored as a lambda expression/delegate in C#.  This was important for me at the time because I needed to find some way to have a ‘value’ and a ‘value rule’ appear the same to callers.  I wanted […]

neat_trim() – Handy for tailored drupal teasers

In drupal there are many ways to go about putting together teasers for custom content types created with the Content Creation Kit (CCK). The quickest to get up and running with is often to use the Content Templates (Contemplate) module, this allows you to specify in-line markup and PHP with code to get at and display […]

New Pride Design Website goes Live

Congratulations to our good buddies and award-winning web design & development partners over at Pride Design, they have just flipped the big switch and put their new website live – nothing like a new website for the new year!   They tell me that there is still some tweaking and tuning to do on the […]

Software Engineering Resources in Ireland

I am about to embark on a little research, I intend to compile a list of resources in Ireland for Irish Software Engineers and Developers. I want to include and bodies, websites, web forums etc. that provide a genuinly useful service to Developers and Engineers in their day-to-day work and in developing their careers in […]

’25 Most Dangerous’ Programming Errors

The Register writes today about a new report which details the ’25 most dangerous’ programming errors – a list which was compiled by 30 organisations.  Very interesting indeed, nothing unexpected in the list really, but I reckon that a full review of it in the light of ongoing and recent project work could be very  worthwhile.    It […]

Custom CCK Input Form in Drupal

We are using good old Drupal and its Content Construction Kit (CCK) once again to create a custom CMS for our client. One of the things that usually completely mystifies me time and time again is how to customise a new content type’s add/edit form layout.  So, lest I forget again in the future, here’s a link to a […]