Drafts

Draft and unpublished posts

0 posts simple view

Adding a __render__ method that returns a rich renderable to any python class makes it display this output if printed with rich. This also includes being nested inside a rich Layout.

import rich
from rich.panel import Panel


class ShowMe:
    def __rich__(self):
        return Panel("hello", border_style="gold1")


if __name__ == "__main__":
    rich.print(ShowMe())
results of printing ShowMe with rich

Fugitive comes with a pretty sick way to commit files and see the diff at the same time with verbose commit. Opening the fugitive menu with :G brings up your git status, you can stage files with s, unstage them with u, toggle them with -, and toggle their diff with >. Once you have staged your files for commit, you can commit with cc, but today I found that you can commit verbose with cvc. This brings up not only a commit widow with your git status shown, but the diff that you are about to commit.

fugitive verbose commit example

example of a verbose commit in fugitive

Kedro Course

find all nodes with raw in the name use parameters make and use a logger use find-kedro in spaceflights slide in a new node vizualize your pipeline find slow nodes move the configuration directory build kedro into docker and run it pyinstrument pdb make a new cli command make a hook load catalog entries slice a pipeline by tag by name from inputs to outputs
1 min read

Uses

This is a listing of all the things that I use on a daily basis to build data pipelines, lead my team, and build this website. older editions # [[ uses-2021]] Installation # Everything installed on my machines is done through ansible-playbooks. It’s been a long transformation to get here, but its so satisfying to boot a brand new system, run a single command a have every single thing cofigured exactly to my liking. OS # I run Ubuntu, it works well for me without too much fuss. For me the distribution does not really matter too much, I’m more interested in what’s inside. Window Manager # I use awesome wm. Awesome is a tiling window manager that alows me to navigate through 9 workspaces (technically called tags in awesomewm). I can script out certain applications to open in a certain tag, move it to different tags, and join tags super easy. I really dont see myself going back to a floating window manager where you have to place all your windows with the mouse by hand. This is probably on…

Using Nix to manage my Python Interpreter

I recently started playing with nix. goals # automatically select correct python version per project activating one doesn’t bleed into the other Installing nix # controlling nix-env # searching for packages # https://search.nixos.org/ shell #
1 min read

How I deploy my blog in 2022

How I Continuously Deliver Content to my Blog with Markdown, GitHub, Python, and netlify # Content at the speed of thought. well, as fast as I can type Me # Mechanical Engineering Data Engineering Terminal Junkie Ask Questions in slido # Please ask questions in slido # 983 911 | App Dev 1 Track Slido Poll # Do you have a personal blog / notes / website? Yes - Static, built with python Yes - I manage a server running python Yes - Not python No we will circle back around in a few minutes I’ll give away my answer # Yes - Static, built with python Slack Channel: #track-1-appdev # If you are in the slack give me a 🔥🔥🔥🔥🔥🔥🔥 Let’s light up slack 🔥🔥🔥🔥🔥🔥🔥 4 parts # Why My workflow Under the hood Open Source Part 1 WHY # 2016 # I want to own my content # Twitter is a great networking tool, but it’s rare to see anything more than a few hours old. I want to own my content # No one can take my domain or shut down the platform that my content is on. Some of my Stats # 48 Google top 10 ranking pages 6…
7 min read

How I deploy my blog in 2021

How I Continuously Deliver Content to my Blog with Markdown, GitHub, Python, and netlify # Content at the speed of thought. well, as fast as I can type Me # Mechanical Engineering Data Engineering Terminal Junkie Ask Questions in slido # Please ask questions in slido # 983 911 | App Dev 1 Track Slido Poll # Do you have a personal blog / notes / website? Yes - Static, built with python Yes - I manage a server running python Yes - Not python No we will circle back around in a few minutes I’ll give away my answer # Yes - Static, built with python Slack Channel: #track-1-appdev # If you are in the slack give me a 🔥🔥🔥🔥🔥🔥🔥 Let’s light up slack 🔥🔥🔥🔥🔥🔥🔥 4 parts # Why My workflow Under the hood Open Source Part 1 WHY # 2016 # I want to own my content # Twitter is a great networking tool, but it’s rare to see anything more than a few hours old. I want to own my content # No one can take my domain or shut down the platform that my content is on. Some of my Stats # 48 Google top 10 ranking pages 6…
7 min read

Kedro-Broken-Urls

Broken Urls # https://github.com/josephhaaga) [] https://example.com/file.h5 https://raw.githubusercontent.com/kedro-org/kedro/develop/static/img/pipeline_visualisation.png https://example.com/file.txt https://github.com/jmespath/jmespath.py. https://github.com/tsanikgr) https://example.com/file.csv https://kedro.readthedocs.io/en/latest/04_user_guide/15_hooks.html https://kedro.readthedocs.io/en/stable/07_extend_kedro/04_hooks.html https://github.com/EbookFoundation/free-programming-books/blob/master/books/free-programming-books.md#python https://github.com/quantumblacklabs/private-kedro/blob/develop/docs/source/04_user_guide/04_data_catalog.md http://example.com/api/test https://example.com/file.parquet https://kedro.readthedocs.io/en/stable/11_faq/01_faq.html#how-do-i-upgrade-kedro https://example.com/file.xlsx https://www.datacamp.com/community/tutorials/docstrings-python https://github.com/mmchougule) https://example.com/file.tf https://kedro.readthedocs.io/en/stable/04_user_guide…

Notes for second vim-fundamentals course meetup

newline another Mahesh Subrajmanium Venkatachalam - Plugins | Installing a Theme Hunter Phillips - Quickfix | Offline Ordering with getqflist Andrea Wackerle - Search & Replace | Macros Matthew Fletcher - Registers | Advanced Motions Jump, Delete, & Select | Advanced Motions: Paste & Move Nicholas Payne - My First Vim Plugin | What Makes a Good Plugin Zev Averbach - Harpoon | Wrap up Plugin-manager # get a plugin manager unless you are going full lua, most people use vim-plug by the great junegunn https://github.com/junegunn/vim-plug Install pluggged # Install Plugins # Installing a Theme # install using plug set the theme Quickfix # sending things to the quickfix list quickfix commands Some remaps to consider # Offline Ordering with getqflist # Search & Replace # Walk through example. Macros # Macro Pressure
1 min read

Kedro Pipeline Create

Kedro pipeline create is a command that makes creating new pipelines much easier. There is much less boilerplate that you need to write yourself. https://youtu.be/HtyIKqlEoNw creating a new pipeline # The kedro cli comes with the following command to scaffold out new pipelines. Note that it will not add it to your, to be covered later, you will need to add it yourself. results # The directory structure that it creates looks like this.

RC Plane 3

Steam achievements and progress for RC Plane 3 - 4.44% complete with 2/45 achievements unlocked.

5 min

Copy and Paste on Linux

These are the notes that I used as I set up my first ever ubuntu desktop. gnome-tweaks # nordix gtk theme # I ran this, but have no idea if it had any effect as the theme did not show up until I relogged. What I think actuagnome terminal showing scrollbar in tmuxlly worked was emoji support # One thing that I really missed quite early from windows was the emoji virtual keyboard. I like being able to quickly toss in those emoji that give just a bit of a visual cue 🔥, ⚠️,, 🎉, 🦄, 💜. installation # I found an application called emote. that seems to do everything I need it to in the snap store. Installation is a typicall snap install. default keybinding # The application came with a default keybinding, but I could never remember it. Windows keybinding # Old habits are hard to break, I opened up the gnome settings and set a hotkey to to run the command emote. How it works # Get that dock outta here # I tried to disable the dock and it didn’t immediately work for me, likely because I needed t…

How I configure git

Git can be a bit tricky to get configured correctly. I often stumble into config issues weeks after setting up a new machine that I did not even notice. These are my notes to remind me how I configure git. Identity # rebase # editor # default branch # push to current bransh wihtout setting upstream # Autostash #
New Black Corne with purple glow
These kaihl browns, loving them. This is going to be a trip to get used to, I thought typing on a column stagger layout would be hard to get used to, nope, its the symbols, that 4th layer is hard to get rid of.

My experience with a new 3dkeeb corne

specs # first days typing # first days working # What did I sign myself up for? If the lower typing speed with alpha characters was not enough throw in special characters and keybings I setup long ago and only remember by muscle memory. I have so far killed my tmux pane instead of zooming in (m-x instead of m-z), killed my zsh line instead of paste to the end of a command (c-c instead of c-v). VIA # setting up qmk cli # inspiration #
1 min read

Upcoming Stream

I'm no longer streaming As much as I would really love to make streaming work, its really hard for my family situation to make large blocks of time work for me. https://stackoverflow.com/questions/16720541/python-string-replace-regular-expression I am starting to stream 3 days per week, before I start work in the morning. These streams will likely be me just talking through things I am already doing. Making DAGs do 🔮Magical Things | Open Source 🐍Python | kedro plugins | # Science & Technology | Every Monday • 7:00 AM - 9:00 AM CDT On Monday’s I am going to be working on open source packages/plugins for kedro. kedro-diff test kedro-diff on piplines with history setup deploy pipeline deply to pypi 🌱 Digital Gardening | Blogging with 🐍Python | Building 🔮Markata a static site generator in python for waylonwalker.com # Science & Technology | Every Wednesday • 7:00 AM - 9:00 AM CDT On Wednesday morning I will be working on my personal website and the static site generator that I built for it…