|
mac geekeryGet your geek on. |
AutomationAuto-adding Files to a RepositoryOctober 31, 2008 - 1:19pm
Since I use Mercurial and it doesn’t have Xcode integration, I find that I’ll have added classes or whatnot and they will not have been added to the repository and I’ll forget about them come checkin time. That’s bad. So I thought about ways to remedy this, and after describing the issue to myself, the issue was clear. “When I add new files to the directory, it should run So I made a Use CUPS Classes to Elegantly Handle Different LocationsNovember 30, 2007 - 11:53pm
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 » Changing Airport Settings En MasseNovember 26, 2007 - 3:50pm
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:
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:
This command will search through the 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 » Configuring Mail to Scan Incoming Email for MalwareJune 1, 2007 - 7:55am
We may not like it, but OS X malware is on the rise. Even if you prefer the lalala-I'm-not-listening approach to security, you may want to do the decent thing and not forward such nasties from your Windows-using colleagues. Here's how to set things up.
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 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 » AppleScript, Adium, and Chatting Offline BuddiesMarch 21, 2007 - 11:35am
I have waaaay too many chat buddies to leave offline contacts visible in my Adium buddylist, but I tend to IM a few of my Jabber buddies frequently even when they’re offline. In Adium, you can create new chat, select the service, and start typing in the UID of the contact, but that’s a small chore. The dictionary for Adium’s AppleScript support is sparse and confusing, though I’m sure it makes perfect sense for seasoned AppleScript vets. I had to trowel around on Adium’s Trac site to figure it out. Documented here, for you pleasure, is how to create a new chat via AppleScript.There's more » Starting Different Applications Depending on Power StatusJanuary 5, 2007 - 12:00am
Hi, is there any way for my laptop to start up different sets of applications on login based on whether it’s on power adapter or battery? Short of having two different accounts I mean. Thanks. What syntax would I use to change the color depth of the display/monitor either in an Applescript on OS 10.4 OR via command line (defaults write maybe) ? How to View TiVo Recordings on Your Mac or iPodDecember 4, 2006 - 4:35pm
You no longer need Windows. Now, it can all be done on your Mac. Everything from fetching the files from the TiVo to the decrypt and playback can be accomplished on the Mac side. This all due to some great work by the guys on the TiVo Decode and Galleon projects. Let’s get started. A short road map of where we’re going:
This article discusses a method to automate the process of getting the files off the TiVo and into Front Row/iPod format. If you just want to convert a single file then just run Note the updated scripts at the end of the article that resolve some issues with catching files in their varying states. These appear to get it right almost all of the time now.There's more » |
|
||||