Browsed by
Tag: OSX

Set shortcut key for jumping between words in iTerm terminal

Set shortcut key for jumping between words in iTerm terminal

Sometimes when you have a large terminal command, you need to change one character in the middle. The only way to do this is hold the back arrow until you reach the character. I was wondering if it was possible to skip words just like in OSX by holding ⌥ ←

The good news is this is possible by setting your keys bindings. Open preferences, select your profile and open the keys section. Now look for the⌥ ← sequence and double click.

Read More Read More

OpenTTD 1.0.5 for Mac OSX

OpenTTD 1.0.5 for Mac OSX

Open Transport Tycoon is a game which supports Windows and Linux native. Since I use a mac I tried to compile it for OSX, which worked out pretty well. If you have a Mac and want to play OpenTTD you can download the compiled version here. Just unzip the file by double clicking. The only thing missing is the graphics and sound files.

The graphics can be downloaded here. Just extract the zip file into the data directory of my compiled version.

The sound files can be downloaded here. Just extract the zip file into the data directory of my compiled version.

If you run into trouble feel free to leave a comment. This version of OpenTTD has been compiled on Mac OS 10.6.4.

OpenTTD running under Mac OSX 10.6.4
Mac Pro ethernet says cable unplugged with cable actually plugged in

Mac Pro ethernet says cable unplugged with cable actually plugged in

My new Mac Pro had a strange problem. When I turned on the Mac or woke it up from sleep it had no ip anymore. The only way to fix this problem was to switch the cable from ethernet 1 to ethernet 2. Sometimes I had to repeat this step, turn wireless on and off and finally I got an ip. When I restarted the router I did not have to switch the cables, then I got an ip immediately after the restart.

I searched on the internet and found several solutions:

  • Reset PRAM
  • Remove and add the ethernet connections
  • Check the cable (the cable worked for years on my MacBook Pro)
  • Try different ports on your router

None of these succeeded. I decided to contact Apple within a few days but first I searched again on the Internet. I found this page which described exactly my problem. The interesting part of this thread was about the FritzBox since I do have this router as well. The thread suggested to disable energy saving mode on the ethernet ports of the router. Which turned out to be the solution! Now my network is immediately connected after a reboot or wakeup.

The FritzBox settings which needed to be changed
Mac Pro sound defaults to internal speakers after restart or shutdown.

Mac Pro sound defaults to internal speakers after restart or shutdown.

Every time I reboot my Mac Pro the sound output resets itself to internal speakers. This is quite annoying and I had no clue how to fix it. This topic on the Apple forums shows how to fix it.

First delete the audio preference folder:

$ sudo rm -r /Library/Preferences/Audio

Recreate a new one:

$ sudo mkdir /Library/Preferences/Audio

Change the permissions:

$ sudo chown -R _coreaudiod:admin /Library/Preferences/Audio

Go back to the sound preference panel and set the audio to the one you prefer. This will recreate the settings file.

Reboot the system and see if it works.

Detect Displays shortcut on OSX

Detect Displays shortcut on OSX

I have an external monitor attached to my iMac. Sometimes I use it as a secondary display, sometimes it is turned off. When you are already in OSX and turn on your external monitor it will not be detected immediately. You first need to open your display preferences and click on “Detect Displays”. This tweet however, shows that you can use CMD + BrightnessUp (which is in most cases F2 or fn + F2) instead.

free cocoa packet sniffer for OSX

free cocoa packet sniffer for OSX

According to the Cocoa Packet Analyzer website:

Cocoa Packet Analyzer is a native Mac OS X implementation of a network protocol analyzer and packet sniffer. CPA supports the industry-standard PCAP packet capture format for reading, capturing and writing packet trace files.

Features:

  • Basic packet capturing (libPCAP/ tcpdump filter expressions can be used).
  • Analyze, display and filter packet trace files.
  • Supports PCAP packet capture format.
  • Quicklook plugin included – it is basic but at least you can get an overview over packet trace files in finder.
  • Intel 64-bit CPU support.
Cocoa Packet Analyzer screenshot