Categories
Uncategorized

Current Age Shortcut

Josh Holtz (@joshdholtz@mastodon.social) had posted about his iOS widget called “What’s My Age Again” which does one thing… Tells you your current age! I’m much older than Josh but I guess we both suffer from not knowing our age. I think it’s mainly the issue that my birthday is in middle of the year and I am a different age for the two halves of the year. Anyway… You can read Josh’s post about his widget.

When I started messing around with Shortcuts for iOS and macOS I got inspired by Josh and ended up making my own “Current Age” shortcut which is slightly similar to what Josh created, at least in the output.

My Shortcut doesn’t display my age all the time though, you need to touch the Shortcut to run it, which is fine. I like the fact I was able to easily add this functionality to my phone.

The other neat thing is that you can create Shortcuts on macOS, and some of them will work on the desktop or mobile… and some will work on the Apple Watch I guess. (I don’t have one, and probably will not have one in the future.)

I guess you can also share / publish these Shortcuts so others can use them, you know, so others can know when my birthday is!

I was a user of AppleScript many (many, many) years ago, and while Automator has been around awhile, I never really liked it. And even though it was fun playing with Shortcuts for a bit, on the desktop I was using Quicksilver for a few things, but recently stepped up to Keyboard Maestro, which is simply amazing for automation on macOS, but I should probably save that for another post.

Categories
Uncategorized

Hex Driver Handle

I’ve seen a few handles that convert a hex key into a “screwdriver” style tool, so I figured I would make one. (I’m sure there are better ones, but this one is mine!)

This one is two pieces. The main handle has a slot so you can insert the hex key, and then a piece to put into the slot. (Which I call the “Slot Filler” of course.)

When I printed this on the Prusa (not pictured) it came out perfect, and the slot filler filled the slot… perfectly.

When I printed it on the Maker Select Plus (the red version in the photos) it… well, fits, mostly… sort of. Hmmm. I had to X-ACTO knife away the blobs on the end. (Sorry, but the Prusa just prints better!)

You could always glue the slot filler into place I guess. It’s a wedge so it should “wedge” in place. In theory…

The first version had no slot filler, and no hole for the short end. I just smashed it into the slot. I figured making it removable might be a better option though…

Maybe it’s not a god idea? I don’t know. I did widened the slot a bit and added the slot filler. I just like designing these things and testing them out.

You can get the STL and .scad file from Printables.com – Hex Driver Handle (2mm). Print it if you need it!

Categories
Uncategorized

OpenSCAD Local / Modules Variables

I will start with the disclaimer that I’ve never held the title of “Software Developer” or even “Programmer” and my career has been built on being a “Hacker with Many Hats” kind of person. So I tend to go broad and not go deep on a lot of things. I’ll confess, I’ve used a fair amount of global variables in my code, probably some where I should not have. As an old-timer Perl Hacker, it’s… meh. My code was often quick & dirty to get the job done, not elegant and meant to last.

That said, even though I read an entire book on OpenSCAD I somehow had it in my mind that variables in OpenSCAD could not be changed during run-time, as it were. OpenSCAD is… weird, but I’m okay with that. Supposedly variables in OpenSCAD should be thought of as “override-able constants” rather than as variables in the traditional sense.

Also, I’ll admit that often I find examples of code either poorly written or too complex for me to immediately grasp. (I’ll let you decide which is which.) Here, you can read about scope in OpenSCAD User Manual/User-Defined Functions and Modules and OpenSCAD User Manual/General.

Or you can look at my example above… Because yes, you can change the value of a variable in a function / module! Variables are local within a module!

Here’s the demo code shown above. I am guessing 98% of software developers are saying “Duh!” right now… so this post is for me, and people like me, who may have missed this, may have been confused by this, or just needed a simple demo.

Categories
Uncategorized

Wire Spool Holder

I use these spools of silicone wire and they come in a cardboard box with a hole to feel the wire through and every damn time the wire goes back into the box and I have to open the box and feed it through again and wow it’s a pain! This is an attempt to solve that…

Like some of my other designs I wanted a modular thing. The wire comes in six spools/colors but rather than one huge print each spool has its own holder. This makes sense to me. I thought about ways to interlock them, but eventually decided to just add screw holes and mount them all to a piece of scrap 1/4″ plywood that was near the laser cutter.

The hole the wire feeds through is just right for this wire. YWMV (Your Wire May Vary!) The OpenSCAD file allows for adjusting the hole. An X-ACTO knife or drill bit could also be used to fine tune things.

Advantages of this design? It is stackable. I can put stuff on top of it. (Maybe more wire spools?) I can pick up the whole thing easily. There is not one rod holding all spools, and you can easily remove/replace a single spool.

So far I’m liking this thing. It’s similar to my Chonky Solder Spool Holder. It took about four revision to this before I had the final version.

Here’s the first attempt. It was too difficult to feed the wire through the hole, so the hole got moved up and the half-circle notch was added to allow getting a finger in there to feed the wire through. The bottom lip was also added to allow for mounting to the board with screws.

You can get the STL and .scad file from Printables.com – Wire Spool Holder. Print ’em if you need ’em!

Categories
Uncategorized

Headphone Hanger (in OpenSCAD)

I wanted a simple headphone hanger for my office at work and I found a few really nice ones on Printables.com but I wanted one I could easily change the mounting holes on, so I whipped this one up in OpenSCAD.

Does it sort of look like a dollhouse bed? Yes, it does…

Can of some weird seltzer my wife drinks for scale… Also, I made it parametric so you can make it longer or shorter if needed.

Here’s a really long one…

And here’s a really short one…

And here’s one that’s juuuuuust right!

If you change the length remember to take into account the full depth of your headphones, not just the band that goes on your head, otherwise they’ll hang at an angle against the wall. That long one could probably hold all of my headphones! (I have four pairs. All of the other ones are Sennheiser but the ones I have at work are some Audio-Technica I got from the dumpster.)

You can get the STL and .scad file from Printables.com – Headphone Hanger. Print it if you need it!