# Gil Desmarais — Full Site Content
> Complete plain-text compilation of articles and core pages from https://gil.desmarais.de
## License
All articles, blog posts, and written content compiled in this file are licensed under the **Creative Commons Attribution-NoDerivatives 4.0 International License (CC BY-ND 4.0)**.
To view a copy of this license, visit https://creativecommons.org/licenses/by-nd/4.0/
---
## Core Pages
### Home
URL: https://gil.desmarais.de/
Gil Desmarais is a software engineer who builds and runs systems that move business numbers, with agents as part of how he ships. The homepage states that stance and points to résumé, contact, projects, and the blog.
---
### About
URL: https://gil.desmarais.de/about/
Background and how curiosity, systems thinking, and experience shape how Gil builds. Interests span music and vinyl DJing, film recommendations, open-source tools, and movement. The page covers early web tinkering through vocational training, Air Force IT work, and Business Computer Science. Under How I work, agents sit in the toolchain via written doctrine — skills, rules, and admission gates maintained in the open.
---
### Projects
URL: https://gil.desmarais.de/projects/
Pragmatic tools built for personal use that may help others. Prefer purposeful tools with small footprints; everything listed is open source, with more on GitHub.
---
### Resume
URL: https://gil.desmarais.de/resume/
Software engineer in Berlin who designs, ships, and operates core systems end-to-end, with agents as part of the workflow. Executive summary, current and earlier work, capabilities, skills matrix, education, and service history.
---
### Movies
URL: https://gil.desmarais.de/movies/
Personal movie ratings and recommendations. The interactive catalog filters and sorts watched films; a separate ranked recommendations page lists every film Gil recommends, with short notes when present.
---
### Blog
URL: https://gil.desmarais.de/blog/
Engineering notes, systems thinking, and personal essays. Showcase posts surface on the blog index; the full archive lists every published piece. Written content is licensed CC BY-ND 4.0.
---
### Contact
URL: https://gil.desmarais.de/contact/
Reach Gil for hands-on software engineering with direct ownership of outcomes. Prefer crisp async notes: the problem, who's involved, and the decision on the table. Professional socials and email are listed on the page.
---
## Projects
### html2rss
Status: maintained
Open-source org — turns any website into RSS 2.0 or JSON Feed.
html2rss brings RSS back to sites that never had it (or quietly killed it). It reads what a page already says about itself before guessing, and starts a browser only when a page needs one. YAML selectors stay available when you know the markup.
The html2rss organization spans the Ruby gem, a self-hostable web app (paste a URL, get a feed), 220 ready-made site feeds, the docs site, and a headless scrape API.
- **Extraction**: Feeds from sites that never offered one, without writing selectors.
- **Dynamic sites**: JavaScript-heavy pages work too; a browser starts only when needed.
- **Discovery**: Finds the right listing page when the homepage says too little.
- **MCP**: Agents build and ship feeds with the same tools people use. ([link](https://html2rss.github.io/ruby-gem/reference/mcp-server/))
- **Safety**: Safe to self-host: it stays out of your private network by default.
- **Approach**: Root causes over workarounds, loud failures, performance measured before tuned.
- **Self-hosted**: Ruby gem plus a Docker web app that runs on your own hardware.
- **RubyGems**: 58k+ downloads ([link](https://rubygems.org/gems/html2rss/))
- **Docker Hub**: 16k+ pulls ([link](https://hub.docker.com/r/html2rss/web))
- [Project website](https://html2rss.github.io/)
- [GitHub Organization](https://github.com/html2rss)
- [RubyGems](https://rubygems.org/gems/html2rss/)
- [Docker Hub](https://hub.docker.com/r/html2rss/web)
- [Kanban Board](https://github.com/orgs/html2rss/projects/3/views/1)
Supply chain: Every release traceable to its source: RubyGems trusted publishing, Docker images with provenance and SBOM.
### moodbar.rs
Status: maintained
Cross-platform Rust toolkit for audio moodbars.
moodbar.rs turns audio into visual fingerprints by combining signal processing with practical developer tooling. It is built for DJs and audio broadcasters who need to scan large libraries quickly and choose tracks with more confidence. Rust ships on crates.io; WASM and native packages ship on npm — including released Swift iOS bindings.
- **Rust core**: Pure-Rust stack powered by Symphonia + RustFFT.
- **WASM**: Browser-ready WebAssembly bindings with a live demo.
- **Native**: iOS and Android bindings alongside CLI releases.
- **Platforms**: Linux and macOS are first-class release targets.
- **Legacy output**: Supports legacy-compatible raw moodbar byte generation.
- **Batch workflows**: Batch generation pipeline for processing whole music folders.
- [Project site + demo](https://gildesmarais.github.io/moodbar.rs/)
- [GitHub Repository](https://github.com/gildesmarais/moodbar.rs)
- [crates.io](https://crates.io/crates/moodbar)
- [@moodbar/wasm](https://www.npmjs.com/package/@moodbar/wasm)
- [@moodbar/native](https://www.npmjs.com/package/@moodbar/native)
Supply chain: Every artifact traceable to its source commit: npm provenance, attested GitHub release builds; crates.io via API token.
### .dotfiles
Status: evergreen
My macOS and CLI config in ~/.dotfiles, linked with rcup.
brew bundle installs the Brewfile.
- **Workstation**: Same Brewfile, zsh, and editor config on each Mac.
- **Agent skills**: Planning, review, and delivery. Install with npx skills, or rcup.
- **Guided defaults**: macos-defaults-apply prompts, then applies macOS defaults. Touch ID sudo and Apple Watch unlock stay manual.
- [GitHub Repo](https://github.com/gildesmarais/dotfiles)
### jekyll-loading-lazy
Status: legacy
Drop-in lazy loading for Jekyll (img/iframe). Instant performance wins.
Static sites deserve to be fast without extra chores. This plugin adds the native loading="lazy" attribute to images and iframes during the build, no template changes needed. Maintainers get Core Web Vitals improvements and one less script to ship.
- **Automatic**: Injects loading attributes into images/iframes at build time.
- **Low-touch**: Works without editing content files or templates.
- **No JS**: Native lazy-load via the loading attribute; removes third-party scripts.
- **Adoption**: 69k+ RubyGems downloads. ([link](https://rubygems.org/gems/jekyll-loading-lazy))
- [RubyGems](https://rubygems.org/gems/jekyll-loading-lazy)
- [GitHub Repository](https://github.com/gildesmarais/jekyll-loading-lazy)
- [Introduction blog post](https://gil.desmarais.de/blog/loading-images-lazily-with-jekyll/)
Supply chain: Published via API token; no provenance attestation.
---
## Recommended Films (Top 10)
Full ranked list: https://gil.desmarais.de/movies/recommendations/
### Inglourious Basterds (2009)
A multi-lingual movie about WW2, which makes some fun about languages.
I can't applaud enough to Mr. Tarantino to limit the speaking to
a specific actor in this kind of movie to just a few words.
Amazing performance by Christoph Waltz.
### Senna (2010)
The extended version is worth it. An emotional roller coaster about the life of Ayrton Senna.
### Citizenfour (2014)
The story of Edward Snowden with original footage.
### Dunkirk (2017)
A WW2 movie without every clearly showing the enemy.
I watched it in the IMAX and it was an immersive experience.
The constant ticking of the metronome did the rest to me.
Amazing dog fights.
### The Hurt Locker (2008)
A war movie with amazing sound, showing an army soldier operating in a bomb squad.
### Enter the Void (2009)
A classic Noe movie. It has its lengths, but still it's a highly immersive movie.
### Inception (2010)
This is a movie to watch twice and scan for evidences to answer the question
which is asked in the last scene.
### It's a Wonderful Life (1946)
What a classic from 1946. Best watched during Christmas season.
### The Pianist (2002)
A haunting WW2 movie about the Warsaw ghetto.
### Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb (1964)
A classic and fun movie.
---
### Article: Human Body as System
URL: https://gil.desmarais.de/blog/human-body-as-system/
Date: 2025-10-13
Description: A reflection on noticing the human body like a computer: learning its feedback loops, safe modes, and background jobs.
One of the most unexpected discoveries this year has been yoga.
I started mostly for the physical practice, but what kept me going was the quiet part: the few minutes of meditation that come with every session. One 90-minute class a week turned into a rhythm I look forward to. It feels like maintenance, not performance.
Maybe it's simply how my mind works, but I often make sense of things through systems. **I picture my body as a kind of computer.**
Skeleton, muscles, organs: the hardware.
The brain: CPU and storage.
The best hardware also needs an operating system (OS). That's what the nervous system[^5] is in this analogy: an OS that integrates signals, updates the state, sends commands to its actors, and keeps the system stable.
## The OS protects the hardware from failures
Without experience of how the body feels when it's in balance, you don't notice when it drifts off. The OS just normalizes the noise.
Learning to sense the baseline (pulse, breath, posture, tone) is like turning on debug logging for the human system.
But: I know that I know nothing.
[^4] You can't debug what you can't (or haven't) observed.
When the OS receives confusing or incomplete input, it does what any system would do: switch into safe mode, limit movement, and conserve resources. It's protective. It wants you to survive by default.
Sometimes it forgets to reset once the _perceived_ threat is gone, or it no longer knows where to send the commands.
As a result, residual safe mode
can show up in different ways:
stiff or tight muscles, shallow breathing, clenched jaw, headaches, low energy, trouble focusing, or a general sense of restlessness.
The system keeps allocating resources to defense routines instead of normal operation, and over time that baseline starts to feel normal
.
## Resetting the System
When the OS is overloaded, feedback loops tighten, attention narrows, and creative threads get starved.
Stepping back, breathing, walking, or simply being quiet opens bandwidth again. The system recovers.
How can you intentionally trigger a signal that prompts the OS to update its state assumptions?
One reliable method: take a deliberate breath, lift the shoulders on the inhale (about four seconds), then let them drop on a slow exhale (about six seconds). The OS reads these signals and releases some emergency handling.
Another hack
mentioned in _Pragmatic Thinking and Learning_[^3]:
> If you have a problem to solve, get away from the computer.
It's counterintuitive. And it works. Why?
Because most hard problems aren't blocked by missing information; they're blocked by narrow bandwidth. When you stare at a screen, you stay in the same cognitive mode that created the stuck state: linear, focused, local.
Stepping away lets background processes (memory association, pattern recognition, intuition) run their own threads. Movement, sensory change, and even mild distraction help the brain switch context and access other networks. It's the mental equivalent of releasing a lock file so another process can complete its job.
In practice, take a short walk, ideally without new inputs (no music, no podcasts, just fresh air, birds, and sunlight), and stop thinking about it. When you return, the insight is often waiting in the cache.[^6]
## Reestablishing communication between hardware and OS
Yoga intentionally leaves room for sensations to appear and bubble up.
It's about listening to your body and inner self — feedback from the hardware that the OS can learn from.
Through that feedback, your system gradually rebuilds a more accurate model of its hardware and its capabilities.
Mindfulness, breath, and gentle movement act as regular sync operations: they feed the OS new data and context so it can update outdated assumptions and safely return to normal operation.
Over time, these inputs improve calibration. Stability increases, error handling becomes smoother, and you start noticing subtle signals long before they escalate into warnings.
## Background tasks are processed during sleep
Like many systems, the brain runs background jobs even when we're not paying attention.
At night there's a lot of async processing: background tasks that reconcile signals, clean up logs, and archive what's no longer needed.
Sleep is when the OS defragments memory, runs diagnostics, and recalibrates thresholds. If those background tasks get interrupted, the queue piles up. Slow at first, then laggy, then unstable.[^1]
To let that queue run empty, I've had to learn some boring but powerful things.
Blue light after dark keeps the system in _day mode_, delaying those maintenance jobs. Constant context switching (checking messages, feeds, short videos) fragments attention and floods the event loop with low-priority interrupts.
Letting the queue finish overnight is the simplest optimization I know.
No new tasks before sleep, no reloading the feed one last time: just idle mode.
The system thanks you in the morning with a cleaner state and an empty queue.
## Unsustainable performance tweaks
And then there are the socially accepted performance tweaks: sugar spikes and coffee push the turbo button,[^2] and alcohol sends the shutdown command (with the side effect of less deep sleep, causing background jobs to remain in the queue).
These tweaks all work (briefly) but have long-term side effects without addressing the root cause.
I still use some of them, just more consciously now.
## Maintain your own system well
It's strange how long I treated my body as just a physical support system for my head.
As engineers, we maintain systems constantly; resilience starts when we maintain the one we live in.
It works for me.
It might not for you.
Every system is different.
This analogy is just **good enough** to start thinking, not medical advice.
---
[^1]: Sleep Deprivation "drains your mental abilities and puts your physical health at risk. Science has linked inadequate sleep with a number of health problems, from weight gain to a weakened immune system."
[^2]: Early 8086 computers had a physical button, when switched-on _overclocked_ the CPU, increasing performance.
[^3]: Andy Hunt - Pragmatic Thinking and Learning: Refactor Your Wetware
[^4]: Paraphrased from Socrates, as reported by Plato in the dialogue Apology. The phrase “I know that I know nothing” summarizes Socrates' recognition of the limits of his own knowledge.
[^5]: "The central \[nervous\] system is the primary command center for the body, and is comprised of the brain and spinal cord. The peripheral nervous system consists of a network of nerves ..." https://www.healthline.com/health/human-body-maps/nervous-system
[^6]: Showering also works, but it lacks some of the benefits of walking.
---
### Article: Iterating the Website
URL: https://gil.desmarais.de/blog/iterating-website/
Date: 2025-10-12
Description: A quiet rebuild of my personal site: migrating from Jekyll to Astro, improving UX, accessibility, and long-term maintainability.
This isn’t just a relaunch — it’s an iteration. Each cycle refines the foundation: simpler content, leaner structure, more flexibility for what’s next. Small step, meaningful impact.
## Leaving Jekyll Behind
Jekyll served me well, but I’d outgrown it. Simple tweaks meant hunting through templates or writing custom Liquid helpers. Plugins added friction, and the toolchain felt dated in modern workflows. It’s still a solid static site generator, but for a lightweight, living portfolio it became too rigid and slow. I wanted less ceremony, more flow.
## Why Astro
Astro gave me that flow. Modern, component-based, and static-first — with room for interactivity when needed. Components can be written once and reused without friction. Combined with semantic HTML and Pico.css, it’s a clean, future-proof base that stays out of the way while supporting growth.
## Refining Content and UX
This iteration wasn’t only technical. I reworked structure and copy to read cleaner and serve visitors better:
- A focused [Résumé](https://gil.desmarais.de/resume/) page for professional context and recent [projects](https://gil.desmarais.de/projects/).
- A more personal [About](https://gil.desmarais.de/about/) page as the main entry point for personal stuff.
- Simplified pages for clarity.
- Blog highlights up front.
- Tuned headings and layout for better scan-ability.
## Extras That Matter
Quiet improvements that add polish and principle:
- RSS feed preserved with redirects.
- Long-term archive for older posts.
- Better contrast and keyboard navigation.
- Privacy-friendly analytics via Goatcounter — no cookies, no tracking.
## Skills in Motion
This rebuild doubled as a small-scale systems project: planning the migration, designing a component architecture, automating build previews, and enforcing performance budgets. Astro’s flexibility let me lean on TypeScript, tests, and documentation-driven workflows — the same habits I apply in platform and enablement work.
This site isn’t just a portfolio — it’s a living example of progressive, maintainable web design.
## Closing
If you’re curious, revisit [a post from seven years ago](https://gil.desmarais.de/blog/recent-changes-on-my-website/) about earlier changes. The progress since then reflects the same mindset: deliberate, iterative, built to last.
If you value thoughtful front-end architecture, progressive enhancement, or pragmatic delivery — [let’s talk](https://gil.desmarais.de/contact/).
---
### Article: Watching movies alphabetically
URL: https://gil.desmarais.de/blog/watching-movies-alphabetically/
Date: 2021-10-24
Description: How our alphabetical movie nights evolved over four rounds.
The question What do we watch?
is a tough one to answer, so we decided to break out of our self-established,
comfortable filter bubble and watch movies alphabetically. What started as a fun constraint for a single movie night turned
into a loose tradition that we revisited a couple of times. Here is how each round played out.
## Round I – establishing the rules
The first run-through set the tone: pick a letter, find a movie, and stick with the choice. The novelty of the format made it
easy to keep going, even though some letters (hello, X) required compromises.
## Round II – refining the approach
For the second round, we kept the rules but allowed ourselves to skip Q and X because we simply could not find something we
wanted to watch for those letters. Only a few films left a lasting impression, yet the overall exercise remained entertaining
enough to plan another round.
## Round III – numbers join the alphabet
Curiosity led us to expand the experiment by including titles that start with the numbers 0 through 9. The change brought a
slightly more varied selection and a handful of memorable discoveries. This round convinced us that the format still had life
left in it.
## Round IV – keeping it casual
By the fourth iteration we relaxed the schedule and filled the gaps between alphabetical picks with other movies. The
alphabetical selection strategy still worked as a prompt whenever we felt indecisive, but it no longer dictated every movie
night. If you want to see what else we have been watching lately, browse the [movie ratings section](https://gil.desmarais.de/movies/).
---
### Article: How I work, part 2: the command line
URL: https://gil.desmarais.de/blog/how-i-work-part-2-the-command-line/
Date: 2020-09-11
Description: The 'How I work' post series documents how I work. This part is about working productively on the command line.
This is the second part of my "How I work" series. In case you missed it, [read the first part here](https://gil.desmarais.de/blog/working-productively/). In this part I describe the tools I use on the command line.
I keep the configuration of most tools inside a [dotfiles](https://github.com/gildesmarais/dotfiles) repository. This setup lets me sync my configuration between machines. To manage the dotfiles, I use [rcm](https://github.com/thoughtbot/rcm) and version them with [git](https://git-scm.com/).
While most tools do one thing well, chaining them with pipes (`|`) or redirecting their output (`>`, `<`) makes the command line powerful and efficient. Need only a part of the output? Pipe it to `awk` and extract what you need.
Although I like green characters on a dark background scrolling by, they need to get out of the way quickly. I clear the scrollback buffer with Cmd+K often.
A screenshot of iTerm2 running ZSH and homebrew
## ZSH and its configuration
[zsh](https://www.zsh.org/) is my shell of choice. I started with the oh-my-zsh configuration framework years ago and switched to [prezto](https://github.com/sorin-ionescu/prezto/) recently. The main reason was the time it took to start a new session. With prezto the startup time improved noticeably. It comes with an auto-suggestion feature out of the box, so it saves you some typing later.
My [`.zshrc`](https://github.com/gildesmarais/dotfiles/blob/master/zshrc) contains many aliases to save me some typing on recurring tasks. Some configuration options stand out, and I'll describe what they do in the next sections.
### Move the cursor _by words_ with Alt + arrow keys
To use Alt+← and Alt+→ to jump words with the cursor, add this to your `.zshrc`:
```sh
bindkey "^[^[[C" forward-word
bindkey "^[^[[D" backward-word
```
### `history` + `!` = 💕
`history` lists recent commands. Each line has a prefixed number. Type that number with an exclamation mark, for example `!1729`, and hit space to expand it to that command.
I search the history with `history | grep foobar` often. To make things easier, I've set up an alias for it:
```sh
alias hgrep="history | grep"
```
You can also search using Ctrl+R or run `history | sk` (see below for `sk`).
### Navigation between directories
Beside `cd` and `cd ..` (in zsh you can omit `cd` and type just `..` or even `….`), I use `pushd` and `popd` to move back and forth between directories.
Whenever I create a new directory with `mkdir -p ~/whatever/foo/bar/baz`, I change to it directly with `cd $_`.
### `z`: jump between recently visited directories
[ZSH-z](https://github.com/agkozak/zsh-z) lets you jump between directories you've visited recently. It fuzzy matches and switches to the most-used path.
`z foobar` changes the working directory to e.g. `/Users/gil/projects/foobar/`.
## Version and package managers
Since I write code, I need to install the environment to run that code in. Because every project has its own needs, one globally installed version rarely works. I used [rvm](https://rvm.io/) and [nvm](https://github.com/nvm-sh/nvm) before switching to asdf-vm.
- [asdf-vm](https://asdf-vm.com/): a version manager for multiple installed versions of programming languages.
Since I work with Ruby and NodeJS a lot, I need their package managers, too:
- [bundler](https://bundler.io/)
- [yarn](https://yarnpkg.com/)
I don't bother installing software manually on my machine. Homebrew exists, and I can find almost anything to `brew install`.
- [homebrew](https://brew.sh/): macOS package management, including the installation of GUI applications (so-called casks).
## Standard tools
What follows is a list of tools I use with a short description. Most of them are installable with Homebrew out of the box. Try `brew search foobar`.
### Finding files, content or directories
- `find` (the [GNU coreutils](https://www.gnu.org/software/coreutils/) one, please): finds files and directories by their name, type, etc.
- [mc](https://midnight-commander.org/): good old Midnight Commander, a two-pane file manager.
- [rg](https://github.com/BurntSushi/ripgrep): super fast search for files containing your query.
- [skim](https://github.com/lotabout/skim): a (general purpose) fuzzy finder.
### Create, read, manipulate, save and delete files
- `echo`, `touch`, `grep`, `cat`, `tail`, `less`, `more`, `man`, `rm`: goes without saying.
- [jq](https://stedolan.github.io/jq/): a cli JSON processor. Mostly I'm piping output into it to pretty print.
- [ncdu](https://dev.yorhel.nl/ncdu): NCurses Disk Usage. Finds large files and directories and lets you delete them inside the convenient UI.
- [pup](https://github.com/EricChiang/pup): what `jq` is for JSON, `pup` is for HTML.
- [rpl](https://github.com/kcoyner/rpl/): replaces text inside files with another text (useful when I forget the inline edit options of `grep`)
- [vim](https://www.vim.org/): my default editor on remote machines. I don't know how to quit other editors like `emacs`. `¯\_(ツ)_/¯`
### Miscellaneous
The following tools are also in my toolbox. I file them under Miscellaneous because the number would not justify categories on their own in this post. That does not mean I use them less; most are invaluable.
These are helpful when dealing with (not only) remote systems:
- [ansible](https://www.ansible.com/): automates the setup of new systems.
- [htop](https://htop.dev/): an interactive process viewer. One of the first things I install.
- [ssh](https://www.openssh.com/): a protocol that allows you to connect to remote servers securely.
- [rsync](https://rsync.samba.org/): synchronizes files quickly (supports binary deltas).
- [tmux](https://github.com/tmux/tmux): a terminal window multiplexer.
Sometimes you want to download something or need to make raw HTTP requests:
- [aria2](https://aria2.github.io/): universal download utility (HTTP, FTP, BitTorrent, magnet, …).
- [curl](https://curl.haxx.se/): for HTTP requests and debugging them. I can't work without it.
- [youtube-dl](https://youtube-dl.org/): download video and audio (not only from YouTube).
Using [ffmpeg](https://ffmpeg.org/) with `youtube-dl` illustrates the power of the command line. Basic example:
```sh
youtube-dl -f bestaudio --exec 'ffmpeg -i {} {}.mp3 && rm {}'
```
## Outlook
That's it for the second part. The third part will cover the GUI applications I use on macOS. Stay tuned.
---
### Article: A Harvard Primer on Moral Reasoning
URL: https://gil.desmarais.de/blog/whats-the-right-thing-to-do/
Date: 2020-07-28
Description: Recommendation for an enjoyable lecture ‒ freely available ‒ on moral reasoning.
I would like to make a recommendation for the lecture Justice: What's the right thing to do?
by [Michael Sandel](https://en.wikipedia.org/wiki/Michael_J._Sandel), given at Harvard University. It is an introduction to moral reasoning.
## Philosophical Frameworks in the Lecture Series
Right from the outset Sandel walks the class through the big families of moral philosophy that still shape public debate. His explanations of utilitarianism lean on stark trade-offs: the trolley problem, lifeboats, and the calculus of maximizing happiness even when it means sacrificing a few for the many. He then pivots to Kantian ethics, where intention and respect for persons trump outcomes, using examples such as telling difficult truths, honoring promises, and refusing to treat people merely as means. Virtue ethics and Aristotle’s idea of cultivating good character round out the tour, especially when the class debates what counts as excellence for individuals and communities.
To make those frameworks tangible, each episode anchors the theory in real-world controversies: organ donation lotteries, price-gouging after natural disasters, volunteer versus paid military service, affirmative action, same-sex marriage, and the obligations we owe our neighbors. By inviting students to test their instincts against those case studies, Sandel shows how classical ideas connect to today’s policy disputes and everyday decisions.
## How to Watch the Justice Course
A warning in advance: you cannot unlearn what you have learned. This lecture will change your way of thinking and consequently your reasoning.
You can find it on the well-known centralized video platform by that North American company. The mobile application clips the episode titles unfavorably, which makes it hard to navigate. Here are the episodes in order:
- [Episode 01 "The Moral Side Of Murder"](https://www.youtube.com/watch?v=kBdfcR-8hEY)
- [Episode 02: "Putting A Price Tag On Life"](https://www.youtube.com/watch?v=0O2Rq4HJBxw)
- [Episode 03: "Free To Choose"](https://www.youtube.com/watch?v=Qw4l1w0rkjs)
- [Episode 04: "This Land Is My Land"](https://www.youtube.com/watch?v=MGyygiXMzRk)
- [Episode 05: "Hired Guns"](https://www.youtube.com/watch?v=8yT4RZy1t3s)
- [Episode 06: "Mind Your Motive"](https://www.youtube.com/watch?v=8rv-4aUbZxQ)
- [Episode 07: "A Lesson In Lying"](https://www.youtube.com/watch?v=KqzW0eHzDSQ)
- [Episode 08: "What's A Fair Start?"](https://www.youtube.com/watch?v=VcL66zx_6No)
- [Episode 09: "Arguing Affirmative Action"](https://www.youtube.com/watch?v=AUhReMT5uqA)
- [Episode 10: "The Good Citizen"](https://www.youtube.com/watch?v=MuiazbyOSqQ&)
- [Episode 11: "The Claims Of Community"](https://www.youtube.com/watch?v=iOotE9_OGGs)
- [Episode 12: "Debating Same-Sex Marriage"](https://www.youtube.com/watch?v=EzD9P-9sj4M)
I wish I had experienced such a lecture format during my studies. The interactivity and open discussions are impressive.[^1] The audience does not shy away from hard questions and strives to keep discussions on the "high level".
And now, you've got to do what you've got to do
: start watching. :)
## Why the Course Still Resonates with Me
Every revisit to this series nudges me to slow down before defaulting to gut feelings. I still grapple with questions like: when does pursuing the greatest good disrespect someone’s dignity, and how much of my character is shaped by the communities that raised me? Wrestling with Sandel’s prompts makes it easier to spot the assumptions behind my own arguments, and it sharpens the way I listen to others. If you commit to working through the lecture, try pausing after each scenario to articulate what principle you are really defending.
You might be surprised at how your answers evolve and how that reflection spills over into ordinary choices about fairness, loyalty, and responsibility.
[^1]: To be honest, I found it weird when the lecturers started to remember the student's names.
---
### Article: Meet Pal
URL: https://gil.desmarais.de/blog/introducing-pal/
Date: 2020-04-16
Description: A small ritual for clearer thinking — and an alligator with a purpose.
Talking through a problem often untangles it.
That's the idea behind [rubber duck debugging](https://en.wikipedia.org/wiki/Rubber_duck_debugging): you explain your issue to an inanimate listener, and in doing so, hear your own reasoning more clearly.
The technique became well known through [_The Pragmatic Programmer_](https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/) by Andrew Hunt and David Thomas.
Speaking aloud slows your thoughts just enough to expose fuzzy assumptions, contradictions, or missing links that stay hidden in silent thinking.
This is Pal, my debugging partner:
A small toy alligator, smiling patiently.
Pal stands for **p**rogramming **al**ligator. That grin is often the encouragement I need to reason things through.
You can tell it's an alligator by the smile.
A crocodile wouldn't — and [its teeth would be far less supportive](https://en.wikipedia.org/wiki/Alligatoridae#Differences_from_crocodiles).
---
### Article: On slaughtering a pig
URL: https://gil.desmarais.de/blog/on-slaughtering-a-pig/
Date: 2020-04-11
Description: A firsthand look at an animal becoming a product—and the ethics, labor, and responsibility hidden by packaged meat.
## A warning beforehand
This post does not contain graphic photos, but it might still be disturbing to read.
It is not intended as an instruction manual. You need experience to do this properly and legally.
If you're interested in deepening your knowledge, ask a slaughterer, a butcher, or your local administration for pointers.
## Introduction
I went to a farm to witness a home slaughtering in the winter of 2020. We were a group of five people including the slaughterer.
## The killing procedure
The killing procedure differs across regions for many reasons (rituals, laws, religion, tradition, personal preferences, etc.).
When choosing a pig to kill, you want to avoid as much stress as possible. Our isolated pig weighed around 80 to 90 kg, which seems normal for an adult pig. Expect some heavy lifting during the procedure:
- isolate a pig from the herd
- stun it (e.g. with [a bolt gun](https://en.wikipedia.org/wiki/Captive_bolt_pistol))
- cut the throat[^1]
- let it bleed out completely[^2]
Blood will squirt out of the cut. The pig will still twitch while and after it bleeds out. That's normal: the brain's last commands reach the muscles via the nerves.
Local laws might not always permit the most pain- and stress-free method. Measuring that impact is difficult, and the debate is fuelled by ethical, emotional, and moral questions.
For example, some do not stun the animal and simply cut the throat with a special knife and a clean cut.[^3] They often sit next to the animal beforehand, offer prayers, and talk to it calmly.[^4]
Many traditions include a toast to the now dead pig. We did the same.
## From a dead pig to two halves
Once the blood stopped flowing, the procedure continued.
- place the dead pig in boiling water
- remove fur thoroughly by scraping it off (e.g. with a [Kratzglocke
](https://duckduckgo.com/?q=kratzglocke&iax=images&ia=images#))
- burn the remaining bristles
- hang the pig with its hind legs up
- cut it open: from the anus, via belly to the head while removing innards[^5]
- a veterinarian must check the meat for diseases[^6] and rate the quality[^7]
- saw it open: from the anus, via the back, through the head. Make sure to stay on the line and avoid cutting the meat.
Now you have two halves that are almost mirrored. Hang those halves for a day (or longer) in a cold room to dry out and allow the meat to relax. Traditional house slaughtering happens in late autumn or winter for that reason.
## Butchering: cutting halves to pieces
Depending on your butchering tradition, you start cutting pieces out of the halves. Without those cuts it would be hard to use the pig's meat.
The different parts of the pig also have different cooking characteristics: some are tender after a quick sear or grill, while others require a long cooking process to become tender. Some parts don't need to be cooked, like ham, but are preserved.
There are many different cutting methods, depending mostly on the cuisine and the pig's breed.
Read more about them in Wikipedia[^8] or your favorite non-veggie cookbook.[^9]
As our pig's breed is known for good (and plentiful) fats, we concentrated on the belly, bacon, etc.
When cutting, you usually avoid slicing through the red meat and instead follow the fascia and cut through fat.
Unnecessary fat is scraped off the meaty pieces. We put the fat aside and rendered it into lard.
The end result is pieces of meat you can buy at your butchery: ribs, cutlet, chops, tenderloin, neck, roasts, bacon, flank, etc.
## Observations and thoughts
Processing one pig causes a lot of work. A house slaughtering requires multiple people to help. During the day I was busy; most reflections surfaced afterwards.
### Avoiding stress
You want to avoid as much stress as possible during the killing procedure. Entering the sty should feel entirely normal for the pigs.[^10]
So far, so good. Change the perspective from pig to human for a second and imagine the situation yourself: if you knew your life would be taken by that person entering the sty, you'd be pumped with adrenaline and fight back.[^11]
Wouldn't it be kinder if it just got dark in front of your eyes and from that point on you noticed nothing anymore?
Switching the perspective back to the pig: adrenaline causes blood pressure to rise and fills all organs with water and oxygen. Blood in meat is to be avoided (it spoils), and water lowers the meat's quality (you can find it pooling between fascia and muscles). The stress hormones released will also decrease the meat's taste.
Some pigs have aching muscles _after_ the procedure. You can spot aching muscles from their color after hanging.
The isolation itself, which involves entering the sty and, for example, putting an iron cage around it, looks stressful to me.
Shooting a resting animal does not.[^12]
I'm afraid most pigs raised for meat won't have such good
slaughtering conditions. A pig carried in a cramped lorry to the slaughterhouse for hours cannot be relaxed and calm.
The meat industry utilizes a handful of techniques to stun pigs.[^13]
For example, they use a gas chamber.
They put pigs in a gondola and move them underground. That room is filled with CO₂. Since CO₂ is heavier than oxygen, the pigs suffocate. While this requires less human interaction, the death itself is pure agony.
### Coping with routine
The slaughterer has killed plenty of animals in his life. Still, while the procedure was executed professionally, it was not an easy thing to do for him. It touched him.
This impressed me, and I wondered how people working at an industrial-scale slaughterhouse cope with it.
### The change from _animal_ to _product_
I still struggle to determine when my mind switched from calling the object _animal_ to _product_. I think that change happened shortly after the throat was cut and blood was flowing. As soon as that switch happened, I felt personally obligated to make the best use of the product. That means using everything the pig gave us.
### Using everything from the pig
Apart from some innards (lungs, heart, stomach), we used basically everything:
- we caught the blood to make blood sausage (heat it up and it will curdle).
- we cooked both halves of the head in water and scraped the meat to use in [Liverwurst](https://en.wikipedia.org/wiki/Liverwurst).
- we warmed the cut-off fat slowly and rendered lard (which we conserved in jars).
- we processed small pieces of meat, which are unusable as a whole, to make [Bratwurst](https://en.wikipedia.org/wiki/Bratwurst).
- we used the cleaned intestine for the Bratwurst.
With the innards you can prepare small dishes for instant consumption:
- scrambled eggs with brain and chives
- (scraped out the contents of the) spleen and fried them to eat on bread
- grilled liver with onions
- sliced kidney, seared
### Similarities to the human body
The pig's body and its organs are similar to a human body. I analyzed a pig's heart in biology class and opened one with a scalpel to comprehend how the two chambers work. That was decades ago, and the mental connection was lost. The organs of a pig mostly exist and work the same inside a human body.
### Lard makes a smooth skin
While I usually struggle in winter to maintain smooth skin on my hands, that day was different. My skin was very soft as I was touching lots of fat and meat.
Would I recommend lard as skin care?
Well, it has its pros, but the con is a distinct smell. My verdict: no.
Applying animal-produced substances on skin is not as uncommon as it sounds. [Lanolin](https://en.wikipedia.org/wiki/Lanolin) is widely used in skin-care products and is a secretion from sheep.
### Lost connection meat<>animal, and decline of knowledge across generations
Later that week I talked to my dad about the day. For him it was a normal thing to do in winter, but he hasn't done it for decades. Back then he helped the family or neighbors slaughter a pig. And it seems pretty normal for the generation who lived in 1960/1970.
That made me realize that the knowledge about slaughtering and its practical application slowly gets lost. It's not widely available anymore; it is concentrated on a few people.
For me that knowledge is mandatory. It keeps a connection from the meat at the butcher's outlet to the pig. The home slaughtering was a missing link.
### A well-fed pig tastes amazing
It's true. There is nothing more to add to the headline.
### People are skeptical of homemade Liverwurst
I brought a jar of conserved Liverwurst back home and brought it to the office the other day. I told some colleagues about my experience. Some were eager to try it, but the majority wasn't so keen.
They usually do not refrain from trying the food I bring and offer. Somehow people were doubtful about the Liverwurst. My partner made the exact same experience with her colleagues.
And I wonder why that is.
Do people trust the meat industry more? Were they offended when I told them which parts of the pig were in it? Do they think the industrially produced liverwurst is of better quality? Or mine unsafe to consume?
Maybe we should have ground the meat finer so it would have been a unicolored mass without tiny chunks in it. Or maybe we should have used pickling salt to keep a shiny red instead of a gray product. ;)
I don't mind too much about their reaction, don't get me wrong. I suspect people just don't want to be confronted with the whole process when eating meat products.
### Changing habits
Did I change my eating habits because of this experience?
Yes, and I remain a carnivore. I buy only organically raised meat when possible and avoid low-cost mass-produced meat.[^14]
I still eat sausages even though I know what's in them.
## Closing
I recommend anyone who has the chance to witness a home slaughtering of an animal to take part in it.
It won't be a joyful day, but it will be a day full of physical work that you will remember. It might change your opinion on some things (in whatever way).
picture of pigs in a sty
---
[^1]: It's important to not cut the trachae, as that would allow blood to fill the lungs.
[^2]: We caught all the blood and mixed it in a bowl to make [blood sausage](https://en.wikipedia.org/wiki/Blood_sausage) out of it. In some religions consuming the blood is forbidden and is thus wasted.
[^3]: [Wikipedia: Shechita](https://en.wikipedia.org/wiki/Shechita)
[^4]: If you're eager to _see_ more, search your favorite user-generated video platform.
[^5]: The innards are full of valuable nutrients. However, I choose not to eat some innards from a commercial fattened pig due to the amount of medicine.
[^6]: Especially for [Trichinella (Wikipedia)](https://en.wikipedia.org/wiki/Trichinella)
[^7]: [German: Schlachttier- und Fleischuntersuchung](https://de.wikipedia.org/wiki/Schlachttier-_und_Fleischuntersuchung)
[^8]: e.g. compare [_English: Cut of pork_](https://en.wikipedia.org/wiki/Cut_of_pork) and [_German: Teilstücke des Schweinefleischs_](https://de.wikipedia.org/wiki/Teilst%FCcke_des_Schweinefleischs)
[^9]: If your cookbook does not list cuts of meat, get a cookbook and not just a collection of instructions to create meals.
[^10]: Also change their food beforehand to avoid a full pig's stomach.
[^11]: Pigs can jump man-high. I saw it.
[^12]: In German speaking countries this is called Weideschlachtung
. For Germany it is regulated in [Anlage 1 Nr. 2 in TierSchlV](https://www.gesetze-im-internet.de/tierschlv_2013/anlage_1.html). The slaughterer has to apply for allowance which is linked with some other duties.
[^13]: For Germany, see [Anlage 1 Nr. 2 in TierSchlV](https://www.gesetze-im-internet.de/tierschlv_2013/anlage_1.html)
[^14]: The German laws aren't really pushing to a sustainable consumption of meat. There's no mandatory labeling for the _growing-up standards_ and the different types of seals are more green-washing than an improvement for the animals.
---
### Article: How I work, part 1: devices, utilities and environment
URL: https://gil.desmarais.de/blog/working-productively/
Date: 2020-04-10
Description: How I develop software. Part 1.
I've been asked how I work. In this case _work_ means the development of software.
That's an interesting question and it isn't answerable in a single sentence, nor a single blog post. This is the first post, and it focuses on the devices, utilities, and environment that help me.
## Devices
I prefer a MacBook (Pro or a full-spec Air) as my main working machine.
A well-equipped desk contains at least:
- a screen with 2560×1440 px (WQHD) resolution with 109 dpi minimum
- the old
trackpad
- the old
[wireless keyboard](https://gil.desmarais.de/blog/why-i-taped-the-keys-on-my-keyboard/) with _International Layout_[^1]
- a laptop stand to keep the machine above the level where I place drinks
- a transparent desk pad to place cheat sheets below it
Usually I'm wearing Bose QC15 headphones with Airmod for Bluetooth connectivity. They've been with me for seven years. I use them every working day for at least six hours. Despite their age they are in good shape.
Some parts wear out, so I've replaced the ear cushions multiple times and the headband once with aftermarket parts for a few euros. The headphones create an aura of silence around me and are super comfortable.[^2] They run with one AAA battery.
For the wireless devices I have a box of fully charged AA and AAA rechargeable batteries in reach.
## Utilities
To keep my thoughts or prototype a UI, I rely on a DIN A5 sketchbook (with at least 150 g/m2 paper) and a mechanical pencil with 0.5 mm B lead.[^3]
minimum working setup
Sometimes I work away from a desk. Then I need my headphones, the sketchbook, and the computer as a minimal setup.
Staying hydrated and reducing waste is important. I have a reusable water bottle with me most of the time.
## Environment
### Getting into the flow with music
Shielding myself from outside noises plays a key part in getting into the flow. The flow is a mental state in which a person performing an activity is fully immersed in a feeling of energized focus, full involvement, and enjoyment in the process of the activity.
[^4]
To get into it I listen to electronic music mixes. Anything that requires constant attention or someone talking every few minutes destroys it. For the same reason I avoid music podcasts or radio shows where every track is announced.[^5]
A favorite source of fresh music is the [BBC Radio 1 Essential Mix](https://www.bbc.co.uk/programmes/b006wkfp). The Essential Mix is a long-running (est. 1993) radio show where DJs (usually) play a two-hour mix. It has hosted remarkable talent over the years.
Creating an Essential Mix is the supreme discipline of electronic music in my opinion. The format gives DJs the chance to create a journey and play tracks they'd skip at a rave.
Depending on my mood that day, I choose one of ~20 all-time favorites. That means I listen to the same mixes regularly. The purpose is to have zero surprise moments while getting into **the flow**.[^6]
You will probably see me grooving by moving my fingers, arms, or head to the music. That's a visual indicator that I'm _in the flow_. When I'm lucky I get goosebumps from the music, and then it can't be any better.[^7]
### Reducing interruptions
Interruptions destroy the flow state instantly.
Some interruptions can be controlled by myself and thus I acted upon them:
- I turned off all system sounds of macOS.
- I disabled the macOS notification center.
- Notifications on my phone make no sound or vibration.
- Notifications on my phone do not turn on its display.
- I never turn on sounds on my phone.
I made one conscious exception: my watch vibrates when I receive a message from a few important people in my life.
If you want synchronous communication with me (a phone call, a meeting, …) then send a calendar invitation with a fixed date and time. Or become efficient in typing and sending emails. :)
I do not send voice messages, they're pesky and I would not want to receive those, too.
If we're working in the same room, please stop your devices from emitting sounds. It's the year 2020, come on already.
The star in our solar system also annoys sometimes. As our planet moves around it, the relative position changes.
Knowing which hemisphere I'm in makes predicting the direction of movement easy. This way I can prevent some foreseeable annoyances: direct rays and reflections. What I do against it depends on the situation.
Some interruptions are entirely out of my control:
Someone walking to my desk and asking may I interrupt you
is a meta-question and … 🥁 … an interruption.
Boom, flow state destroyed.
Next step: switch my brain's context and digest what is being said. That takes seconds. Regaining the flow can take the better part of an hour and a huge amount of mental energy.
While it's sometimes unavoidable to ask or tell someone something, I urge you to _never do that_ **inconsiderately**. It can probably wait.
I don't understand why trams in Berlin are unable to turn more silently. I've seen (and heard) trams turning almost silently in other countries (built by the same manufacturer). These screeching noises (ignoring the house-shaking vibrations) are serious concentration killers as noise-canceling headphones can't filter them out.
## Reducing strains
When working with computers, the keyboard should give you full control. I'm not saying that having a computer mouse is a bad idea.
A mouse is required sometimes, but maybe not a mouse—just a device to move the cursor.[^8]
The settings and placement of the devices matter. I …
- turn down the brightness on the screen as much as sensible.
- use dark background colors (Dark Mode) everywhere.
- place the screen in the front.
- put the laptop beside the screen (I prefer the right-hand side).
- place the trackpad in front of the keyboard, like they are positioned on a laptop.
Touching the trackpad to move the cursor is something I try to avoid. Moving them closer together reduces the movement needed to reach them. The main problem remains though: it's time-intensive and strains your wrist.
## Moving around
I prefer sitting next to a window and having daylight. If that's not possible a dimmable workbench lamp helps.
I stand up every hour for a few minutes. My watch reminds me to be active.[^9]
Depending on the time, getting a coffee is usually a good idea in the morning.
In the afternoon I likely do some exercises: swirl my arms, circle my head, raise/lower my shoulders, hold myself on the pull-up bar for a minute, do some pull-ups, maybe plank for three minutes.
At any time it's a good moment to look outside and focus on something in the distance. If possible, I get some deep breaths of fresh air and/or air the room. My brain and eyes are relieved afterwards.
## Outlook
That's basically it for these aspects. I hope you found it insightful. Did I miss anything? [Let me know!](https://gil.desmarais.de/contact/)
Stay tuned for the next parts on which I'll explain which software I use to work efficiently.
[Continue reading the second part here](https://gil.desmarais.de/blog/how-i-work-part-2-the-command-line/).
[^1]: That is QWERTY with a two rows spanning return key. Also known as _British Layout_.
[^2]: That still holds true with the after-market parts. Bose, naturally, has a different opinion on that, [read their QC35 investigation report](https://community.bose.com/t5/Around-On-Ear-Headphones/Bose-QC-35-Firmware-4-5-2-Noise-Cancellation-Investigation/m-p/285738#M56820) for a thorough explanation.
[^3]: I have a soft spot for good pens and pencils. I use a mechanical pencil 99% of the time. The faible is counter-intuitive to my minimalist side. The latter wins.
[^4]: [Wikipedia: Flow (psychology)](), 2020-04-10.
[^5]: One exception: Fabio & Grooverider's long-running radio show. They broadcast on [RinseFM](https://rinse.fm/schedule/) by now. I see Fabio & Grooverider as ambassadors of music. They really dig out the [choons](https://www.urbandictionary.com/define.php?term=choon) which will never be released … or _maybe_ in three months. They also have a superb time together: they're joking, laughing, make many technical mistakes (leaving the microphone open is a classic), and they transport an overwhelming amount of joy. I somehow manage to stay in the zone with these brilliant chaps.
[^6]: I also find Pete Tong's voice introducing every mix soothing (If you're reading this, Pete: Heya 👋).
[^7]: I hope you had goosebumps caused from music at least once in your life.
[^8]: I really want a perfectly working eye tracking device. Privacy respecting and easy to set up. ([Plug it in, switch it on and … _BSOD_ **woo**
](https://invidio.us/watch?v=IW7Rqwwth84&local=true&quality=hd720)).
[^9]: Sounds silly to need a reminder, no? It isn't, I was afraid to learn how seldom I stand up when being in the flow.
---
### Article: Handling, organizing and listening to music
URL: https://gil.desmarais.de/blog/managing-music/
Date: 2020-04-05
Description: How I manage and listen to music.
## Getting music
There are several ways to obtain music nowadays:
1. Rip it from CDs
Use [ExactAudioCopy](https://exactaudiocopy.de/) on a Windows machine with an optical disc drive (they still exist outside museums).
2. Rip it from vinyl
Use a turntable, a good analog-to-digital audio converter, and [Audacity](https://www.audacityteam.org/) to record it. Audacity offers filters to reduce noise and remove cracks and pops.
3. Download from _web 2.0_[^1] websites
[youtube-dl](https://github.com/ytdl-org/youtube-dl/) is the Swiss Army knife for downloading from those sites. Check if your local radio stations have a player or Mediathek
.
4. Some radio stations provide their shows as podcasts.
5. Some DJs run their own podcast to promote themselves.
6. Buy it online.
## Before the import
### Transcode to a supported format
These tools come in handy:
- [ffmpeg](https://ffmpeg.org/), the Swiss Army knife for audio and video en-/trans-/decoding on the command line.
- [XLD](https://tmkk.undo.jp/xld/index_e.html) to transcode audio files, split one file to tracks, etc.
If you want lossless encodes in an iTunes library, transcode the files to _Apple Lossless_. XLD handles this case nicely.
### Set and clean ID3 tags
- [MusicBrainz Picard](https://picard.musicbrainz.org/) matches the files' acoustic fingerprints against _freedb_[^2] and sets their tags accordingly.
- Use [mp3tag](https://www.mp3tag.de/) to derive ID3 tags from folder and file names and to fix ID3/APEv2 tags.
Mp3tag is a power tool for mass manipulating and cleaning tags. It's outstanding and works well within Wine. Nothing comes close to it, and it is the only reason I keep Wine installed.
Wine is holding me back from upgrading to macOS Catalina as it does not support 64-bit-only OSes yet. I'm, by the way, wary of the Music app that ships with macOS Catalina.
## Import files to library and organizing
All my music files are managed by iTunes. iTunes is really good at handling large music collections. I subscribe to iTunes Match to have the music available on all my devices.
### iTunes Match restrictions
iTunes Match is sometimes slow.
It matches _clean_ versions of lyrically explicit tracks. It's annoying, but since voices distract me in music and I rarely listen to rap, it does not affect me much. I also keep the original files instead of replacing them with the matched version.
If you listen to DJ mixes, you will hit iTunes Match's two-hour or 200 MB file size limit.
Most of these mixes are distributed as MP3. [`mp3splt`](https://mp3splt.sourceforge.net/) splits the files evenly without re-encoding.
### Rating with a schema
After importing new tracks, I start rating them. Over time I've developed a rating schema (on a scale of 0 to 5 stars).
- `0 stars`: new to library, needs to be rated
- `1 stars`: rated to not keep.
- `2 stars`: keep for a reason, but the track is probably not great
- `3 stars`: an average track
- `4 stars`: a good track
- `5 stars`: a personal favorite track
[Stars](https://www.karelia.com/products/stars/) is useful to rate music via hotkey.
### Accurate genre field
I try to set specific genres: Instead of `Rock` I narrow it down to `Rock/Metal` or even `Rock/Metal/Black`. Here are a few other specific examples:
- `Drum & Bass/Jump-Up`
- `House/Bass`
- `Techno/Acid`
- `Techno/Hard`
Tagging something as `Pop` is basically avoiding setting a genre. For `Pop` I started adding the decade like this: `Pop/60`, `Pop/70`, …, `Pop/00`, `Pop/10`, `Pop/20`.[^3]
### Clean up the iTunes library with beaTunes
[beaTunes](https://www.beatunes.com/en/) not only analyzes the content of each track, but also inspects the iTunes library.
The inspection detects illogical tags, missing compilation tags, different notations of the same artist, finds duplicates, etc.
Go through the findings and commit the changes.
## Determining the _Key_ and _Energy_ with Mixed in Key
[Mixed in Key](https://mixedinkey.com/) analyses the _key_ and _energy_ of music files.[^4]
Create a smart playlist _MiK todo_ that lists all files without Energy or BPM and with a rating greater than or equal to 2 stars.
## Creating playlists
Creating smart playlists makes much more sense with rated and analyzed tracks.
Name them wisely. I tend to follow the BEM naming convention[^5] and name them roughly like this:
- `stars__4`
- `stars__4+--bpm-124-127`
### Smart playlists
Set up a handful of smart playlists:
1. For energy levels (filter rules depend on your Mixed in Key configuration)
2. For each possible rating (_Stars 0_, _Stars 1_, …, _Stars 5_)
3. For _Added in the last x weeks/months_
I have those for 4 weeks and 6 months and call them _added-4w_ and _added-6m_.
My rating scheme (see above) leads to two special _Star_ playlists:
- _Stars 0_ is my to rate
playlist.
- _Stars 1_ is my to remove
playlist.
Now you can create smart playlists like these:
- _Banger tracks_: Track is in playlist _Energy 8_ and _Stars 5_.
- _Calm popular music_: Genre begins with `Pop` and is in playlist _Energy 4_ or _Energy 5_.
- _Hard Techno post 2010_: Genre begins with `Techno/Hard` and `year >= 2010`, in playlist _Energy 6, 7, 8, 9_.
- More than 4 stars
- More than 4 stars and in BPM range 124 to 127
- Long and calm tracks: longer than x minutes, energy less than 5
### Using beaTunes
In beaTunes you can set up criteria like Instrumentation
, Key
, Speed
, etc. and let it create a playlist for you based on a seed track selection. That is super nice and the results are good.
Over time, I noticed I do not use that feature much. I'm fine with the smart playlists.
## Backup
1. I use [rsync](https://rsync.samba.org/) to sync the Music folder to my NAS:
```
rsync --archive --verbose --human-readable \
--itemize-changes --progress \
--prune-empty-dirs --delete \
-e ssh ~/Music/iTunes me@NAS:~/backup/Music
```
2. Export the playlists with [Doug's Batch Export Playlists](https://dougscripts.com/itunes/scripts/ss.php?sp=batchexportplaylists) script.
⚠️ Make sure to export your _Stars_ playlists! iTunes does not save the rating in the files' tags. With those playlists you can recover your ratings.
3. Add the exported playlists to a git repository and commit the changes, then push to a remote host.
## Playing music
### iTunes
With iTunes Match I can listen to my music on any of my devices.
On desktop, I work with my smart playlists and the Column Browser
in the Song
view mode:
iTunes showing its song column
### With MPD and Cantata
To play music on my stereo I launch [Cantata](https://github.com/cdrummond/cantata) to control MPD, which is connected to it via HDMI. It plays the files from my NAS. I `scp` the exported playlists (with corrected file URLs) to MPD's `playlists` folder.
[^1]: A term coined in 2003 for the social web and user-generated content sites, etc.
[^2]: [freedb](https://www.freedb.org/) is a GNU GPL licensed track database.
[^3]: This is collision-free until the year 2049. The first Pop songs I own are from the 1950s (`Pop/50`).
[^4]: And more, like BPM. It can also set cue points to use with DJ standard software.
[^5]: [A naming convention for CSS.](https://en.bem.info/methodology/naming-convention/)
### DJ set preparation
When creating a DJ set, I keep a playlist of _A tracks_ as a track pool. Traktor reads my iTunes library, and I usually pick tracks from that pool and go with it.
Some mixes need more preparation. Then I create a plain old playlist in iTunes first and use that in [Traktor Pro 3](https://www.native-instruments.com/en/products/traktor/dj-software/traktor-pro-3/).
A laptop with a DJ software playing the song 'The End'
---
### Article: Why I taped the keys on my keyboard
URL: https://gil.desmarais.de/blog/why-i-taped-the-keys-on-my-keyboard/
Date: 2020-03-27
Description: Observations while becoming better at typing blindly.
About two years ago, I taped the keys on my work keyboard with fitting white labels.
The idea was to force myself to get better at typing without looking.[^1]
I assumed I already typed without looking most of the time.
The labels quickly proved me wrong — each glance at the keyboard reminded me how often I still peeked. It happened unconsciously a few times a day.
For a while I struggled to press the correct key in the number row. There is no indicator like on the F and J keys. With time I became more precise, but you can't fully make up the missing indicators.
A photo of my taped keyboard
I ran out of labels to tape the function-key row and some modifier keys. I know the modifier keys in and out. Pressing one of the function keys is a deliberate operation in my opinion. When pressing one, I look at the keyboard, press that key, and wait for the function to trigger.
Even after two years, the taped keys nudge me toward better habits. I'm still practicing, but it's progress I can feel in my own workflow.
[^1]: OK, there is another reason why I did this: I bought the keyboard of someone and it has a Nordic
key layout, which contains characters which I've never seen before.
---
### Article: Rails 5.1 RC1 with Webpack and React
URL: https://gil.desmarais.de/blog/rails-51rc1-with-webpack-and-react/
Date: 2017-04-11
Description: Early adopting Rails 5.1 RC1 to take advantage of the new webpacker gem.
My side project turned into a playground for new technologies. Today I set it up
to use `rails-5.1rc1` and [React](https://facebook.github.io/react/).
I’ve been using [yarn](https://yarnpkg.com/) to manage frontend dependencies.
Install yarn on your machine if you haven’t already. Depending on how you’re
deploying your app, your build server might need yarn installed, too.
This article leaves out how to install yarn. Follow the setup instructions on the
project's website and it _should be easy™_.
While I was updating, I kept some notes in this post. They might help—or
totally confuse you. Remember, this post is about Rails 5.1 RC1. Something will
likely change in later releases.
## Installation of ruby dependencies
In your `Gemfile`, change the line with `gem 'rails'` to get bundler to
lock the version to the latest unstable 5.1 release. Also, you want to
install the new [webpacker gem](https://github.com/rails/webpacker).
```ruby
# Gemfile
gem 'rails', '~> 5.1.0.rc1'
gem 'webpacker'
```
Afterwards run `bundle update`. You’re on Rails `5.1.0rcX` now.
The setup of Webpack is still missing. Thankfully there are tasks to set
everything up.
## Installation of Webpack with webpacker
Now it’s time for `rails webpacker:install`.
When that’s done, you’ve set up the Webpack installation. Have a look at the
newly created files (there are quite a few of them).
The additional webpacker tasks are handy. With their help, you can
install your preferred JS framework without much hassle.
## Installing React with webpacker
React has been on top of my “to learn” list for quite a while.
To install it, run `rails webpacker:install:react` and … voilà: React
(with JSX) set up.
OK, but how to use React now?
## Using React
To include a javascript pack, put this in your HTML:
```ruby
= javascript_pack_tag 'application'
```
If you’ve already started `rails s`… hold your horses: you need to start the
webpack development server. That’s new and you need to get used to it
(or change your project’s tmuxinator config).
The webpack server will build/transpile/_apply the magic_ to
your JS code and serve these files. It runs on its own port, defaulting to 8080.
No need to worry about ports now; just start the webpack development server with
`bin/webpack-dev-server`.
Start your rails server (`rails s`) and open your app in your browser.
You shouldn’t be greeted with an _Internal Server Error_ page anymore.
Still, there’s no visible React.
## Trying the `hello_react` example
The `webpacker:install:react` task installs the `hello_react` example. Find it
at `app/javascript/packs/hello_react.jsx`.
To test it, add this to your HTML:
```ruby
= javascript_pack_tag 'hello_react'
```
Save and refresh your browser. You should see a
> Hello React!
at the end of your page now.
## Conclusion
It’s really easy to set up Webpack in a Rails 5.1 project and use React.
I haven’t tested it, but install helpers for Vue.js, Angular, and other
popular frameworks exist. It should be just as easy.
Such an easy setup is possible due to great efforts by the webpacker gem.
Kudos to everyone involved!
On a larger scale, I’m pleased to see Rails jumping on the yarn
and “modern JavaScript” train. If you haven’t already,
[read the Rails 5.1 Release Notes](https://edgeguides.rubyonrails.org/5_1_release_notes.html).
---
### Article: Long Island Club Tea ‒ Cocktail mit Club-Mate
URL: https://gil.desmarais.de/blog/long-island-club-tea-cocktail-mit-club-mate/
Date: 2013-02-24
Description: Eine Abwandlung des IBA-Rezepts eines Cocktailklassikers.
Neben dem [bekannten Tschunk](https://entropia.de/Tschunk) fehlte mir ein alternativer Drink mit Club-Mate. Deshalb versuchte ich mich eines Abends an einer Variante. Nach ein wenig Experimentieren gefällt sie mir geschmacklich.
Der Cocktail kann als Variation des bekannten Long Island Iced Tea angesehen werden. Den Namen „Long Island Club Tea“ habe ich mir in einer hochkreativen Phase selbst ausgedacht. ;)
Vom Namen „Long Island Mate Tea“ habe ich bewusst abgesehen: Club-Mate ist ein eigenständiges Getränk _auf Basis von_ Mate-Tee, aber eben kein _richtiger_ Mate-Tee.
Neben der Substitution der Cola durch Club-Mate weicht das Rezept [vom offiziellen IBA-Rezept des Long Island Iced Tea](https://www.iba-world.com/index.php?option=com_content&view=article&id=88&Itemid=532) durch weniger Zuckersirup (2 statt 3 cl) ab. Bei einem Cocktail mit Club-Mate erwarte ich keinen süßen, sondern einen eher herben Drink. Durch die Reduzierung des Zuckersirups (und dadurch mehr Club-Mate im Drink) kommt der Geschmack der Club-Mate besser zur Geltung und der Drink enthält mehr Kohlensäure (“Fizz”).
**Thema Geschmack:** Der hängt selbstverständlich elementar von den verwendeten Zutaten ab. Ich verwende als Wodka „Russian Standard“, als weißen Rum „Havanna Club 3 Jahre“, als Triple Sec „Cointreau“, als Gin „Tanqueray London’s Dry Gin, Export Strength (47 %)“ und selbst hergestellten Zuckersirup (Verhältnis 2:1 (Zucker:Wasser), [Wikipedia: Läuterzucker](https://de.wikipedia.org/wiki/L%C3%A4uterzucker)).
**Zutaten:**
- 1,5 cl Wodka
- 1,5 cl Tequila
- 1,5 cl weißer Rum
- 1,5 cl Triple Sec
- 1,5 cl Gin
- 2,5 cl Limettensaft (frisch gepresst)
- 2 cl Zuckersirup
- Filler: Club-Mate
Die Zutaten im Gästeglas auf Eis geben. Vorsichtig mit Club-Mate auffüllen (Glas dabei ruhig schräg halten) und umrühren (die Kohlensäure der Club-Mate soll nicht verloren gehen!). Glas mit einer Zitronenscheibe dekorieren. Fertig.
Glas: Highball (ca. 200 ml)
Dekoration: Zitronenscheibe
Viel Spaß beim bewussten Genießen. Laut [englischer Wikipedia](https://en.wikipedia.org/wiki/Long_Island_Iced_Tea) besitzt der Drink ca. 22 % Alkohol. Seid also vorsichtig.
---
### Article: Regionale Nachrichtenquellen aus der Region Oldenburg
URL: https://gil.desmarais.de/blog/regionale-nachrichten-der-region-oldenburg/
Date: 2012-08-09
Description: Eine lange Liste mit Links zu Webseiten.
Dieser Post ist eine lange Liste mit Links zu Webseiten. Ganz bewusst wurden auf Links zu den Webseiten politischer Parteien verzichtet. Die werdet ihr schon durch eine Suchmaschine selbst herausfinden.
Tipp: Diese Seiten jeden Tag manuell anzusurfen und auf Neuigkeiten zu prüfen ist ganz schön mühsam. Fast alle verlinkten Seiten besitzen daher einen [RSS-Feed](https://de.wikipedia.org/wiki/RSS), den man mit einem [Feedreader](https://de.wikipedia.org/wiki/Feedreader) abonnieren kann. Ich habe die Adresse zum jeweiligen RSS-Feed angegeben. Auch [dieses Blog bietet einen RSS-Feed an](https://gil.desmarais.de/feed.xml), der natürlich auch abonniert werden darf.
Also, los geht’s!
## Polizei und Feuerwehr
Pressemitteilungen über Vorkommnisse der Polizei und Feuerwehr gibt es in der entsprechenden Pressemappe beim Presseportal.de:
- [Landesbereitschaftspolizei Oldenburg](https://www.presseportal.de/polizeipresse/pm/71299/landesbereitschaftspolizei-oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_71299.rss2))
- [Zentrale Kriminalinspektion Oldenburg](https://www.presseportal.de/polizeipresse/pm/68443/zentrale-kriminalinspektion-oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_68443.rss2))
- [Wasserschutzpolizei Oldenburg](https://www.presseportal.de/polizeipresse/pm/79412/wasserschutzpolizei-oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_79412.rss2))
- [Polizeidirektion Oldenburg](https://www.presseportal.de/polizeipresse/pm/62353/polizeidirektion-oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_62353.rss2))
- [Bundespolizei Bad Bentheim](https://www.presseportal.de/polizeipresse/pm/70276/bundespolizeiinspektion-bad-bentheim) (zuständig für Oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_70276.rss2))
- [Feuerwehr Oldenburg](https://www.presseportal.de/polizeipresse/pm/74381/feuerwehr-oldenburg) ([RSS](https://www.presseportal.de/rss/dienststelle_74381.rss2))
- [Polizeiinspektion Oldenburg – Stadt / Ammerland](https://www.presseportal.de/polizeipresse/pm/68440/polizeiinspektion-oldenburg-stadt-ammerland) ([RSS](https://www.presseportal.de/rss/dienststelle_68440.rss2))
Wer von Geschehen dieser Art noch mehr _sehen_ möchte, dem seien die Nachrichtendienste [NonstopNews](https://www.nonstopnews.de/), [Nord-West-Media-TV](https://www.nwm-tv.de/) und [BremenReporter](https://www.bremenreporter.de/) ans Herz gelegt (Danke, Christoph!). Diese berichten allerdings nicht ausschließlich aus der Region Oldenburg, sondern teilweise mittlerweile deutschlandweit.
## Hörfunk
Aus der Region gibt es Nachrichten von Radio- und Fernsehsendern:
- [NDR Niedersachsen](https://www.ndr.de/regional/niedersachsen/index.html) ([RSS](https://www.ndr.de/regional/niedersachsen/index-rss.xml))
- [Radio Bremen](https://www.radiobremen.de/nachrichten/kurz_notiert/index.html) ([RSS](https://www.radiobremen.de/feed/rss/nachrichtenchronologisch100.xml))
Beim Lokalsender _oeins_ findet man in der [Mediathek](https://oeins.de/mediathek/rubriken/) Beiträge zum Nachhören und -sehen.
## Blogs oder andere Magazine mit tagesaktuellen Themen
- [Huntesicht](https://huntesicht.de/) ([RSS](https://huntesicht.de/feed/))
- [Wirtschaftsmagazin business-on für Weser-Ems](https://www.business-on.de/weser-ems/news.html) ([RSS](https://weser-ems.business-on.de/newsfeeds/14_all.xml))
- [Die Bürgerzeitung](https://www.buerger-zeitung.de/) ([RSS](https://www.buerger-zeitung.de/feed/)) (scheint inaktiv zu sein)
- [[regentied] oldenburg von unten](https://regentied.blogsport.de/) ([RSS](https://regentied.blogsport.de/feed/))
- [Oldenburger Lokalteil](https://www.oldenburger-lokalteil.de/) ([RSS](https://www.oldenburger-lokalteil.de/feed/))
## Hochschulen
(Nicht nur) Studenten sind sicherlich noch daran interessiert, welche Pressemitteilungen die lokalen Hochschulen veröffentlichen:
- [Carl von Ossietzky Universität Oldenburg](https://www.uni-oldenburg.de/) ([RSS](https://www.presse.uni-oldenburg.de/mit/pressedienst.rdf))
- [Jade Hochschule](https://www.jade-hs.de/) ([RSS](https://www.jade-hs.de/?id=13&type=100&tx_ttnews%5Bcat%5D=1))
## Weitere Quellen
Zu guter Letzt kann man [Google News einfach mal mit dem Suchbegriff “Oldenburg" füttern](https://www.google.de/search?hl=de&gl=de&tbm=nws&q=Oldenburg&qscrl=1). Bis auf einige wenige Ausreißer (meistens Artikel, die Oldenburg in Holstein betreffen) findet man dort noch weitere Artikel.
Mit diesen Quellen braucht ihr in der Regel gar nicht mehr auf die Zeitungen der [(leider einzigen) regionale Tageszeitung mit den drei großen Buchstaben](https://de.wikipedia.org/wiki/Nordwest-Zeitung) zurückgreifen. Ihr seid sogar in einigen Themen sicherlich besser informiert, als ihr es über diese Tageszeitung und ihre Ableger wäret. Sich auf nur eine Nachrichtenquelle zu verlassen ist einseitig und nicht geeignet, um sich ein eigenes Bild zu machen!
Wem das Medium “Fernsehen" lieber ist, der wird auch bedient, insofern ein Kabelanschluss vorhanden ist oder ein Live-Stream ausreicht: der [Friesische Rundfunk](https://www.friesischer-rundfunk.de/) sendet werktäglich Neuigkeiten aus dieser Gegend.
---
### Article: Bluetooth Headset mit Pulseaudio
URL: https://gil.desmarais.de/blog/bluetooth-headset-mit-pulseaudio/
Date: 2009-02-19
Description: Bluetooth Headset mit Pulseaudio unter Ubuntu einrichten.
Wer, wie ich, unter Ubuntu ein Bluetooth-Headset als Soundausgabe nutzen wollte, musste bisher umständlich zusätzliche Kernel-Module laden und gegebenenfalls eine "Umleitung" mit ALSA für den Pulseaudio-Server einrichten.
Seitdem Pulseaudio jedoch Bluetooth-Module mitliefert (ab Version 0.9.14, die mit Jaunty Alpha 4 ausgeliefert wurde), ist alles einfacher geworden.
Das nachträgliche Laden dieser Module mit passenden Parametern (nach der Kopplung mit dem PC) bringt sofort einen "Sink" zum Vorschein, der die Ausgabe über das Headset erlaubt.
Dazu folgendes entsprechend ans eigene Headset angepasste im Terminal eingeben:
```
pactl load-module module-bluetooth-device \
sink_name="gewünschter sink-name" \
address="MAC-Adresse" \
profile="a2dp"
```
Ich benutze mein Headset lediglich zur Stereo-Soundausgabe. Daher stört es mich nicht, dass das Modul module-bluetooth-device bisher nur die Wiedergabe unterstützt und keine Source, sprich keinen Mikrofoneingang, bereitstellt.
Lädt man vorher das Modul module-bluetooth-discover, erkennt Pulseaudio, wann das Headset ein- oder ausgeschaltet wird.
Wer diese Einstellungen dauerhaft speichern will, bearbeitet mit Root-Rechten die Datei `/etc/pulse/default.pa`. Zumindest das Discover-Modul lässt sich dort beim Start laden.
---
### Article: Nokia E51 als UMTS Modem via Bluetooth unter Ubuntu
URL: https://gil.desmarais.de/blog/nokia-e51-als-umts-modem-via-bluetooth-unter-ubuntu/
Date: 2008-04-06
Description: Nokia E51 als UMTS Modem via Bluetooth unter Ubuntu nutzen.
Nichts ist unmöglich. Nachdem ich gestern ein wenig Zeit hatte, beschreibe ich heute, wie man kabellos unter Ubuntu via Bluetooth per UMTS surft.
Sofern noch nicht geschehen, muss das Handy mit Ubuntu „gepairt" werden. Dazu Ubuntu kurzzeitig auffindbar machen und vom Handy aus den Pairing-Vorgang starten (andersrum geht’s auch). Grundsätzlich sind meine Bluetoothgeräte versteckt und nicht auffindbar, was ich auch jedem empfehle. Viele wissen gar nicht, wie einfach sie es Angreifenden machen, ihr Handy aufzufinden und anzugreifen. Besonders an belebten Plätzen wie Bahnhöfen sind viele BT-Geräte auffindbar.
Wenn die beiden Geräte gekoppelt sind, geht’s weiter: Das Handy kurzzeitig auffindbar machen und von Ubuntu aus mit _hcitool scan_ die BT-Umgebung scannen lassen.
$ hcitool scan
Scanning …
00:1D:6E:BC:xx:xx Gil
Die MAC-Adresse (`00:1D:6E:BC:xx:xx`) vom eigenen Handy merken. Die wird noch zweimal gebraucht (nachfolgend `` genannt).
Jetzt soll Ubuntu das Handy nach den via Bluetooth angebotenen Services durchsuchen. Hierfür kann das Handy schon wieder unsichtbar gemacht werden, da die MAC-Adresse zum Verbinden vollkommen ausreicht.
$ sdptool browse
Erzeugt nun eine Menge Text, hier ist nach _Dial Up Networking_ Ausschau
zu halten. Gebraucht wird aus diesem Abschnitt der _Channel_, auf dem der
Service angeboten wird. Bei meinem E51 ist das der Channel 2.
Service Name: Dial-Up Networking
Service RecHandle: 0x10003
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
**Channel: 2**
Ein letztes Mal wird die MAC-Adresse gebraucht, um die virtuelle serielle Schnittstelle anzulegen. Dazu die `/etc/bluetooth/rfcomm.conf` bearbeiten (bspw. mit `sudo gedit /etc/bluetooth/rfcomm.conf`) und Folgendes hineinschreiben.
rfcomm0 {
bind yes;
device ;
channel ;
comment "Nokia E51 BT Dial-Up";
}
Speichern und danach mit
sudo /etc/init.d/bluetooth restart
den Bluetooth-Dienst neu starten. Jetzt sollte unter `/dev/` ein Gerät (= Datei) namens `rfcomm0` vorhanden sein.
Nun _wvdial_ installieren.
Zum Konfigurieren der Verbindung einfach die Sektion
```
[Dialer Defaults]
```
kopieren und ans Ende der Datei einfügen. Sektionname ändern, bspw. in
`[Dialer bluetooth]`, und als Modem _/dev/rfcomm0_ setzen. Wer die USB-Datenkabel-Verbindung nicht einrichten will, kann diesen Abschnitt dennoch so kopieren und nutzen, wenn _wvdial_ installiert ist.
[Dialer bluetooth]
Modem = /dev/rfcomm0
Baud = 460800
SetVolume = 0
Dial Command = ATDT
FlowControl = NoFlow
Init1 = ATZ
Init2 = ATM0
Username = eplus
Password = gprs
Phone = \*99#
Init3 = AT+CGDCONT=1,"ip","internet.eplus.de"
Stupid Mode = 1
Dial Attempts = 3
Nun mit _wvdial bluetooth_ einwählen. Viel Spaß beim kabellosen Surfen.
---