Pelican, Work, Vega, Markdown

Using pelican to track my worked and volunteer hours

Graphs, progress-bars and python-markdown extensions
Python, CRDT, Sync, uMap

Adding Real-Time Collaboration to uMap, second week

A heads-up on what I've been doing this week on uMap
postgresql, sysadmin

Importing a PostgreSQL dump under a different database name

Simple commands to help you during an import
Datasette, Deployment

Deploying and customizing datasette

Step by step follow-up on how I've deployed it and added custom templates on top.
Python, CRDT, Sync, uMap

Adding Real-Time Collaboration to uMap, first week

A heads-up on what I've been doing this week on uMap
Datasette, Graphs, SQL

Using Datasette for tracking my professional activity

I’ve been following Simon Willison since quite some time, but I’ve actually never played with his main project Datasette before.

As I’m going back into development, I’m trying to track where my time goes, to be able to find patterns, and just remember how much time …

SQL, SQLAlchemy, Python

Using DISTINCT in Parent-Child Relationships

How to get parent and most-recent child in a one-to-many relationship
python, conversion

Convert string to duration

I found myself wanting to convert a string to a duration (int), for some configuration.

Something you can call like this:

string_to_duration("1d", target="days")
string_to_duration("1d", target="hours")
string_to_duration("3m", target="hours")
string_to_duration("3m", target="minutes")

The code :

from typing import Literal

def string_to_duration(value: str, target: Literal["days …
python, llm, bash, sqlite

llm command-line tips

I’m using llm more and more, and today I had to find back prompts I used in the past. Here is a command I’ve been using, which allows me to filter the results based on what I want. It leverages sql-utils, a cli tool which is able to …

ZNC, Weechat, IRC

Setting up a IRC Bouncer with ZNC

It’s been a while since I’ve used IRC, but I needed to connect to it today to discuss around Peewee.

The main issue with IRC is that you need to be connected to see the answer, and to get the context of the conversation. Unless… you set up …