Unix Magic Trick: Rename stuff in bulk

Here’s a magic-trick I rock from time to time. I only graze the basic abilities of the “rename” program, but even in my basic use of it, I find it super helpful.

In this case, I had a situation where my eBooks had been resorted from a massive flat directory in to one containing sub-dirs named with the prefix “Categories – “. I might have sorted them in another manner if I didn’t know about the rename command. When I was done sorting and thus left with my category-based directories, I then wanted to rename each dir to dump the prefix.

A simple call to rename is all it takes:
rename "s/[what to find]/[what to replace it with]/" *

Continue reading Unix Magic Trick: Rename stuff in bulk

Dear Diary: Samsung ML-1610 on macOS 10.12 Sierra

I have a trusty Samsung ML-1610 printer that I think I bought for like $90 back around 2003. It’s been an outstanding little cheapie that so far has seen me through two undergrad programs and is now seeing my wife through her third such program. Overall, it’s unremarkable, but I like it enough to keep it going.

I’ve long-since used SpliX to get it to work under more recent versions of macOS. Lately, I’ve found splix’s installer fails to complete (I suspect SIP is in the way). And so this post exists to help me keep track of what I’ve done to install it on my wreckless fleet of macs.

Continue reading Dear Diary: Samsung ML-1610 on macOS 10.12 Sierra

Dear Diary: GoDaddy Error Code 6007

I’ve been working out a tolerable dynamic DNS solution for myself lately. After much effort, I’ve settled on running my own bind server (I last did this like 12 years ago, hah). I’ve written simple scripts that handle it for me and they work fine. However, I found for many of my domains hosted by GoDaddy, I couldn’t get it to use my new nameservers. Godaddy would let me switch my nameservers, but then they’d revert to their previous settings and I’d get an email containing the helpful message:

Error: Authorization error; 6007

Continue reading Dear Diary: GoDaddy Error Code 6007

3D Printed Hard Drive mount for 27″ iMac

One of my delightful neuroses is collecting abandoned non-functioning macs and fixing them. Last week I managed to pick up a completely dead 2010 one for $174, all parts included, just totally dead. Today I got the carcus of another for $51 (no screen, no memory, no motherboard, no glass). The carcus’ power supply happens to work and the $174 unit’s problem was exactly that – a dead PSU.

I needed a hard drive bracket/strap/clamp and had none. I measured as best I could with my plastic callipers (seriously the most useful tool of all time, maybe more useful than computers themselves). I used Sketchup to CAD a little hack to do the job. It’s not pretty and I’m a bit concerned about how hot these things can get, but I figure “meh, fuck it”.

I’ve published the file for the mount on thingiverse: http://www.thingiverse.com/thing:2152134

PS – these open and exposed PSU-guts have taught me a little about AC shocks. As a Computer Engineer, my preferred domain is low-voltage DC. Frick. AC makes me a little twitchy now. 😉

Trash Talker for macOS

Trash Talker on the App Store
I’ve released my first application for the macOS App Store. It’s a rebrand of a remake I did years back. I added some small new features based on requests I’ve had from users of the earlier version.

A little over 8 years ago I posted Shit Talker Phoenix for Mac OS X here on dawning.ca for download. I eventually also made a Windows build. STP was an attempt to give myself a bit of a functional Hello World project and to resurrect the classic Shit Talker by Jaundice which had become so old it was no longer functional in most cases. After posting my remake here on my blog, I found it actually has something of a user base.

Lately I’ve wanted to get back more in to typical App development. I’ve been writing software for a while, but most of what I make is specialized stuff made for a small group of people. I wanted to branch-out and get more familiar with more broad stuff. So STP, now Trash Talker has been reused yet again as another kind of hello world. This time with formal distribution through the App Store as the chief goal. I spent about two full days updating the app and getting it submitted. I also went out of my way to maintain compatibility all the way back to OS X Snow Leopard. I don’t expect anyone to actually run it on SL though as I don’t think the App Store runs on it, anyway, Lion and onward definitely work.