💾 Archived View for cwave.site › gemlog › 2024-05-30.gmi captured on 2024-06-16 at 12:25:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Hello again. I haven't gotten around to this for weeks.

Running

I did the 10k. I think I signed up this year just to show I'm still alive and still going. I didn't train for this. It felt like I was going fast, but it was my worst time yet, besides the first.

Next year at this time, I will do the marathon. For now that doesn't mean anything except to runa little bit more often.

Start a capsule section for it? Do we have run chat on the gemini verse?

Another 10km in the bank today.

Books

I drafted some gemlog post about why are book essays so hard, I'm sure I could do this in high school. I wrote a book review of Jane Eyre.

I have read all of Use Of Weapons on sunday. I may write about it. It is all hard. I have a lot of thoughts and there's too much freedom when it's not high school anymore.

That's what I'm here for. Managing to write and communicate, anything at all.

Dev notes

Look ma, no browser

If you want to stop lookng at the internet, you can shoot yourself in the foot with this genius move

sudo chmod 666 /lib/firefox/firefox

(Type "which firefox" and follow the symlinks to find the executable)

I did this instead of just uninstalling my browser because I want to keep all the data and passwords it's holding for later.

I like this because it seems like a sketchy, forbidden move that I should do once and get out - I will not unthinkingly go in there and undo it so soon.

This shows just how many times a day I reflexively click on the browser icon. It now does nothing.

Instead, we have lynx.

units

Some time ago now, someone on here was talking about making little command line utiliities for unit conversion. That is a good thought: there is no need to send a request to somewhere to have a little lookup and a single multiplication operation done, somewhere else, and sent back to you.

After seeing a mention of "units" in the famous 500-mile-email story, I tried this

sudo apt install units

and of course it exists. Never doing that by going to search engine again.

Fortran iso_c_binding

It just works! I have spent a week wrapping C functions in little fortran interfaces, no problems. Fun times.

Details later in my fortran notes? But anyone can get them in "Modern Fortran Explained", editions since 2018.

python: hatch run

So I've been using hatch for some python packages I currently have pip-instable on the pypi-test respository, mostly to distribute them to myself on raspberry pi.

I have been using it wrong. It was very annoying: for arcane reasons the directory structure and import statements of a python project has to be different for pip distribution vs for direct local use. Once I get it into package form, I can no longer just run it. So how am I to try it and test it? I have been working in the most inconvenient ways, making changes in pip installed files and copying them back, making many mistakes and having to make many little versions and pip installs.

I just learned about

hatch run python3 -m mypackage

and

hatch shell

this builds a virtual environment exactly as if you had pip installed your package.

Also

hatch test

runs pytest in it.

I'm convinced, despite the unwieldy directory structure. Testing things exactly as they are going to be when installed must be the right way to do it.