When a task isn't instant, you usually don't want to run it on the UI thread. I present here a simple enough framework to run tasks in background.| dystroy|Canop / blog
Biome is a fast linter. Bacon is a background code checker. They're the perfect team to check, fix, and improve your JavaScript / TypeScript / CSS.| dystroy|Canop / blog
You want to use bacon on non rust projects? So do I.| dystroy|Canop / blog
Serde's derive is fantastic but if you want humans to read and write files, you can't just depend on the standard derive for everything. Having your values, even the composite ones, be written as simple strings is often more convenient.| dystroy|Canop / blog
Broot lets you navigate your filesystem, gives you an overview of any directory, previews file content. It does it by trimming folders in a balanced way, clearly outlining the structure of the tree. Entering zip archives and navigating them the same way looks like a natural extension, doesn't it ?| dystroy|Canop / blog
Your code is full of lists. And some of them should be sorted.| dystroy|Canop / blog
This post doesn't compare Terminator and Wezterm. This is the help I would have loved to find when starting to try Wezterm coming from Terminator.| dystroy|Canop / blog
How to leverage the Rust compiler to prevent identifier misuse ? How to go from ec2ba151-7acf-43a9-bb98-6f5331992f42 in your database to "Cust_ec2ba151-7acf-43a9-bb98-6f5331992f42" in your REST/JSON API ? How to do it at zero runtime cost, with no boilerplate, with a derive macro ?| dystroy|Canop / blog
I see my code projects in trees and lines, and it affects how I want it to be formatted.| dystroy|Canop / blog
My requirements and solution for a safe storage of personal secrets.| dystroy|Canop / blog
As I maintain several FOSS projects, I figured it would be convenient to have in a central place some concise guidance on contributing.| dystroy|Canop / blog
To deal with hardcoded or configurable key events in a cross-platform terminal application written in Rust, you'll probably need to determine what keybindings you can really use, use convenient hardcoded keybindings, and read keybindings from a configuration file| dystroy|Canop / blog
So you want your unix application to select different sets of colors depending on whether the terminal is set to a light or dark theme ? Here's an how-to. It's first targeted at Rust programmers but each step can be ported to other languages.| dystroy|Canop / blog
As my disks tend to be quite messy with time, I had to devise ways to reclaim space, which means both spotting big directories and files, and to deal with the thousands of duplicates you can't delete one per one. Here's my toolbox for cleaning my disks on linux in 3 major steps: Confirm the problem with dysk Spot and delete big files and directories with broot Delete thousands of duplicates with backdown| dystroy|Canop / blog
Generating or modifying Excel files in Java is easy with Apache POI. But when you generate Excel reports, you always end up having to export them in PDF too. If you look for a library for this conversion, you'll find many ones, most of them expensive, and none of them giving acceptable results. I explain here the efficient and reliable enough solution I've used in a Java application.| dystroy|Canop / blog
Glassbench is a Rust micro-benchmark harness. It uses a SQLite database to store bench measurements. I wanted to give it the option to open an interactive data viewer and grapher, with ability to search the history. An usual web based solution for that is to run a simple web server. But Glassbench is executed by cargo and immediately quits and I didn't want it to leave behind anything to clean, especially not daemons. Besides, when you open a single HTML local file, it can't query additional ...| dystroy|Canop / blog
TOML was originally the only format for configuring broot. Here I explain why Hjson is now the preferred one.| dystroy|Canop / blog
Twenty years ago, most of us thought TUI applications were going to disappear. TUI were just a vestige of low capabilities computers. There was no reason for TUI not to die with the rise of the personal computer. This didn't happen. We still love to use TUI applications. Why can be kind of mysterious.| dystroy|Canop / blog
8 months ago, but it feels like years ago, somebody shared a link to broot on Hacker News. There was some very kind messages and broot gained a few users. But I had more in my TODO list. A lot was done since. At first sight, broot didn't change much: It looks the same and what could be done then can still be done the same way, 500 commits and 60 releases later.| dystroy|Canop / blog
Prompts I see everywhere are very bad in my opinion. They're sometimes fancy, full of bling which amazes coworkers, but usability nightmares.| dystroy|Canop / blog
An example of an efficient search workflow based on broot, a general purpose file manager.| dystroy|Canop / blog
Before every commit, I do a short review of what I wrote. And usually there are a few last things to fix.| dystroy|Canop / blog