Sébastien De Revière
  • Blog
  • Notes
  • About

Notes

Tip: Full-Text Search

You can access a full-text search of the entire website, including the notes, in the following ways:

  • Click on the search icon in the right corner of the navigation bar.
  • Press s, f, or / on your keyboard.

Please keep in mind that these notes are just notes and should be regarded as such.

Note# Title   Date
188 Automatic PyTorch Backend Selection with uv   May 2025
187 A Needlessly Complex Word for a Simple Idea   March 2025
186 Zero-Setup Python Script Dependencies with uv   March 2025
185 Comics are Comics   March 2025
184 Quarto has Native Support for Mermaid and Graphviz Diagrams   March 2025
183 Python doesn’t perform tail-call optimization   February 2025
182 Standard Recursive Paradigm   February 2025
181 Use getpass to Get Passwords in Small Python Scripts   November 2024
180 There Are No Prompt Engineers   November 2024
179 When to use NotImplemented and NotImplementedError in Python   October 2024
178 Synchronize Panes with tmux   October 2024
177 Creating Unique Non-None Placeholders in Python   September 2024
176 Some Python Type Challenges   September 2024
175 Easily move a WSL distribution to another drive   August 2024
174 Hiding Commands and Options in Click CLI Help Messages   August 2024
173 Nuances Between Pervading and Pervasive   August 2024
172 Nuances Among To Libel, To Vilify, and To Defame   August 2024
171 Nuances Between To Spur and To Foster   August 2024
170 Nuances Between To Stifle and To Smother   August 2024
169 Nuances Between To Wail and To Bewail   July 2024
168 Nuances Between To Relinquish and To Forego   July 2024
167 Nuances Among Fussy, Finicky, and Particular   July 2024
166 Nuances Among Despondency, Dejection, and Gloom   July 2024
165 Vocabulary Nuances   July 2024
164 What is Style?   July 2024
163 How to Install Outdated Python Versions on Debian   July 2024
162 Show the Lines of Context Around a ripgrep or grep Search   July 2024
161 Use Multiple GitHub Accounts with the gh CLI   June 2024
160 How to Rename a WSL Distribution   June 2024
159 Use git reset --keep, not git reset --hard   June 2024
158 Create a “Featured” Column in Quarto Listings   June 2024
157 Change Model Directory for Ollama   June 2024
156 The hosts File as a Self-Care Hack to Block Distractions ⭐ June 2024
155 Solving X-Server (WSLg) Issues in WSL: Error: Can't open display: :0   May 2024
154 Reading Note – People Cannot Distinguish GPT-4 from a Human in a Turing Test (2024)   May 2024
153 A Short Course on OSS Licensing for Research and Education   May 2024
152 Vim: Save a File You Forgot to Open with Sudo   May 2024
151 Vim: Moving to Next Search Pattern in Incremental Search   April 2024
150 BFS vs DFS   April 2024
149 How to Execute Parallel and Concurrent Commands in Bash   April 2024
148 Vim ga Command Shows ASCII Information   April 2024
147 Resolving Vim Sluggishness Caused by ALE Linters with LaTeX Files   March 2024
146 Automating a Reading Note Template Generation Using Zotero Metadata   March 2024
145 Unnecessary else Statement Can Be Better for Readability   March 2024
144 Use ddof=1 for Sample Dispersion Measures with NumPy   March 2024
143 Use git maintenance start   February 2024
142 GPG Key Configuration for Signing Commits with Git and GitHub   February 2024
141 Managing Git Configurations Conditionally   February 2024
140 The Most Common Applications of Machine Learning   February 2024
139 Vim Shortcuts in Insert Mode   January 2024
138 Using Canonical Form via String Sorting for Anagram Grouping   October 2023
137 Basic Time Frames of Emotion   October 2023
136 yield from: The Extend Method for Generators   October 2023
135 How to Know if an Object is an Iterable in Python   October 2023
134 Moving a Tmux Pane to Another Existing Window   October 2023
133 A Better Library for Logging in Python: Eliot   October 2023
132 rich.status: a Spinner for Better CLI UX   October 2023
131 Python Packaging with pyproject.toml ⭐ October 2023
130 Vim Command for Retrieving Syntax Highlighting Information   October 2023
129 Optimizing Memory and Attribute Lookup in Python Classes with __slots__   October 2023
128 Vim :g Command: A Practical Guide   October 2023
127 Equality vs Identity in Python   October 2023
126 Managing Pinned Dependencies for Python Packages with uv   October 2023
125 Using Git Interactive Rebase to Edit Commit Contents   September 2023
124 The “Safe Triangle” Design Pattern for Better UI Context Menus   September 2023
123 Speedy Directory Switching with CDPATH   September 2023
122 ChatGPT Integration for Code Analysis in Vim   September 2023
121 !! Substitution in Bash and Zsh   September 2023
120 A Quick Guide to mktemp in Bash   September 2023
119 Extracting Largest and Smallest Items from a Collection in Python   September 2023
118 Cheat Sheet for Python f-string   September 2023
117 random.choices(list, k=n) vs random.sample(list, k=n) in Python   September 2023
116 Understanding Keyword-Only Function Arguments in Python   September 2023
115 How To Detect a Hashable Object in Python   September 2023
114 Strong vs. Weak Typing   September 2023
113 Command History Search (Shell with Vi Mode)   August 2023
112 Managing Upgrades of Bundled CLI Tools in a metapackage Installed via pipx   August 2023
111 UUID: An Introduction and Usage   July 2023
110 Extracting Unique Patterns with grep or ripgrep   July 2023
109 Using Alternative Delimiters in Vim’s Substitution Command   July 2023
108 w3m Cheatsheet   July 2023
107 Stop Writing Your Error Messages to stdout   July 2023
106 Working With Timezones in Python   July 2023
105 Google Dorking Cheat Sheet   July 2023
104 ed Is Pronounced “ee-dee”   July 2023
103 Understanding YAML Block Scalars - Folded and Literal Styles   July 2023
102 Jedi-Vim Plugin Cheat Sheet   June 2023
101 Understanding xclip File Commands and Their Use Cases   June 2023
100 There’s been the “good Bing 😊”. But is there a good Edge?   June 2023
99 Using xclip for Clipboard Operations in WSL and VMs Running on Windows   June 2023
98 LICEcap: A Simple Tool for Recording GIFs   June 2023
97 Seam Carving Algorithm   June 2023
96 Removing Vocals from Music: A Simple Hack   June 2023
95 RGB vs HSL Color Models   June 2023
94 A Quote Diary   June 2023
93 General Strategy Whenever You Have a Bug   June 2023
92 Understanding Vim Regular Expressions: A Comparison with PCRE   May 2023
91 Learn Git and GitHub ⭐ May 2023
90 Containers, Docker, and Podman   May 2023
89 The XOR Operator and Its Applications to Programming   May 2023
88 Setting Up Two-Factor Authentication (2FA) on a Server with Google Authenticator for SSH Logins   May 2023
87 Remapping the ² Key on an AZERTY Keyboard with AutoHotkey (Windows)   May 2023
86 Casting malloc and calloc in C and C++   May 2023
85 File and Directory Listing in Python   May 2023
84 Difference between set and setx in a Windows shell   May 2023
83 Partial Functions vs Closures in Python   May 2023
82 Partial Functions in Python   May 2023
81 Instantly Paste Emojis Using a Windows Keybind   April 2023
80 Using in vs. find() in Python   April 2023
79 Delete Lines Not Matching a Specific Pattern in Vim or with Sed   April 2023
78 Quick Workflow for Making a Screencast on Windows   April 2023
77 How to Add a title and alt Attribute, and a caption to an Image Using Pandoc Markdown   April 2023
76 Pathlib vs. os.path Performance   April 2023
75 Don’t use time.time()   April 2023
74 The Python Code Formatter Black Can Format Long Strings   April 2023
73 Use sys.maxsize instead of float("inf") in Python   April 2023
72 Combining Multiple GitHub Repositories into a Single Repository   April 2023
71 Handling Long Strings in Python   April 2023
70 Distributing a Python CLI Application with Autocompletion ⭐ April 2023
69 Renaming Variables and Functions Across Multiple Files in Vim   April 2023
68 Performance of Set-Based Word Existence Check   April 2023
67 If Your Code Uses f-strings, Your Dictionaries Are Already Ordered   April 2023
66 Titles in English Should Be Capitalized   April 2023
65 Vim Buffers: Renaming, Switching and Opening Files   April 2023
64 How to Determine the Operating System Programmatically   April 2023
63 Creating and managing cron jobs   April 2023
62 Enhancing Variable Renaming in Vim   April 2023
61 Ignoring portions of code with the Python code formatter Black   April 2023
60 How to use macros in Vim   April 2023
59 which vs command -v   April 2023
58 Linux Output Redirection   April 2023
57 How to create a virtual environment for a Python project   April 2023
56 ANSI Escape Sequences   April 2023
55 Protect yourself from overwriting files with the noclobber option   April 2023
54 How to add a user to the sudo group   March 2023
53 Difference between su and su -   March 2023
52 Enabling autocompletion for a custom script in zsh or bash   March 2023
51 Open a file from a path in Vim   March 2023
50 pushd and popd are on a boat…   March 2023
49 Handling infinity in programming languages   March 2023
48 Evaluating variables in f-strings in Python   March 2023
47 A Very Simple Windows Management Workflow for Windows ⭐ March 2023
46 How to disable the ^C char printed in Bash when pressing <CTRL-C>   March 2023
45 How to sort inside brackets (parentheses, etc.) in Vim   March 2023
44 How to Use the Native Spell Checker of Vim   March 2023
43 No more delay when pasting before the cursor in Vim   March 2023
42 Apply a (useless) rot13 to an entire file in Vim   March 2023
41 How to add quotes, parenthesis, etc., around text in Vim   March 2023
40 How to use the undofile of Vim   March 2023
39 Write a note even if you think you don’t need it   March 2023
38 How to switch the case of characters in Vim   March 2023
37 How to run the Python code formatter Black in Vim   February 2023
36 Changer de langue (citation de Cioran)   February 2023
35 How to automatically create ordered lists in Vim   February 2023
34 What are the five critera for good interface design?   February 2023
33 Can Python functions get lonely?   January 2023
32 Use the casefold() method in Python when doing case-insensitive stuff   January 2023
31 How to disable cursor blinking in a Linux shell   January 2023
30 How to know the number of selected lines in Vim   December 2022
29 The problem of seeking informations and the limits of LLMs in that regard   December 2022
28 How to see network traffic in real time in Linux   November 2022
27 How to increase the max upload file size for a PHP web server   November 2022
26 How to securely wipe and erase a disk in Linux   November 2022
25 How to import/export a database in MySQL/MariaDB   November 2022
24 How to easily copy a public SSH key to another machine   November 2022
23 Set timezone in Linux   November 2022
22 Bash history Toolkit   November 2022
21 How to Determine Character Frequencies in a Python String   November 2022
20 How to use ssh-agent to automatically enter your SSH key passphrase   November 2022
19 Checking user passwords   November 2022
18 Generating Secure Passwords with Linux Tools   November 2022
17 How to make .bashrc aliases available within a Vim shell command (:.!bash)   November 2022
16 Upgrade Windows Applications With a CLI Package Manager   November 2022
15 Some of my favorite fonts   November 2022
14 Experts and Novices don’t learn the same way   October 2022
13 Guido van Rossum on dynamic vs static typing   September 2022
12 How to sort files and folders by size in Linux   September 2022
11 Differences between Casting, Parsing and Converting   September 2022
10 How to disable ligatures for the Fira Code font in Windows Terminal   September 2022
9 Moby Dick, extrait de la première page   August 2022
8 The rise of domain experts in deep learning   August 2022
7 How will machine learning impact the IT industry?   August 2022
6 What is the Chiaroscuro technique?   August 2022
5 C++ is not a superset of C   August 2022
4 Cybersecurity questions preparation exams   July 2022
3 How to remap keys in Linux   July 2022
2 How to change the default editor in Linux (when it’s Nano instead of Vim)   July 2022
1 What is the difference between 127.0.0.1 and 0.0.0.0?   July 2022
0 Citation de Louis Blanc   July 2022
No matching items