Matty_r

joined 2 years ago
[–] Matty_r@programming.dev 4 points 1 day ago (4 children)

I read that everybody will also get back pay.

[–] Matty_r@programming.dev 15 points 3 days ago* (last edited 3 days ago) (2 children)
[–] Matty_r@programming.dev 22 points 3 days ago (12 children)

I remember hiring games, and reading the manual inside the case on the drive home. Just feels like everything is lacking soul now in the name of convenience.

 

Hey all, just wondering if there are blogs or podcasts out there that cover common design patterns in Rust. I'm a Java dev and have tried a few times to get into Rust, but it feels like I'm solving problems in a way that aren't the most optimal for Rust because I'm still in that Java mindset.

Anyway I'm working on an XMPP client and my current challenge is working to implement some sort of event/listener system where I can trigger functions when I receive certain XMPP message types.

I put together a simple XML parser to deserialize (haven't done serialisation yet) messages which I can then determine the type of message it is. I was thinking maybe an event driven setup might work best here but not sure where to start in a Rust idiomatic way.

The idea would be we receive a Proceed message for TLS negotiation, this would trigger the tls_upgrade function which itself will send messages and need to react to the response as part of the negotiation step. But, again I'm not sure this would even be the best approach.

What I'm doing now is calling the tls_upgrade function which will do its own handling of sending a negotiation message, then looping on read_line on the stream hoping that the next message is the next needed message in the negotiation process.

So some advice on common patterns used in Rust in blog form or even podcasts would be a good learning resource.

Cheers.

[–] Matty_r@programming.dev 4 points 6 days ago

The Linux community can be pretty tough, but also there's a decent amount of people that are very anti-Linux that love to pile on the hate.

Hopefully they can automate a lot of the work out of the way to reduce the friction

[–] Matty_r@programming.dev 18 points 1 week ago

Oh get fucked. I'm not using any website that needs me to scan my face or prove my age, no good can come of this.

[–] Matty_r@programming.dev 13 points 3 weeks ago (3 children)

Could only watch the first 10-15 mins, they've definitely upped the production value. I reckon I'll have to buy some merch from them to support them because this is good shit and want to see more.

[–] Matty_r@programming.dev 8 points 3 weeks ago (1 children)

I installed GrapheneOS on my Pixel 9, and the whole process was amazingly well polished. I was definitely suprised by how well it went. Awesome bit of software.

[–] Matty_r@programming.dev 2 points 3 weeks ago (1 children)

I was going to get some links for you, but conveniently The Register already did that for me:

The Register

[–] Matty_r@programming.dev 16 points 3 weeks ago (3 children)

This isn't the first time they've been breached, there was an incident in 2015 and 2022 as well. From what I can gather its the same info being gathered each time.

There might be others but I can't find th at the moment.

[–] Matty_r@programming.dev 2 points 3 weeks ago

Booting to a black screen with white text, while functional, really detracts from the more professional experiences that can be had elsewhere. I know the theming support is severely lacking in systemd-boot though (which I believe this is)

[–] Matty_r@programming.dev 4 points 3 weeks ago

Its "OK", and with Distrobox available it can make it far more usable. My experience with it has been on Bazzite, and it was great for a while but ended up having issues with os-tree a number of times, when the whole promise of being able to rollback to a last known good install didn't work, I went back to a traditional OS.

[–] Matty_r@programming.dev 1 points 3 weeks ago

No stress, just making sure there wasn't some other reason for it. Cheers

 

Hey all, just hoping to get some advice on any software out there that can help me keep on top of all the VMs i'm running on my Proxmox instances, and potentially my other machines I have too.

I'm looking for a way to help me stay on top of updates and things like when the machine was last online, last rebooted etc etc. There are commercial products for such a thing, and I don't necessarily want to install any sort of Agent on each of the machines (if I can avoid it).

I looked at something like Homarr, but not sure if that's what i'm really after.

What recommendations do all you have?

27
Hardware monitoring (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by Matty_r@programming.dev to c/linux_gaming@lemmy.world
 

Hey all, Just wondering what you use for hardware monitoring if you have an app that can show various speeds and temperatures etc?

Quick edit: what about stress testing as well?

 

Hey all, I know that switchable graphics is a thing in laptops where there is usually a single port. But how would you go about it on desktop? Do you put your monitor in the onboard HDMI or on the dGPU port? There are other issues associated with doing it of course, but I thought it might save on power and noise if I used the iGPU as much as possible.

Only have a nvidia GPU at the moment, but hoping to get an AMD 9070 at some point

12
submitted 2 months ago* (last edited 2 months ago) by Matty_r@programming.dev to c/linux_gaming@lemmy.ml
 

Hey all, just got the 8BitDo Ultimate Wireless 2 and just wondering how I can update the firmware? I had a look around and not sure if the updater works under wine, I had a go but didn't seem to recognise that it was plugged in.

Any advice? I primarily got this to use with my desktop and Steam Deck - maybe the Deck can update the firmware?

Edit: had to use a windows VM, pass-through the USB, then update that way. Gyro and all the buttons are recognised on the Steam Deck.

 

Hey all, just looking for some advice. I'd like to do a WASM application, just generally like a calendar + notes app. I'd like it to work on mobile and desktop through the browser. It'll be served through Actix with Diesel for the backend. For the "frontend" I was thinking egui or leptos.

I'd like to avoid any JavaScript, so thought SSR might be the best approach.

Any thoughts/pitfalls? Should I look at something else for the frontend?

Its a lot of working parts for a calendar + notes app, but this will be a testing ground to see if I can get it all going :S

117
submitted 5 months ago* (last edited 5 months ago) by Matty_r@programming.dev to c/selfhosted@lemmy.world
 

Hey all, i've decided I should probably setup something else to help block nefarious IP addresses. I've been looking into CrowdSec and Fail2Ban but i'm not really sure the best one to use.

My setup is OpnSense -> Nginx Proxy Manager -> Servers. I think I need to setup CrowdSec/Fail2Ban on the Nginx Proxy Manager to filter the access logs, then ideally it would setup the blocks on OpnSense - but i'm not sure that can be done?

Any experience in a setup like this? I've found a few guides but some of them seem fairly outdated.

Edit: thanks everybody for the great info. General consensus seems to be with crowdsec so I'll go down that path and see how it goes.

Edit 2: So after having it up and running for the better part of a day, i'm going to remove it again. For some reason there was a performance impact loading websites, probably because it was waiting for a response from the Crowdsec hub? Either way, after stopping it from running everything is back to normal again. So I might revisit how I do it and probably try Fail2Ban now instead. Thanks everybody

 

Hey all, I've got ZFS pool created and just create a VM drive in that pool like normal, then Jellyfin just has that drive mounted. I think I'm losing the best parts of ZFS through this manner.

How should I set this up properly? Create a media pool or something and have VMs accessing the pool directly?

 

Hey all, got another question. Is Lutris only managed through the desktop mode or is there some sort of plugin you can use to manage it?

I use Lutris on my desktop and know about the option to add a Steam shortcut. Anything else SD specific that needs to be done?

Cheers

 

Hey all, just wondering how the battery life is after you've had it for a while? I'm getting one soon and wondered if it would have a noticeable impact on the battery if it was on a dock for most of the time.

Cheers

13
submitted 11 months ago* (last edited 11 months ago) by Matty_r@programming.dev to c/rust@programming.dev
 

Hi all,

I'm going through and giving a bunch if different GUI frameworks a go and have tried iced, egui and Slint. Iced was by far the easiest to get started and just seemed fairly logical for layouts, Slint was pretty cool - VSCode actually has like a wysiwyg-editor that allows you to drag components around etc.

Unfortunately I'm having issues getting breakpoints to work when using VSCode, Tauri, plus a Rust frontend (yew, dioxus, etc). I think its because what is compiled isn't where my actual code exists? If I use a JavaScript frontend it hits breakpoints fine, but that's not what I'm wanting to use at the moment.

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
      {
        "type": "lldb",
        "request": "launch",
        "name": "Tauri Development Debug",
        "cargo": {
          "args": [
            "build",
            "--manifest-path=./src-tauri/Cargo.toml",
            "--no-default-features"
          ]
        },
        "env": {
            "WEBKIT_DISABLE_COMPOSITING_MODE": "1"
        },
        // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
        "preLaunchTask": "ui:dev"
      },
      {
        "type": "lldb",
        "request": "launch",
        "name": "Tauri Production Debug",
        "cargo": {
          "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
        },
        // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
        "preLaunchTask": "ui:build"
      }
    ]
  }
{
    "version": "2.0.0",
    "tasks": [
      {
        "label": "ui:dev",
        "type": "shell",
        "isBackground": true,
        // change this to your `beforeDevCommand`:
        "command": "trunk",
        "args": ["serve"]
      }
    ]
  }
 

Hi all, I tried creating a Steam shortcut through lutris but my controller isn't detected -I'm trying to play it via Steam Link.

Normal Steam games appear to work fine, and from everything I've seen online it should just work.

view more: next ›