Posted in 2023

šŸ“¦ Multiple Git Configurations and Identities with Folder-Dependent Includes for GitLab, GitHub et al

People, shout out to some of my friends and collegues, like to configure their development environments in a myriad of ways. Even setting oneā€™s Git author identity, a seemingly boring and mundane task, is sometimes approached in the most creative ways. This, of course, includes not only configuring git, the tool itself, but also any relevant repositories as well as the platforms where those eventually end up hosted. In this brief tutorial I show how to properly handle multiple identities and configurations as well as how to manage Git projects which might be spread throughout multiple Git backends.

Please beware this tutorial will likely only be relevant or interesting to you if you already have some experience with Git, otherwise this sort of setup may feel like unnecessary or overly complicated. In case you are new to Git, I highly recommend you go through Git for Beginners: Zero to Hero šŸ™ and also have a look at Git Cheatsheet: Commands, Tips and Tricks šŸ“.

../../_images/linus-fake-commit.png

Read more ...


Excellent Quotes from Marcus Aureliusā€™ Meditations

While on a military campaign which started in 170 and ended in 180, Marcus Aurelius[1] wrote his Meditations in Greek for his own guidance and self-development. The original title of the work, if it had one, is unknown. ā€˜Meditationsā€™ ā€“ as well as other titles including ā€˜To Himselfā€™ ā€“ were adopted later. He had a logical mind, and his notes were representative of Stoic philosophy and spirituality.

Read more ...


Benjamin Franklin on the Tension between Liberty, Virtue, Safety, Wealth and Power

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.

Read more ...


Ghost in the Shell (2017)

Read more on Wikipedia

Read more ...


šŸ‚ Ryōkan: In the scenery of spring ā€¦

Read more on Wikiquote

This poem by Ryōkan was quoted by Alan Watts[1] in one of his lectures[2]; this was what originally motivated me to look for it in full and reproduce it here. The source of the painting is not related to Ryōkan[3].

../../_images/toshi-yoshida-birds-of-the-seasons-set-of-four-horizontal.webp

Read more ...


Fix runtimeerror: no .dist-info has pip in broken pipenv installs and virtualenv wheels

As mentioned in āŒ RuntimeError: no .dist-info at ... has pip for pipenv install managed via asdf-vm, I was initially confronted with issue some weeks ago but could attribute and fix the problem to asdf misbehaving. The issue, however, resurfaced and that was no longer the case. To my surprise, asdf seemed to be behaving as expected and was therefore of no relevance to the problem I was observing:

If you are experiencing this problem and do not use asdf, this post might be of help as I managed to further narrow down its root cause.

Read more ...


Folklore Night Sky: Overcoming Ancestry

This poem was originally written for KAMINAā€™s[1] act at the Heidelberger Literaturherbst 2023[2].

Read more ...


Paths are Made by Walking

paths are made by walking

This aphorism is also found in German as follows:

Wege entstehen dadurch, dass wir sie gehen

../../_images/adrianus-van-everdingen-horseman-forest-path-1856.jpg

Read more ...


Freier Fall: ein Gedicht Ć¼ber die Migrantenpsyche

Dieses Gedicht wurde ursprĆ¼nglich fĆ¼r den Akt von KAMINA[1] beim Heidelberger Literaturherbst 2023[2] geschrieben.

Read more ...


āŒ RuntimeError: no .dist-info at ... has pip for pipenv install managed via asdf-vm1

ā„¹ļø Several folks who are not using asdf-vm but are facing similar issues have asked me for advice, Iā€™ve detailed how you can troubleshoot and fix this issue on Fix runtimeerror: no .dist-info has pip in broken pipenv installs and virtualenv wheels.

Having said that, Iā€™ve mentioned in several occasions that pipenv is my virtual environment manager of choice in Python projects and that I use it in tandem with asdf-vm[1], which allows me to seemlesly switch between Python versions depending on the project Iā€™m working on. However, after updating one of my Ubuntu test systems (20.04.6 LTS) and installing a couple of Python versions via asdf-vm, pipenv suddenly stopped working. In this brief HOWTO I hope to provide a couple of hints as to how you may debug and ultimately fix a PipEnv installation which finds itself in a weird state.

Read more ...


Calipso: amores complicados

En la mitologĆ­a griega Calipso (ĪšĪ±Ī»Ļ…ĻˆĻŽ: Ā«la que ocultaĀ») era una ninfa que vivĆ­a en la isla de Ogigia, donde, segĆŗn la Odisea de Homero, detuvo a Odiseo durante siete aƱos [2].

../../_images/james-draper-calypso-waiting-1897.jpg

Read more ...


Standing on the Shoulders of Giants

If I have seen further, it is by standing on the shoulders of giants.

Read more ...


Oppenheimer: Death, the Destroyer of Worlds

We waited until the blast had passed, walked out of the shelter and then it was extremely solemn. We knew the world would not be the same. A few people laughed; a few people cried. Most people were silent. I remembered the line from the Hindu scripture, the Bhagavad Gita; Vishnu is trying to persuade the prince that he should do his duty, and to impress him, takes on his multiarmed form and says, ā€œNow I am become Death, the destroyer of worlds.ā€ I suppose we all thought that, one way or another.

Read more ...


Thurstonā€™s Paean

On an uneventful Tuesday afternoon I was, as usual, enjoying my lunch while mindlessly scrolling HackerNews and, also as usual, a post caught my attention which hit home[1]

Read more ...


The Great Wave off Kanagawa by Hokusai

Although it might be a clichĆ© by now, Iā€™ve always been quite fond of ukiyo-e, the Japanese art of woodblock printing[1], and of course of Hokusaiā€™s work. As for many, my earliest exposure to this type of art was Hokusaiā€™s The Great Wave off Kanagawa [2] and so itā€™s here for posterity.

../../_images/1024x688.jpg

Read more ...


Git Revision Selection and Expressions Aā€¦B

While using git itā€™s common to use object identifiers to operate on the underlying objects: checking branches out, reverting a commit, resetting to a given point in the history, and more.

../../_images/revision-parents-ancestors.png

Read more ...


šŸ–‹ A Look into Aptos, Microsoftā€™s New Default Font

icrosoft has been planning a design revamp when it comes to the typography of their whole Office product line; and probably beyond that. They have worked on selecting their new default font for quite a bit[1]. The finalists among which the successor to the familiar Calibri typeface[2] was to be chosen were long known: Bierstadt, Grandview, Seaford, Skeena, and Tenorite. The decision, however, hadnā€™t been made and apparently no winner was yet selected nor known. That all changed today, though, as The Verge has reported [3].

../../_images/calibri-over-aptos.png

Read more ...


Grieving the Early Internet šŸ’¾

This is a topic Iā€™ve wanted to write about for a while; and one for which I had way too many references stored. Until now, I hadnā€™t found a way to jump-start my internal monologue on the matter and spur the necessary motivation to put my thoughts to paper. That, however, changed last week when I engaged in a couple of conversations online on HackerNews [1] and Tildes[2] about the openness and diversity of our present-day Internet.

../../_images/carta-marina-olaus-magnus-1539-cropped.jpg

Read more ...


MySt and Markdown for Sphinx Cheatsheet

Iā€™ve never been a fan of Re-StructuredText, but most importantly Iā€™m new to MySt, which leads to a lot of googling and painstaking trial-and-error while writing. Although my preferred references are the Jupyter Book MyST Cheatsheet, the Sphinx Book Theme Documentation, and the MyST Parser Reference, they are way too extensive, sometimes incorrect, and I donā€™t really use every directive or variant thereof. Therefore, Iā€™ll use this post to gather the bits of the syntax and snippets I use the most.

Read more ...


Kill (9-TERM) Processes with Expression(s) in Name or Call

I often find myself needing to terminate processes containing certain string literals or whose call matches a given regular expression. For that reason I probably re-write and tweak this one-liner several times a month; which is why Iā€™m putting it out there.

Read more ...


Fixing āŒ ā€œPoetry configuration is invalidā€ Errors in pre-commit.ci GitHub Actions

Last Sunday I decided to try and understand the Sphinx codebase better after playing around with Jupyter Book and experiencing issue#1414. After falling down the codebase review rabbit hole I felt like fixing the bug itself was worthwhile. Eventually, fixing the issue proved to be easier than understanding where and what to fix or how to get the GitHub actions maze of checks to properly pass.

Read more ...


Load Sphinx environment.pickle and List all Labels

In order to come up with a reliable and standardized way of referring to document sections and document it in MySt and Markdown for Sphinx Cheatsheet, I went down a pretty deep rabbit hole of Sphinx label manipulations.

Read more ...


šŸŽ­ Best Fonts for Programming

It seems like thereā€™s never enough time to be really passionate about aesthetics, so thatā€™s why when the opportunity presents itself I just roll with it and indulge that inclination. This post is the result of one such opportunity.

Seeing as many of us spend a considerable amount of time in front of some sort of computing device, which is specially true for those of us who program, I wanted to put the list of my favorite programming typefaces out there for your enjoyment.

hack

Read more ...


How to Add šŸ‘‰ šŸ‘ˆ Padding to the Ubuntu Gnome Terminal

I often make screen captures of terminal outputs while documenting my work or helping colleagues and was always bothered when its contents were too close to the left border.

Adding padding to the gnome terminal on Ubuntu, and likely any distribution using Gnome, is trivial, as it suffices to edit ~/.config/gtk-3.0/gtk.css.

../../_images/load-gtk-theme-error.png

Read more ...


Wrist-friendly Git Shortcuts and Aliases #ļøāƒ£

Things tend to get repetitive with git after you start consistently using it. Of course, itā€™s still an irreplaceable tool, but that doesnā€™t mean we cannot try to abide by DVORAK principles and minimize the distance our fingers travel on the keyboard.

As past and current colleagues can attest, Iā€™m a serial keyboard customizer and shortcut afficionado, so my suggestion to give git console aliases a try should not come as a surprise.

Read more ...


Git for Beginners: Zero to Hero šŸ™

Git plays a crucial role in the software development industry and should therefore be part of every developerā€™s toolkit. Both experienced and beginner developers can increase their productivity by leveraging a code versioning system as powerful as git. Unfortunately, introductory materials are often either too shallow, making readers feel like they only scratched the surface, or too long-winded, diving into details which neednā€™t interest everybody.

Seeing as colleagues and students often ask me about good, self-contained guides, I decided to republish this guide for git beginners as well as those looking for a refresher.

../../_images/conventions.svg

Read more ...


šŸ¦Š Create GitLab Projects for Directory List via API

Read more ...


Git LFS Usage on GitLab Repositories

In newer GitLab versions LFS Storage needs to be specifically enabled for projects; you can achieve this in the settings of your project [1].

Read more ...


Git Hooks Basics šŸŖ

Git hooks are scripts which can be executed after an action is performed, the options are: applypatch-msg, commit-msg, post-update, pre-applypatch, pre-commit, prepare-commit-msg, pre-push, pre-rebase, update.

Read more ...


Git Cheatsheet: Commands, Tips and Tricks šŸ“

This is compilation of useful git commands, tips and tricks I created for myself since I kept forgetting some commands related to configuring, searching and managing git repositories. The format is simple, just a list with short descriptions for some common, and other less common, commands which I often find myself looking up online.

../../_images/gitworkflow.png

Read more ...