blog advertising is good for you


blog advertising is good for you
User login

CUPS is the name of the service that handles printing in Mac OS X 10.3 to 10.5. It has a lot of features that aren’t really pushed in the GUI in Mac OS X, but users are able to get at those features by using the special administrative interface at http://localhost:631/.

One of those features is classes. A class, in this context, is a group of printers that can be made to look as if it were one printer. This is great in lab settings where you have half a dozen printers of the same type as you can add them all to a class on a print server and have everyone print to that queue. Then whichever printer is free (or round-robin) will print the job. There's more »

I needed to change many iBooks from having a Preferred Network (and wanting to keep looking for that network) to automatically joining any open network and not giving a preference to that certain network.

I found that the two preference files involved were:

  • /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
  • /Library/Preferences/SystemConfiguration/preferences.plist

I also found that the computer name is kept in preferences.plist, so copying these two files out to all the iBooks would have resulted in a same-name-game fiasco. Soooo, my solution was to:

  1. Copy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist out to all the iBooks using Apple Remote Desktop.
  2. Issue the following UNIX command as root also using Apple Remote Desktop: sed -i.backup -e ‘s/Ranked/Automatic/’ /Library/Preferences/SystemConfiguration/preferences.plist

This command will search through the preferences.plist file for the word Ranked and replace it with the word Automatic.

For the Tooltip Guy

I went to the GUI feedback session at WWDC last year and in the midst of all the yelling and screaming over the new dock and menu bar there was one guy with a wholly different mission: be able to turn off tooltips. His complaint (a valid one, I feel) is that every time he wants to sit and think about what’s on-screen, a little yellow box comes up where the mouse is, and there’s no real “safe spot” for the mouse that doesn’t do this in most applications.

So, I present a little tip I discovered shortly afterwards and appear to have not written up. I dedicate this to Tooltip Guy, wherever he is.

defaults write -g NSInitialToolTipDelay 99999

You now have 99.999 seconds to think at a given time. Replace -g with the ID of any application to change it in that application.

So I’m paranoid, but not THAT paranoid.

Sometimes I feel like using “Secure Empty Trash”, but that uses ’/usr/bin/srm’ with the ’-m’ option (7 passes), which can take a while to complete. Most of the time, I only care about what might turn up with simple file recovery tools in case my drive gets stolen (as opposed to covering my tracks from say law enforcement or a foreign government) so really, a single pass should be plenty for my needs. I could always use ’srm’ directly, but the convenience the built-in tool offers in handling the Trashes on various volumes, and having a built-in menu item is nice.

It turns out the ’srm’ option used by “Secure Empty Trash” in Tiger is specified in the file: There's more »

/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Resources/Locum

Launchd Video

There is a video on Launchd on Google Video as part of the Google Tech Talks series. The creator of launchd gives a talk on how to use it and how its going to change as of Leopard 10.5. its pretty informative and useful if you are a sysadmin and supposedly if your a programmer also.

As others have noted, there’s nothing all that new about Time Machine other than its UI. UNIX admins have been doing similar incremental backups for ages immemorial. Well, OS X is a UNIX, isn’t it? So it should follow that we can get the same bang-for-buck in Tiger (and possibly prior versions, too). For this, rsync and cpio are our friends today. Adam Knight did most of the footwork here; I just hacked it up into OS X-compatibility. There's more »

How can I completly disable the Finger Service? Instead of manually creating .nofinger files on each user Home folder.

Thanks!

Read the answer...

These are 3 apps that I recently discovered,

Nocturne is made by the QuickSilver people, BlackTree. The app simply turns your screen “white on black” as the normal Accessability option goes but it can also turn it monocrome, remove backdrop and other things.

ThisServce turns any script you write in any installed language into a service.

those were found on “DaringFireball.net”

finally MacFuse and MacFusion. MacFuse is a mac implimentation of FUSE, File System in User Space. It allows SSHFS a much needed edition to geeks everywhere, and finaly, spotlight fs. Just watch his video of mac fuse

I’d pretend that I have a more productive use for these ideas, but I don’t. I wanted to nab all of Order of the Stick and xkcd because I hate clicking through pages and then scrolling down for long images only to scroll back up for the next one. I figured that if I had them all, then I could just open up a batch, set Preview’s window once, and then thumb through them offline. To balance the karma from such a leech event I’ll just get some things from each comic’s shop (regexp/science) and the universe will still be happy and sunny and annoying and stuff.

I started with OoTS and went to the first comic. Looking at the URL for the comic image itself, I saw that it was a sequential number, one for each comic. Well, that’s remarkably easy as I then used curl to download them with a move like: curl -O http://that.com/ic/images/comic[000-999].jpg. That tells curl to grab a thousand images in sequence and requires no actual thought.

However, the last hundred or so didn’t come through like that, so I went to the page and pondered why. When I checked the URL of the image to see if it had moved, I realized that someone was on to people like me. It’s in the same place, but it’s been named with a random hash for a filename. Good job, you just made this a challenge. There's more »

It’s a question we get every now and again that simply doesn’t have an easy answer: “How do I add items to the Login Items from the Terminal?”

Well, that’s hard, and mainly because the defaults command is limited in that it cannot nest collections and the folks that made the plist for loginwindow decided on an array of dictionaries, thus tossing that command out the window as a solution.

==$ defaults write foo test -array-add -dict Hide 1 Path /Applications/TextEdit.app There's more »