bravemonkey

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

My main preference for preferring French's is that it at least tastes less sweet than Heinz. Why does Ketchup need to be so sweet? It's beginning to get harder and harder to find anyway, at least where I am.

What actual Canadian alternatives are available for someone in Ontario that isn't a sugar bomb?

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

How would this store afford to pay its employees, rent and utilities if it only sold things at cost? One store alone would also make no difference, you’d need a chain of many stores.

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

lol, cops enforcing road safety laws? Good luck with that

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

I’ve been using a self-hosted Jotty instance, it’s been pretty great!

https://jotty.page/

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

I know you're talking about self-hosting everything, but to OP's point at least 1Password is a Canadian company.

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

That much money and still our streets and highways are lawless

[–] bravemonkey@lemmy.ca 0 points 4 months ago (1 children)

What's a 'TFW'?

[–] bravemonkey@lemmy.ca 4 points 4 months ago* (last edited 4 months ago) (10 children)

What is your realistic suggestion on how they should react? If it involves them dying, or losing their jobs and healthcare? Would you be willing to risk those as an individual?

You call them cowards, but don’t give any meaningful suggestions on what they could realistically do.

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

My theory - OP’s roommate ratted him out to the police, prompting this rant and made up facts.

[–] bravemonkey@lemmy.ca 10 points 4 months ago (1 children)

What is your alternative non-folder solution?

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

gfx.webrender.compositor.force-enabled is not mentioned in the article at all - while they don't mention the specific setting annoyingly, they do mention 'layer compositor' so it should be gfx.webrender.layer-compositor.

[–] bravemonkey@lemmy.ca 6 points 6 months 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.

1
submitted 1 year ago* (last edited 1 year 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!

view more: next ›