fredag 25 september 2009

Search for files in subdirs

How to search for all Nant build files in sub directories:
>dir /s /b *.build

torsdag 24 september 2009

VisualWx - IDE for WxWindows

http://visualwx.altervista.org/

Can be used for generating code in several languages. Among them Ruby.

Who is listening on a certain port?

netstat /b

måndag 21 september 2009

Verify MSI content without installing

msiexec /a foo.msi TARGETDIR="c:\tmp\foo"

onsdag 16 september 2009

Call a single unit test method

>ruby --name

Monitor network interfaces and routes

Write at command line:
> route print

Emacs commands

Search on current word, accumulates search text current word under cursor:
C-s C-w C-w

Cut current word:
M-d

måndag 14 september 2009

CTAGS för Emacs

A tool for creating TAGS files used by Emacs to quickly orientate in source code: http://ctags.sourceforge.net/

Change name of binary from ctags.exe to etags.exe. Now it will generate proper tags for Ruby. Execute by: "etags.exe *rb".

Commands in Emacs:

M-. [TAG]
Find the first definition of TAG. The default tag is the identifier under the cursor.

M-*
Pop back to where you previously invoked "M-.".

C-u M-.
Find the next definition for the last tag.