![](/static/66c60d9f/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/8140dda6-9512-4297-ac17-d303638c90a6.png)
Right? it screams wayyyy pre-y2k but MySQL was only release in 95
Right? it screams wayyyy pre-y2k but MySQL was only release in 95
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
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
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
Not with 64gb ram and 16+ cores on that budget
A couple of them fall into the “technically true, but misleading territory” - I’m sure the person handing this out couldn’t identify which though - broken clock right twice a day and all
“Can you reverse effects” - no you can’t make your immune system forget how to work. Probably not what they are going for here though.
“Risk of […] or other side effects?” - yeah the vaccines generally give people a headache and short lived fever symptoms
“Have there been deaths?” - The astrazeneca vaccine had like a 0.000001% mortality risk (more likely to die driving to the pharmacy), and was pulled in many countries because that was deemed too dangerous. Person handing out the flyer has likely been parroting “mRNA vaccines cause blood clots” nonsense for years while being completely unaware that AZ was a traditional viral vector vaccine
“Are there doctors recommending NOT taking it” - yeah, there are many notable anti-vaccine doctors, what they typically have in common is they earned their doctorate in computer science, social studies, or some other field that gives them no qualifications to talk about immunology
They aren’t talking about system administrators. They are talking about 3rd party software presenting a privilege escalation prompt (administrator access) and changing your default browser without you knowing about it
“how dare they use the right tool for the job without taking the time to learn how to do it sub optimally first”
The plastic liners in and on tins and cans - referred to as lacquer in the industry - don’t impact recycling. When the tins are heated to thousands of degrees for recycling, what is left of the plastic liner, the inks and UV materials; is separated and basically skimmed off, leaving the metal.
https://ekko.world/plastic-lining-on-beverage-food-cans/226751
the recycling pickup people
It’s not, it’s usually retirees or homeless people doing it for cash
Python 3.12’s compiler tells you to fuck off
OSError: File or directory not found “C:WindowsSystem32”
Probably because the week input is just a date picker that applies Math.floor()
on the result, and month inputs are better suited for a <select>
Chrome implements features that aren’t standards track into their browser, and lazy/oblivious devs use these features to build their products - only to realize wayyy too late it won’t work in Safari/Firefox because it uses APIs that are chrome only
To elaborate a bit more, there is the MySQL resource usage and the docker overhead. If you run two containers that are the same, the docker overhead will only ding you once, but the actual MySQL process will consume its own CPU and memory inside each container.
So by running two containers you are going to be using an extra couple hundred MB of RAM (whatever MySQL’s minimum memory footprint is)
it won’t necessarily take twice the resources of a single mysql container
It will as far as runtime resources
You can (and should) just use the one MySQL container for all your applications. Set up a different database/schema for each container
Problem with that is that when you click a link in the teams PWA it opens in edge rather than your default browser. I just use the unofficial teams electron app
Yeah but then ALL even numbers would be slow to compute because you would have to chain through every odd before you know that 2
is even.
Depends on the expected distribution of input values
473ml is abundantly common in Canada because it’s the most common size used in the US (16oz)
You can just point your domain at your local IP, e.g. 192.168.0.100