WYGIWYG

  • 0 Posts
  • 812 Comments
Joined 9 months ago
cake
Cake day: September 24th, 2024

help-circle
  • rumba@lemmy.ziptoPrivacy@lemmy.mlAI to make us more private?
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    7 hours ago

    This is a dangerous proposition.

    When the dictatorship comes after you, they’re not concerned about the whole of every article that was written about you All they care about are the things they see as incriminating.

    You could literally take a spell check dictionary list, pull three words out of the list at random and feed it into a ollama asking for a story with your name that included the three words as major points in the story.

    Even on a relatively old video card, you could probably crap out three stories a minute. Have it write them in HTML and publish the site map into major search engines on a regular basis.

    EDIT: OK this was too fun not to do it real quick!

    ~ cat generate.py

    import random
    import requests
    import json
    import time
    from datetime import datetime
    
    ollama_url = "http://127.1:11434/api/generate"
    wordlist_file = "words.txt"
    
    with open(wordlist_file, 'r') as file:
        words = [line.strip() for line in file if line.strip()]
    
    selected_words = random.sample(words, 3)
    theme = ", ".join(selected_words)
    
    prompt = f"Write a short, imaginative story about a person named Rumba using these three theme words: {theme}. The first word is their super power, the second word is their kyptonite, the third word is the name of their adversary.  Return only the story as HTML content ready to be saved and viewed in a browser."
    
    response = requests.post(
        ollama_url,
        headers={"Content-Type": "application/json"},
        data=json.dumps({"model": "llama3.2","prompt": prompt})
    )
    
    story_html = ""
    for line in response.iter_lines(decode_unicode=True):
        if line.strip():
            try:
                chunk = json.loads(line)
                story_html += chunk.get("response", "")
            except json.JSONDecodeError as e:
                print(f"JSON decode error: {e}")
    
    
    
    timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
    filename = f"story_{timestamp}.html"
    
    with open(filename, "w", encoding="utf-8") as file:
        file.write(story_html)
    
    print(f"Story saved as {filename}")
    
    
    
    

    ~ cat story_20250630_130846.html

    <!DOCTYPE html>
    <html>
    <head>
    <title>Rumba's Urban Adventure</title>
    <meta charset="UTF-8">
    <style>
    body {font-family: Arial, sans-serif;}
    </style>
    </head>
    <body>
    
    <h1>Rumba's Urban Adventure</h1>
    
    <p>Rumba was a master of <b>slangs</b>, able to effortlessly weave in and out of conversations with ease. Her superpower allowed her to manipulate language itself, bending words to her will. With a flick of her wrist, she could turn a phrase into a spell.</p>
    
    <p>But Rumba's greatest weakness was her love of <b>bungos</b>. The more she indulged in these sweet treats, the more her powers wavered. She would often find herself lost in thought, her mind clouded by the sugary rush of bungos. Her enemies knew this vulnerability all too well.</p>
    
    <p>Enter <b>Carbarn</b>, a villainous mastermind with a personal vendetta against Rumba. Carbarn had spent years studying the art of linguistic manipulation, and he was determined to exploit Rumba's weakness for his own gain. With a wave of his hand, he summoned a cloud of bungos, sending Rumba stumbling.</p>
    
    <p>But Rumba refused to give up. She focused her mind, channeling the power of slangs into a counterattack. The air was filled with words, swirling and eddying as she battled Carbarn's minions. In the end, it was just Rumba and Carbarn face-to-face.</p>
    
    <p>The two enemies clashed in a spectacular display of linguistic fury. Words flew back and forth, each one landing with precision and deadliness. But Rumba had one final trick up her sleeve - a bungo-free zone.</p>
    
    <p>With a burst of creative energy, Rumba created a bubble of pure slangs around herself, shielding her from Carbarn's attacks. The villain let out a defeated sigh as his plan was foiled once again. And Rumba walked away, victorious, with a bag of bungos stashed safely in her pocket.</p>
    
    </body>
    </html>
    
    

    Interesting that it chose female rather than male or gender neutral. Not that I’m complaining, but I expected it to be biased :)


  • Not OP, and I don’t particularly hate PHP but I certainly understand why everyone else does. It had a ton of horrible issues that didn’t get fixed until 8. Just really awful stuff like a23+n7=30 , inconsistent syntax, It’s just had a lot of holes over the years. Post perl, It had the next greatest number of plugins and was reasonably rapid so it took off with the inexperienced crowd, But we ended up with a lot of code written by a lot of inexperienced people and a lot of best practices were eschewed. Most of the big software names that run PHP have had a constant stream of really bad vulnerabilities, more so than a lot of other languages. (WordPress, PHPBB, vbulletin, a million horribly written WordPress plugins)

    Personally, in a pinch I’ll still do something in PHP. It’s so incredibly rapid and gives you marginally decent debug right out of the gate with nothing installed.








  • rumba@lemmy.ziptoSelfhosted@lemmy.worldJellyfin over the internet
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    3 days ago

    unless there are ways to do injection with the known bugs/a new 0day

    TBH, that should be enough right here. That is a JUICY target for hacking.

    You can tell outside that someone is running JF.

    You know what packages are used.

    You have full access to the source.

    You know what endpoints are exposed and available.

    All you need is a whole in ffmpeg, a codec, a scaler, or something in libAV. There are a hundred different projects in there from everyone and their brother. And all somebody with experience needs is one of them to have an exploit in a spot where you can send it a payload through an endpoint that doesn’t require authentication.

    We need something to gatekeep. Some form of firewall knocking, or VPN. We don’t need JF to be as publicly accessible as Netflix; we just need a way for our friends and family to get in, prove they’re who they are, and reject all anonymous traffic.




  • Yeah, it’s still in use. It’s still slow. I think the real take away is that if you’re going to do things that are going to get you in true State trouble tor is not a reasonable solution.

    If you’re not doing something to draw the ire of a government agency, It’s reasonably safe. Other than they fact that you are passing tor data, no one in your house or your ISP or Google has any idea what you’re actually doing.

    I think one of the big problems is that there’s not so many tor nodes that a well-funded agency couldn’t stand up enough nodes to catch your entire conversation.



  • rumba@lemmy.ziptoSelfhosted@lemmy.worldPewDiePie: I'm DONE with Google
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    4 days ago

    I just use down sub to pull the transcript from his video It’s only 60% as annoying.

    He has the normal privacy versus cost worries which are reasonably valid. Then he rambles on, plugs a product that he’s shilling that’s unrelated to the subject matter, says he’s replacing Google search with a local LLM, does some hot takes on alternatives, does some reasonable takes on some alternatives.

    To be honest, this is probably the least helpful de-googling video I’ve seen, other than the fact that he’s a major influencer and is telling everyone they should be doing it.


  • You remember when LastPass had a massive leak and it out of their production source code which demonstrated that their encryption security was horrible? That was a Plex vulnerability. All it takes is a zero day and one of the packages they’re using and you’re a prime target for ransomware.

    You can see from the number of unauthenticated processes in their security backlog that security really has been an afterthought.

    Unless you’re running in a non-privileged container with read only media, I definitely would not put that out on the open network.



  • I recently did a project.

    Self-hosted Ntfy as communication, python bot in a container. If you say remember something It drops it into a text file verbatim. If you say remind me, It loads the text file into an ollama AI RAG and queries it with whatever you asked it to remind you. At the moment it can take a good 5 seconds to get back to you.

    Then I added a grocery list and a separate bot that handles scheduling reminders. Remind me in 20 minutes to feed the dog. Forget this item. Remind me on the 20th of every April that it’s fu’s birthday.

    At the moment, it’s based on keywords and if you don’t specify a keyword it just asks the model directly. I’m thinking about having it send all requests through the model and giving the model a prompt that has a determines what you’re trying to do and translates that to a keyword that the bot can act on.




  • Those cheaper drives scare me.

    What grinds my gears is you can rent enough compute to handle this for $30 a month. That covers redundant internet, staff, fire suppression, generators, air conditioning.

    I want to couple that with a chassis full of sata. Obviously more power and heat but not 16 times that.

    You can get 2u of colocation for about a hundred bucks per month. I’ve been pondering for a few years building out a 4u chassis and doing a friends and fam storage co-op. You could do a 208tb (real 189) z2 with two parity drives for around $4,500 bucks plus 100-130 a month.

    The current pricing is all based on SAS. Even the companies that aren’t using SAS are still charging like it is.