e0qdk

joined 11 months ago
[–] [email protected] 2 points 7 hours ago (1 children)

I think you copied my snippet into your comment by mistake rather than whatever you found elsewhere, but regardless, happy I could help!

[–] [email protected] 4 points 8 hours ago* (last edited 8 hours ago) (3 children)

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.

[–] [email protected] 4 points 1 week ago

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.

[–] [email protected] 2 points 1 month ago (1 children)

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.

[–] [email protected] 24 points 1 month ago

I know; they should not be allowed to do that.

[–] [email protected] 53 points 1 month ago (2 children)

Mozilla's non-profit status needs to be revoked.

[–] [email protected] 1 points 1 month ago (3 children)

I'm a huge fan of otome visual novels, but I don't think it's something that many here would appreciate lol

FYI: [email protected]

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

Definitely! I usually name my files starting with YYYY_MM_DD (which makes it easy to sort by the date I started making the file), a number for which entry it was on that day (1,2,3,4... plus sometimes a letter too if I want to keep multiple drafts), and a few words if I have other details I want to remember. e.g. "transcribe_song_by_artist" or things like "cont_YYYY_MM_DD-entry" when I continue working on a piece from a long time I ago. Sometimes I add a title after that too if I wanted to give the piece one.

[–] [email protected] 18 points 1 month ago (2 children)

Deliberately copy snippets of a work you're interested in as a study -- e.g. transcribe it -- and experiment with elements you find interesting (rhythm, chords, synths, effects, whatever) in small test pieces to make sure you understand what's going on. Let the ideas stew for a while and then much later try to use the techniques you learned in a real piece.

That's what I do anyway.

[–] [email protected] 5 points 1 month ago (1 children)

GoG homepage > (your name [drop down menu] when logged in) > "Games" > Click on any game in your collection > Download offline backup game installers

You can download installers for whatever systems the game supports -- usually that's just a Windows .EXE installer (+ several .bin files if the game is large). For games intended to run on Linux w/o WINE, you can select "Linux" from a drop down where it says system and it will give you an .sh file.

[–] [email protected] 7 points 1 month ago* (last edited 1 month ago)

If you want to improve significantly, go read someone else's code and modify it. Try to fix a bug in a program you use, add a feature you want that doesn't exist already, or even just do something simple for the sake of proving to yourself that you can do it -- like compiling it from source and figuring out how to change some small snippet of text in a message box. Even if you don't succeed, if you put in a serious effort attempting it, you will almost certainly learn a lot from trying.

Edit: changed wording to try to be clearer

[–] [email protected] 2 points 1 month ago

Glad I could help you make progress -- I hope you can get it all the way working now. Good luck!

1
anime_irl (reddthat.com)
 

Silver Spoon

view more: next ›