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
  • 11 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.






  • 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


  • Ah, I see. I wasn’t reading carefully enough.

    Your links reminded me of some projects I was poking around at a while ago. I wanted to make tools for creating complex 2D shapes that could be interactively animated with OpenGL as well as for experimenting with different elements of things like anime-style eyes. I was thinking offline (for games on desktop) rather than for web, but maybe that stuff would have value for web if I ever get back to it… I got a pretty good way into it before I ran out of steam. You could dynamically click to insert new control points anywhere on the edges of complex outlines and really quickly translate/rotate/zoom with keyboard and mouse combos and it redrew everything every frame in realtime on my 10 year old desktop… but someone who’s actually good at art would probably have still been more effective just digging up an old copy of Flash than what I’d gotten working. :-/

    Bezier curve chain editor screenshot: https://files.catbox.moe/bk4zhz.png
    Eye example: https://files.catbox.moe/4ywrpi.png