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/)BR
帖子
3
评论
74
Joined
2 yr. 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?

    My suggestion would be a price checker - create a webpage 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.

    Most important things is getting the security right.

  • 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

  • Someone who doesn’t use the distro is saying a tool ‘is a must’ when I do use the distro and have never needed it. You do you, but the point of my original comment was that it’s a valid distro for Europeans wanting a non-US option. Doesn’t mean you need to like it or use, but others might.

  • Does anyone have experience with Waterbird based in Waterloo, Ontario?

    I'm used to printing with eSUN but haven't had a 3d printer in a while and not sure where to get it any longer (based in Toronto). I've got a Prusa Core One coming soon though so looking to start getting filaments again!

  • learnpython @lemmy.ml
    bravemonkey @lemmy.ca

    If statement behaving oddly

    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:

     undefined
        
    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 '
      
    Container platforms (docker, lxc, podman) @lemmy.world
    bravemonkey @lemmy.ca

    Podman rootless - forwarding container port through firewalld on the same port fails

    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.

    Selfhosted @lemmy.world
    bravemonkey @lemmy.ca

    Podman - container exits without logs

    I'm new to Podman and so far have been completely frustrated by it.
    I don't know if the issue is with the container or Podman since there are just no logs.

    I'm trying to run Stirling-PDF, using this command:

    podman run -d
    \ -p 8080:8080
    \ -v /location/of/trainingData:/usr/share/tesseract-ocr/5/tessdata
    \ -v /location/of/extraConfigs:/configs
    \ -v /location/of/logs:/logs
    \ -e DOCKER_ENABLE_SECURITY=false
    \ --name stirling-pdf
    \ frooodle/s-pdf:latest

    With Docker, I have no issue running the this container. Under Podman the container immediately exits without logs - podman logs stirling-pdf shows nothing.

    The same thing happens running the same command with sudo or without sudo but using --rootful. I've also tried removing '-e DOCKER_ENABLE_SECURITY=false since it's very Docker specific.

    I can run podman run -dt --name webserver -p 8081:80 quay.io/libpod/banner with no issues, so is this something inco