How To Move An svn Repository

On the source system, run: svnadmin dump /path/to/repository > repository-name.dmp Copy the dump file to the new server.  There, create a new repository to house the dumped information: cd /path/to/new/repository svnadmin create repository-name svnadmin load repository-name < repository-name.dmp Now, if you have a project that you checked out from the old location, that you want [...]

Unix Utilities on Windows

Feeling crippled on Windows by not having access to such commands as grep, awk, tail, less … ?  Go here to get a copy of these utilities ported to the Win32 platform.  They’ve made my life much easier when I’m trying to do some quick command-line trickery on a Windows box.

Adobe AIR – applicationStorageDirectory – where is it?

When progamming an AIR application, you may want to make use of the applicationStorageDirectory available via the flash.filesystem package to store temporary files/folders.  You can find where your system is storing these files by doing something like the following: var f:File = File.applicationStorageDirectory.resolvePath(“Test.txt”); trace(f.nativePath + ‘ is where my file is stored’);

Getting a Substring Out of Batch

One of my friends, Andrew from Vancouver, sent me this extremely useful tip about how to grab a sub-string via BATCH. <snip> here’s a CMD shell tip that works in W2K, WXP, and W2K3. There is a BASIC MIDSTR function equivalent in batch files… use this syntax as a modifer: ~:start,end e.g. set foo=\\servername @echo [...]

Audit your computer’s network settings

If you’ve ever tried to audit the speed and duplex settings of NICs in a windows environment, I’ll bet you’ve been frustrated by the fact that you can’t seem to find the answer to this anywhere in the registry or WMI, etc. etc. Yet you know it has to be recorded somewhere because the little [...]

Audit your computer’s network settings

If you’ve ever tried to audit the speed and duplex settings of NICs in a windows environment, I’ll bet you’ve been frustrated by the fact that you can’t seem to find the answer to this anywhere in the registry or WMI, etc. etc. Yet you know it has to be recorded somewhere because the little [...]

For Better, and for MUCH Better – using a FOR Loop to run the same command against multiple computers

If you administer more than, say, 3 computers in your network, you’ve probably wanted to perform some operation against all of them in quick fashion. For example, you may get a frantic call some morning from your IT manager that goes something like this: IT Manager: “I just got a call from my friend Bob, [...]

How to insert a carriage return with batch

Sometimes the quickest way to accomplish something in Windows is with a simple batch file. The best example would be when you want to run a command and append the contents of it to a text file for later perusal. Occasionally, I’ve had a desire to run multiple commands and append them to the same [...]

How to delete disabled users in bulk from Active Directory

Using the adfind and admod command line utilities, it is easy to delete disabled users in bulk from your Active Directory. Read on for an example of how to do this.

Shortening your regular expression match in perl

Normally, when you pattern match using a regular expression in Perl, your expression will match as much as possible. For example, $match = "hello to you world what in the world were you thinking"; $match =~ /hello.*world/; $match is now "hello to you world what in the world" If you want to make this match [...]

Next Page »