![[None]]
First I need to fetch my thoughts from the api, and put it in a local sqlite database using sqlite-utils.
fthoughts () {
# fetch thoughts
curl 'https://thoughts.waylonwalker.com/posts/waylonwalker/?page_size=9999999999' | sqlite-utils insert ~/.config/thoughts/database2.db post --pk=id --alter --ignore -
}
Now that I have my posts in a local sqlite database I can use sqlite-utils to enable full text search and populate the full text search on the post table using the title message and tags columns as search.
sthoughts () {
# search thoughts
# sqlite-utils enable-fts ~/.config/thoughts/database2.db post title message tags
# sqlite-utils populate-fts ~/.config/thoughts/database2.db post title message tags
sqlite-utils search ~/.config/thoughts/database2.db post "$*" | ~/git/thoughts/format_thought.py | bat --style=plain --color=always --language=markdown
}
alias st=sthoughts
Now I am ready to search my thoughts, which is a tiny blog format that I created mostly for leaving my own personal comment on web pages, so most of them have a link to some other online content, and their title is based on the authors title.
[1]
[2]
Note
This post is a thought [3]. It...
Today I Learned
Short TIL posts
1852 posts
latest post 2026-05-13
Publishing rhythm
[1]
This is the best tree I have ever built in minecraft. It took at least 4 stacks of logs and leaves despite what it looks like.
It is placed where Welscraft’s island in the hermitcraft season 10 seed, but on our own server we call lonecraft.
We started this server a few weeks after hermitcraft season 10 started, and play on it a few times per week. It has a pretty successful day one iron farm that took us way more than one day to complete, and the farm behind this is our first ever villager driven farm. Somehow potatoes got cross contaminated and now its pumping out potatoes and some bread, but no carrots or beat roots.
World Seed: 5103687417315433447
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: /static/https://screenshots.waylonwalker.com/lonecraft.png
[2]: /thoughts/
Formatting codes – Minecraft Wiki
Formatting codes (also known as color codes) add color and modifications to text in-game.
Minecraft Wiki · minecraft.wiki [1]
Minecraft MOTD and server names have formatting codes so that you can get colors, bold, underlined, italics, in your message of the day or server name. See the article for all the cods.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://minecraft.wiki/w/Formatting_codes
[2]: /thoughts/
GitHub - jesseduffield/lazydocker: The lazier way to manage everything docker
The lazier way to manage everything docker. Contribute to jesseduffield/lazydocker development by creating an account on GitHub.
GitHub · github.com [1]
I’ve been using this for a few weeks now and it’s fantastic. It’s reminds me of lazygit, it gives a nice quick interface into the things I need and it just works. Yes I can git [2] status to see what changed, then diff the files, then commit hunks, but lazygit can do that in just a few keystrokes. lazydocker does this for docker. It gives me a nice view into whats running, what’s eating up disk space, and the networks I have. And if I see I have a bunch of exited containers, there is a bulk command righ there to clean them up.
tldr docker ps on steroids
[3]
Note
This post is a thought [4]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://github.com/jesseduffield/lazydocker
[2]: /glossary/git/
[3]: https://github.com/jesseduffield/lazydocker/blob/master/docs/resources/demo3.gif?raw=true
[4]: /thoughts/
I came across lazydocker [1] from jesseduffield [2], and it’s packed with great features and ideas.
The lazier way to manage everything docker
References:
[1]: https://github.com/jesseduffield/lazydocker
[2]: https://github.com/jesseduffield
-
Go is feeling more and more like something I could throw in my tool belt as a python dev. I really like that it’s garbage collected and has great error management. I am just not sure how to work it in without it being the main thing. The thing that is so cool is the ability to ship tiny pre-compiled binaries that just work, and the raw speed. these binaries just get up and working without any warm up. writing any cli in python I’m going to be using something like typer, and it takes half a second just to warm up, so even hello world cannot be faster than half a second.
Note
This post is a thought [1]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: /thoughts/
-
Great example from Anthony showing how easy it is to practice building database orm models and playing with them in a repl. This is good practice even if you are in a big code base to be able to test and learn in a simplified code base that does not have a mountain of other code around atuh, permissions, security, and other complex things that come into real production code bases that might make it hard to focus on what you are trying to do.
Note
Anthony uses backref here, thats legacy, use back_populates on both parent and child.
Note
This post is a thought [1]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: /thoughts/
External Link
stackoverflow.com [1]
Today I came across some sqlalchemy models that created some relationships, some used backref
some used back_populates. I was stumped why, I had never came accross backref before and I felt skill issues sinking in.
backref is considered legacy # [2]
https://docs.sqlalchemy.org/en/14/orm/backref.html
As stated in the sqlalchemy docs, backref is a legacy feature. Its shorthand to creating relationships between parent and child, but only adding it to the parent. While this is simpler it introduces some invisible magic.
Note
This post is a thought [3]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://stackoverflow.com/questions/51335298/concepts-of-backref-and-back-populate-in-sqlalchemy#answer-59920780
[2]: #backref-is-considered-legacy
[3]: /thoughts/
If you’re into interesting projects, don’t miss out on datasette-litestream [1], created by datasette [2].
Datasette plugin for streaming SQLite database backups to S3, using Litestream!
References:
[1]: https://github.com/datasette/datasette-litestream
[2]: https://github.com/datasette
FastUI [1] by pydantic [2] is a game-changer in its space. Excited to see how it evolves.
Build better UIs faster.
References:
[1]: https://github.com/pydantic/FastUI
[2]: https://github.com/pydantic
I came across minio [1] from minio [2], and it’s packed with great features and ideas.
MinIO is a high-performance, S3 compatible object store, open sourced under GNU AGPLv3 license.
References:
[1]: https://github.com/minio/minio
[2]: https://github.com/minio
I’m impressed by dozzle [1] from amir20 [2].
Realtime log viewer for docker containers.
References:
[1]: https://github.com/amir20/dozzle
[2]: https://github.com/amir20
I came across uv [1] from astral-sh [2], and it’s packed with great features and ideas.
An extremely fast Python package and project manager, written in Rust.
References:
[1]: https://github.com/astral-sh/uv
[2]: https://github.com/astral-sh
I came across StableCascade [1] from Stability-AI [2], and it’s packed with great features and ideas.
Official Code for Stable Cascade
References:
[1]: https://github.com/Stability-AI/StableCascade
[2]: https://github.com/Stability-AI
I came across aerial.nvim [1] from stevearc [2], and it’s packed with great features and ideas.
Neovim plugin for a code outline window
References:
[1]: https://github.com/stevearc/aerial.nvim
[2]: https://github.com/stevearc
I’m really excited about cadwyn [1], an amazing project by zmievsa [2]. It’s worth exploring!
Production-ready community-driven modern Stripe-like API versioning in FastAPI [3]
References:
[1]: https://github.com/zmievsa/cadwyn
[2]: https://github.com/zmievsa
[3]: /fastapi/
Just starred kedro-academy [1] by kedro-org [2]. It’s an exciting project with a lot to offer.
Repo for Kedro Academy
References:
[1]: https://github.com/kedro-org/kedro-academy
[2]: https://github.com/kedro-org
Textualize [1] has done a fantastic job with toolong [2]. Highly recommend taking a look.
A terminal application to view, tail, merge, and search log files (plus JSONL).
References:
[1]: https://github.com/Textualize
[2]: https://github.com/Textualize/toolong
I’m really excited about htmx-ai [1], an amazing project by bufferhead-code [2]. It’s worth exploring!
Add AI support to HTMX [3]
References:
[1]: https://github.com/bufferhead-code/htmx-ai
[2]: https://github.com/bufferhead-code
[3]: /htmx/
2.5 Admins 180: Email 777 – 2.5 Admins
2.5admins.com [1]
How do you pronounce URL, is it U.R.L or Earle? I’m about 50/50, mostly when I am in a hurry I use Earle as it is one syllable and easy to say. I picked this up from MPJ of fun fun function, who took over Dev Tips. In this episide Jim uses Earle and they make fun of him. If it’s good enough for Jim, I am done with my 50/50 and I’m going all in on Earle.
Episode also included a fastinating corrdinated attack that used Ars Technica profile photos communicate directions for the next attack via query parameters in the image url.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://2.5admins.com/2-5-admins-180/
[2]: /thoughts/