Interests: programming, video games, anime, music composition

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

  • 0 Posts
  • 42 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.







  • How 'bout that! :D

    If the SSD itself is OK, then it was probably trying to boot the SSD still. The blank screen issue might have to do with the graphics drivers then? I remember having a similar blank screen problem with Ubuntu a long time ago where I had to put in “nomodeset” as a parameter in GRUB when booting until I got the right drivers set up.


  • the tablet supports pxe boot. Do you think I could get mileage off of that if I set up a server on my other laptop and connected them via ethernet?

    Maybe. If it’s not too much trouble to set up and you can’t get the USB to work again, might as well try it before throwing in the towel.

    I’m rather confused by the fact that the USB drive worked for you before but doesn’t any more and yet seems to be OK on other systems. Is there anything like “fast boot” enabled in the BIOS maybe? (Try turning that off if so.)

    Also, when you’re trying to boot from the SSD, can you get anything out of GRUB by tapping shift or escape (or maybe other keys) while it’s trying to boot?


  • Do you think that removing the ssd will help?

    It’s a sanity check to help you rule out things like unintentionally booting from the wrong device. Can’t boot from hardware that’s not there! If the USB does work with it removed, then something you believe about how the device boots is false and you can then try to figure out what. A lot of BIOSes will “helpfully” try the next device in the sequence if it can’t successfully boot from the first one – which can be really confusing when debugging.

    Some other thoughts for things to check: does the device confirm that it can actually see the USB drive in some way? Does a USB keyboard work in the port you’re using? If there’s more than one USB port, have you tried a different port? Do your USB drives work in another computer?


  • I rebooted to the installation media to try another install. It was black too.

    I assume you’ve probably already checked, but in case not, is the boot order correct? What happens if you remove the SSD entirely and try to reboot to the USB without it?

    Also, does the SSD boot in another computer?

    If you can’t get anything to boot on the tablet, I’d RMA it.





  • 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
    8
    ·
    5 months 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.)



  • 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