Posts tagged: python

All posts with the tag "python"

zmk two hand hold down

I don’t know about you, but I don’t re-flash my keyboard enough to ever remember where I put the bootloader. Sometimes its the last thing I think about in a refactor and I end up cornering myself into a place where I cant get into that layer anymore. I’ve started putting hardware switches on my newer builds, but some older builds don’t have a hardware one, so it requires disassembly and jumping the microcontroller. Even when I have one though, I gotta flip my board over and its annoying sometimes, so I prefer to have a keystroke for it.

What I’ve landed on recently is the idea of a two hand hold down combo for the bootloader. These combos are ones that there is no way I can hit without picking my hands up from their normal homerow position and pressing four keys simultaneously with pointer and thumbs.

Here are some example layouts from keymap-editor

...

2 min read

I've been leaning on lazy-self-installing-python-scripts more and more, but I did not realize how much tooling that u...

Keycap Cut Away

I was curious how/if my custom keycap design was hitting my switches. So I set out to find out what the fitup inside of this assembly looks like, but not theoretically, a fully sliced view into their fit up in the flesh.

To setup for this cut, I flooded the edge of a 2x4 with hot glue, and inserted the cap such that the step was tangent with the edge. This way I could use the edge as a guide to cut one side off and leave the stem in tact. I took a handsaw to it and filed it smooth.

Removal was applying some isopropyl alcohol and it popped right off.

...

1 min read

I'm Out On Agents

Its the year 2025 and we are only a few years into having 6 months to live before ai takes our jobs, and the big push right now is agents, managing agents. I will fully concede to I’m not doing it right, or a future state gets better than where we are right now, but right now they kinda suck.

Chat is what really kicked off ai uses and goes back as old as computers, but it always sucked. Then chatgpt rocked the world with the biggest launch day in history and showed us that it could actually be pretty good. Unethically trained on everything they could get their hands on, burning cities worth of electricity to train, and keep training to stay ahead of the competition. It does a damn good job. There are tells, and if you see enough of it there is a lot that turns to slop, but if you had never seen it before, there is no way you would assume that it was not a computer.

It does a damn good job at being average, it can do what seems like everything not related to security and authentication at a pretty average level. This is its super power. Whenever you are trying to bridge between something you know and something new, you can get a pretty good answer, and likely spot the bs in what you know.

...

6 min read

I have a couple of use cases for simple qr codes in python coming up. One is for blog posts, the other is for auth in...

I've been a long user of pygments, it's been the thing that injects with funny little class names like and into the c...

markata parallel render

_._ __/__ __ __ _/_ Recorded: 07:53:56 Samples: 71681 /_//_/// /_\ / //_// / //_'/ // Duration: 92.741 CPU time: 91.748 /_/ v4.5.1 Program: /home/waylon/git/waylonwalker.com/.venv/bin/markata build --pdb 92.740 Markata.run markata/__init__.py:443 `- 92.714 HookCaller.__call__ pluggy/_hooks.py:479 [2 frames hidden] pluggy 92.714 PluginManager._hookexec pluggy/_manager.py:106 |- 38.207 wrapper_register markata/hookspec.py:265 | |- 26.105 render plugins/link_collector.py:59 | | |- 10.012 BeautifulSoup.__init__ bs4/__init__.py:122 | | | [14 frames hidden] bs4, html | | |- 5.599 plugins/link_collector.py:181 | | |- 4.050 plugins/link_collector.py:173 | | |- 3.466 Markata.map markata/__init__.py:565 | | |`- 2.092 markata/__init__.py | | `- 0.942 BeautifulSoup.find_all bs4/element.py:2008 | | [2 frames hidden] bs4 | |- 9.107 render markata/plugins/render_markdown.py:260 | |`- 8.902 result_iterator concurrent/futures/_base.py:612 | | [5 frames hidden] concurrent, threading, | `- 2.079 glob markata/plugins/glob.py:112 |`- 1.909 markata/plugins/glob.py:161 | `- 1.908 Future.result concurrent/futures/_base.py:428 | [3 frames hidden] concurrent, threading, |- 25.708 render markata/plugins/post_template.py:639 |`- 25.612 render_article markata/plugins/post_template.py:404 | |- 22.223 markata/plugins/post_template.py:421 | | `- 22.200 render_template markata/plugins/post_template.py:429 | |`- 22.185 Template.render...

csv

name age city Alice 30 New York Bob 25 San Francisco Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago name age city Alice 30 New York Bob 25 San Francisco Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago Charlie 35 Chicago graph TD A-->B A-->C A-->D D-->E document.addEventListener('DOMContentLoaded', function() { (function() { const ctx = document.getElementById('chartjs-1'); new Chart(ctx, { "type": "bar", "data": { "labels": ["Red", "Blue"], "datasets": [{ "label": "Votes", "data": [12, 19] }] }, "options": { "responsive": true } }); })(); (function() { const ctx = document.getElementById('chartjs-2'); new Chart(ctx, { "type": "line", "data": { "labels": [ 65, 59, 80, 81, 56, 55, 40 ], "datasets": [ { "label": "My First Dataset", "data": [ 65, 59, 80, 81, 56, 55, 40 ], "fill": false, "borderColor": "rgb(75, 192, 192)", "tension": 0.1 } ] } }); })(); (function() { const ctx = document.getElementById('chartjs-3'); new Chart(ctx, { "type": "radar", "data": { "labels": [ "Minecraft", "Hollow Knight", "Animal Well", "Watching Netflix", "Tetris" ], "datasets": [ { "label": "MyChoices", "data": [ 8, 9, 7, 4, 3 ], "fill": false, "borderColor": "rgb(75, 192, 192)", "tension": 0.1 } ] } }); })(); }); import mermaid from '/assets/vendor/mermaid/mermaid.esm.min.mjs'; const rootStyle = getComputedStyle(document.documentElement); const css...

Copier has a few quirks with vcs that I just discovered by trying to test out some changes. I may have some config th...

The rich console is themeable, I've been a long time user of rich and had no Idea. You can define your own theme keyw...

I'm trying to replace my usage of google inline search apps with real apps, today I used a stopwatch to time some thi...