Archive for the ‘Mac’ Category

german pc keyboard on mac os x

Monday, December 5th, 2011

The keys “< " and "^" seem swapped, but otherwise the normal PC german keyboard layout for Mac OS X is here:

using a local copy of a file instead of downloading it in macports

Wednesday, April 20th, 2011

In some cases, macports can’t or should not download a file from internet. Instead, it should use an already downloaded local copy. Unfortunately, this use case is not supported, and a workaround is required.


tracing libc calls with dtrace

Wednesday, January 26th, 2011

In order to find if I can affect a program through environment variables, I decided to trace all getenv calls and see if there is something interesting. Easy to said, harder to make. Fortunately, it is possible.


setting up a local macports repository

Friday, February 12th, 2010

Many OSes have port systems, Mac OS X has too. Macports provides a lot of useful software, but not all. If a software can’t be in the macports for some reason (for example, the software isn’t intended for public), one has to setup a local macports repository.


running Fritz&Fertig (eng: Fritz and Chesster) in the parental control mode (Mac OS X)

Thursday, September 24th, 2009

I purchased “Fritz und Fertig: Schach lernen und trainieren (“Fritz and Chesster: learn to play chess“, other languages also available). My opinion is simple: it’s a masterpiece and the best ever computer game for children.

Unfortunately, I got technical problems. Fortunately, solved them.


upgrading a macport package

Monday, December 8th, 2008

Upgrading a macports (darwinports) package is not as easy as

$ sudo port upgrade something

In many cases I need the following command:


rsync server on mac os x

Tuesday, November 11th, 2008

For development purposes, I’d like to run a rsync server on a Mac.

People in forums recommend to avoid the default system rsync, which is accused of being buggy. Instead, they recommend RSyncX.


local macports (darwinports) repository, granting a network access

Tuesday, November 11th, 2008

It’s quite easy to create a local MacPorts repository. Unfortunately, the documentation doesn’t say how to share the repository with others. After trials, errors and reading the source code, I’ve found the answer: the only way is rsync.


workaround for mac os x lost wifi connection

Wednesday, January 30th, 2008

Update from 10.4 to 10.5 introduced a pain. After sleep and wake up, Mac losts connection to the wireless network. To reconnect, I have to specify SID and the WEP key manually. I hate it.

As a temporary solution, I found how to re-connect from a command line, thanks to the blog article “airport – the Little Known Command Line Wireless Utility”. I’ve created the file and run it when required:

sudo airport -ASID --password='$WEP_key'

feeding 128-bit wep hex key to Mac

Wednesday, November 14th, 2007

For historical reasons, my home wifi router uses a WEP 128-bit HEX key. It caused troubles while installing a Mac. The setup program accepted only 40-bit keys. Fortunately, the workaround is simple. Specify to use WEP with password, and as the password set “$0123...012345” — the character $ (dollar) followed by the key.