bjorney

joined 10 months ago
[–] bjorney@lemmy.ca 13 points 2 days ago (3 children)

Too bad it still can't figure out how to do dead ass simple things the old assistant had no problem with, like setting a reminder or alarm

[–] bjorney@lemmy.ca 4 points 4 days ago (1 children)

If it's in a sealed plastic bag it doesn't go stale until long after it would have molded on the counter. I refrigerate mine because I buy Costco sized sliced bread and it takes me 2 months to go through it. If you toast your bread, the staleness is unnoticeable

A lot of these things only need to be refrigerated to preserve flavor, not to stop spoilage. If you go through a bottle of ketchup in 3 months there is little benefit to refrigerating it, if it takes 3 years for you to finish it, it should probably stay in the fridge.

Some peanut butter brands require refrigeration to prevent mould. Others recommend it because it stops the oils from separating. Brands like Kraft don't require any refrigeration at all

Refrigerating oil will stop it from going rancid, but I've only ever needed to do this with used deep frier oil

Honey is just a hell no in the fridge

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

$0.30 + 1.8-2.6% (up to 3.5% if they take Amex)

[–] bjorney@lemmy.ca 16 points 1 week ago (1 children)

You can just point your domain at your local IP, e.g. 192.168.0.100

[–] bjorney@lemmy.ca 104 points 1 week ago (1 children)

10 days without food hits differently when you are hiking through mountains 16 hours a day vs sitting on your couch

[–] bjorney@lemmy.ca 2 points 2 weeks ago (1 children)

Right? it screams wayyyy pre-y2k but MySQL was only release in 95

[–] bjorney@lemmy.ca 4 points 2 weeks ago (4 children)

will it become a relic of the past?

Probably

why YEAR in the first place, who would actually make use of it?

Accounting systems in the 90s that needed to squeeze out every drop of performance imaginable

[–] bjorney@lemmy.ca 5 points 2 weeks ago (6 children)

I expect it won't

The year datatype is a 1 byte integer, but the engine adds/subtracts 1900 to the value under the hood and has special handling for zero.

If you need to store more than 255 years range, you can use a 2 byte integer, which doesn't need that special handling under the hood, because with 2 bytes you can store 65000+ years

[–] bjorney@lemmy.ca 53 points 2 weeks ago

Literally every library with any traction in any field is MIT licensed.

If the scientific python stack was GPL, then industry would have just kept paying for Matlab licenses

[–] bjorney@lemmy.ca 50 points 4 weeks ago (3 children)

For every 1 person who knows how to use the windows command line, there are 50 people struggling because they didn't embed their video into their PowerPoint, or worse, their USB stick only contains a shortcut to their actual .ppt file

[–] bjorney@lemmy.ca 16 points 1 month ago (1 children)

Especially because a 15% tip is almost twice as good as it was 10 years ago due to rising food costs

[–] bjorney@lemmy.ca 9 points 1 month ago* (last edited 1 month ago)

There are like 10,000 different solutions, but I would just recommend using what's built in to python

If you have multiple versions installed you should be able to call python3.12 to use 3.12, etc

Best practice is to use a different virtual environment for every project, which is basically a copy of an existing installed python version with its own packages folder. Calling pip with the system python installs it for the entire OS. Calling it with sudo puts the packages in a separate package directory reserved for the operating system and can create conflicts and break stuff (as far as I remember, this could have changed in recent versions)

Make a virtual environment with python3.13 -m venv venv the 2nd one is the directory name. Instead of calling the system python, call the executable at venv/bin/python3

If you do source venv/bin/activate it will temporarily replace all your bash commands to point to the executables in your venv instead of the system python install (for pip, etc). deactivate to revert. IDEs should detect the virtual environment in your project folder and automatically activate it

view more: next ›