RSSAmplifier

Blog

Jordan Torbiak

Recent content on Jordan Torbiak

torbiak.comRSS feed ↗9 posts

Latest posts

bash extglob: Tips for using negation/!()

Intro bash&rsquo;s extglob feature enables some additional pattern-matching syntax and brings globbing capabilities a lot closer to typical popular regular expression dialects. In my experience, though, the only extglob operators I&rsquo;ve ever had occasion to use are @(<pat>|...) , which matches one of the given subpatterns, and !(<pat>|...) , which matches anything except one of the given…

Using the same colors for the terminal and Vim

In short, I&rsquo;ve settled on a dark 4-bit terminal palette that is readable for the default and black background colors and use other techniques to workaround unreadable foreground/background combinations, which are mostly when two relatively light colors are put together. I do :set t_Co=16 in my vimrc so themes that check it use the terminal palette instead of the absolute 8-bit color model,…

Normalize volume system-wide with PulseAudio

Motivation I usually watch YouTube videos while I wash dishes, and if videos have very different volume levels it can be either annoying to not understand what&rsquo;s being said or painful to endure loud sounds while I dry my hands so that I can adjust the volume. So I&rsquo;ve been delighted over the past couple years using a compressor filter from Steve Harris&rsquo; LADSPA plugin suite with…

Revisiting pruned approaches

Recently I&rsquo;ve noticed a few cases where I&rsquo;ve been solving a problem and determined that some approach doesn&rsquo;t work, only to get stuck on other approaches too and finally return to the supposedly broken approach and realize that it actually works. Occasionally I&rsquo;ll explicitly set out to rewrite a piece of broken code using the same approach and it&rsquo;ll work and I can…

Histograms of timestamped data: gnuplot vs matplotlib

Introduction I wanted to learn a charting tool that is: convenient enough to quickly create rough data visualizations without it feeling like an indulgent digression fast enough to visualize large datasets, maybe millions of points scriptable, so chart source code plays well with version control Without doing much research on the options I decided to start with the venerable gnuplot. Data…

Absorb changes across a topic branch in git

Motivation: tedious fixups Here&rsquo;s the situation. I&rsquo;m working on a feature and end up with a chain of commits that depend on each other. It&rsquo;d be easier for me as the author to put all the work in a single commit, but I like telling stories with my commits to (hopefully) make reviewing the branch easier and the history more meaningful in general. Anyway, the review goes back and…

Finding find: grasping its simple expression language

Confusion I remember the first time I tried to use the find command on Linux, over a decade ago. I knew a substring of the name of a file I wanted to find, had found something on the web suggesting I use find , and was so disappointed when I couldn&rsquo;t just run find $SUBSTR to get my desired result. &ldquo;Surely such a command exists,&rdquo; I thought. And it basically does, with locate , but…

Failing to write useful mouse keys for X11

Motivation I&rsquo;ve stuck with Apple laptops primarily because I haven&rsquo;t had a pleasant trackpad experience on anything else. But about a year ago I noticed I was spending all my time in a web browser and tmux and had disabled or was avoiding many of OSX&rsquo;s features, like the Dock, Dashboard, full-screen apps (due to the lengthy animations), Spotlight (because mdworker indexing…

File management on Windows with Proto

Dissatisfied with explorer.exe ? Find drag-and-drop and manual window placement tedious? Like using the keyboard? Don&rsquo;t want to choose between the hundreds of Norton Commander clones? You should try Proto . Proto is a fast, weird, original, keyboard-controlled file manager written by Mieszko Lassota. You get tabs, incremental subsequence filtering everywhere (eg. &lsquo;mp3&rsquo; matches…