Category Archives: Uncategorized

Auto-eject drive Folder Action

Published / by Kevin / Leave a Comment

This script is meant to auto-eject a drive after the amount of time set in the script. It will prompt you first, so you may cancel at that time.

Why would this be useful? I have a Garmin Edge 130 bicycle computer. I had been using my phone, but every app/service has binding arbitration garbage in their 50 page click contract (aka baloney), even so far as with Strava flat out stating they may delete your account if you opt-out of it. Via real mail, of course. Outrageous. So I went with Garmin, who actually have a much smaller click contract. Like a breath of fresh air.

At any rate, my wife also has a Garmin Forerunner 35 watch and, like my Edge 130, includes a drive which mounts on your desktop when plugged into a computer. I believe this drive is used for manually installing watch faces or “widgets” and data screens. Although Garmin makes software to load those sort of things.

We typically plug these devices into a computer to charge them and when they are unplugged the Finder complains about the drive having not been ejected properly and file damage or something. Who even reads those things? That’s where this script comes in and why the trigger is “GARMIN”.

This script is meant to be attached as a Folder Action on the Volumes folder.


-- Name of disks to watch out for.
property triggers : {"GARMIN"}

-- Number of seconds until the script executes its mission unless user cancels.
property TKO : 30

on adding folder items to this_folder after receiving added_items
end adding folder items to

on run
end run

on do_it()
  tell application "Finder"
      set these_hds to every disk whose name is in triggers
      if these_hds is not {} then
        set now to current date
        display dialog "The following volumes will be ejected in " & (TKO as text) & " seconds." & return & return & these_hds as text with icon 2 giving up after TKO
        set the_res to the result
        if gave up of the_res is true then
          my inspected_detected_and_ejected(these_hds)
          set now_now to current date
          delay TKO - (now_now - now)
          my inspected_detected_and_ejected(these_hds)
        end if
      end if
    on error theErr number theNum
      if theNum is not -128 then display dialog theErr giving up  after TKO -- Error -128 is the cancelled by user error.
    end try
  end tell
end do_it

on inspected_detected_and_ejected(these_hds)
  repeat with this_hd in these_hds
      tell application "Finder" to eject this_hd
    end try
  end repeat
end inspected_detected_and_ejected

Notable is that this script delays the full set time whether the user clicks “OK” or not.

Using Netatalk & CUPS

Published / by Kevin / Leave a Comment

Using 20+ year old hardware is as much a curse as it is a blessing.


AccuSet 1000 (imagesetter) – RIP (PowerMac 7500) – CUPS server (Raspberry Pi) – Clients (OS X 10.5, macOS 10.12)

The OS X 10.5 client currently serves as an MDNS print server for the newer OS machine since that is the last Macintosh OS version to speak AppleTalk, which the even older RIP requires (thankfully via ethernet).

In this day and age OS X 10.5 (Intel) has nothing close to a modern web browser. 10.5 PPC does in the wonderful TenFourFox, which as its name implies means OS X 10.4 has a more modern web browser. Hell, Mac OS 9 has Clasilla (progenitor of TenFourFox). In a perfect world I would use the 10.5 machine as the server for a newer, betterer everyday workstation, but that money doesnt exist. So out comes the Raspberry Pi.
Continue reading

New wheels

Published / by Kevin / 2 Comments on New wheels

2011 Masi Speciale

This is the coolest bike I found after starting to search for one in earnest. Picked it up at Arizona Bicycle Experts. There are some custom / by hand frame builders that put together some fantastic stuff, but those are *way* outta my price range. Got it under MSRP since it is an older model, but I’ll still be paying for it for a while. These things is expensive. I actually went in to look at aluminum Masi’s, but this one fit and I’m glad it did.

Before jumping in the water I got my road bike toes wet on an aluminum Schwinn Empire from Wal-Mart. Not a bad bike on the cheap. Not a great one, either, since the components are all pressed steel not machined aluminum. Took quite a bit of tweaking to get it rideable. Although you could easily get your monies worth out of it, it never felt… I dunno, permanent I suppose. The Masi does. Could be that having years of experience with a quality steel frame helped me develop a bias.

Now to get my fat ass out there more often. The main reason for starting on this was to lose some weight and get in better shape. Hopefully even commute to work this summer. Used to love the road bike I had as a young teenager, so I’m looking forward to it.

MTB conversion

Published / by Kevin / 1 Comment on MTB conversion

In my quest for a better street bike I can either spend a few hundred on a used better model bike or a new low end model bike. Or I can convert my aging, better model MTB, a 19″ 1992 Trek 930 hardtail.

Tires were 1.95 knobbed, now 1.5 road tires. Makes for a noticeably stiffer ride. Though it actually seems harder to pedal. Since I’m as out of shape as I’ve ever been I cannot rely on this assessment.

Chainrings (110BCD) can be replaced with some slightly larger ones. Outer chainring is already 48t, but I can fit a 54t on it. They really do need to be replaced as it is, so why not go a little more road worthy? Sugino makes a set that will increase the outer and granny gear, letting me keep my crank and derailer.

Handlebar (upright) will likely not be replaced with a drop bar since I would need to replace the stem as it’s a one-piece high rise, but an aerobar might help.

In the end I’m still torn because I’d be making a workable tank of an MTB into a Frankenstein road bike that never will be one. At this point, I think stopping at tires is enough.

iPhoto ’11 is a PITA to use

Published / by Kevin / 1 Comment on iPhoto ’11 is a PITA to use

Photo metadata. Keywords, description / caption:

ExifRenamer (have)

Straight-up iPhoto competitors: [This has gone the way of the cloud. Boo!]

[added 2015-01-23]

Too bad UPnP / DLNA is such a shambles. Network photo streaming is where iPhoto has [had] them all beat… so long as you connect via OS X, iOS, or TV. [Sharing iPhoto to iPhoto has been removed. You’re supposed to rely on iCloud photostream sharing. This “solution” is ass.]

Nintendo’s Tech Support Forums: How do I get what I pay you for? [UPDATE]

Published / by Kevin / Leave a Comment

[UPDATE]The “November Update” of 2011 has rectified this situation. You can now add only the amount necessary to make a single purchase. Way to go Nintendo. Very happy to be able to use it again. My wallet not so much.

Nintendo’s Tech Support Forums: How do I get what I pay you for?.

Me bitching about the way the 3DS eShop works.
Continue reading