tips

Deleting hidden Subversion files before zipping

Michael Jacobsen
Subversion holds various information in .svn directories placed in all directories and sub-directories under version control. Sometimes it is desireable to clean out these files, for example, prior to emailing a zip of the files. I use the awesome tool Total Commander for the job. The procedure is as follows Start Total Commander and make a directory in a scratch area such as c:\temp. Copy the directories to this tempoary directory

Emacs and DropBox Integration

Michael Jacobsen
If you use more than one computer chances are that you use DropBox to keep a number of often used files syncronized and at hand. I also like to have at least a somewhat similar configuration of various programs on systems. With respect to emacs I have the following .emacs ;; For convenience add the dropbox directory as a variable ;; and set the default directory to that very same one ;; Thus, when storing files you 'start path' will be in ;; the dropbox.

Provisioning a Windows Mobile PDA for developement

Michael Jacobsen
I had my old Windows Pocket PC 2003 stolen from my office and until now I have developed on the emulator. However, now the need for a physical device has come up and I got the HP IPAQ 214. The old PDA was plug’n’play with respect to developing, that is, deploying from Visual Studio and so is the emulators. However, the iPAQ 214 did not allow me to deploy due to some security permissions.

A Native Win32 TaskSwitcher

Michael Jacobsen
My previous task switcher application had a serious performance problem as it was programmed in .NET. In order to start the small utility you had to load up the CLR and a bunch of assemblies (dlls). If you are a .NET developer it might not be that big a problem as most of the code was already loaded up. However, for general use it was not the best option. Hence, I ported the utitly to C++ with the MFC framework to help me.

Almost Infinite Sequences in F#

Michael Jacobsen
F# has a nice syntax for creating sequences where elements are created on demand. For instance let asequence1 = seq { 1 .. 20 };; creates a sequence of the numbers 1 to 20. No supprise here. We are also able to include steps, that is, let asequence2 = seq { 2 .. 2 .. 20 };; where we only take even numbers. However, in several of the Euler problems we do not have an upper limit on the search space.

Two Monitors and AutoHotKey

Michael Jacobsen
I prefer to use the keyboard whenever possible. I have a two monitor setup and found myself moving windows from one monitor to the other using the mouse. However, using AutoHotKey I was able to do this by keyboard. Also I wanted to swithc easily to a particular window using the keaboard. Update: The functionality has now been integrated into Windows 7. AutoHotKey is an utility for creating hot keys. Each hot key can runs a command or a small script.