blog advertising is good for you


blog advertising is good for you
User login

what would be the easiest way to do the following:
a) iTunes on one machine constantly stream audio from a playlist to a specific AirTunes destination (a specific Airport Express)
b) UNLESS someone goes an internal web page and clicks “request Common Room audio access”… in which case the aforementioned copy of iTunes would cease broadcasting
c) until (a script/a program/something) had noticed the airtunes destination had been available for 15 minutes (polling once every 2.5 minutes), in which case the iTunes instance mentioned in (a) would resume

basically muzak for the common room (if Cristóbal de Morales is muzak)…

Read the answer...

I use dnsmasq running on my Intel Mac Mini to provide DNS and DHCP services to my home network. My internet connection went down briefly the other day, requiring a router reboot, and I discovered that dnsmasq does not handle losing its network connection well at all. I had to manually stop and restart the dnsmasq daemon before I could get any sort of DNS response. So I got to thinking, is there a proper way to set up a launchd or other sort of task that gets executed when an ethernet interface connects? Then I could cycle dnsmasq on and off automatically if (when) this happens again.

Read the answer...

You can use the groff tool to convert manual pages into PostScript, PDF, or HTML form for pretty viewing, printing, posting to a webpage, easy searching with Spotlight, or any other purpose, if you like. Manpages are stored in a simple mandoc format for which the groff formatting tool has an understanding (indeed, groff is used by man to display the page in the first place). groff also has an understanding of a wide variety of other formats to display things in, however man only uses the normal display format so only the few that look into such things would notice the fun to be had.

First, to get a manual page that looks like the version man brings up, you tell groff to use ASCII or UTF8 as the output form. To get groff to do it, however, you need to tell it the location of the actual mandoc file, which man gives you with the -w flag. There's more »

Not long ago I read a tip on using the F14 and F15 keys for adjusting the brightness of the display on this site which answered my question on what blasted button I had pushed to do that. Now my next question is, how do I disable them?

I do photography post production work and having a properly calibrated display is critical. Each time I bump one of those keys my calibration goes out the window and I have to go through the process all over again. A real pain during the middle of a project.

Any insight you can give on how to turn off this “feature” would be greatly appreciated.

Read the answer...

Contextual Menu Heaven

How can I create a “open a terminal window here” context menu pick for the finder?

Read the answer...

Synergy

Recently I acquired a 17” iMac G4. Wanting to be able to control both it and my 15” Titanium PowerBook G4 I discovered “Synergy.” (http://synergy2.sourceforge.net/)

Synergy allows one keyboard and mouse to control multiple machines through software. (Even machines running different OSes.) A simple configuration file defines the involved systems and there spatial relationship to each other. Starting a synergy client on each machine to be controlled, and the synergy server on the host machine (the one with the keyboard and mouse) is all there is to it.

Since both the iMac and PowerBook have dedicated LCD displays, with no ability to accept input from an outside source this software solution was the best (only?) solution I could find.

NSTextField Shortcuts

After having hit a few keys I expected to work and, to my surprise, they did, here’s a list of what shortcuts you get in Mac OS X’s standard NSTextField object (which is to say, Mac OS 9 shortcuts combined with a subset of emacs shortcuts):

CTL-O Move to the previous line
CTL-N Move to the next line
CTL-B Move to the previous character
CTL-F Move to the next character
OPT-← Move to the start of the current or previous1 word
OPT-→ Move to the end of the current or next1 word
OPT-↑ CTL-A Move to the start of the current or previous1 paragraph
OPT-↓ Move to the end of the current or next1 paragraph
CMD-← CTL-← Move to the start of the line
CMD-→ CTL-→ Move to the end of the line
CMD-↑ Move to the start of the document
CMD-↓ CTL-V Move to the end of the document
SHIFT + anything Select while moving
Delete CTL-H2 Delete the previous character
Forward delete3 CTL-D Delete the next character
OPT-Delete Delete previous word
OPT-Forward Delete Delete next word
CTL-K Cut from insertion point to the end of the line
CTL-T Transpose the characters around the insertion point
CMD-V CTL-Y Paste
Return CTL-O New paragraph

If you never use the Option key for writing international text, you can also drop a file in your Library to add meta-key shortcuts to mimic emacs more fully. You can, of course, hack the file to add your own shortcuts to all programs that use this kind of text field (most of them).

1 Control-key shortcuts do not operate on next/previous items, only command/option shortcuts do.

2 Technically, these are the same thing to the computer.

3 On portables, fn+Delete is forward delete.

Can't Copy and Paste?

If you find that you can’t copy and paste anymore open Activity Viewer and look for the pbs process. If you don’t find it listed you have two options:

  • Relogin.
  • Start it manually: /System/Library/CoreServices/pbs (it runs as you, not root)

If you can drop to SUM then you can, with some effort, reset passwords and do bad, bad, evil things. If you trust that the one file that will never go bad on your disk is your /etc/passwd file, then you can tell the system to require the root password to enter SUM. There's more »

cover of Mac OS X Tiger for Unix GeeksMac OS X Tiger for Unix Geeks
author: Brian Jepson,Ernest Rothman
asin: 0596009127

CLI Disk Management

Mac OS X is a hybrid of the behaviors of Mac OS 9 and its predecessors and the BSD-based Unix variants of yore. As such, the disk system was forced to handle two completely different methods of mounting disks. For those users that live in the GUI and use physical media (and mount network volumes in the Finder) all disk mounts are instant and come up just as soon as the media is ready, like Mac OS 9 did. Then for those that live in the CLI and mount remote volumes that way (or go re-partitioning their iPod) Mac OS X can use the traditional mount & unmount commands. There's more »