Hi, I’m Sam

This is my blog. Enjoy.

Custom Mechanical Keyboard

Posted on

I ordered a mechanical keyboard from WASD Keyboards awhile back. I got Cherry MX Brown switches. The still have a satisfying click but aren’t insanely loud like greens or blues. After having it for awhile, I decided to get dampers for it to make it even quieter. This made it feel too squishy and I removed them. Continue reading →

Automating Simple Things

Posted on

Most of my projects contain a Rakefile with some common tasks. rake is Ruby’s tool for running tasks. It’s my tool of choice for little scripts, but you could of course do whatever you want. My friend Ayaka even did a talk on scripting with Swift! Continue reading →

Cancel Borderless Window

Posted on

I just spent the last hour trying to figure out why cancelOperation wasn’t getting called in an NSWindowController subclass. At first I tried performKeyEquivalent in the window controller or in a custom NSWindow subclass. That didn’t work. I then resorted to keyDown in the window subclass and that wasn’t getting called. Continue reading →