kbin account: [email protected]

This is my Lemmy alt. I’m about 50/50 between kbin and reddthat these days, but my kbin account is more established. If you’re looking for my older posts, check there.

Interests: programming, video games, anime, music composition

  • 2 Posts
  • 58 Comments
Joined 7 months ago
cake
Cake day: November 27th, 2023

help-circle
  • Everything I’ve set in Settings is forgotten: Default Listing reverts to All, Default Post Sort reverts to Hot, and so on.

    mlmym (the “old” interface) stores its front-end specific settings in your browser via cookies and local storage. The way it’s implemented works for the most part and probably makes the front-end simpler, but has some downsides like not retaining your choices between logins. There’s an issue open for this in the bug tracker: https://github.com/rystaf/mlmym/issues/104

    I’m not sure why it forces a logout periodically even when you’re using it regularly though. (I mean, the cookies are probably not being updated and just expire eventually – but I don’t know if that was a deliberate choice or not.) It might be a good idea to open an issue for this?



  • kbin.social’s been down for a while, and having serious problems for months.

    There is a general visual novel community at [email protected] which might be a better place to post to. It’s not very active, but I know there are at least a few people around paying attention to it. I might chime in on some threads occasionally if you post there. My tastes are more in line with VNs aimed at the straight-male demographic, but I’m willing to try other VNs beyond that if there is a really good story or novel mechanics or some other non-sexual factor that makes it interesting.

    If that community doesn’t fit your needs, I think there is also [email protected] – but it seemed completely dead the last time I looked. You might be able to revive it though if you want to try.


  • I was curious, so I did some searches on this topic for you and found these pages:

    The second link in particular notes:

    The reason that things are much easier with all ASCII data is that practically every Unicode encoding in existence maps bytes 0x00…0x7f to the corresponding code points, so byte strings and Unicode strings that contain the same all-ASCII data are basically equivalent, even semantically. What usually trips people up with non-ASCII data is that the semantic meaning of bytes in the range 0x80…0xff changes from one encoding to another.

    But, thinking like a systems programmer again, for many purposes the semantic meaning of bytes 0x80…0xff doesn’t matter. All that matters is that those bytes are preserved unchanged by whatever operations are done. Typical operations like tokenizing strings, looking for markers indicating particular types of data, etc. only need to care about the meaning of bytes in the range 0x00…0x7f; bytes in the range 0x80…0xff are just along for the ride.

    So the trick for beating Python 3 strings into submission is to put in encoding and decoding calls where you need to, choosing a single-byte encoding that doesn’t mutate 0x80…0xff. There are many of these; most of the Latin-{1…6} sequence (aka ISO-8859-1…10) is has this property. What you do not want to do is pick utf-8 or any of the multibyte Asian encodings. Latin-1 will do fine; in fact it has an advantage over the others in memory consumption, which we’ll describe below.

    Whether depending on this is actually correct or not is beyond me, but it seems like people have actually been using that pass-through behavior in practice and put it into things like Python2 -> 3 migration guides.

    The first link suggests that the seemingly undefined ranges are valid as C0 and C1 control codes which may be why it doesn’t throw errors.





  • I don’t know how to do it with KDE’s tools, but on the command line with ffmpeg you can do something like this:

    ffmpeg -i video_track.mp4 -i audio_jp.m4a -i audio_en.m4a -map 0:v -map 1:a -map 2:a -metadata:s:a:0 language=jpn -metadata:s:a:1 language=eng -c:v copy -c:a copy output.mp4
    

    Breaking it down, it:

    • runs ffmpeg
    • with three inputs (-i flag) – a video file, and two audio files.
    • The streams are explicitly mapped into the result, counting the inputs from 0 – i.e. -map 0:v maps input 0 (the first file) as video (v) to the output file and -map 1:a maps the next input as audio (a), etc.
    • It sets the metadata for the audio tracks -metadata:s:a:0 language=jpn sets the first audio track (again counting from 0…) to Japanese; the second metadata option sets the next audio track to English.
    • -c:v copy specifies that the video codec should be copied directly (i.e. don’t re-encode – remove this if you DO need to re-encode)
    • -c:a copy specifies that the audio codec should be copied directly (i.e. don’t re-encode – remove this if you DO need to re-encode)
    • output.mp4 – finally, list the name of the file you want the result written into.

    See documentation here: https://ffmpeg.org/ffmpeg.html

    If you need another language in the future, I think the language abbreviations are the three letter codes from here: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes – but I’m not certain on that.



  • e0qdk@reddthat.comtoMusic@lemmy.worldThoughts on AI music?
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    A fairly vocal portion of lemmy is AI-hostile, and even for the people who aren’t outright hostile to it, it can be annoying at times – AI content does tend to drown everything else out when it’s permitted, so making a community explicitly for it would probably work better.

    lemmy.dbzer0.com might be a good place to host a community specifically for exploring AI generated music if you’re interested in running one. That instance is explicitly open to AI gen and already has several image gen communities, but I don’t think they have a music gen community yet. (Double check though before making one in case I just missed it.)



  • e0qdk@reddthat.comtoAnimemes@ani.social100%
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I recognize some of the characters:

    • Akiyama Yukari from Girls und Panzer (top left corner)
    • Oumae Kumiko from Hibike! Euphonium (center – brown hair and yellow eyes)
    • Kuriyama Mirai from Beyond the Boundary (right – with glasses)

    but I don’t recognize the others.


  • I ran into an example of the thumbnail issue again today – this time on a post from kbin: https://old.reddthat.com/post/19193476

    The thumbnail looks like this in the HTML:

    <div class="thumb">
      <a class="url"
         href="https://media.kbin.social/media/60/a4/60a45b8ff88b1b2e3a0f77b701feb323c5bbfb7ceeb75154ea7df5d6eea15ef8.jpg"
         >
        <div  style="background-image: url(https://media.kbin.social/media/60/a4/60a45b8ff88b1b2e3a0f77b701feb323c5bbfb7ceeb75154ea7df5d6eea15ef8.jpg?format=jpg&amp;thumbnail=96)"></div>
      </a>
    </div>
    

    Note that it’s making a request to kbin.social with ?format=jpg&thumbnail=96 parameters in the CSS – which results in the full image being loaded since kbin doesn’t run pictrs.

    The versions in use on reddthat (according to the settings page) are:

    lemmy: 0.19.4-beta.7

    mlmym: 0.0.44





  • DOSBox runs on both Linux and Windows (and probably Mac too?); I was suggesting it since you might be able to replace the dying DOS computers with a modern system and just launch the legacy system as an application under it. (You might be able to do the same with a VM as well, but DOSBox came to mind first and may be easier to setup and distribute.)

    Just a thought. If it’s not useful, feel free to disregard.



  • Personally, I prefer it when people do one of the following:

    • upload the file to catbox.moe and link it here (for clips up to 200MB)
    • upload the file directly to their lemmy instance (if their instance allows it)
    • self-host it on their own web server (with no bullshit crappy JS interface, please – just give me the file; I’ll play it with VLC if it doesn’t work in my browser)

    PeerTube is also a reasonable choice – although I don’t like its UI very much.