Interests: programming, video games, anime, music composition

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

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

help-circle

  • I’m not sure what the best way to make using it convenient is, but you could paste something like this into the JS console to rewrite all the r.php links:

    (function() {
      let links = [...document.getElementsByTagName("a")];
      links.forEach(link => {
        if(link.href.startsWith("https://skimfeed.com/r.php"))
        {
          let url = new URL(link.href);
          let clean_link = url.searchParams.get("u");
          link.href = clean_link;
        }
      });
    })();
    

    The basic idea of my JS snippet is that it looks for all the anchor tags (i.e. <a href='...'>), finds the ones that link to r.php, extracts the u query parameter which appears to contain the actual URL of interest, and then replaces the href attribute of the anchor (i.e. the part of the HTML that contains the destination URL) with the clean URL. That entire snippet of logic is wrapped in an anonymous function which is then immediately called so that you can just paste the snippet in more or less wherever it makes sense to trigger the logic.

    Way back in the day I would’ve stuck snippets like that into GreaseMonkey scripts, but I haven’t messed with that stuff in a long time and I’m not sure which extensions are still good to use for doing that kind of thing.

    Apologies in advance if my snippet is not perfectly correct; I’m not familiar with that site and wrote this off the cuff when I saw your post. Hopefully it’s helpful though.


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


  • Best way to fix that is to join in and post something!

    Otome isn’t my personal interest (my sexuality goes the other way), so I don’t have much to say myself, but I’ve seen Elevator7009 trying to build a community first on kbin.social (before that site died) and then on kbin.run (before it died) and now there and I’d like to see her efforts succeed.

    If you’re not interested, feel free to ignore it, but if you’d like a place on Lemmy for discussion, there are at least a few people there who’ve been trying their damnedest to get something going.






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





  • It was marked sensitive on danbooru (which I’m not quite sure how to interpret) and there’s a panty peak. I thought it was probably fine, but I didn’t really want to get into arguments on my day off or get the instance in trouble if people were offended, so tagged it pre-emptively. (The sidebar recommends tagging if unsure.)


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