Interests: programming, video games, anime, music composition

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

  • 0 Posts
  • 75 Comments
Joined 2 years ago
cake
Cake day: November 27th, 2023

help-circle

  • There’s something else going on there besides base64 encoding of the URL – possibly they have some binary tracking data or other crap that only makes sense to the creator of the link.

    It’s not hard to write a small Python script that gets what you want out of a URL like that though. Here’s one that works with your sample link:

    #!/usr/bin/env python3
    
    import base64
    import binascii
    import itertools
    import string
    import sys
    
    input_url = sys.argv[1]
    parts = input_url.split("/")
      
    for chunk in itertools.accumulate(reversed(parts), lambda b,a: "/".join([a,b])):
      try:
        text = base64.b64decode(chunk).decode("ascii", errors="ignore")
        clean = "".join(itertools.takewhile(lambda x: x in string.printable, text))
        print(clean)
      except binascii.Error:
        continue
    

    Save that to a file like decode.py and then you can you run it on the command line like python3 ./decode.py 'YOUR-LINK-HERE'

    e.g.

    $ python3 ./decode.py 'https://link.sfchronicle.com/external/41488169.38548/aHR0cHM6Ly93d3cuaG90ZG9nYmlsbHMuY29tL2hhbWJ1cmdlci1tb2xkcy9idXJnZXItZG9nLW1vbGQ_c2lkPTY4MTNkMTljYzM0ZWJjZTE4NDA1ZGVjYSZzcz1QJnN0X3JpZD1udWxsJnV0bV9zb3VyY2U9bmV3c2xldHRlciZ1dG1fbWVkaXVtPWVtYWlsJnV0bV90ZXJtPWJyaWVmaW5nJnV0bV9jYW1wYWlnbj1zZmNfYml0ZWN1cmlvdXM/6813d19cc34ebce18405decaB7ef84e41'
    https://www.hotdogbills.com/hamburger-molds/burger-dog-mold
    

    This script works by spitting the URL at ‘/’ characters and then recombining the parts (right-to-left) and checking if that chunk of text can be base64 decoded successfully. If it does, it then takes any printable ASCII characters at the start of the string and outputs it (to clean up the garbage characters at the end). If there’s more than one possible valid interpretation as base64 it will print them all as it finds them.




  • If it actually worked reliably enough, it would be like having a dedicated, knowledgeable, and infinitely patient tutor that you can ask questions to and interactively explore a subject with who can adapt their explanations specifically to your way of thinking. i.e. it would understand not just the subject matter but also you. That would help facilitate knowledge transfer and could reduce the tedium of trying to make sense of something that’s not explained well enough for you to understand (as written) with your current background knowledge but which you are capable of understanding.




  • I had similar problems and couldn’t figure out how to get out of that cycle before it ended up with me having panic attacks, and anxiety/depression bad enough to be put on SSRIs. If you can’t relax and feel tense all the time, that is a serious issue! Nip it in the bud if you can.

    What I eventually figured out is that I needed separation between my work and my personal time – and yes, those kinds of personal projects are still work even if you’re just doing them for yourself.

    Decide how long you want to dedicate to working – then hold yourself to that. Like, actually write down the start and end times you worked so that you can prove to yourself that you really put in the effort. I use plain text files on my computer for this; do what works for you. After you’ve put in the time you committed to, you are OFF THE CLOCK. Stop working – even if you have to force yourself – and go do something else. Without guilt.


  • Nginx is running in Docker

    Are you launching the container with the correct ports exposed? You generally cannot make connections into a container from the outside unless you explicitly tell Docker that you want it to allow that to happen… i.e. assuming you want a simple one-to-one mapping for HTTP and HTTPS standard ports are you passing something like -p 80:80 -p 443:443 to docker run on the command line, adding the appropriate ports in your compose file, or doing something similar with another tool for bringing the container up?



  • Fuck no, I don’t agree with that at all. People mature at different rates, and the main reason IMO not to show sexual content to very little kids is that they literally don’t have the capability to understand it having not yet hit puberty. If you’re old enough to be interested in sexuality, you’re old enough that you’re going to start trying to explore it… and it’s a hell of a lot safer to explore it through media than through doing things IRL. I don’t think there’s anything particularly harmful about a ~13+ year old searching for boobs or dicks if they’re interested and want to see them; I did it myself. I may have gotten a few weird ideas about sex from seeing porn online when I was a teenager – that took me a couple years to sort through while growing up – but I never got an STD or got anyone pregnant from looking at porn!

    I reached the point of being interested in sexuality around 9th grade – and I seemed to be on the late side compared to my peers based on things I heard from them in 7th and 8th grade. As far as I can recall, the first time I encountered something explicitly sexual was in a novel I found at a library when I was in 6th grade; I was more traumatized by the taboo around sexuality than anything in the book itself (which was a fairly tame sexual fantasy that the main character had involving comparing a girl’s breasts to fruit of various sizes, IIRC). I was not ready for that content yet, and that led to me having a formative conversation with my dad about the subject – i.e. it was ultimately a positive experience for me growing up, even though I was briefly uncomfortable for a bit while I was going through it. When I was a teenager, I was ready to deal with it and sought it out on my own. Speaking as someone who grew up in the goatse/lemonparty/tubgirl era of the internet, if I ran into something that was too extreme, I backed off and said “yeah, that ain’t for me!” I don’t think I would’ve turned out better if I’d been locked out of it.



    • Steam Deck w/ official Dock
    • IOGEAR GCS1104 (4-port DVI KVM)
    • generic HDMI-to-DVI cable
    • Wireless (RF) headphones – compatible with Sony TMR-RF912R transmitter; not sure on specific headphone model (it’s the one that came with the transmitter, but I can’t read the model number on the headphones any more since it’s too old)
    • a generic 1920x1080 monitor with DVI input + keyboard + mouse
    • XBox360 controller w/ official wireless PC adapter (USB)

    I got the KVM used in good condition. It’s an older model – but I went with it anyway since it was a drop-in replacement for my 2-port setup and getting it used was much cheaper than their newer models. The newer ones support higher resolution/frame rates though, I think; I know this one won’t do frame rates above 60FPS properly even though my monitor is capable of it when plugged in directly.

    There’s a few quirks with this setup. Probably most annoying is that moving the mouse typically causes computers to wake from sleep (like pressing a key on a keyboard normally does…); I think there’s a way to mask that event off with udev rules but, eh, even a decade or so after getting the original 2-port KVM I haven’t cared enough to actually bother working it out, so I guess it’s not that big of an issue to me… :p







  • lack of stable backing

    The US recently passed legislation regarding stablecoins. If I understand correctly, they now need to be backed 1:1 by the US dollar or a “low-risk asset”. The latter seems dubious to me, but I’m curious to see what will come of 1:1 dollar pegged coins if the US government is throwing its weight around to support the concept…

    I can’t believe I’m seriously entertaining the idea of using cryptocurrency, but here we are in 2025… -.-