Author Archives: Erik

Joost’s Wordpress-Bundle for TextMate gets the fun back into theme-hacking

I told you about Joost’s great Wordpress-Bundle for TextMate in the post A Wordpress-Bundle for TextMate and I stand by the title of this post. It really brings back the fun in hacking Wordpress-themes.
I found one deprecated call (in two incarnations): listcats expands to list_cats, but the beauty in using the Bundle is, I just […]

A Wordpress-Bundle for TextMate

I just found a Wordpress-Bundle for my favorite editor, TextMate. Download it from the Website of SEO-/Wordpress-wizzard extraordinaire Joost de Valk.
I’m going to test it later today.

OS X: Capturing Packets

Being kind of “Solaris-infested” at times (a.k.a. old habits die hard), I had a hard time capturing network-packets on OS X the other day. Not the capturing in itself, but remembering to use tcpdump instead of snoop. The command I was looking for was
sudo tcpdump host [ip-address]
It lists the packets as they go by, regardless […]

OS X: The Location for “Folder Action Scripts”

Since it bit me a couple of days ago: The AppleScripts to be used as Folder Actions must be stored in ~/Library/Scripts/Folder Action Scripts or /Library/Scripts/Folder Action Scripts.
The former is the location for Scripts available to the user of the account, the latter for all users of a machine. Don’t get fooled by the fact […]

Logging in FrontBase, quick and dirty

This is a quick tip (and thus something I don’t have to remember as long as I have an Internet-connection and a browser at my disposal ) for all FrontBase-users out there. The following is a rundown of handy commands if you need to log activities on a database.
sudo ln -s /Users/admin/FBLogs /Library/FrontBase/LogFiles(OS X)
Creates […]

OS X: Repairing Permissions from the Command-Line

Just a quick tip: Repairing the permissions on an OS X disk can be done from the command-line as well. The only caveat, you have to know the device of the volume. Getting the right device is easy:
diskutil list
The device-node in question is in the column titled IDENTIFIER. The device-path to use is the one […]

OS X: Getting Image-Dimensions on the Command-Line (sips)

If you need to get the dimensions of an image-file via the command-line, let’s say in a script or an AppleScript, then there is a way to do so easily. Enter the scriptable image processing system or short sips. You didn’t know you got that installed on your OS X system alreay? Me neither.
Assume, that […]

MySQL-Endcoding on OS X Server 10.5.X

Just a quick hint for all the commandline-jockeys: The standard-encoding for new MySQL-Databases on OS X Server 10.5.X is not UTF-8 but latin1.
Do not forget to specify the encoding when creating a new database, seriously. I suspect, that this depends on the language the system is installed in. The system that tricked me was using […]

My DocBook-Bundle for TextMate

OK, here it is. The TextMate DocBook-bundle (click the link to download) I’m using for production.
The emphasis is on I’m using. The bundle contains the entities I need for my daily work. Means, it does not contain all entities which can be used writing books and articles in DocBook. There are no templates, since I’m […]

10.5.2, at last

Everybody fantasized, hoped, longed, [you get the picture] about it: the Leopard 10.5.2 Update is soon to be found on Macs wide and far.
No problems so far, none I’m aware of, at least. Don’t forget to repair the permissions before and after the install, though. Seriously. And if you happen to have a recent digital […]