Posts tagged with howto
Monday, May 12th, 2008 Quitting Caffeine the Mac Way
- Subscribe Posted in Non-Technical
- Tagged as caffeine, mac, howto
- 0 Comments
- Trackback
From time to time, I find the need to start Caffeine on my Mac, but my use is infrequent enough that it’s not something I like to keep open and available all the time. Invariably, once it’s running, I forget how to quit the application to get it off of my menu bar. It’s not an easy thing to Google so, for the sake of my own sanity, I give you:
- Cmd+Click the menu bar icon (the coffee cup)
- Select the Quit option
It’s a simple enough process, but I guess it’s just different enough from that of other menu bar icons that I can never seem to remember it.
Thursday, May 8th, 2008 Renew a Mac's DHCP Lease Via Terminal
- Subscribe Posted in Technical
- Tagged as mac, terminal, networking, howto
- 0 Comments
- Trackback
Being a long-time (and still part-time) Windows user, I’ve spent many a not-so-happy second typing the following:
> ipconfig /release
> ipconfig /renew
Today, though, I made a few changes to secure my network and needed to renew the DHCP lease of my Mac. Usually, I’m sitting in front of the laptop so I can just use the System Preferences GUI, but not today. Today I had to remote in so I only had the command line available and I realized that I had no idea how to map the Windows commands above to the Mac terminal. Mostly for the sake of posterity:
$ sudo ipconfig set en0 BOOTP
$ sudo ipconfig set en0 DHCP
In typical Unix fashion, there’s no output to indicate that succeeded or did anything at all, for that matter, but it seems to do the trick.
Tuesday, April 8th, 2008 Flush DNS in Leopard
I seem to need to do this just infrequently enough that I can’t manage to remember how and just frequently enough that it’s becoming a pain to look it up every time. So, mostly for the sake of my own sanity:
$ dscacheutil -flushcache
There. Now that I’ve bothered to write it down I’ll probably never forget it again. Or not.
Saturday, April 5th, 2008 Changing the Title of a Fluid Application
I’ve become a huge fan of Fluid over the past few weeks (maybe months) and my man crush only intensified when the 1Password developers announced support for the SSB application.
In that time, I’ve created a number of Fluid apps from web apps that I work in often. These include apps like Gmail, Google Reader, Basecamp, Backpack, several Trac projects and more. When creating these applications, I made a few unfortunate naming decisions. Not this-name-causes-spontaneous-combustion unfortunate or even I-wouldn’t-want-coworkers-to-see-this unfortunate; more like this-name-is-annoying-me unfortunate.
For example, I have a few Gmail accounts, several of which are Google apps accounts at one “true” Gmail account, so I thought it’d be a good idea to name each application “Mail [username@domain.tld]”. I also have an office web mail app. The idea was that when I looked in my /Applications folder, all of my mail applications would be grouped together prettily. A bit like Communism, it ended up being nice in theory and rather flawed in practice.
I wanted to change the app name, so I renamed the app. “Mail [username@domain.tld]” became simply “Gmail” (turns out there’s really only one address that I check with any frequency), but that wasn’t enough. The name of the app as it appears in /Applications was changed, but not the title that appeared in the menu bar when the application had focus. After rooting around in the package contents, I got the change to stick.
To change the title of a Fluid application:
- Rename the application in Finder just like you’d rename any file.
- Open a terminal connection and navigate to the application’s contents.
$ cd /Applications/[your application].app - Open the application’s primary plist file.
$ vi Contents/Info.plist - Edit the CFBundleIdentifier value. This step doesn’t appear to be strictly necessary, but I did it for consistency. Change
<key>CFBundleIdentifier</key> <string>com.fluidapp.FluidInstance.[the old name]</string>
to
<key>CFBundleIdentifier</key> <string>com.fluidapp.FluidInstance.[the new name]</string> - Edit the CFBundleName value (this step is necessary). Change
<key>CFBundleName</key> <string>[old name]</string>
to
<key>CFBundleName</key> <string>[new name]</string> - Save and close Info.plist and relaunch the application. The name should be changed.
And now that unfortunate decision has been made good.
In anticipation of input from readers, it should be noted that editing the plist file could probably be done by opening it in Lingon or any other plist editor or by simply right clicking (Ctrl+Click) the application name, selecting Show Package Contents and opening the plist file in any text editor.