I write code and play games and stuff. My old username from reddit and HN was already taken and I couldn’t think of anything else I wanted to be called so I just picked some random characters like this:

>>> import random
>>> ''.join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789") for x in range(5)])
'e0qdk'

My avatar is a quick doodle made in KolourPaint. I might replace it later. Maybe.

日本語が少し分かるけど、下手です。

Alt: e0qdk@reddthat.com

  • 1 Post
  • 27 Comments
Joined 1 year ago
cake
Cake day: September 22nd, 2023

help-circle





  • Any ways to get around the download failing

    I did this incredibly stupid procedure with Firefox yesterday as a workaround for a failing Google Takeout download:

    • backup the .part file from the failed download
    • restart the download (careful – if you didn’t move/back it up, it will be deleted and you will have to download the whole thing again; found this out the hard way on a 50GB+ file… that failed again)
    • immediately pause the new download after it starts writing to disk
    • replace the new .part file with the old .part file from earlier (or – see [1] below)
    • Firefox might not show progress for a long time, but will eventually continue the download (I saw it reading the file back from disk with iotop so I just let it run)
    • sanity check that you actually got the whole thing and that it is usable (in my case, I knew a hash for the file)

    [1] You can actually replace the new .part file with anything that has the same size in bytes as the old file – I replaced it with a file full of zeros and manually merged the end onto the original .part file with a tiny custom python script since I had already moved the incomplete file to other media before realizing I could try this. (In my case, the incomplete file would still have been useful even with the last ~1MB cut off.)

    There are probably better options in most cases – like Thunderbird for mailbox as other people suggested, or rclone for getting stuff from Drive – but if you need to get Takeout to work and the download keeps failing this may be another option to try.



  • I don’t have a complete solution, but I do have some ideas:

    • Have you tried hooking it up to an external monitor? Sometimes auto-config can help you recover from weird states if you plug in a different display.
    • On my Deck, I can reach a terminal by using CTRL-ALT-F4 that is separate from the main desktop mode (CTRL-ALT-F1 switches back). Default user seems to be called “deck”. You may need to set a password to use sudo. I am not sure exactly how the desktop environment is set up on the Deck so I am not sure exactly what you need to change or where the files would be – maybe check under /usr/share/X11/xorg.conf.d to see if anything is set to an insane value there?
    • You might try sending Valve a support request
    • As a last resort, you could try a factory reset. You’ll nuke everything else on it too though…



  • Back when I was a kid one of my neighbor buddies told me about a strange toothfairy-like being (that I’d never heard of) associated with Halloween in his house. Unfortunately, I’ve forgotten whatever the hell he called it, but “Candyfairy” gets the idea across, I think. Basically, if he left a bowl of candy out after trick-or-treating, the “Candyfairy” (or whatever) would come and trade it for presents in the night. He came over the next day and showed me a game he’d gotten; I tested this myself too that same night after he’d told me about it – my parents, of course, had never heard of this being either though so all my candy was still where I left it the next morning…




  • Hmm… I’m pretty sure I started both of them way back when, but I don’t think I ever beat them. Dusting off the classics and seeing if I’m better suited to them now with the benefit of a few more years of experience is not a bad idea… Maybe I’ll give that a shot after I finish Hell Pie.

    Thinking along those lines, there’s also Super Mario Sunshine, of course, for anyone else looking. (I definitely beat that one though!)



  • Thanks for the suggestion. I’ll take a look. Toilet humor isn’t my usual goto, but I can enjoy it from time to time; I mean, that boss from Conker’s Bad Fur Day – you know the one, if you ever played it – is among the most memorable encounters I’ve ever had in gaming…

    Edit: I’m a few hours in now, and I’d say it’s kind of like the developers took Conker’s Bad Fur Day and A Hat in Time, ground both up with a meat grinder, shoved the mix in a pie tin, added a dash of Ford Cruller’s Secret Blend of Psitanium and Spices, and baked in the oven at 350 degrees until well done. I’m enjoying it so far. Fair warning to anyone else reading who is thinking of trying it that it’s much more tuned to Conker’s style of cartoon violence (with blood and gore) than to A Hat in Time’s.





  • I didn’t finish it because I wasn’t quite sure how to handle the data of trianglefan (looped) vs. trianglestrip

    I went a good way down the rabbit hole of reading papers on triangulation before finding earcut.hpp which solved the “how do I triangulate polygons with concavities without going insane” problem effectively enough for my needs. It doesn’t do quite what I’d like for self-intersections, but otherwise was pretty good. (Good enough for all cases where I care about the output anyway; self-intersection and degenerate stuff being a bit weird was OK for my goals as long as it didn’t crash.) I’m not familiar with raylib (other than having heard the name before), so not sure how hard it’d be for you to integrate, but it’s something you might take a look at if you’re interested.

    Self-intersection failure example: https://files.catbox.moe/tz38c8.png
    Wireframe geometry example: https://files.catbox.moe/w59izh.png