• Schedule cron Job on First Sunday of the Month

    by  • June 3, 2014 • 0 Comments

    When you need to schedule a Unix or Linux job in crontab to run on the first Sunday of the month, or any other weekday for that matter, your first instinct may be to write your cron entry to look like this: However, you will find that the job will be executed every day...

    Read more →

    Firefox OS – A simple No Nonsense Calculator

    by  • April 11, 2014 • 0 Comments

    When I received my Geeksphone Keon last year (2013), I searched the Firefox Marketplace for a simple calculator, similar to the Calculator that comes with Windows. At the time I couldn’t find anything I liked so I wrote my own, which I named NNCalc, short for No Nonsense Calculator. One of the things I...

    Read more →

    How to achieve the LIKE IN effect in SQL Server

    by  • January 20, 2014 • 0 Comments

    SQL Server does not natively support a “LIKE IN” clause. For instance the following example is not valid: Luckily there is a way to achieve this effect. First imagine that you have a stored procedure or function that searches for a specified word that appears anywhere within a Description column. If you had to...

    Read more →

    Merge vmdk files in VMWare Player

    by  • December 8, 2012 • 4 Comments

    In order to merge split vmdk files into one, you need to use the vmware-vdiskmanager command. However, this is only available if you have VMware Fusion or VMware Workstation installed. VMware Player doesn’t have this. Luckily this little utility can be downloaded separately from the VMware site. It is the 1023856-vdiskmanager-windows-7.0.1.exe.zip attachment that you...

    Read more →

    In Progress Dialog

    by  • October 26, 2012 • 0 Comments

    The following C# code shows how to make a Progress Bar in a dialog window that can be shown for tasks that run for an undetermined amount of time. Instead of a regular progress bar that progresses from 0 to 100%, this one shows a little indicator that scrolls back and forth, while in...

    Read more →

    Handling Big Red X DataGridView

    by  • September 14, 2012 • 0 Comments

    The reason why sometimes a grid control shows a big red X and stops working properly is because an unhandled exception has occurred during the control’s OnPaint event. One way to handle this is by extending from the grid control and overriding the OnPaint event so that any exceptions can be handled. Of course,...

    Read more →

    Getting Owner of a File in Windows

    by  • July 6, 2012 • 0 Comments

    Through Windows’ WMI Service you can find out who the owner is of a file. This is somewhat similar to the user/group owner of a file in UNIX or Linux, as shown in the example below, where the file myfile.txt is owned by user root and group root. With the following AutoIt code, you...

    Read more →

    Project Euler

    by  • May 31, 2012 • 0 Comments

    If you plan on learning a new programming language, one good way to get to know the language better is by using it to solve the computational problems found on the Project Euler site. Currently there are about 385 problems to be solved, however more are added regularly. They start out relatively easy but...

    Read more →

    Multi-color Text in ProgressBar

    by  • April 26, 2012 • 0 Comments

    The standard ProgressBar class provided by the .NET Framework does not have a way to write custom text over the progress bar. However, it can still be achieved by extending from the standard ProgressBar and by implementing your own OnPaint event handler. The other thing to keep in mind is the color of the...

    Read more →

    Total Mouse Control in Javascript

    by  • April 22, 2012 • 0 Comments

    The following article was originally written back in 2006. The code example below shows you how you can include better mouse control over your web pages, even the right-click mouse event. The example below basically shows you a page with 2 boxes on it. These boxes are called ‘Drag Me 1′ and ‘Drag Me...

    Read more →