If you’re into interesting projects, don’t miss out on taipy [1], created by Avaiga [2].
Turns Data and AI algorithms into production-ready web applications in no time.
References:
[1]: https://github.com/Avaiga/taipy
[2]: https://github.com/Avaiga
Archive
All published posts
2469 posts
latest post 2026-05-08
Publishing rhythm
jinja has a loop variable that is very handy to use with htmx [1]. Whether you
want to implement a click to load more or an infinite scroll this loop variable
is very handy.
{% for person in persons %}
<li
{% if loop.last %}
hx-get="{{ url_for('infinite', page=next_page) }}"
hx-trigger="intersect once"
hx-target="#persons"
hx-swap='beforeend'
hx-indicator="#persons-loading"
{% endif %}
{{ person.name.upper() }} -
{{ person.phone_number }}
</li>
{% endfor %}
Now for every chunk of contacts that we load we will trigger the infinite
scroll by loading more once the last one has intersected the screen.
References:
[1]: /htmx/
Out of the box FastAPI [1].">Starlette does not support url_for with query params. When
trying to use url_for with query params it throws the following error.
starlette.routing.NoMatchFound: No route exists for name "infinite" and params "page"
In my searching for this I found starlette issue #560 [2] quite helpful, but not complete, as it did not work for me.
import jinja2
if hasattr(jinja2, "pass_context"):
pass_context = jinja2.pass_context
else:
pass_context = jinja2.contextfunction
@pass_context
def url_for_query(context: dict, name: str, **params: dict) -> str:
request = context["request"]
url = str(request.url_for(name))
if params == {}:
return url
from urllib.parse import parse_qs, urlencode, urlparse, urlunparse
# Parse the URL
parsed_url = urlparse(url)
# Parse the query parameters
query_params = parse_qs(parsed_url.query)
# Update the query parameters with the new ones
query_params.update(params)
# Rebuild the query string
updated_query_string = urlencode(query_params, doseq=True)
# Rebuild the URL with the updated query string
updated_url = urlunparse(
(
parsed_url.scheme,
parsed_url.netloc,
parsed_url.path,
parsed_url.params,
updated_...
Kind (Kubernetes in Docker) is a tool that makes it easy to create and tear
down local clusters quickly. I like to use it to test out new workflows.
Argocd is a continuous delivery tool that makes it easy to setup gitops
workflows in kubernetes.
Here is how you can setup a new kind cluster and install argocd into it using
helm, the kubernetes package manager.
kind create cluster --name argocd
# your first time through you need to add the argocd repo
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
# install argocd into the cluster
helm install argo argo/argo-cd --namespace argocd --create-namespace
# deploy the app of apps
kubectl apply -f apps/apps.yaml
If you want to add repos and apps to your cluster you can use the argo cli to
do that, but first you will need forward the argocd port and login.
# Wait until Argo CD API server is available
echo "Waiting for Argo CD API server to be available..."
while ! kubectl wait --for=condition=available --timeout=60s deployment/argo-argocd-server -n argocd; do
echo "Waiting for Argo CD API server to be ready..."
sleep 10
done
kubectl port-forward svc/argo-argocd-server -n argocd 8080:443 &
argocd_admin_pa...
External Link
dotesports.com [1]
Damn this button had me stuck for way too long. It definitely looks like a button once I see it, but I don’t recall coming into contact with many buttons in the game, I tried to set it ablaze, pull it, fly it, nothing.
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://dotesports.com/hp/news/hogwarts-legacy-argyllshire-map-what-does-the-button-do
[2]: /thoughts/
External Link
help.socialbee.com [1]
YouTube makes finding rss feeds way too hard. Hats off to them for still supporting it, allowing you to find content outside the algorithm, and consuming content you asked for. But i had no idea you had to search the source code to get it.
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://help.socialbee.com/article/129-how-can-i-add-my-youtube-videos-via-rss
[2]: /thoughts/
feeds
I have several feeds that you can consume my content with. Many posts will
cross between them, so if you would like to follow a certain stream of content
in your rss reader thats what this is for. This one might feel like it has some
extra noise with multiple posts per day, including starts, and instagram style
posts, for a bit less look at the [[ main ]] feed.
TLDR
If you are looking for everything look here <https://waylonwalker.com/archive/rss.xml>
All # [1]
This is a feed of everything that I have published on my site to date
including Posts tagged: blog [2], [[ til ]], Thoughts [3], [[ stars ]], Posts tagged: shots [4],
[[ pings ]].
- web [5]
- rss [6]
Main # [7]
Like the All feed, but drops the shots (instagram style posts) and stars
(github stars).
- web [8]
- rss [9]
til - daily(ish) # [10]
think gist with a tweet
This is a feed of all of my TIL’s (Today I Learned). These are generally short
single topic posts that I write up quickly. They are generally things t...
External Link
stackoverflow.com [1]
Another interesting option for slow count queries in sqlite.
If you haven’t DELETEd any records, doing:
SELECT MAX(ROWID) FROM "table" LIMIT 1;
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://stackoverflow.com/questions/8988915/sqlite-count-slow-on-big-tables
[2]: /thoughts/
Optimizing SQLite for servers
SQLite is often misconceived as a "toy database", only good for mobile applications and embedded systems because it's default configuration is optimized for embedded use cases, so most ...
Sylvain Kerkour · kerkour.com [1]
Very interesting article by Sylvain, suggested by Simon Willison.
Definitely some things that I want to come back and try later on.
Here is the TLDR of the whole post
PRAGMA journal_mode = WAL;
PRAGMA busy_timeout = 5000;
PRAGMA synchronous = NORMAL;
PRAGMA cache_size = 1000000000;
PRAGMA foreign_keys = true;
PRAGMA temp_store = memory;
This is interesting, and something I need to consider. I definitely have an application with slow count queries. I am not sure how to make it better as its not a full count(*) so a count table doesn’t work, nor does counting by index.
I might need to have a table of cached results, and if a write matches the counter increase it, or update all counters on write.
COUNT queries are slow
SQLite doesn’t keep statistics about its indexes, unlike PostgreSQL, so COUNT queries are slow, even when using a WHERE clause on an indexed field: SQLite has to scan for all the matching records.
One solution...
-
Inspiring story transitioning into tech from nursing. I also came to tech through a set of circumstances that made it difficult for me to excel at my current job. Looking back it is something that I was always interested in and I was just unsure how to get in, I am so glad that I figured it out, it has been such a great benefit to my family.
I really enjoyed listening to trshpuppy’s journey in through building projects, and choosing tech not based on what she wanted to learn, but what fit the project the best.
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/
Thoughts
These are generally my thoughts on a web page or some sort of url, except a
rare few don’t have a link. These are dual published off of my
thoughts.waylonwalker.com [1] site. It’s a
fully dynamically rendered site 2000’s style. Posts are stored in a database
and instantly available. Almost all of the posts were written in a small
<textarea> field within a chrome extension that I built for it.
These posts are intended to in two ways. One, link building for the author. I
hope that I give the people helping me out along the way just a little bit of a
boost. Two, they serve as a permanant commented bookmark for me to search, and
come back to later when I have forgotten where I have seen something.
- web [2]
- rss [3]
All thoughts posts cross posted to my site are prefixed with a thought balloon 💭.
The tech # [4]
Since this blog is mostly a tech blog about software development, and my
journey as I learn, lets talk tech.
- python
- fastapi [5]
- htmx [6]
- sqlite
- docker
- ht...
I’m impressed by til [1] from jbranchaud [2].
📝 Today I Learned
References:
[1]: https://github.com/jbranchaud/til
[2]: https://github.com/jbranchaud
I came across Hexa [1] from wyattbubbylee [2], and it’s packed with great features and ideas.
Hexa is a game engine
References:
[1]: https://github.com/wyattbubbylee/Hexa
[2]: https://github.com/wyattbubbylee
Some Git poll results
Some Git poll results
Julia Evans · jvns.ca [1]
great poll of git [2] questions
poll: did you know that in a git merge conflict, the order of the code is different when you do a merge/rebase?
merge:
<<<<<<< HEAD
YOUR CODE
OTHER BRANCH’S CODE
c694cf8aabe
rebase:
«««< HEAD
OTHER BRANCH’S CODE
YOUR CODE
d945752 (your commit message)
This one explains a lot. I think I knew this, I might have seen it somewhere, but I have definitely noticed it go both ways and confuse the crap out of me. Feels very similar to how --ours and --theirs flip flops.
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://jvns.ca/blog/2024/03/28/git-poll-results/
[2]: /glossary/git/
[3]: /thoughts/
External Link
sealed-secrets.netlify.app [1]
kubeseal is a pretty simple to get started with way to manage secrets such that they can be stored in a git [2] repo and be picked up by your continuous delivery service.
Sealed Secrets provides declarative Kubernetes Secret Management in a secure way. Since the Sealed Secrets are encrypted, they can be safely stored in a code repository. This enables an easy to implement GitOps flow that is very popular among the OSS community.
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://sealed-secrets.netlify.app/
[2]: /glossary/git/
[3]: /thoughts/
In my homelab [1] kubernetes cluster I am using kubeseal to encrypt secrets. I
have been using it successfully for a few months now wtih great success. It
allows me to commit all of my secrets manifests to git [2] with out risk of leaking
secrets.
You see kubeseal encrypts your secrets with a private key only stored in your
cluster, so only the cluster itself can decrypt them using the kubeseal
controller.
[3]
KubeSeal # [4]
https://sealed-secrets.netlify.app/
[5]
installation # [6]
Installation happens in two steps. You need the kubernetes controller and the
client side cli to create a sealed secret.
For a more complete instruction see the
[docs#installation](https://github.com/bitnami-labs/sealed-secrets?tab=readme-ov-file#installation]
installation - controller # [7]
Warning
**context**
Make sure that you are in the right context before running any kubectl commands.
kubectl config current-context
sealed-secrets is installed using the helm package manager. To install
sealed-secrets run the following command.
helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets
helm install sealed-secrets -n kube-system --set-string fullnameOverride=sealed-...
Just starred codemirror-codeium [1] by val-town [2]. It’s an exciting project with a lot to offer.
Codeium code completion integration for CodeMirror 6
References:
[1]: https://github.com/val-town/codemirror-codeium
[2]: https://github.com/val-town
-
Great episode covering a seemingly simple topic. What I really benefitted from was hearing all the different use cases, from logging, debugging, to a/b testing, caching, and auth. I hadn’t even thought of it being applied to a router. I thought of it being applied for an entire application. This seems very useful for things like an admin router, all routes would need to have the admin role to get in.
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/
![[None]]
I’ve been using these decorators to modify the behavior of specific routes. It will do things like 404 admin only routes in a way that looks just like fastapi [1]’s default, or only allow certain roles into the route, or redirect unauthenticated users to login.
After listening to yesterday’s syntaxfm I’m now really thinking about middleware and the benefits it might have. middleware would make it easy to apply things like admin to an entire admin router, so you wont forget it on any one admin route. It will look cleaner as the admin checker is only applied once per router, not once per route.
import inspect
import time
from functools import wraps
from inspect import signature
from fastapi import Request
from fastapi.responses import FileResponse, JSONResponse, RedirectResponse
from starlette import status
from fokais.config import get_config
from fokais.models.user import Role
config = get_config()
admin_routes = []
authenticated_routes = []
not_cached_routes = []
cached_routes = []
def not_found(request):
hx_request_header = request.headers.get("hx-request")
user_agent = request.headers.get("user-agent", "").lower()
if "mozilla" in user_agent or "webkit" i...
kubernetes 6 months in
I stumbled into kubernetes December 2023 when I was looking for a better way
to self host [1] applications. I was looking for something that didn’t require
logging into a server and building and deploying like a cave man. I wanted a
smoother experience than docker compose was giving me.
https://waylonwalker.com/looking-for-a-heroku-replacement/
This post turned into a list of tools that I have adopted into my k8s workflow,
and plan to keep. enjoy.
Kompose # [2]
[3]
Kompose is a great tool for gettting going and converting your docker-compose
to kubernetes manifests or helm templates. It was a great tool for me to get
started with, but I was afraid that it was hindering me learning more and just
blindly using its output so I have tried to use it less and less. I’m now not
solely leaning on it, but using it to get out quick POCs with low friction.
Kompose really helped me go 0 to 60 and get right into kubernetes with my
existing docker compose files and very little change. I fou...
External Link
X (formerly Twitter) · twitter.com [1]
Huh, so this is just built right into the chrome cli.
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--headless \
--screenshot=/tmp/shot1.png \
https://simonwillison.net
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://twitter.com/simonw/status/1772043579231445366
[2]: /thoughts/
![[None]]
jinja’s url_for in fastapi [1] does not account for https by default, there is
probably a better way, but this is a way that allows me to configure when I use
http vs https.
@pass_context
def https_url_for(context: dict, name: str, **path_params: Any) -> str:
"""
always convert http to https
"""
request = context["request"]
http_url = request.url_for(name, **path_params)
return str(http_url).replace("http", "https", 1)
def get_templates(config: BaseSettings) -> Jinja2Templates:
templates = Jinja2Templates(directory="templates")
templates.env.globals["https_url_for"] = https_url_for
## only use the default url_for for local development, for dev, qa, and prod use https
if os.environ.get("ENV") in ["dev", "qa", "prod"]:
templates.env.globals["url_for"] = https_url_for
console.print("Using HTTPS")
else:
console.print("Using HTTP")
return templates
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: /fastapi/
[2]: /thoughts/
External Link
X (formerly Twitter) · twitter.com [1]
Damn are one time paid and have it apps making a comeback? Seems like the perfect thing to have someone else automate and not pay a subscription for.
Genius Idea Cassidy!!
Now what do you call this, its not software as a service, is this just sofware?
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://twitter.com/cassidoo/status/1770900985382138291
[2]: /thoughts/
![[None]]
import logging
from typing import List
import strawberry
from fastapi import FastAPI
from strawberry.fastapi import GraphQLRouter
logger = logging.getLogger(__name__)
authors = {}
books = {}
book_authors = {}
authors_books = {}
def get_author_for_book(root) -> "Author":
return authors[book_authors[root.id]]
@strawberry.type
class Book:
id: int
title: str
author: "Author" = strawberry.field(resolver=get_author_for_book)
def get_books_for_author(root) -> List[Book]:
print(f"getting books for {root}")
return [books[i] for i in authors_books[root.id]]
@strawberry.type
class Author:
id: int
name: str
books: List[Book] = strawberry.field(resolver=get_books_for_author)
authors = {1: Author(id=1, name="Michael Crichton")}
books = {1: Book(id=1, title="Jurassic Park")}
# relationships
book_authors[1] = 1
authors_books[1] = [1]
def get_author_by_id(id: int) -> Author:
return authors.get(id)
def get_book_by_id(id: int) -> Book:
return books.get(id)
def get_authors(root) -> List[Author]:
return authors.values()
def get_books(root) -> List[Book]:
print(books)
print(authors)
print(book_authors)
print(authors_books)
return books.values()
@strawberry.typ...
Joining the split keyboards club: a Moonlander story | Carlos Becker
This post will describe my experience with a couple of firsts:
carlosbecker.com [1]
I switched from a 60% vortex pok3r to a 40% corne June, 2021. I can relate to a lot of what Carlos talks about here. I think going from 60%-40% made my journey harder than it needed to be. There’s no going back now, but it took me a really long time to be able to hit all of the numbers and symbols, just figuring out how to do the layout was hard there’s not much space.
I didn’t touch type. I never really used my pinkies, except maybe for ESC, Shift, CTRL, Backspace et al.
I can relate to this, my typing habits were terrible. Shortly before going split ortho I worked on my speed with lots, and lots of practice on keybr and monkeytype. I took my speed from 35wpm to 80wpm with a few months of steady practice. This is one of the best things I did for myself.
Once I got split it dropped down to single digits and slowly rose back up to 80, just barely breaking my PB on monkeytype.
I still feel like I still can’t type at my previous max speed — mostly because I wasn’t used to use my pinky and used the “wrong finger” for a lot of...
My workflow, part 1 | Carlos Becker
I keep getting asked how my setup works, how I use tmux and
nvim over ssh… all that good stuff.
carlosbecker.com [1]
Carlos has a pretty sick setup here, I can relate to mostly, cept the macos part. My main critique is that I don’t think he gave window managers much chance on linux, and they just don’t work on MacOS/Windows.
Most of the time I have a single, maximized window.
I can relate to this. I should really make a full post about my experience with tiling window managers. TLDR, I came for tiling and I stayed for the workspaces.
Multiple Displays
An exception here could be streaming: having multiple displays can help preventing doxing yourself if you only share the screen of one of them. I only did stream like 3 times and that’s what I did, but I’m sure experienced streamers have better workflows (with or without multiple displays).
Accurate, my home machine uses one monitor, and for work I use one monitor+laptop. I pair, screenshare, and present quite a bit at work, and its good to have one screen for sharing, and one for seeing things like the app you are sharing from (chat, cams, etc)
Note
This post is a thought [2]. It’s a sh...
strawberry-sqlalchemy [1] by strawberry-graphql [2] is a game-changer in its space. Excited to see how it evolves.
A SQLAlchemy Integration for strawberry-graphql
References:
[1]: https://github.com/strawberry-graphql/strawberry-sqlalchemy
[2]: https://github.com/strawberry-graphql
I recently discovered AnyText [1] by tyxsspa [2], and it’s truly impressive.
Official implementation code of the paper <AnyText: Multilingual Visual Text Generation And Editing>
References:
[1]: https://github.com/tyxsspa/AnyText
[2]: https://github.com/tyxsspa
Using Netlify Analytics to Build a List of Popular Posts
Writing about the big beautiful mess that is making things for the world wide web.
blog.jim-nielsen.com [1]
This is a sick feature of Jim’s blog, I am really inspired by this. I am not sure how to do it for my own. I honestly think the easiest non locked in way would be to just use google search console results. It’s definitely a different way to think about it, but most of my traffic is coming from google search, so it would be a pretty good ballpark estimate.
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://blog.jim-nielsen.com/2020/using-netlify-analytics-to-build-list-of-popular-posts/
[2]: /thoughts/
I’m really excited about full-stack-fastapi-template [1], an amazing project by fastapi [2]. It’s worth exploring!
Full stack, modern web application template. Using FastAPI [3], React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
References:
[1]: https://github.com/fastapi/full-stack-fastapi-template
[2]: https://github.com/fastapi
[3]: /fastapi/
I came across puter [1] from HeyPuter [2], and it’s packed with great features and ideas.
🌐 The Internet OS! Free, Open-Source, and Self-Hostable.
References:
[1]: https://github.com/HeyPuter/puter
[2]: https://github.com/HeyPuter
605: Jim Nielsen on Subversive URLs, Blogging + AI, and Design Engineers
Jim Nielsen joins us to about URLs and linking as the new subversive way to maintain the web, paying for news in Canada, should content creators be worried about AI, the case for design engineers, …
ShopTalk · shoptalkshow.com [1]
An absolute fantastic episode about blogging, thinking about a web1.0 kind of world today, and what it means moving forward.
Web 1.0 is robust, you own your own destiny, you own your data, you can do what you want. There is no platform to tell you what you can and cannot do. But the future web is stealing your data to build AI models, spam sites are duplicating your content and stealing your SEO. You may or may not care, but at the end whether you get traffic or now you own your web 1.0 sites.
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://shoptalkshow.com/605/
[2]: /thoughts/
Configure Liveness, Readiness and Startup Probes
This page shows how to configure liveness, readiness and startup probes for containers.
For more information about probes, see Liveness, Readiness and Startup Probes.
Before you begin You need to h...
Kubernetes · kubernetes.io [1]
What is the difference between health, liveness, readiness, and startup? This article does a great job at a full writeup description of how it works in kubernetes, here is my TLDR.
-
health 200 OK - I’m still responding to requests
-
health ERR - something happened and I cant respond to requests
-
liveness 200 OK - I’m ready for more work
-
liveness ERR - I’m still responding to requests, and i’m already working send requests to another pod, or scale up
Z-pages # [2]
These probes are commonly deployed at /healthz and /livez endpoints.
Why the z?
z is a convention that comes from google for meta endpoints to reduce conflict with actual endpoints, and can be deployed to any application.
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://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readin...
External Link
stackoverflow.com [1]
The convention of “z-pages” comes from google and reduces the likelihood of collisions with application endpoints and keep the convention across all applications.
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://stackoverflow.com/questions/43380939/where-does-the-convention-of-using-healthz-for-application-health-checks-come-f
[2]: /thoughts/
I recently discovered homelab-argocd [1] by Doomlab7 [2], and it’s truly impressive.
My ArgoCD app of apps repository
References:
[1]: https://github.com/Doomlab7/homelab-argocd
[2]: https://github.com/Doomlab7
Placehold
Placehold is a simple, fast and free image placeholder service to generate SVG, PNG, JPEG, GIF, WebP and AVIF placeholder images for your project.
placehold.co [1]
This is a handy placeholder generator for generating placeholder items like images, and videos.
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://placehold.co/
[2]: /thoughts/
![[None]]
I figured out the killer combination for python lsp servers, ruff and jedi! ruff does all of the diagnostics and formatting, then jedi handles all the code objects like go to definition and go to reference.
local servers = {
ruff_lsp = {},
jedi_language_server = {},
}
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/
flake8-to-ruff
Convert existing Flake8 configuration to Ruff.
PyPI · pypi.org [1]
Underrated python library to on board ruff, or just use it on a project where its not the norm. ruff claims that its 99.9% compatible with black and when you read through the known differences they are clearly edge case bugs in black.
See this page for more about the comparison to black https://docs.astral.sh/ruff/faq/#how-does-ruffs-formatter-compare-to-black
oh and I just noticed that it is maintianed by Charlie, and comes straight out of astral.
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://pypi.org/project/flake8-to-ruff/
[2]: /thoughts/
![[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...
[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