Ephes Blog

Miscellaneous things. Not sure what to put here, yet.

Date -

Weeknotes 2022-03-28

, Jochen

Got my kptncook to mealie integration to work. My mealie instance is now running at mealie staging. If you'd like to have an account, drop my a line. Not much progress on other projects.

Things I Learned

  • You can record traffic with your fritzbox using this link - very nice for debugging

Articles

Youtube

Twitter

Software 

Podcasts


Weeknotes 2022-03-21

, Jochen
Catched a cold, not corona, but still bad. Spent most of last week refactoring fastdeploy. There are still two difficult to fix issues left but it's usable anyway. Wrote some release notes this time :).

The second thing I spent time on was mealie. It's a receipt manager implemented with fastAPI and vue which is a stack I use, too. So I played around with it a little bit and deployed it to my own infrastructure. This was easier than expected, but I found an a bug in fastdeploy (big task output breaks on `await proc.stdout.readline()`). Wonder whether people pay money for a hosted version of mealie?
 

Things I Learned

  • Usually I prefer to run my tests directly with pytest instead of vscode because my console output is nicely colorized and it's much easier to add options like '--full-trace' etc. but I just found out it's at least possible to view the test stdout in vscode using ⌘⇧U and then selecting "Python Test Log" from the dropdown on the upper right. So I might run tests from vscode from time to time now :).
  • You can install optional poetry dependencies with `poetry install -E optional_name`

Articles

Youtube

Twitter

Software 

Podcasts


Weeknotes 2022-03-14

, Jochen
Still working on the sqlmodel removal from fastdeploy and adding some kind of software architecture:
  • Fetching the deploy steps for a service now works again
  • The cli commands work again with the new application architecture
  • All api endpoints work again
  • All the e2e frontend tests work again
So, it's nearly done. There's probably a new release next week. This whole thing took about 3 weeks (working only in my spare time). That's a bit more than I would have expected, but new things which were not planned got added too (async db support for example). Well, it's probably a good idea to have smaller chunks of work, but that is difficult to do if you rewrite lots of infrastructure stuff. My current rationalization for my time being well spent goes like this: As long as it is helping me shifting costs from marginal to fixed, additional effort is fine.

Maybe this bot can help me preventing further doomscrolling.


Things I Learned

Articles

Misc

Youtube

Books

Twitter

Software 

Podcasts


Weeknotes 2022-03-07

, Jochen

*Doomscrolling intensivies*

But there has been some progress on the removal of sqlmodel from fastdeploy task (this issue keeps getting bigger, and it was a slow work week) as well:

  • While I'm introducing an own unit of work pattern and rewriting lots of the database stuff anyway, I thought: Well, maybe switching to asyncpg and having the whole database layer async would be not a lot more additional work. This is now done.
  • Rewrote the auth module, because I wanted to get rid of all fastAPI dependencies. The code now looks much nicer, too.
  • Syncing service configurations from filesystem is now also possible again (I have to admit writing things like an AbstractFilesystem class bring me quickly to the point of reconsidering my lifestyle choices).

Things I Learned

  • You can use PYTHONPATH=$(pwd) in a Procfile to start jupyter lab/notebooks that keep the project root in pythonpath
  • You can use session.expunge(object) to be able to use mapped python objects after a sqlalchemy session is closed (yeah, I'm just beginning to use sqlalchemy)

Youtube

  • My Voice Over Chain | I often get mocked for being nerdy about audio quality. Well, maybe go and mock this guy instead (or learn something from him and improve your recordings).
  • Have Single-Page Apps Ruined the Web? | Transitional Apps with Rich Harris, NYTimes | Great video. Until a few months ago I would have completely agreed. But seeing what is possible with libraries like htmx I'm currently feeling more like: "Holy shit, SPAs are dead!". And I don't trust this whole notion of "Just use this sparkling framework X and your code will automatically deployed on an edge CDN node in a V8 vm and everything will be like magic". I like things to be simple, not complicated and magic. The reason for that is: I know that my own interest in keeping my stuff running is much greater than the interest of some bored bigcorp ops staff. Even kubernetes is far too complicated from my point of view. If something goes wrong, I want to be able to fix it. But maybe kubernetes or netlify or fly makes things possible that I need and could not do by myself? My opinion on that is: hell no.
  • Putin, die Ukraine und danach? | Mit offenen Karten Spezial Ukraine | ARTE | Good signal-to-noise ratio

Twitter

Software 

  • pgcli | Postgres command line client with syntax highlighting

Podcasts