One problem, one weekend, eight languages

I have gotten quite complacent about using the same language for solving programming challenge problems such as those on HackerRank. I wanted to take a problem and write the solution in multiple languages to get a feel for them and see if there are any that I prefer to the one that I normally use (ignoring performance considerations for the time being).

Powershell - Benchmark Command

Powershell comes with a cmdlet called "Measure-Command" that can execute a block of commands and measure how long it takes to run. It's analogous to the unix "time" command.

What if you want to run something a number of times and take the average?

You know you are a nerd when...

topic: 

You know you're a nerd when you qualify for a bulk discount on domain renewals.

Welcome to the new site


We have completed the transition to new software for the site. We hope you enjoy the changes.

Content Assist Duplicates in Eclipse (Mylyn)

topic: 

If you have installed Eclipse 3.3 from an official bundle or you have installed the Mylyn plug-in then there's a good chance that you might have started seeing duplicate entries when using content assist.

Excel - Convert Unix Time to Excel Time

topic: 

If you ever find yourself needing to convert from UNIX time in Excel, here's the solution.

Toying With Tapestry 4

These are my impressions after using Tapestry for a couple of weeks. I review the flaws and joys that I found in using Tapestry.

How does SQL Server Management Studio move columns?

topic: 

SSMS (SQL Server Management Studio) does not use any kind of wizardry as one might think. It creates a new table, moves the data, drops the original table and renames the new table to the original name.

View log usage in SQL2005 using Dynamic Management objects

topic: 

SQL Server 2005 introduces a number of Dynamic Management objects. One of these is dm_os_performance_counters which gives you access to SQL Server Performance Counters that were only available through Performance Monitor. Several of the counters are related to the log so we can see the log usage for databases from within SQL Server.

Variable column widths, string lengths in printf-style functions

topic: 

I have been programming in C for quite some time, but until recently I was not aware that you could specify column widths and string limits using variables. I have neither seen this functionality used in any projects until I started working with OpenSER.