bravemonkey

joined 2 years ago
[–] bravemonkey@lemmy.ca 11 points 6 days ago (1 children)

What is your alternative non-folder solution?

[–] bravemonkey@lemmy.ca 2 points 6 days ago* (last edited 6 days ago)

I've been using Tumbleweed for almost a year now, and have had a great experience! Zypper is fine; cnf is a helpful utility that things like Debian / Fedora could certainly use (I know they have ways of searching too, but cnf is so simple).

OPI has everything I've needed for 3rd party apps, so no complaints there.

When I first installed Tumbleweed it was on an HP Elitebook, which gave me some grief with audio before I figured out a workaround, but after installing it on an X1 Carbon I can't imagine using anything else for the foreseeable future. (It's still installed on the Elitebook, I just never power it on any longer).

All this to say, your experience hasn't been great for you but for me it's been fantastic. I run Debian on the self-hosted servers I run, but on my main machine Tumbleweed has been fantastic for me. I don't even use or like YaST :D

I find your comment is a bit off-putting as well - how would you respond if I said 'NEVER USE ARCH'? My take is - tell people about your experiences, and let them decide for themselves. Why are you still using Tumbleweed if you're 'so against it'?

[–] bravemonkey@lemmy.ca 6 points 1 month ago (1 children)

It would help saying what province you're in since selection will vary wildly.

If you can, check out Ungava gin. It's a good price and made in Quebec.

[–] bravemonkey@lemmy.ca 11 points 3 months ago (1 children)

directly addressing Canada’s growing driver shortage

There’s not a driver shortage, there’s a livable wage shortage.

[–] bravemonkey@lemmy.ca 12 points 3 months ago (3 children)

Routers sometimes have security issues that need to be patched. You should keep an eye out for bulletins and make sure your endpoints have host-based security where they can (antivirus and firewalls).

This is a big fuck you from netgear though -why would you purchase another netgear router when they could just decide not to support the next model and force you to upgrade again for more money?

[–] bravemonkey@lemmy.ca 5 points 6 months ago (2 children)

Why would these be good options in Canada?

[–] bravemonkey@lemmy.ca 3 points 6 months ago (1 children)

Only the first Cube is worth watching, but it's very good!

[–] bravemonkey@lemmy.ca 23 points 7 months ago (1 children)

That's a bad take, there will always be people who will say we can never afford it. The real question should be 'can we afford not to' as people live and die in miserable conditions.

[–] bravemonkey@lemmy.ca 2 points 7 months ago* (last edited 7 months ago)

Having yt-dlp save the videos to S3 will just add to your costs - what benefit will it provide to your users to get the file from S3 compared to Youtube?

While 'cloud computing' is managing servers in the cloud like EC2, they're still just servers like you'd run in your lab. To do it the 'cloud way', use the cloud services instead.

My suggestion would be a price checker - create a webpage maybe with S3 or Lightsail where users can enter in a URL for a product, an email address and a scrape recurrence time like 24hours, then have Lambda scrape the page & email the price to the user on that schedule. Use DynamoDB (or a relational DB like Postgresql) to save the results, schedule, etc.

Try not to use EC2 at all if possible. Or instead of EC2, use EKS if scraping with Lambda is too difficult.

The most important thing is getting the security right, from your access to AWS to ensuring your database isn't easily downloaded by just anyone.

[–] bravemonkey@lemmy.ca 3 points 8 months ago

Substance was probably my favourite. I haven’t heard of Bramayugam, looking forward to checking it out!

[–] bravemonkey@lemmy.ca 2 points 8 months ago

Congrats on the journey! This is something I've been enjoying lately, but it sounds like it might be too sweet. I'm still trying to find the balance that works for me.

2 oz. Canadian Whisky 1 oz. Dry orange liqueur (I use Pierre Ferrand) 0.25 oz maraschino liqueur 1 oz. lemon juice

[–] bravemonkey@lemmy.ca 2 points 9 months ago (1 children)

Nice job trying to avoid the burden of proof.

1
submitted 11 months ago* (last edited 11 months ago) by bravemonkey@lemmy.ca to c/learnpython@lemmy.ml
 

Hello,

I've come across an unexpected issue that may be hard to diagnose due to required hardware, but here goes.

I have a Raspberry Pi connected to an LCD display that I'm testing turning the screen on and off (not worrying about displaying text, I've previously written a program that uses a DHT22 sensor to display the temperature & humidity and external weather conditions using the Pirate Weather API).

While trying to write a simple program just to turn the display on or off, I run into an issue.

Here's the code:

import board
import datetime
# I2C driver from:
# https://gist.github.com/vay3t/8b0577acfdb27a78101ed16dd78ecba1
import I2C_LCD_driver
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("state", help="'on' to turn on the screen, 'off' to turn off",type=str)
args = parser.parse_args()

mylcd = I2C_LCD_driver.lcd()

match args.state:
    case "on":
        power = 1
    case "off":
        power = 0
    case _:
        print("Please enter 'on' or 'off'")
        power = None

if power != None:
    print(power) # this is just to test
    mylcd.backlight(power)

What's happening that I don't understand is if power == None, the if statement will not trigger but the display will turn on.

The only way I've been able to keep the display off is if I add an else statement:

else:
    pass

This is using Python 3.10. My understanding is the else should not be needed at all. Any suggestions as to why the display might be turning on, or a better suggestion on how to handle the match statement?

--EDIT--

So it turns out initializing the display is turning it on at the same time. For a community that had no activity for ~2 years before this post, I'm pleasantly surprised with the amount of responses I've gotten - you all are awesome!

 

I’m running a rootless podman container listening on port 8080 on OpenSUSE Tumbleweed.

From the same host, there's no problem accessing the container. Trying to access the container remotely fails due to firewalld blocking the connection.

What I don't understand is this:

If I configure firewalld to forward port 80 to the container on port 8080 using

firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8080

I can access the container from a remote computer using port 80.

However, if I try:

firewall-cmd --add-forward-port=port=8080:proto=tcp:toport=8080

I'm not able to reach the container. It seems that every port I try will work except for port 8080 in this case, and I can't find any references explaining why this might be the case.

What's going on here? Is it a conflict by trying to forward a port to itself? Is there any way to allow port 8080? Trying to allow port 8080 in the public zone fails as well.

view more: next ›