Skip Navigation

Posts
1
Comments
167
Joined
2 yr. ago

  • Giant middle finger from me -- and probably everyone else who uses NoScript -- for trying to enshittify what's left of the good parts of the web.

    Seriously, FUCK THAT.

  • Two quick ideas on possible approaches:

    1. Static page route. You can just write some Javascript to load the image from a file input in HTML, draw it resized to a canvas (based on an input slider or other input element), then save the canvas to an image. (There might even be simpler approaches if I wasn't stupidly tired right now...) This can be done in a single file (HTML with embedded JS -- and CSS if you want to style it a little) that you toss on any web server anywhere (e.g. Apache, nginx, whatever). Should work for JPEG, PNG, and probably WebP -- maybe other regular image types too. Benefit: data never needs to leave your device.
    2. Process on server route. Use Python with a simple web server library (I usually opt for tornado for stuff like this, but flask or cherrypy or similar would probably work). Set up a handler for e.g. an HTTP POST and either pass the image into a library like Pillow to resize it or shell out to ImageMagick as others have suggested. (If you want to do something clever with animated GIFs you could shell out to ffmpeg, but that'd be a fair bit trickier...) The image can be sent back as the response. Be careful about security if you take this route. Probably want some kind of login in front of it, and run it in a VM or some other secure environment -- especially if you're using AI to kludge it together...

    Best of luck and let me know if you need any help. Will probably have some time this weekend if you can't get it on your own. Happy hacking!

  • I would be happy with a FOSS desktop app I can install in linux too

    On the command line, you can do this with ImageMagick (e.g. use the command convert once it's installed).

    With a (desktop) GUI, there's a bunch of programs. GIMP is probably the most well known and has a ton of capabilities but is a bit complex. I use Kolourpaint as a quick-and-dirty "MS Paint"-like program for very simple tasks where I want a GUI.

    If you want a simple web UI I'm sure there is one already, but I don't know one specifically. It wouldn't be too complicated to hack something up if all you need is a quick-and-dirty file input and percentage rescale or something like that. If you don't get a better suggestion and don't know how to make something like that yourself, let me know and I can write an example.

  • People have already covered most of the tools I typically use, but one I haven't seen listed yet that is sometimes convenient is python3 -m http.server which runs a small web server that shares whatever is in the directory you launched it from. I've used that to download files onto my phone before when I didn't have the right USB cables/adapters handy as well as for getting data out of VMs when I didn't want to bother setting up something more complex.

  • I used to use Game Maker waaaay back in the day -- starting from when Mark Overmars had it hosted on his university website (before the .nl site even) and checked out of that community sometime after YoYo Games took over -- which was... 18 years ago!?

    I wrote a substantial amount of C++ code with GLFW and occasionally other libraries for many hobby projects over the years. I lost a lot of enthusiasm when Unity became popular, and at some point after that I realized that games are mostly art projects, and I was more interested in the tech side of it.

    These days I mostly write Python and JavaScript with the occasional bit of C++ (or whatever is needed) for work. Sometimes that work gets visual, but a lot of it is webdev.

    If I ever get back into gamedev, it'll be indie dev to scratch a personal itch -- most likely with my own code rather than an off-the-shelf engine.

    I'm glad you enjoyed my characters. :-)

  • I don't know if I'm the kind of "artist" you're interested in, but I've been making a bunch of silly drawings and posting them lately. Some people seem to enjoy them. I've also written a fair amount of music but I generally don't share that. I used to want to be a game developer and ended up getting good at programming, so-so at music, and basically hated everything I tried to make as far as graphics went.

    Recently though, I've found it incredibly liberating to allow myself to make "bad" art -- to not be too concerned with the quality and just concentrate on having fun trying to express an idea however I can.

    This has mostly taken the form of "MS Paint"-like drawings that I've posted to !sillydrawingrequests@sopuli.xyz (and occasionally other communities). Usually I make them with KolourPaint. Sometimes I also use the GIMP or my own custom software.

    I think my own overall personal favorite, so far, is "Sock Trek". I posted it back in 2023 from kbin (RIP) to Otter's sockpuppetsociety community, I think:

    Probably the best of my recent silly drawings in terms of technique is this one in response to "An expressive window suffering from / enjoying the weather":

    The most popular (based on upvotes) seems to be my response to "E.T. (the alien) eating an unreasonable quantity of free samples at costco":

    I've occasionally made some other things that might be interesting to look at, like this hypnotic color spiral animation (first 90 seconds) from a program I wrote to experiment with graphics techniques a few years ago -- https://files.catbox.moe/8y6d0n.mp4 -- and a number of custom composites from anime screenshots.

  • Just some pron

    Jump
  • I don't have an answer to your original question -- I think it would likely depend on exactly how you set up your network, how you encode your data and decode your output, what qualifies as "original" etc. I'm mostly familiar with RNNs from their relation to IIR filters (in audio) than however they are (or aren't) used in ML these days... but the idea of trying to set something like that up to deliberately spit out names just makes me feel tired thinking about it.

    If you're looking to do this for procgen in gamedev or something, a Markov chain (state machine that follows transitions based on probability) is likely to be a lot easier to reason about.

  • Why are you trying to use an RNN instead of something like a Markov chain for that?

  • I'm under the impression the reputation points are either the combined number of upvotes or that minus downvotes

    IIRC from kbin -- and assuming mbin didn't change things -- boosts counted for two points while upvotes (favorites) are one point and downvotes (reduces) are one point. Boosts are basically retweets, IIRC, and wouldn't be coming from lemmy users -- just from Mastodon, mbin, and other tools that support it.

    Edit: To clarify, I mean downvotes reduce by one point.

  • A while back I noticed that I was recognizing the same voice actor as Fie (from the Trails series of JRPGs) in a lot of other English adaptations of Japanese media -- Morgana from P5, Aoi from Danganronpa, Operator 6O from Nier:Automata, Kyubey from Madoka, Ritsu from K-On, Taiga from Toradora, etc. -- and looked up the voice actor. Cassandra Lee Morris is now 42 and has a kid. Life goes on, and that makes perfect sense, but it did kind of weird me out a bit to realize that someone knows her voice as "Mom".

  • Communities/magazines are similar to subreddits, but unlike subreddits they can be hosted on servers run by unrelated organizations and still interact. Different instances can and do have different ideas about how things should be run but you can still send messages back and forth unless the admins have blocked it.

    The first message is warning you that you're looking at a community that is not local to your instance. You might not be able to see all the posts from that community on your instance. For example, there may be older posts that never got copied over from long before your instance first found out that that community exists.

    If I understand mbin's code correctly, the second message means that no one is subscribed to the community locally, so your instance isn't getting updated by the remote source any more. You need to have at least one local subscriber to get updates. If you're interested in the community, subscribe to it.

    I think this is the code that produces those messages if anyone wants to dig into it further: https://github.com/MbinOrg/mbin/blob/main/templates/magazine/_federated_info.html.twig

    The definitions for the message strings (in English) are here: https://github.com/MbinOrg/mbin/blob/main/translations/messages.en.yaml

  • I don't know, but there's a related thread here: https://slrpnk.net/post/18399280

    No answers there (as of time of writing this comment), but someone did say they asked about it on IRC.

  • It breaks readability of your site without JS. That's particularly bad for the "old" (mlmym) UI which would otherwise be usable for basic interaction without JS entirely, but I find it annoying every time I end up loading a page from lemmy.world directly -- e.g. to check federation.

    That's one of the reasons why I'm on reddthat instead of lemmy.world: old.reddthat.com works without JS.

  • Rent in Gotham has gotten so ridiculous even a superhero like PenguinMan can't afford a full icebox any more -- let alone an apartment! :p

    (What's up with the title though, Merde?)

  • Hmm... I don't know what would be causing this particular issue on the Cloudflare side, but the fact that lemmy.world shows @[email protected] instead of usernames when viewed with JS disabled suggests that you should review your Cloudflare configuration... At a minimum you have their email filter enabled when it shouldn't be; there could be other issues too.

  • The current solution is for bots on participating instances to automatically perform the search + subscribe song-and-dance routine. This is pretty surprising to some people[1], and it requires someone to set it up in addition to the instance itself, but it does work.

    [1]: I tried to translate an explanation into Japanese for some folks experimenting with Mastodon/Lemmy interaction yesterday -- they thought Lemmy had a ton of spam accounts following groups instantly...