Pinned toot

I have a love_hate relationship with underscores

My batchfile.py library now has a REPL (commandline) if you run it as `python -m batchfile` (after pip-installing it). github.com/tassaron2/batchfile I also moved the "replaying inputs" example into the main package as a Replay class

Gotta find motivation to do a big whole-house clean before it snows 🌨️ :win3_setup: ... I recently started using a vaccuum which has made it easier 😛

YAML is impossible to write without syntax highlighting and very easy to screw up. I don't understand why it's so popular. I prefer every other format that I can think of

Finally got these 11 login-system tests to function in my new Flask app. Lots of weird gotchas but it was kind of fun actually!

Well.. because of my lazy code it's limited to a single worker process and there's no way to quit back to the title screen... but it works! You can play this batch file I wrote when I was 16 in a web browser: bat.tassaron.com/

I put my tests in pytest format but the test only runs on Windows (due to comparing output against CMD.exe) and apparently I screwed up when installing pytest because the Windows version tries to use the Linux filepaths when importing stdlib ... oop

I really don't want to work more with Python threading than I have to... it's always the annoying part of a project that requires it

There's a MainThread with dict that references all Batchfile objects (one for each Flask session) but these objects are each in separate threads, and each Flask request is also its own thread. I'm using a threadsafe queue to give the user input back to the appropriate Batchfile thread from the request thread, but when checking the Batchfile output in request I use the dict in MainThread. Allegedly using a Python dict in this way is threadsafe via implementation detail... so maybe it saves work

Trying to turn a batch file into a webapp and it seems like it might work. github.com/tassaron2/bat2web I'll have one on fun.tassaron.com when it's ready... hopefully tomorrow

basically this app is: I wanted to make a simple file manager for some reason and decided to focus it on symlinks because they weren't well managed by other file managers, but then I figured it made more sense to just use the "Open With" dialog from a real file manager, which made 90% of the program pointless :blobfrowningbig: It needs a rewrite lol. But it can be useful I guess... I mean I've used it

I realized the most code I've written with the most number of GitHub stars is this Symlink Editor app I wrote in 2017: github.com/tassaron2/symlink-e Which is quite bad code because it was the first GUI app I ever made. It had deprecation warnings on Ubuntu 20.04 which would get caught by a bare except (ugh) so I fixed that and it now runs on 20.04 with python3-gi installed... but the code still needs a lot of work lol. Apparently the Open With dialog in Gnome doesn't allow you to select it as well 👎

Never actually tried running one of these batch file games with Wine before... Everything works in Wine except for the division used to calculate damage in fight.bat

I tested this on WSL1 so didn't realize that it didn't work on case sensitive filesystems :P Fixed now

I definitely have to write some tests before I continue, if I do.

finally an excuse to write "test.bat" :happy_jitter:

and now that I've got this much done anyway, why not turn this into a flask app and make batch file adventure games play in a web browser? :P ...if I get better batch file games running then it might actually be worth it.

12 years ago I used to write text adventure games using Windows batch files. The longest one was called Funtimes. My knowledge of batch files was limited at the time (pure spaghetti code) so I figured it would be easy enough to get it running on Ubuntu using Python. It works! :) github.com/tassaron2/batchfile

I set an alarm to watch the live Nintendo show after that exciting trailer for Minecraft in Smash Bros Ultimate. Really wish I could justify buying a Switch + game + DLC but I can't. I'll be watching the hell out of videos when the character comes out though! 😮

My fiancée Carli and two friends went foraging for puffball mushrooms! They recorded video of their adventure and I edited it: youtube.com/watch?v=KsXYePwo1x Next year I'll definitely go myself!

tassaron! :tassmuffin: boosted

Pickling is faster than raw packing tomatoes because you only have to water-bath the jars for 10 minutes instead of 45. Also there's less processing of the food involved. We started around 630pm last night and did 28 jars (11L) of pickles (8L cucumbers, 3L Hungarian hot wax peppers) which took until 3am to finish canning 😅

Show more
tassaron dot com

This is Brianna's federated microblog homepage! To follow my posts, find another Mastodon instance and join the fediverse.