• 3 Posts
  • 129 Comments
Joined 1 month ago
cake
Cake day: June 23rd, 2024

help-circle









  • I am using Shreddit on Linux. It goes through each line in comments.csv from the GDPR export I requested, which is more complete than the data PowerDeleteSuite gets access to. PowerDeleteSuite basically clicks through your comment history on old.reddit.com and submits edit requests, while Shreddit uses the powerful API (it’s not paid for personal use but you need to register the client, see the github page) and will find all comments thanks to the legally-mandated completeness of the GDPR export (if supplied; it will use the API to retrieve the comment list otherwise). BTW, you can alter the comments.csv for a custom filter (for example, I want to use a Czech string in Czech subreddits). You can use it on Windows (and it’s an easier installation) but because of non-POSIX shenanigans, newlines in the replacement string won’t work there.

    If using PowerDeleteSuite, make sure to download the log file it supplies before you close the window or your original comment content will be lost!




  • Yes, video too, but support by clients is inconsistent (some don’t show playback controls and loop it like a gif, some just display a link). By default, the media hosting server allows for up to 900 frames (up to 30-37 seconds of smooth video) and 2160p; the audio track is removed; the filesize limit is 40 MiB (most instance owners set it way lower, perhaps 5 or 10). There is a caveat: all media must be encoded to a single codec of the instance owner’s choice: VP9 (default), H264, H265, AV1, or VP8. Uploading in one of the others is possible but beware: it is going to be reencoded by the server, and if the process doesn’t finish within the timeout of 30 seconds, you get the error ffmpeg timed out. In 30 seconds, a server without HW acceleration will typically only process a very short video (for feddit.org, it’s about 1 MiB’s worth of H265) so anything longer than a few seconds will fail! To take advantage of the full upload limit, you must reencode the video yourself to VP9 or whatever other codec is set (you can tell by uploading a tiny file in any codec and inspecting the output).

    You can use the following command to reencode the video to VP9:

    ffmpeg -i input.mkv \
      -r 899/<duration> `only use this for longer videos where you need to reduce frames to 900` \
      -c:a libopus -b:a 48k `audio will probably be removed anyway` \
      -c:v vp9 \
      -crf 32 `constant quality mode, lower is better quality, try finding lowest value satisfying filesize limit` \
      output.webm
    

    FFmpeg can do much more to the video: resize, crop, trim etc. Look it up. If you want GUI, try Handbrake.

    Alternatively, just use a more lenient hoster like GitHub or catbox.moe and embed the file from there, which has no aforementioned limits: ![Big Buck Bunny 4K](https://upload.wikimedia.org/wikipedia/commons/c/c0/Big_Buck_Bunny_4K.webm) will embed a 10-minute 4K movie.






  • You are right, “elf” is a stretch, it does not make sense to parse it as a number. But in some languages, the string “15 240,5” is just how a number is written (yes, that’s a U+2009 THIN SPACE, you can’t stop me from using it as a thousand separator in German). Obviously, despite having a , on their numpads, German programmers still expect computers to parse numbers with decimal dots and interpret commas as list values.


  • So the only valid digits are arabic numbers but arabic script numbers are not a valid digit?

    Some people writing Regex implementations have that opinion. I’ve refrained from saying mine.

    If we want programming to be inclusive then doesn’t that make sense to also include the arabic script number?

    Maybe. IMO, number tests should be chosen/implemented based on the project’s requirements. If you want to include every Unicode character or string pattern anyone’s ever used to convey a numeric value, that would be a long and growing list. Arguably, it’s impossible: the word “elf” means a number if interpreted as German for “eleven” but not if interpreted as English for 🧝.