Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Unified Filesystem Operations with Python's Pathlib Module
Filesystem operations in Python can feel clumsy, because the relevant operations are distributed over so many different modules in the standard library: some are in os (itself very large and bloated), some in os.path, then there is shutil, and you may also
-
Useful Packages for Buffer and File Handling in Emacs
I recently discovered a set of useful packages and commands that facilitate some common file and buffer handling scenarios.
-
A Transient Mode for Safer Filesystem Operations
I am sure this is standard procedure for many others, but I only discovered this idea now: a temporary safe mode when doing extensive filesystem operations on the (notoriously unforgiving) Unix platform.
-
Building Regular Expressions with Emacs
Wouldn’t it be nice to have an environment in which to see the effect of a regular expression on a set of target strings?
-
Upgrading to Mathjax 4
After realizing that the 2024 polyfill.io supply chain attack affected this website, I upgraded from Mathjax 3 to Mathjax 4.
-
The polyfill.io Sign-In Phishing Incident on janert.me
For a brief time, starting after 01 June 2026 (when there was no apparent problem) and 18 June 2026 (when the problem first came to my attention), visitors to this site were faced with a spurious “Sign-In” pop-up, identifying itself as “polyfill.io”.
-
Schrödinger Equation in a Wedge Potential: Exact and WKB
The Schrödinger equation in a wedge potential is one of the “standard” problems in Quantum Mechanics — standard, but not routine, as its solution involves the Airy equation, which is likely to be unfamiliar, at least until this precise moment.
-
Two Gmail Tricks
Gmail has its own ideas how to do things.
-
An Ideal Math Curriculum for Physics Students
I occasionally fantasize about an “ideal math curriculum” for Physics graduate students, based on my experience, in school and out.
-
A Simple Approximation for the Airy Function
Besides the Normal Distribution Function, I occasionally need the Airy Function Ai(x): it arises in perturbation theory and some other contexts.
-
Exploring SymPy or: What, Really, is the Purpose of Computer Algebra Systems?
I recently got interested in singular perturbation theory , and to get help with the algebra, I turned to SymPy.
-
Case Study: Singular Perturbation Theory with SymPy
Formal perturbation theory, and in particular singular perturbation theory, are standard topics in applied mathematics, but seem to be largely unknown outside that specific community.
-
The Feynman Lectures: Online
It turns out, Caltech has made the Feynman Lectures available online on their website.
-
Hot Chocolate
Occasionally, I like to drink hot chocolate — that is, real hot chocolate, from pure cocoa powder and whole milk; not some (sugared, flavored) drink mix.
-
Go's Named Types aren't Types
I always thought that the “types” that are created using Go’s type keyword were, in some vague sense, new, unique, original; but in any case separate and distinct types.
-
JSON/REST from Scratch: A Guide to Go's net/http Package
What does it take to stand up a minimal REST service in Go, using only facilities provided by the standard library?
-
Ist Dubslav von Stechlin wirklich Fontane's Selbst-Portrait?
Der alte Dubslav von Stechlin wird gerne als Selbstportrait Fontane’s betrachtet.
-
Go: Reading a Plain-Text File
How does one actually read a plain text file in Go?
-
Some Useful Latex Packages
I am currently working (again) on a larger writing project in Latex.
-
Kästner's verlassene Kinder
Erich Kästners Mutterkomplex ist bekannt, hinreichend dokumentiert, und sowieso nicht zu übersehen.
-
Traffic Shaping with the Token Bucket Algorithm
The Token Bucket (or Leaking Bucket) algorithm is a mechanism to rate-limit the average traffic in a stream, while allowing for a certain amount of burstiness as well.
-
The Functional Equation of the Logarithm
The functional equation of the logarithm is well-known: \[ \log(xy) = \log(x) + \log(y) \] But why is this so?
-
Book Review: Matrix Analysis and Applied Linear Algebra, 2nd Edition
When I discovered the first edition of Carl D.
-
The Irrationality of e
The proof that $\sqrt{2}$ is irrational is part of the standard high-school curriculum.
-
Go is weird: When is a Go slice empty?
Let a be a Go slice.
-
Ein literarisches Portrait Bernhard von Lepels?
Bernhard von Lepel ist für uns hauptsächlich interessant durch seine Freundschaft mit Theodor Fontane, und das meiste, das wir über ihn wissen, wissen wir durch Fontane.
-
Absence of Evidence is not Evidence of Absence
Absence of Evidence is not Evidence of Absence.
-
Locking Performance for Concurrent Updates to an In-Memory Cache in Go
Here is the situation: an application maintains an in-memory cache.
-
An Intuitive Explanation for the Birthday Paradox
The so-called “birthday paradox” concerns the fact that even in surprisingly small groups the probability for at least two people to share their birthdate is surprisingly high.
-
Go is Weird: Strings
Having done extensive programming in C, I am not particularly spoiled when it comes to idiosyncrasies of a language’s “string” type.
-
Understanding Go's context Package
Go request handlers typically include a “context” value as their first argument: func handler( ctx context.Context, ... ) { ... } In my experience, this convention is typically fastidiously followed, but then nothing is ever done with that ctx argum…
-
Computing the Normal Distribution Function
Every once in a while, I need to evaluate the normal distribution function $\Phi(x)$: $$ \Phi(x) = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^x \!
-
Typing Speed
I have never seen a software project in which the limiting factor was the speed with which programmers could type.
-
Better Highlighting for the Emacs Region
The default highlighting of the Emacs “region” (the part of a buffer between “point” and “mark” — selected text, if any, in other words) is, out of the box, barely visible, at least against a light background.
-
Compiling Emacs 29 for Debian/Ubuntu/Mint
I wanted to explore some of the new features in Emacs 29 (in particular Eglot).
-
Changing Cursor Shape to Indicate Emacs Minor Modes
As it turns out, Emacs actually allows for different cursor shapes.
-
Queueing and Occupancy: The Linear Case
Imagine a parking lot, consisting of a long, linear strip of slots.
-
Book Review: Linux Observability with BPF
A little while ago, I read (and quite enjoyed) “Learning eBPF” by Liz Rice.
-
Terrain Generation: River Networks
A while back, I looked at the Diamond-Square Algorithm for terrain generation.
-
Book Review: Learning eBPF
The extended Berkeley Packet Filter, or eBPF for short, is a plugin architecture for the Linux kernel.
-
Ants and Chips
Imagine a bunch of wood chips randomly distributed on a surface.
-
A Tool to Display Cumulative Disk Usage
A tool to display directory entries, sorted by size, together with their cumulative contribution to the total.
-
eBook Review: Mastering Emacs
After seeing positive references to it on Linux Weekly News and elsewhere, I bought a copy of “Mastering Emacs” by Mickey Petersen.
-
Total Eclipse 2024
On 08 April 2024, I drove up to Erie, PA, to see the total eclipse of the sun.
-
Go is Weird
Go is weird.
-
Who is Responsible for Writing Go Interfaces, Anyway?
For every function, data type, or other such code artifact, there are two bits of code: the part that defines and implements it, and the one that uses it.
-
Préparation du Poulet
I originally prepared this video as a guide for a relative of mine, but then was surprised how well it came out.
-
Interfaces and the Handle/Body Idiom (continued)
In response to a previous post, very insightfully, Steve Singer, pointed out that it is helpful to distinguish between three concepts, when talking about “interfaces” in general: Data types Capabilities Facades
-
Indispensable Project Management Artifacts and Activities
I was recently reminded of the minimal set of project management artifacts and activities that are, in one way or another, simply indispensable.
-
Go Interfaces and the Handle/Body Idiom
The interface construct in the Go language is one of its most immediately visible features.