Interests: programming, video games, anime, music composition

I used to be on kbin as e0qdk@kbin.social before it broke down.

  • 6 Posts
  • 33 Comments
Joined 11 months ago
cake
Cake day: November 27th, 2023

help-circle
  • You can do this by configuring an HTTP server (e.g. Apache) to listen on port 80 and/or 443 (HTTP and HTTPS standard ports, respectively) and select which site to serve based on the name of the site requested. Apache documentation for this feature is here: https://httpd.apache.org/docs/2.4/vhosts/name-based.html

    Note the sample config snippet showing how to set up a simple static site serving both www.example.com and other.example.com using ServerName in a VirtualHost to select between them.

    You can also have Apache match a pattern in the URL and reverse proxy to another HTTP server -- that can just be another program on the same computer listening on a different port, or could be on another computer entirely. See the simple reverse proxy config example on this page for a starting point: https://httpd.apache.org/docs/2.4/howto/reverse_proxy.html (Note also that you probably don't need anything further down that page -- e.g. the load balancer and failover stuff is not likely to be useful to you for a small personal project.)

    Other popular HTTP servers can do this too; I just happen to have done it with Apache before.


  • He's not wrong; making nicely styled anything in UI is a PITA.

    with a simple menu like in Nier Automata

    If you go and break down all the little things it does, it's actually not that simple. It's not quite as in-your-face as P5's menus were, but there's a bunch of little transition effects -- things like the triangle dissolve when opening it and a particular typewriter text effect that types out characters with deliberately wrong letters before correcting itself. Areas changing color like progress bars -- which can be interrupted and which reverse themselves nicely if the user changes tabs so that you get a transition effect without delaying the user much. An overall styling that's reminiscent of old LCD screens -- which needs to work cohesively with the rest of the game design. Subtle changes to the music when the menu is open. Special animation sequences (e.g. in ending E). Etc, etc. Individually none of them is all that hard, but putting it all together was probably still a PITA for whoever wrote it.



  • I set up a couple profiles with different colored backgrounds so that I can easily visually distinguish terminal windows when I have several open at once. For example, I usually switch the profile to one with a red background when I ssh into a server to help avoid confusion about which system I'm running commands on. I also cranked up the font size a bit in all profiles to make it easier for me to read.





  • I was getting it a few days ago, but I'm pretty sure you weren't on 0.19.4-rc.11 yet the last time I saw it. Testing for a few minutes just now I haven't managed to reproduce it. Will let you know if I see the issue again. (Hopefully it's just good now!) Thanks!

    I did find a small issue while checking though -- on mlmym's settings page, the logo in the top left is showing up with src %3cnil%3e instead of a valid path.



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












  • I quit YouTube along with reddit last summer. I don't use alternate interfaces. I haven't found a replacement for most of the niche content I liked to watch there -- and yes, that sucks.

    I've mostly been watching offline content (like DVDs and things I downloaded years ago) when I want video entertainment, and doing other stuff with my free time.

    You might think that'd mean more time playing games given my interests, but I've found I'm a lot less enthusiastic about playing through games if I can't watch an LP or two of it afterwards. So, I'm actually playing (and also buying) less of those than I used to too.


  • Glad to know it's not just me. I think there might be more going on than just a caching issue though since when I look at the URLs requested in my browser's dev tools it seems like it's actually requesting the wrong data from the API. It looks like it's always requesting https://reddthat.com/api/v3/post/list?limit=20&sort=New&type_=Subscribed twice per click for me -- with the requests raced -- regardless of whether I click on Local or All or try to change the sort order. (Subscribed + New sort order is my default view; you might get something different if you have a different default view or are testing it logged out.)