Matty_r

joined 2 years ago
[–] Matty_r@programming.dev 5 points 1 day ago

No idea what this is all about, but received is spelt incorrectly.

[–] Matty_r@programming.dev 67 points 1 day ago (1 children)

Nah just shove it through in random patterns like a hundred times. It works well enough.

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

I tried to get something on iPhone once, added credit to my account using one of those vouchers you can get from the store. I was able to add the credit, but it refused to allow me to purchase anything without adding payment details.

[–] Matty_r@programming.dev 7 points 2 days ago

Get a Steam Deck, and you can press the power button whenever you want to stop playing and it puts the system on standby. Press it again and it powers on in a couple seconds right where you left it.

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

Are you talking about squatting hurts? No exercise should hurt if you don't already have an injury, so just avoid it for now.

But to be fair, if you've never done squats before it can feel super awkward. You'll need to get a feel for the balance and aligning your upper body.

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

Oh awesome, it'll be fun to learn them all.

Buff Dudes, and Jeff Nippard are some of my favourite channels. I'd recommend checking out the buff dudes for some.of their beginner programs to see what they've put together as well.

Barbell Squat

Nordic Ham Curls

Walking Lunges

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

Swap leg press for squats and also add walking lunges, and swap lying leg curls for Nordic ham curl.

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

Definitely waiting for the v1.0 release of this. I've tried it a few times and its too janky at the moment, especially with path finding in your buildings. Hopefully they can keep going and actually make it to a 1.0 release.

[–] Matty_r@programming.dev 20 points 1 week ago (1 children)

So you're saying we can film them but not record them because its different?

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

Because SEO is a game, and those with the mist shit that matches what Google wants is rewarded with a higher ranking.

 

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

113
submitted 2 weeks ago* (last edited 2 weeks 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

 

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.

 

Hey all,

Just thought I'd share my kinda unattended installer. I know there are a number of scripts out there, but thought others might be interested in this style of installer.

Boot into the official Arch Linux ISO then download the script.

There is an installation config file where you choose which bundles you want installed, and things like the root drive and username etc.

The install will ask for the root password and your user password and that should be it. The rest of the script will go through and automatically install all your selected packages (plus further config if needed), do the regional stuff for timezones etc

I haven't updated the script in a while and it hasn't been tested by many others so your mileage may vary. But here it is, warts and all.

 

Hey all, not sure how I managed this, but over the years I somehow managed to configure different paths which are listed in kf5-config. The for instance the cache path should be /home/matt/.cache, but kf5-config lists it in /mnt/data/matt/home/.cache. I'm sure this was intentional at one point but now i'm trying to fix up my partitions.

So my question is - how do I change the paths listed in kf5-config to where it should be on the root partition (/home/matt/...)?. I'll move the actual data from where it is onto the root partition, I just need to know how to change that paths are configured in kf5-config.

Cheers

kf5-config paths:

cache:
/mnt/data/matt/home/.cache/
config:
/mnt/data/matt/home/.config/:/mnt/data/matt/home/.config/kdedefaults/:/etc/xdg/
data:
/mnt/data/matt/home/.local/share/:/usr/share/:/usr/local/share/
emoticons:
/mnt/data/matt/home/.local/share/emoticons/:/usr/share/emoticons/
exe:
/usr/lib/libexec/:/usr/bin/
html:
/mnt/data/matt/home/.local/share/doc/HTML/:/usr/share/doc/HTML/

etc.. etc..

Edit: I just wanted to add that these paths are different from what is listed in qtpaths:

$ qtpaths --paths CacheLocation
/home/matt/.cache/<APPNAME>
$ qtpaths --paths ConfigLocation
/home/matt/.config:/home/matt/.config/kdedefaults:/etc/xdg

Solved:

Turns out that it expands symlinked directories.

 

Hey all, I have a Samsung S22 and got an update this morning which has forced on the navigation bar at the bottom of the screen. Disabling the new circle to search didn't make a difference.

I heard it can be disabled through GoodLock but I'm not installing that. Maybe it can be disabled via adb or something?

Cheers

 

Hey all I'm looking for recommendations for a video doorbell that doesn't need an internet connection.

Preferably something that is WiFi and would work with Frigate?

 

Hey all,

I'm going to be moving on to my next project and have been thinking about doing an email client. I like Thunderbird, but the search is terrible, and I also want to tackle something that needs pretty high performance for processing emails etc.

Any suggestions or considerations I should think about?

I'll focus on just getting SMTP going in a CLI then I'll introduce some sort of frontend using Qt.

view more: next ›