Today, I was working on a script at work where I ultimately needed to export a 2MB file and although this isn’t a large file, I know I will forget about getting rid of it so while searching around, I came across tempfile.
Tempfile simply will be garbage collected at some time because the file is stored in /tmp and you can make your own copy if you need it. Here’s an example from the ruby docs:
file = Tempfile.new('foo')
file.path # => A unique filename in the OS's temp directory,
# e.g.: "/tmp/foo.24722.0"
# This filename contains 'foo' in its basename.
file.read # => "hello world"
file.unlink # deletes the temp file
Make sure to run file.unlink if you want it to be deleted right away.
I’ve used the Calculator app on the iPhone for as long as I’ve had a smartphone and I think on the computer, it’s a weird thing that’s been missing for a long time. Recently, Apple brought the Calculator app to Mac but I don’t think it’s as useful as I want it to be so I recently discovered an app called Numi.
Today, I saw Simon Willison’s “One year of TILs” post on HN (which itself was inspired by Josh Branchaud’s collection) where he mentions writing blog posts that come from small tidbits of knowledge. For a long time, I’ve dabbled in keeping notes in Notion, text files edited with vim, and a bunch of native mac apps but the problem I run into over and over is the inability to deeply search for things. Notion has been improving in this regard but still feels really slow. This is a surprise since it has all of data that I want to search.
Well, I realized that if I wanted to just search through my blog posts and pages on my blog (where I keep most of my public notes), I can just use google with the site:usmanity.com specifier.
Why not DuckDuckGo?
I use DDG for 99% of my searching on my phone and computers so when I tried the site:usmanity.com or even the one where it was specifically my blog (site:blog.usmanity.com), DDG fails to find any of the specific pages/posts. So I went with Google on this one.
How it works
To speed up the whole process, I’ve made a custom search for Alfred, this is the key to making this trick work.
In the above image, the “b” stands for “search on my blog” and the rest is what gets passed to Google. It works like a charm. I get a few search results and the more specific I make the search, the less results I get which is perfect for my use case!
About two weeks ago, I made a reservation for the [GMMK Pro] keyboard from Glorious. At first glance, I liked the keyboard and then watching reviews of it online, I really started to like the way it was put together. My favorite keyboard layout is the simple 80% or TKL, which is a normal layout keyboard with the numpad removed. The GMMK Pro is a 75% board since it lacks the full navigation cluster and the arrow keys are shifted to the left a bit. It also doesn’t have F13-15 (or Print screen, num lock, and Pause). Instead, it has a knob located in that spot, which was sort of a bonus for me.
Well, while I’ve been impatiently waiting for the board, I’ve been tempted by other boards, including a lot of switch options. I ordered a set of Gateron Red switches with the GMMK Pro, the switches are made by Glorious as well (I think). And they feel a bit too linear and straight forward for me but I might try them out when the board gets to me (whenever that maybe).
Loud switches annoy me
The loud clicky switches like Cherry MX’s blue and green switches annoy me since a lot of the time, I’m typing with music playing in the background and the clicking and clacking isn’t very satisfying to listen to and some times it even distracts me. This is at home so it’s not like I’m bothering anyone else, just myself but I still consider that to be too much. I’ve recently put away my WASD board which I was using as my only board for 2020 while WFH and I’ve been using my Ergodox which has less noisy MX brown switches but the typing experience on it is not very satisfying.
So while I wait, I wanted to try a board I have been interested in for awhile. The RealForce boards are made in Japan with Topre switches which are not exactly mechanical switches but do have very good build quality and are raved about online. The switches are some of the few switches available now that are patented and only made by RealForce and other Fujitsu brands. I believe because of this proprietary switch, their keyboards are inherently more expensive than pre-built mechanical keyboard options. Well, I still wanted to try it and make sure I wasn’t leaving a stone unturned before I buy what might be my endgame keyboard (GMMK Pro). So when I ordered the RealForace R2 from Amazon, I also ordered the supposed dupe of it which is the Epomaker Niz Plum.
Comparing both boards
Before I jot down my thoughts, I want to point to a youtube video you can watch that compares these two boards as well:
The typing experience, for the first few minutes, on each keyboard feels the same. But as I spent more time typing, even while typing this blog post, the differences started to become clear.
It definitely feels and types like a well built and solid board. Doesn’t have the cheap feel at all. This board is listed on Amazon for about $255 (USD). That means it’s one of the most expensive keyboards I’ve bought. This is expensive in general because you can get a wireless, type-c, and RGB enabled keyboard from Keychron for about $70. This keyboard just looks old, the ivory color that I got has the vintage IBM era colors and it might look cool from far away but comparing this with all the various options available out there, I don’t like the looks of it. The keycaps were hard for me to pull out so I didn’t want to mess with them after I couldn’t pull them with a keycap puller. This board uses electro-capacitive switches which is what the Topre switch is. The board doesn’t have general MX style + type switches so you can’t replace the keycaps. This is a big negative in my book since I am definitely considering buying some custom keycap layouts. The layout of this keyboard uses a mixed weight for the actuation force and this actually is really cool. I have typed for about half an hour on it so I can’t say if it’s great for long term use but right off the bat, it did feel good for my weaker fingers like the ring and pinky finger. A weird performance issue is happening on my Mac which is sort of making me nervous about this board, it skips every 20-25 keystrokes, I am not a perfect typist but I know I’m pressing some keys perfectly and it just doesn’t pick them up. I’m wondering if this is due to not getting any feedback or because it’s not registering some keystrokes.
Niz Plum x87
So Epomaker has been a hit or miss in my opinion for me, I’ve tried another board from them and it felt very weak as a board for about $100. The Niz Plum board is listed for $155 on Amazon. Almost a full hundred less than the RealForce. This keyboard also uses electro-capacitive which is primarily the reason for me to try this board. It has the same layout as the R2 and looks very similar except the color scheme and case are a brighter white and less gray than the R2. The keycaps are MX compatible on this so easily replaceable. This keyboard is listed as having switches with a 35g actuation force, which to me feels a bit too light. Some times, I’ll just be resting my fingers on the home row and the keys will be pressed in. Just like the R2, this keyboard doesn’t have much feedback when the key is actuated which seems like an odd experience for me. Unlike the R2 that uses a fixed cable, the Niz Plum uses a type-C port. The board definitely is a modern take on the R2 in my opinion. Its typing experience is on par with the R2 for $100 less and for a better UX. No keystrokes were skipped with this one which is a great thing to have on a board 😀
Which one would I consider keeping? I think the Niz Plum over the RealForce but I am going to spend about a week with each and see how things go.
I am doing my regular laundry today and I gathered together all the masks we wear around the house to go outside. This is a weird realization to come to, I have a little mess bag that I put the masks in to wash them.