!https://www.youtube.com/watch?v=pqBqdNIPrbo
Posts tagged: python
All posts with the tag "python"
m9a devlog 1
It’s sad to see textualize.io close the doors, but textual is still alive and maintained as a n open source project. I tried to use it very early, and struggled, this was before docs and tutorials really existed, before a lot of the widgets and components existed. Then as we all do I got busy and moved on to other things in life and did not have the capacity to build TUIs.
I like tuis, I like staying in the terminal. I use lf daily to move files around when I want something more than mv and cp. I use k9s hourly to monitor and manage my kubernetes cluster.
As awesome as tui’s are, they are more effort to build, and less automatable. I feel like the first stage into automation of a project really needs to be a good cli, and this is often good enough for the project and I move on.
...
fix feed descriptions
Today I fixed a bug in markata that has been occurring for a few months where the description for posts come out as None if coming from cache, the issue was a pretty simple check and pull properly from cache. This fixes all the descriptions in feeds and metadata on the post.
While in there we went ahead and improved our get_description to more accurately return plain text without escaped characters, remove cutoff words, and add an elipsis if the description cuts off the text.
While I was there I made longer form posts, til, blog-post use the super description of 500 characters instead of the regular 120 character description.
I've been using ruff to lint my python code for quite awhile now, I was pretty early to jump on it after release. Som...
!https://www.youtube.com/watch?v=XVwpL_cAvrw
!https://types.ruff.rs/
I was looking back at my analytics page today and wondered what were my posts about back at the beginning. My blog is...
!https://pypi.org/project/ty/
portal-platformer-devlog-1
Here is the current state of my platformer yet to really be named, I want to make something in between hollow knight and portal.
I made one once in make code arcace on a pybadge. It was quick and dirty, but fun to work on. It had the basic of blocks that I could move, blocks i could put a portal onto, and a goal for each level. Some levels you can just walk through and some levels required you to really think about where to place the portal.
So this version of the game is a least 2 years in the making, I open it every few months give it a day or two and move on. Its mostly something that I work on with my son. He really likes to jump around on projects so its hard to make real progress on something, but we are hitting an age where he is able to come back to projects a little better.
...
!https://ofek.dev/pyapp/latest/
I run tailwind for my personal blog, whenever I update it, pre-commit goes in and fixes end of file. I'm sick of thes...
!https://pypi.org/project/valkey/
markata search
A side effect of Markata DidYouMean is that we are able to implement some rudimentary search based on slug, title, tags, and description.
I made a video of the early work on using this side effect to search for content on markata.dev.
...
Markata DidYouMean
Coming in Markata 0.9.1 is far better documentation. i.e. Documentation that actually exists for everything. As part of poking around I realized that I often go to look up the docs for a plugin and forget that the path is /markta/plugins/feeds, sometimes I might try /markata/feeds or /plugins/feeds.py or /feeds or I might even forget the plugin name exactly and try something like feed and get a 404. So I added a didyoumean plugin to markata that takes care of this.
I made a quick recording of this early feature, pay close attention to the url as it automatically updates to the correct page.
...
!https://docs.pydantic.dev/latest/concepts/models/#rebuilding-model-schema
!https://tryolabs.com/blog/top-python-libraries-2024
!https://seaborn.pydata.org/tutorial/color_palettes.html
I fixed lists in my blog
A small improvement to my blog today. I was checking out my /now post and noticed that lists have left padding but no discs or numbers. I popped open my tailwind/app.css added these lines and rebuilt.
#post-body li { @apply list-disc; } #post-body ol { @apply list-decimal; }
And rebuild, which I actually do with ⭐ casey just, but showing the command here for clarity.
npx tailwindcss --input tailwind/app.css --output static/app-39.css
WHY the applies ¶ #
...
nvim-manager
I recently built a cli application as a nearly-one-shot-app called nvim-manager. It manages your nvim dotfiles install.
nvim-manager allows you to install pinned versions of your dotfiles, your friends dotfiles, and distros in ~/.config. This allows you to have stable versions that will not break installed while you change things.
...
one-shot-s3-cleanup
So I made a mistake in an app I am working on and ended up creating thumbnails of thumbnails, and thumbnails of thumbnails of thumbnails… etc. I was able to delete them all, but I wanted to make a one-shot script to do it.
I got the idea of the one shot app from Simon Willison and replicated his setup in a chatgpt project
a mistake was made in my s3 bucket and I've created a bunch of extra files write a script that deletes all files that contain _thumb_thumb ⬢ [devtainer] ❯ aws s3 ls s3://dropper 2024-12-29 14:32:32 16158 02271f4c-be18-4bea-b23e-d00f9fe42b9f.webp 2025-01-11 14:20:49 2878 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb.webp 2025-01-11 14:21:17 2858 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb.webp 2025-01-11 14:21:44 2856 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb_thumb.webp 2025-01-11 14:21:44 2856 02271f4c-be18-4bea-b23e-d00f9fe42b9f_thumb_thumb_thumb_thumb.webp 2024-12-27 10:25:36 2812 06422c09-d0da-44ec-9339-786864ebccf2.webp 2025-01-11 14:20:49 2710 06422c09-d0da-44ec-9339-786864ebccf2_thumb.webp 2025-01-11 14:21:17 2652 06422c09-d0da-44ec-9339-786864ebccf2_thumb_thumb.webp 2025-01-11 14:21:45 2632 06422c09-d0da-44ec-9339-786864ebccf2_thumb_thumb_thumb.webp 2025-01-11...
...


