A nice codepen reference for dark forms. I am using it for my thoughts chrome extension.
Archive
All published posts
![[None]]
When setting up a new machine, vm, docker image you might be installing command line tools from places like pip. They will often put executables in your ~/.local/bin directory, but by default your shell is not looking in that directory for commands.
WARNING: The script dotenv is installed in '/home/falcon/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
To solve this you need to add that directory to your $PATH.
export PATH=$PATH:~/.local/bin
To make this change permanant add this line to your shell’s init script, which is likely something like ~/.bashrc or ~/.zshrc.
Very inspiring textual project to check out how they set up the ui. Their intro video has a pretty epic dev experience.
wsrepl is an epic websocket repl built in python on the textual framework.
When fetching pydantic models from the database with sqlmodel, and you cannot select your item by id, you probably need to use a where clause. This is the sqlmodel way of doing it.
Here is a snippet of how I am using sqlmodel select and where to find a post by link in my thoughts database.
In order to turn url encoded links back into links that I would find in the database of my thoughts project I need to urldecode them when they hit the api. When anything hits the api it must urlencode the links in order for them to be sent correctly as data and not get parsed as part of the url.
Here is a snippet of how I am using urlib.parse.unquote to un-encode encoded urls so that I can fetch posts from the database.
In order to send data that includes special characters such as / in a url you need to url encode it. You have probably seen these many times in urls with things like %20 for spaces.
I’m working on a chrome extension to make quick blog posts, like thoughts or a persistent bookmark tool with comments. The backend is written in fastapi and when I check to see if I have a post for a page I need to url encode it.
curl -X 'GET' \ 'https://thoughts.waylonwalker.com/link/?link=https%3A%2F%2Fhtmx.org%2Fextensions%2Fclient-side-templates%2F' \ -H 'accept: application/json'
curl example generated from the fastapi swagger docs.
Here is how I used javascript’s
encodeURIComponentto turn my chrome extension into a notification when I already have a post for the current page.
Lately in 2023 I have been leaning on lazyvim for my new setups where I am not necessarily ready to drop my full config. It’s been pretty solid, and comes with a very nice setup out of the box, the docs are pretty fantastic as well.
Prime reviews an article with some hot takes about python being slow and quirky, but good enough for a lot of things. Especially data applications that have libraries written in C.
Such an inspiring clip from Kelsey Heightower. Make good shit that inspires people rather than fake ppts of how things could be.
Next time I’m working with large headers on small screens I need to try this. I always truggle to get them to look good for most text and overflow ridiculously long words correctly or at all.
Enable full-text search in sqlite using sqlite-utils.
I want to like jq, but I think Simon is selling me on sqlite, maybe its just me but this looks readable, hackable, editable, memorizable. Everytime I try jq, and its 5 minutes fussing with it just to get the most basic thing to work. I know enough sql out of the gate to make this work off the top of my head
insert a json array directly into into sqlite with sqlite-utils.
A nice cheat sheet for jq. jq looks so nice, but it so quickly gets overwhelming on how to select what you want. I was able to make a jq contains query.
Looking for inspiration? sqlite-migrate by simonw.
A simple database migration system for SQLite, based on sqlite-utils
The work on textual-paint by 1j01.
🎨 MS Paint in your terminal.
If you’re into interesting projects, don’t miss out on llm.nvim, created by huggingface.
LLM powered development for Neovim
Underground Bases with Wyatt
Playing minecraft with Wyatt today he started a server all on his own and had me join. All vanilla, only one rule, underground bases.
I spawned into the server and it was already night time. I gathered up some wood on my way down a tree, and was attacked by zombies before I could get any tools, so I ran up another tree and crafted a crafting table.
Now to follow the rules, it’s time to head underground to build my base.
...
I like maces’s project fastapi-htmx.
The work on interpreters by ericsnowcurrently.
a placeholder
Check out coolify by coollabsio. It’s a well-crafted project with great potential.
An open-source & self-hostable Heroku / Netlify / Vercel alternative.
The next version of markata will be around a full second faster at building it’s docs, that’s a 30% bump in performance at the current state. This performance will come when virtual environments are stored in the same directory as the source code.
I was looking through my profiler for some unexpected performance hits, and noticed that the docs plugin was taking nearly a full second (sometimes more), just to run glob.
| |- 1.068 glob markata/plugins/docs.py:40 | | |- 0.838 <listcomp> markata/plugins/docs.py:82 | | | `- 0.817 PathSpec.match_file pathspec/pathspec.py:165 | | | [14 frames hidden] pathspec, <built-in>, <string>
Python scandir ignores hidden directories #
I started looking for different solutions and what I found was that I was hitting pathspec with way more files than I needed to.
len(list(Path().glob("**/*.py"))) # 6444 len([Path(f) for f in glob.glob("**/*.py", recursive=True)]) # 110
After digging into the docs I found that...
...
I’m really excited about gpt-engineer, an amazing project by AntonOsika. It’s worth exploring!
Platform to experiment with the AI Software Engineer. Terminal based. NOTE: Very different from https://gptengineer.app
I recently discovered elia by darrenburns, and it’s truly impressive.
A snappy, keyboard-centric terminal user interface for interacting with large language models. Chat with ChatGPT, Claude, Llama 3, Phi 3, Mistral, Gemma and more.
AUR.">paru is an aur helper that allows you to use a package manager to install packages from the aur.
The Aur is a set of community managed packages that can be installed on arch based distros.
paru just makes it easy, no clone and run makepkg. You can do everything paru can do using the built in pacman installer.
You will need to manually instal pacman from the aur in order to get started.
...
I took a break
Life comes in waves, and sometimes you need to set down some of your projects to focus on others. For the first part of 2023 I’ve really had a lot of family stuff to focus on, we also are pretty new homeowners and are still trying to get our new to us house cleaned up and modernized.
You can see in my growing list of repos that I have poked around on quite a few side projects over the past few months. This has been quite relaxng to me, mostly things that I use to learn from, but also a lot that are tools and things I use that bring me joy.
I haven’t wrote about it at all yet, but I have really been starting to lean into pydantic on all of these side projects. I have really been enjoying the type system. A good friend ...
The work on hardtime.nvim by m4xshen.
Establish good command workflow and quit bad habit
I’m impressed by trogon from Textualize.
Easily turn your Click CLI into a powerful terminal application
I’m impressed by swenv.nvim from AckslD.
Tiny plugin to quickly switch python virtual environments from within neovim without restarting.
Playing Star Wars Text Adventure with a 10 yr old
The following is a playthrough of Star Wars Text Adventure with a 10 yr old.The following is a playthrough of StarThe following is a playthrough of Star
Pydantic and singledispatch
I was reading about pydantic-singledispatch from Giddeon’s blog and found it very intersting. I’m getting ready to implement pydantic on my static site generator markata, and I think there are so uses for this idea, so I want to try it out.
Let’s set up some pydantic settings. We will need separate Models for each environment that we want to support for this to work. The whole idea is to use functools.singledispatch and type hints to provide unique execution for each environment. We might want something like a path_prefix in prod for environments like GithubPages that deploy to /<name-of-repo> while keeping the root at / in dev.
...
I’m impressed by pandas-ai from sinaptik-ai.
Chat with your database or your datalake (SQL, CSV, parquet). PandasAI makes data analysis conversational using LLMs and RAG.
If you’re into interesting projects, don’t miss out on frogmouth, created by Textualize.
A Markdown browser for your terminal
I like Slackadays’s project Clipboard.
😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager
tabby by TabbyML is a game-changer in its space. Excited to see how it evolves.
Self-hosted AI coding assistant
If you’re into interesting projects, don’t miss out on wolverine, created by biobootloader.
No description available.
I’m impressed by chroma from chroma-core.
the AI-native open-source embedding database
Looking for inspiration? langchain by langchain-ai.
🦜🔗 Build context-aware reasoning applications
I came across hatch-aws from trash-panda-v91-beta, and it’s packed with great features and ideas.
Hatch plugin for building AWS Lambda functions with SAM
I’m impressed by hatch-aws from aka-raccoon.
Hatch plugin for building AWS Lambda functions with SAM