jump to navigation

Spotlight Searching at the Command Line April 5, 2011

Posted by Robert Harder in Utility.
Tags: , , ,
3 comments

If you know about the mdfind command that lets you perform Mac OS X Spotlight searches at the command line (The Power of mdfind, O’Reilly), then you know it’s a good start but ultimately unsatisfactory. I made up a shell script mdfindi that helps me interactively navigate the results of mdfind when I SSH into my home computer. Of course I keep the script on my Dropbox as mentioned in an earlier post so that it is available to all of my computers.

View mdfindi script

(more…)

Bash Profile Sharing and Useful Scripts March 17, 2011

Posted by Robert Harder in Utility.
Tags: , , ,
5 comments

If you live at the command line as I do, you probably have a number of aliases, functions, and status updates added to your ~/.bash_profile, ~/.bashrc, or similar file. With a little effort you can share the critical components across several computers either automatically (Dropbox or SugarSync) or manually. The key is to abstract away machine-specific references. The following are suggestions for useful additions to your command line lifestyle.


(more…)

ShieldsUP! Strange Results March 15, 2011

Posted by Robert Harder in Utility.
Tags: , , ,
add a comment

ShieldsUP! from Steve Gibson is a great service that helps you assess your computer’s protection on the Internet. Debugging some recent router troubles, I tried turning on DMZ mode, which redirected all incoming traffic to a Mac (OS X 10.6.6) on my network. I was surprised to see the striped pattern below:

Now that’s weird. Could it be some kind of reactive firewall technique on the Mac? I don’t know, but it’s a pattern, and that certainly caught me off guard.

Share a Windows Printer with a Mac January 25, 2011

Posted by Robert Harder in Utility.
Tags: , ,
97 comments

This page used to reside on a SourceForge page, but I moved it here because I believed a comment trail would be useful to the community. -RH

How to Use a Printer Attached to a Windows XP Computer in Mac OS X

Google translations:
Arabic
Bulgarian
Chinese (Simplified)
Chinese (Traditional)
Croatian
Czech
Danish
Dutch
Finnish
French
German
Greek
Hindi
Italian
Japanese
Korean
Norwegian
Polish
Portuguese
Romanian
Russian
Spanish
Swedish

I’m not sure how good these automatic translations are. Good luck.

This document gives a detailed explanation of how to set up an HP DeskJet 722C printer that is attached to a Windows XP computer so that the printer can be used by a Mac OS X computer on a local area network (LAN). If your printer is slightly different, or you have a different version of Windows, or you’re using a different Unix than Mac OS X, or you’re sharing to another Windows computer, you’ll have to adapt these instructions with your own creativity.

Be aware that these procedures may not be necessary at all if the printer you have has Mac drivers, and other Microsoft incantations are working properly. You may be able to get off easy, but then, you probably wouldn’t be searching the Internet looking for these instructions. Your mileage may vary.

Thanks to the detailed directions at http://pnm2ppa.sourceforge.net/PPA_networking/PPA_networking-4.html which gave me most of the information I needed to make these detailed instructions.

The process falls into these five general steps:

  1. On Windows: Make sure you have a working printer set up on your Windows XP computer (this is not covered here).
  2. On Windows: Install the software needed to emulate a Postscript printer and redirect printing ports
  3. On Windows: Set up an emulated Postscript printer on Windows XP that will actually print to the (probably non-Postscript) printer set up in step one.
  4. On Windows: Set up Unix LPR Printer Services on Windows XP that will point to the emulated Postscript printer in step three that in turn points to the real printer in step one.
  5. On Mac OS X: Set up an LPR over IP printer in Mac OS X pointing to your Windows XP computer.

(more…)

Locate Your Mac Laptop If It Is Missing January 19, 2011

Posted by Robert Harder in Utility.
Tags: , , ,
20 comments

There are commercial services to help you locate lost laptops, but I wanted a feature that required less software to be installed and fewer Big Brothers helping me out along the way. Using a few free tools and shell scripts, I cobbled together my own LoJack-type system that notifies me whenever my laptop awakes (I can’t help you if your computer is turned off).

Tools Used:

  • SleepWatcher: Executes commands of your choice when computer wakes, sleeps, etc
  • bash: Shell scripting
  • LocateMe: Free command line tool (from me) using Apple’s geolocating API
  • Notifo: Lightweight notification for iPhones, etc
  • Google Maps: Displaying your laptop location

Downloads:

(more…)

Total Frustration with Eye-Fi Card December 7, 2010

Posted by Robert Harder in Utility.
Tags: , , , ,
92 comments

Rarely have I been so frustrated with a piece of technology, particularly with one that is supposed to make things easier on me. I had the opportunity to borrow an Eye-Fi Pro X2 8GB SDHC +Wi-Fi card for my camera, and boy am I glad I am not out the $150 it would have cost me to buy one of these.

The Eye-Fi series of SD cards for digital cameras lets you transfer photos wirelessly from your camera to your home computer or one of several online photo services all while leaving the memory card in your camera. This sounds like such a neat idea. I was really excited to get to try it out. Imagine taking a bunch of pictures and then going to your computer to find that the pictures are already waiting for you there. Yeah, keep imagining.

(more…)

Let Front Row Access Other User’s iTunes Account on the Same Computer November 17, 2010

Posted by Robert Harder in Utility.
Tags: , , ,
24 comments

I wanted to set up my main iMac in a central location to replace an aging “half basketball” iMac that’s used for playing kid cartoons and music. I would like for this computer to play all the content in my iTunes library, but I do not want my account wide open for (little) people to muck about in.

Fast User Switching to the rescue! Kind of. If I leave iTunes running in my account and switch to the Kids account, their iTunes can see my shared library; that’s a good start. I want Front Row to be able to see that item under “Sources,” but it does not.
(more…)

How To Generate Your Own Benford’s Law Numbers November 10, 2010

Posted by Robert Harder in Utility.
Tags: , ,
5 comments

An interesting phenomenon of naturally occurring numbers is that the leading digit ‘1’ occurs with surprising frequency, that is, about 30% of the time. This is known as Benford’s Law and is discussed in a number of places (Wikipedia, Wolfram, Cut-the-Knot, NY Times). Statisticians can use Benford’s Law to try to detect fake data that people generate, probably with a simple Uniform(0,1) function such as rand() in so many programming languages.
(more…)

Titlecase at the Command Line (and Mac OS X Services) September 24, 2010

Posted by Robert Harder in Utility.
Tags: , ,
add a comment

Sometimes I want to change a line of text to titlecase Where Every Word Is Uppercase, and I am rarely in a program that offers that feature natively. I am usually at the command line or in a web browser or some such thing. To that end I put together some command line scripts and an Automator Service so that I could have an appropriate filter.
(more…)

NCSA Mosaic on the Mac September 14, 2010

Posted by Robert Harder in Utility.
Tags: , , , ,
add a comment

A nostalgia article on PC World, Finding Stuff Online: 20 Years of Innovative Search Engines, reminded me that I should share my running version of NCSA Mosaic v2.7 with others. I don’t know where I got it, but it might have been from the Floodgap guys.
(more…)