All posts tagged #tools all posts RSS-feed

Some JetBrains IDE tips

Although they're expensive I really like the JetBrains IDEs. I use IntelliJ IDEA almost every day, and PyCharm and CLion quite frequently. Here are a few features I like! Multi-caret (info) to change multiple pieces of text simultaneously. You can place carets with a hotkey, but I especially like doing a search and putting a caret at each match. Much more flexible than search/replace. String manipulator: this plugin adds a lot of text manipulation on selected text under the hotkey... full post»

Android apps I like (2017)

Sometimes I want to get something done on Android, and it takes an hour trying apps to find the perfect one. Other times, I just don't know I want something until I read about an app or someone tells me. To possibly save you some time, here are some apps I think are useful! Pocket This app is great. It lets me store articles for reading later. I often find something interesting to read, and then that article has a... full post»

Rainbow colormap in javascript

Simple one one this time! How to make an RGB rainbow colormap in javascript? Example: This is useful, for example, when plotting charts with something like chart.js. This is the code for it. The first part is converting hsl colors to rgb ones, which you might skip depending on which browsers you want to support. The second part generates a rainbow by simply rotating the hue of a hsl color. The other parameters are optional: you can make the colormap... full post»

SCons Fortran example

I wrote about SCons several weeks ago. It took some getting used to, but I'm very happy with the result! It's found it to be more expressive and flexible than Make. Or at least non-standard things are much more straightforward; I guess Make can do almost anything with enough recursion and voodoo. I can't really comment on the speed; it's plenty fast, but there are less than 50 files. I took some time putting it together, partially because there aren't... full post»

Bye Make, hello SCons (Fortran)

Makefiles have been around for a long time and are used in many places. And not without reason: a straightforward dependency tree with one version of the target and a specific compiler and all the source in one directory is easy to setup and is handled well by (GNU) Make. It's a common situation, and if that describes your project, there's no need to switch. But the code I'm working with has a build script and Makefile that can make... full post»


I've started a draft about PyCharm 5 months ago. I really love PyCharm, it's the best! Everything is just so smooth. But it's hard to summarize what makes it great, and I don't want to list all the little details. I used Eclipse before, which wasn't bad, and there's not really any giant thing in PyCharm that Eclipse lacked (stability maybe). Rather, it's the hundred little details that add up to a much better experience. I also used Wing for... full post»

Dory backup removal

Daily backups, even if incremental, can fill up your disk space pretty quickly. So I've added some functionality to Dory to remove old backups. I wanted a way to keep a number of backups, with recent backups being closer together and past ones further apart. I've ended up using the reciprocal time-distance to each neighbour, multiplied by the square root of the age, as a 'redundancy score'. This way, if there are close neighbours (e.g. .two backups made on the... full post»

Dory backup scripts

I made a backup script that is working pretty nicely for me so far. It has several function, the last one being the essence of it. Make a dump of all databases (postgres & mysql) to zipped sql files. It deletes any that haven't changed since the last backup. Bring a list of git repositories up-to-date with with their remotes on the current branch, by cloning or pulling. (This is useful to have a backup of a non-bare repository). Make... full post»

Ubuntu macros

The macro feature of Notepad++ was really useful. On Ubuntu I've had to do without Notepad++, and anyway it would be better to have something that works inn any program. I've found/made something today, and since StackOverflow locks all questions about such things, I'll post it here. First, install xmacro using sudo apt-get install -y xmacro. The basic commands are xmacrorec2 > "$macrofile" and xmacroplay "$DISPLAY" < "$macrofile". I've made a few small improvements: Assigned hotkeys so I can use... full post»

Clementine music player

There is a lot of software to play music. I'm nowhere close to trying all of it, so take this recommendation with a grain of salt. I'm recommending Clementine anyway, since after finding it, I didn't feel the need to try other software after. The main reason I like Clementine is just that it does almost all the basic functionality very well. Things like Searching your music collection or a specific playlist Creating playlists from directories, searching results, etc Editing... full post»

The blog!

#book, #security, #functional-programming, #coding, #chinese, #data-analysis, #git, #useless, #ubuntu, #future, #hardware, #imadethis


  1. Android apps I like (2017) @Mark I've found and even better app for Chinese reading pract...
  2. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  3. Rainbow colormap in javascript @Mark Now finally with color-coded source!
  4. Bye Make, hello SCons (Fortran) @Mark For SCons' own comparison against alternatives, have a l...
  5. Ubuntu macros @Mark Macro locks have been made more reliable, to prevent any...
  6. Dory backup scripts @Mark I've added some functionality to remove old backups! htt...
  7. Ubuntu macros @Mark Updated after moving the files to