Why we like what we make Why are people amazed that she likes her own music? Like, how are you going to make music if you don't like what you're doing? If you don't like it, you just change it until you do like it, that's art. (source)
Gall's law A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a working simple system. This quote is from his book:
Use KeyDown for shortcuts I just encountered an interesting UX issue regarding pressing a shortcut. I was using the KeyUp event for some of the shortcuts, and I've found it to be flaky and counter-intuitive. The main reason is that it's rather difficult to trigger the key up event when
In zsh, `set -o vi` interferes with `history-search-end` Since I've moved to zsh, the history searching using the up arrow hasn't been working. Today I've decided to sit down and investigate. It turns out that set -o vi needs to be executed before history-search-end as shown below: # This need to be above
How to solve a sliding puzzle When I was 13, I got a 3x3 sliding tile puzzle. Back then, I went to a military-esque boarding school (lolz) with no internet nor TV. It was 1999 in Thailand; the internet wasn't prevalent yet anyway. I had a lot of time in my hand and channeled
I like using a Google Group for recording meeting notes After leaving Stripe, I've experimented with a few other mediums for recording meeting notes. To name a few, I tried Google Doc, Slack, and paper notebooks. Even at Stripe, I did experiment with those mediums and didn't like them. They often miss one or another aspects
My experience migrating a PlayFramework app to Scala 3 I have a small PlayFramework app (https://superintendent.app) that I just migrated to Scala 3. Here are my learnings: The goods 1. Scala 2 syntax is still valid in Scala 3. Basically, 95% of the code still works as-is. 2. Cross-publishing one of my libraries to work with Scala
One more reason to choose Postgres over MySQL Almost always, I'd choose Postgres over any database for a new project because it's flexible and support multi-variances of scenarios that may require different performance characteristics. However, I don't generally feel strongly about MySQL vs. Postgres. Either seems fine.... until I've learned
Set up Programmable Tooltip to open Sublime with a specific file Today I just set up a more complex and powerful use case: I now can select a file path and open the Sublime text to see that file. Occasionally, I'd see a file path in my terminal because it is printed by the program that is running, and
Set up the vim mode in IntelliJ to be aware of CamelCase I work with Java and Scala quite a lot, and last week I've realized that hey maybe I should set up w and b in vim to jump to the next word in CamelCase. There is this cool vim plugin: https://github.com/chaoren/vim-wordmotion – However, the vim