We upgraded a machine to Mountain Lion (10.8.2), but found that parentalcontrolsd was running constantly with high CPU usage. The steps to correct the problem were found on the Apple Support Forums.
- Disable parental controls on all users.
- Delete the folder /Library/Application Support/Apple/ParentalControls
Please note that this command is a little dangerous.[code lang=”sh” light=”true”]$ sudo rm -rf "/Library/Application Support/Apple/ParentalControls"[/code]
- Restart Mac.
- Enable parental controls again.
MySQL Administrator is not designed to work over a secure connection like ssh. By using ssh tunneling, you can connect to your remote MySQL servers from your workstation.
Download the MySQL Tools package.
Install the MySQL Tools package. On the Mac, just drag to Applications.
Create the Tunnel
To create the tunnel, open a shell (Terminal on the Mac) and run the following:
$ ssh -N -L3306:127.0.0.1:3306 username@remote_hostname
-N instructs ssh to run silently without creating a remote shell.
-L a:b:c instructs ssh to use port “a” on the local machine and map it (from the remote server’s viewpoint to port c on machine b).
Now you have a secure tunnel to the server.
Use the Right Hostname
If you run on a Un*x based workstation (i.e. Mac or Linux), when you run either the MySQL Administrator or the MySQL Query Browser, set the “Server Hostname” field to “127.0.0.1”.
If you skip this step you will receive the following error:
I started receiving messages about my version of subversion being out of date. Jettro Coenradie wrote an article on how to upgrade the subversion client on your Mac.
It boils down to this:
- Download and run the latest Collabnet installer for subversion on the Mac.
- Ensure that your path includes /opt/subversion/bin before the old subversion path /usr/local/bin. For example, I have in my .bashrc file:
# Check for Collabnet Subversion
if [ -d /opt/subversion/bin ]; then
- If you have programs like SCPlugin that interact with Finder, log out and log back in so that all of your processes have the new path.
I move my laptop around hooking up monitors, disconnecting them, etc. Occasionally the desktop freezes. The icons do not respond to any mouse clicks, nor does the desktop change if removable storage devices (e.g. FireWire external drives) are attached or removed.
To fix this, I open the Terminal program and type:
That gives Finder a kick to the head and the Desktop starts working the way that it should.
I’ve been having trouble running FreeMind on Mac OS X. I have the FreeMind icon in the dock. When I click on it to launch FreeMind, it hangs for a while, with the CPU pegged.
After some time I get a “Cannot launch Java application” dialog box with the text “Uncaught exception in main method: java.lang.OutOfMemory: Java heap space”.
I found a workaround on Julianus’ Blog. (Thank you!) This is a little ugly, but it works. I can use FreeMind.
Run the Terminal program.
Create a soft link from the FreeMind JAR file to some convenient location in your user account. Type the following all on one line, then hit “return” — or use copy and paste. 🙂
$ ln -s /Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar freemind.jar
This will create a soft link (called an “alias” in OS X parlance) in your home directory. You can click on this to “open” the JAR file, causing FreeMind to run normally.
(This step is optional.) Drag the icon to the file portion of your dock. This will allow you to run FreeMind with a single click.
This is more a hack than anything, but it gets the job done.
The nmap security checking tool appears to have some trouble detecting the network adapters on Leopard (Mac OS X 10.5). To make it work one must add the following command-line parameter (to use the built-in NIC):
One can discover the other network interfaces with
$ sudo ifconfig
Ordinarily en0 is the built-in ethernet port and en1 is the wireless adapter.
If you use the handy zenmap user interface for nmap, you can do several things. For example, you can edit the profiles, or just include this in the target field (-e en0 target machine name). I edit the profiles that I use and set the network interface. Go to the Source tab, check Set network interface (-e), and type en0 in the edit field.
* Added more details for zenmap, hyperlinks.
Colin published a great article on how to delete all photos off of an iPhone. There’s no way to do it from the iPhone itself. However, there’s an easy solution.
Summary: Use Image Capture (found in the Applications directory).