• 0 Posts
  • 53 Comments
Joined 10 months ago
cake
Cake day: August 25th, 2023

help-circle




  • 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


  • A server produces an amount of heat equivalent to it’s wattage.

    A 500W server rack will produce 1/3rd the amount of heat as a 1500W space heater. If your rack draws 100W at idle, than that’s how much heat it produces. So if it’s cold outside you could spin up folding at home or some other thing to burn excess CPU cycles

    As long as your server is inside your house it is offsetting the amount of heat your HVAC system needs to produce - granted it is also greatly increasing the amount of work your AC needs to do in the summer

    There is a cricket farm in Quebec that heats it’s enclosures with Bitcoin mining rigs.








  • numbers are just cursory googles so they may be off, e.g. “carbon footprint of a burger” (~3.2kg CO2 per) followed by “calories in a big mac” (590)

    The majority of the calories in a burger come from the bun and condiments, so it’s pretty far from a “stupid” amount of meat - As sad as it is, the average american eats 12.2oz of meat a day, and a big mac only has 3.2oz

    Food production (particularly beef and rice) are among the worlds largest sources for methane (a worse GHG) - also usually fossil fuels burned by production/transportation is generally factored into these estimates

    Regardless, the point i was poorly making is that this infographic sucks because it makes a false equivalency between “energy efficiency” and “good for the environment”. As I noted - biking is substantially more energy efficient than driving an ICE (~21x; 800 vs 16680), but after adjusting for the carbon footprint of food, that 21x becomes somewhere in the range of ~1-9x depending on diet. I suspect this graphic doesn’t list ICEs because they weight half as much and likely come in at a higher efficiency (despite being better for the environment) - which of course goes against the narrative it’s trying to present


  • lol all good - I posted some napkin math above - https://lemmy.ca/comment/7747680

    Long story short this figure is just all around bad because it’s conflating energy efficiency with environmental friendliness.

    Electric vehicles, despite being greener, are probably less efficient (which is why ICEs are mysteriously absent from this figure), it takes a lot more watts of power to move a 5000 pound car than it does a 2000 pound one). Similar story with biking - based on my Garmin figures, biking is about 22x more energy efficient than driving an ICE car, but the carbon footprint of that energy source is much higher watt-for-watt, so if you eat a meat heavy diet, the bike is barely greener than driving (caveat: I didn’t amortize the footprint of constructing the car, which is a probably a huge deal - if cycling is actually an option for you, your mileage probably isn’t that high).

    Granted - you are spot on with oats, if you pick a greener crop like corn you are down to 0.5kg carbon per 1L of gasoline equivalent - as the guy below wrote, biking is a “greener choice” if you are vegan (3-6x less carbon footprint), but at the end of the day, manual transportation is a thing people choose for health or pleasure reasons, or when the distance is so low that other methods don’t make sense. if you are going to try and shame people into doing it out of a sense of environmental responsibility, you shouldn’t need to use dubious math to accomplish that end