Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CH
Posts
28
Comments
248
Joined
2 yr. ago
Programming @programming.dev
chevy9294 @monero.town

When LLM gives you "{ }"

Today I found the weirdest bug in my life. I was making a chatbot for Signal using Ollama in Rust. I finished a basic demo and tried it. For any message I would get { }, {}, {} or { } .

Do you know how hard is to debug something like this???

What was the problem? Not my program. Ollama bug combined with ollama-rs bug (rust library for ollama). And both bugs are not even bugs if you don't combine them.

Ollama released a new feature yesterday called "Structured outputs". Basically you can specify a format of the output using format field in json request. Format field already existes for something but I don't know for what. In ollama-rs you can specify the format to json or leave it empty. By default its empty. Where is the bug?

There is a difference betwen "format": null and not specifying the format at all. Ollama-rs will set format to null if you dont specify it. Ollama will interpret null as a valid format. What happens? LLM WILL ACTUALLY GIVE YOU FORMAT OF OUTPUT AS

Linux @lemmy.ml
chevy9294 @monero.town

Linux for my grandparents

Around a year ago my grandparents asked me to update their computers to Windows 10. One from 7 and one from 8.1. I couldn't update from 7 to 10 so I just reinstalled directly to 10. The license was lost but grandfather didn't mind that "activate windows". And for office I installed libreoffice (or onlyoffice, I dont remember). On 7 he was using Chrome so I installed him Brave, which is similar enough and has an adblocker. He never complained about anything... until now.

Both grantfather and grandmother on the same day they got some notification (probably fullscreen, otherwise they wouldn't even told me) about end of 10 and that they should upgrade. So I told them Windows 10 support is ending in about a year. I gave them 3 options:

  1. Buy a new computer for windows 11
  2. Use windows 10 without updates - more likely to be hacked.
  3. Try linux. As soon as I said "Linux" my grandfatger said: "Linux, thats something... lightweight... right?". I'm a gentoo user and I forced my brother and s
  • They are stored behind luks and I think they are readable only by root. But bootkit can probably only infect UEFI from Linux that is running on that machine. And to interact to UEFI you probably have to be root, right?

    I'll look into more options, either store keys on a seperate luks usb key or on a hardware securety key like Nitrokey. For sbctl there is already a roadmap feature for hardware security keys, I hope this comes soon :)

  • Well... if you have your own keys (like I do) you have to store them somewhere. That somewhere is probably somewhere on a computer where they are used so you can update the kernel. If you have private keys, you can probably bypass secure boot.

    Is there a way to have private keys stored on a nitrokey that has to be plugged in for every kernel update?

  • Android @programming.dev
    chevy9294 @monero.town

    Pixel 7a battery issue

    I have a batterry problem for around a week now. Battery seems better. Its draining a little slower than normaly. But between 30 and 70% (each time its different) in a few seconds it goes to 20 and 3 and 0 and shutdown... I found only 1 post about this and there are no good answers and its on Reddit: https://r.darrennathanael.com/r/pixel_phones/comments/1f3qdh8/pixel_7a_battery_issue/

    Im running GrapheneOS so warranty is probably voided.

    Rust @programming.dev
    chevy9294 @monero.town

    XHTML 1.0 Transitional parser?

    So I'm trying to parse school's website for some info. I'm trying to get some values using xpath. So I found a html 5 parser and it can't properly parse the first line. Then I figure you it's actually XHTML and not HTML. After quick Google search I found out XHTML can be properly parsed using any XML parser and so I found one and... It can't parse the first line. So I ask LLama3.1 (like a real programmer) why I can't parse the first line with any parser. It explained so nicely that I did not destroy my keyboard when I was told that this document is "XHTML 1.0 Transitional" and it's a mix of HTML 4 and XHTML and can't be parsed with HTML nor XML parser. I hate the guy that invented that so much...

    So I can't find a crate to parse XHTML 1.0 transitional? Or a crate to convert xhtml to something else? Any advice?

    Rust @programming.dev
    chevy9294 @monero.town

    What watches can run Rust?

    Maybe a little weird question but do you maybe know a smart watch that can run rust? I got running Egui on my Galaxy Watch 4 with WearOS and I'm thinking if any other watch (other than Galaxy and Pixel) can do that?

    Privacy @lemmy.ml
    chevy9294 @monero.town

    My Privacy Setup

    Hi! 2 and 4 months ago @Hellfire103 and @Charger8232 made a post about their privacy setup. So I though I would also share mine.

    Remember these rules:

    • Be respectful! Some people are early on in their privacy journey, or have a lax threat model. Just because it doesn’t align with yours, or uses some anti-privacy software, doesn’t mean you can downvote them! Help them improve by giving suggestions on alternatives.
    • Don’t promote proprietary software! Proprietary software, no matter how good it may seem, is against the community rules, and generally frowned upon. If you aren’t sure, you can always ask! This is a place to learn. Don’t downvote people just because they don’t know!

    -** Don’t focus solely on me!** I want to mention that this thread is not designed to pick apart only my setup. The point is to contribute your own and help others. That doesn’t mean you can’t still give

    Privacy @lemmy.ml
    chevy9294 @monero.town

    Use Galaxy Watch without Google?

    I have Galaxy Watch 4 and Pixel with GrapheneOS. Currently I have second profile with galaxy wearable and google play services for connecting to the watch. Before I've installed graphene I was using my watch as any other person, for notifications, sports, etc. Now I use it only for checking what time is it and developing apps. I can see my sports activity only for a week back, because samsung health only works on main profile.

    Is there a way for me to use my watch on main profile without google and samsung apps? Maybe with some alternative app? Or should I sold my watch and buy a new one? I've heard good things about garmin and polaris? I would love option to develop my own apps on them.

    Privacy @lemmy.ml
    chevy9294 @monero.town

    I found a worm on my USB

    This is probably not the right community but I haven't found a better one.

    So I watched a video from Seytonic where he mentiond that some malware creates a windows link with the name of the usb on a usb. So I checked my usb because I remembered that I had to click 2 times on my usb to opened it. I found a link that contained cmd.exe and a name of a file next to it. Upload to the virustotal showed Raspberry Roblin worm.

    I use Linux but my familly uses windows so I will have to go through all familly computers and remove the worm. Where can I find info how to remove this specific worm - Raspberry Roblin? On google I found a description about how the worm works but not specific files it creates and how to remove it.

    The first page that shows up is microsoft.com and it says that windows defender detects the worm, but clearly it doesnt.

    Edit: The worm was on one computer and it did not have windows defender installed. Seems like malware removed it and also disabled automatic updates. I

    Android @lemmy.world
    chevy9294 @monero.town

    What to do with old phones?

    I found a few old phones from my family. II cleaned them, installed LineageOS and rooted most of them. On one I installed postmarketOS, one is still stock Android and one is lets say bricked (after installing lineagesos it stay on boot logo for ever, before that I installed lineageos and nethunter on it). One one disk encryption doesnt work for some reason.

    Phones (all samsung galaxy):

    • S4
    • A5
    • A5 (bricked)
    • A5 (postmarketOS)
    • J3
    • J4+ (no encryption)
    • A31 (stock)

    What can I do with them? Something like Monero node or Tor relay, but I'm already running that on old pc. For something that needs speed I have rpis (like a website). Camera security system? Tracking device?

    Is it possible to run (and autorun) cli apps and/or services that can access interent, bluetooth, gps, sensors, camera, files, etc. just like on linux? I'm a programmer and I don't like making normal android apps for a simple project.

    Programming @programming.dev
    chevy9294 @monero.town

    PQC key establishment and authentication

    Hi, I'm working on a PQC key establishment and authentication protocol. Currently it works like this:

    1. Client and server each generate ECDSA and Dilithium identity keys and share them between each other, with usb for example.
    2. Client sends to the server single-use ECDH public key, single-use Kyber public key, timestamp, ECDSA and Dilithium signature of everything before it.
    3. Server verifies the message using clients identity keys, generates 2 secrets, one from ECDH and one from Kyber and then it uses blake3 kdf to derive a key from both secrets. Then it sends response with single-use ECDH public key, Kyber ciphertext, timestamp, ECDSA and Dilithium signature of everything before it.
    4. Client verifies the message using servers identity keys, and generates 2 secrets, one from ECDH and one from Kyber ciphertext and then it uses blake3 kdf to derive a key from both secrets.

    Kyber: kyber1024 ECDH: secp256k1 ECDSA: secp256k1

    I will use the key for XChaCha20-blake3 aead. I don't kno

    Linux @lemmy.ml
    chevy9294 @monero.town

    Hardening Arch Linux

    Hi, I'm in a process of making fast, (extrenely) secure, and modern laptop. Currently I have Arch Linux with encrypted root partition (unlocked with Nitrokey or long password), secure boot, linux-hardened, firewalld, etc.

    I'm running linux-hardened with custom config. I enabled AMD SME, kernel lockdown, added some xanmod patch for more specific cpus, and disabled some unnedded drivers (only those that I'm 100% sure I don't need - Intel, NVidia, Microsoft, Google, Amazon, Virtio). Currently it takes ~50 minutes to recompile the kernel. Are there any tutorials what drivers to disable to speed up this process? After doing that I will try to compile it with -O3 and LTO. Do you know any patches for performance?

    I'm planning to enable encrypted swap, install ClaimAV and install flatpak versions for every non open-source app I have.

    I also want to have SELinux. Does anyone know where can I learn it? I had it on Fedora and it was not fun using it.

    What are other ways I can make my laptop m

    Linux @lemmy.ml
    chevy9294 @monero.town

    PC constantly crashes, won't even boot.

    I have Arch Linux on Ryzen 7 3700X, 32gb of ram, and some Gigabyte motherboard with updated bios.

    Few weeks ago my computer would startet crashing (screen would freeze) soon after login or even at boot about 50% of the time. I was lazy so when it crashed I just forced rebooted it (the power button). Then crashes became more common untill my system wouldn't even boot.

    So I reinstalled and I had some trouble generating dracut bundles, because some zstd copression was corrupted. After booting freshly installed os it would crash again right before the login should show up. Switching kernel (from hardened to zen) fixed the problem. Then I installed basic apps (browsers, office, crypto stuff, steam, etc.) I rebooted and when I typed the password for my encrypted root it was wrong (Im sure I typed it correctly).

    I have no idea wtf went wrong with my system. I have almost the same everthing on my laptop (hardened, btrfs, luks encrytped drives, systemd boot, etc.) and it works great. And I n

    Monero @monero.town
    chevy9294 @monero.town

    Need help with understanding how XMR (sub)addresses work

    Hi, I've just paid for Mullvad VPN (personally recommend) with XMR. That looked like this:

    1. I copied the address (one time subaddress) and the amount, checked if everything matched (and it did) and pressed send.
    2. On my Ledger I checked the fee, accepted, checked the amount, accepted, checked the address... REJECTED, because the address was different.
    3. Repeated the step above probably 2 times, installed ClaimAV and started full scan of my machine for malware.
    4. Because the Monero Wallet GUI was freshly installed from official Arch Linux repo and it showed the right address I decided to still accept the transaction. Worst case I lose 10 €.
    5. While the transaction was pending I tried to prove payment using LocalMonero's block explorer and I got an error. So I basically got hacked and lost 10 € ...
    6. Checked Mullvad VPN app and... it was paid???

    Can someone explain me what just happened? My ledger showed a different address than what I copied, but the transaction still went to t

    Monero @monero.town
    chevy9294 @monero.town

    What do you think about OXEM?

    OXEN is a fork of Monero that uses proof of stake instead of proof of work and supports instant transactions. Lokinet (onion router, like tor) and Session (messanger) are build on top of it. I just discovered it a week ago and I'm suprised that I hadn't heard of it before. In my opinion It's a better Monero (except that Monero has higher and more stable price)? What do you think about OXEM? Is it better or not, and why?

    Android @lemmy.world
    chevy9294 @monero.town

    NFC payments on GrapheneOS

    Hi, I want to pay with online prepaid visa in person. I could add it to Google Pay, but Google Pay doesn't support NFC payments on GrapheneOS. Do you know any other app that lrts you do that?

    cryptocurrency @lemmy.ml
    chevy9294 @monero.town

    Trade with API no KYC

    Hi, I made trading bot using binance api. Is there any platform that has api, but doesnt require kyc?

    Selfhosted @lemmy.world
    chevy9294 @monero.town

    Simple but modern website

    I want to make my own website, like a blog where I talk about tech and tutorials and such. Something like https://kerkour.com and https://lukesmith.xyz. Any ideas for simple but modern design?

    Privacy @lemmy.ml
    chevy9294 @monero.town

    Block AI bots from your website

    Hi, I'm building a personal website and I don't want it to be used to train AI. In my robots.txt file I blocked:

    • ChatGPT-User
    • GPTBot
    • Google-Extended
    • FacebookBot

    What bots should I also add? Are there any other ways to block AI bots?

    IMPORTANT: I don't want to block search engine crawlers, only bots that are used to train AI.

    Privacy @lemmy.ml
    chevy9294 @monero.town

    Where to buy domain for your personal website?

    Hi, I'm thinking of building a personal website about tech, privacy, open source, etc. Any recommendations about where can I buy domain? .com is taken, but everything else is not. Shuld I take .tech (few dolars more expensive) or something more basic?

    Privacy @lemmy.ml
    chevy9294 @monero.town

    Pi-Hole vs AdGuard vs NextDNS

    I use Pi-Hole and works great. I've heard about AdGuard and seems the same thing as PiHole, but you have to install an app/extension. Everyone in this community recommend NextDNS. Whats the difference between them?