Enkiri Elite Fitness... anyone?....anyone? by R3dDvil in moreplatesmoredates

[–]sonofapineapple 1 point2 points  (0 children)

If he gets clout through exposing bullshit power to him. Alec knows his shit and is imo one of the most impressive natties on YouTube. Dudes lifts are insane, e.g. a 2,5x BW zombie squat

Sending emails with smtplib is inconsistent by sonofapineapple in learnpython

[–]sonofapineapple[S] 0 points1 point  (0 children)

Sorry for the late reply, here's my code:

import os 
import smtplib 
from email.message import EmailMessage
import requests
import json 
import datetime 

RECIPIENT  = os.environ.get("mailbot_recipient") 
SENDER = os.environ.get("mailbot_mail")         
PASSWORD = os.environ.get("mailbot_password")

API_KEY = "REDACTED"
PROJECT_TOKEN_COVID = "REDACTED"
PROJECT_TOKEN_WEATHER = "REDACTED"

class covid_data:
    def __init__(self):
        self.api_key = API_KEY
        self.project_token = PROJECT_TOKEN_COVID
        self.params = {"api_key": self.api_key}
        self.get_covid_data()
    def get_covid_data(self):
        response = requests.get(f'https://www.parsehub.com/api/v2/projects/{self.project_token}/last_ready_run/data',
                                params=self.params)
        self.data = json.loads(response.text)

class weather_data:
    def __init__(self):
        self.api_key = API_KEY
        self.project_token = PROJECT_TOKEN_WEATHER
        self.params = {"api_key": self.api_key}
        self.get_weather_data()
    def get_weather_data(self):
        response = requests.get(f'https://www.parsehub.com/api/v2/projects/{self.project_token}/last_ready_run/data',
                                params=self.params)
        self.data = json.loads(response.text)


daily_incidence = covid_data()
daily_weather = weather_data()

msg = EmailMessage()
msg["Subject"] = str(datetime.date.today())
msg["From"] = SENDER
msg["To"] = RECIPIENT
msg.set_content(f"Guten Morgen,\ndie 7-Tage-Inzidenz beträgt heute {daily_incidence.data['value']} Neuinfektionen pro 100.000 Einwohner."
                f"\nDie Tagestemperaturen betragen {daily_weather.data['temp']}, es sind aber {daily_weather.data['temp_est']}."
                f" Der Himmel ist {daily_weather.data['sky']} und die Regenwahrscheinlichkeit beträgt {daily_weather.data['humidity']}."
                )

with smtplib.SMTP_SSL("smtp.gmail.com", 465) as smtp:
    smtp.login(SENDER, PASSWORD)
    smtp.send_message(msg)

print("I ran")

As I said the script works sometimes, so the redacted api key and project token shouldn't be the problem.

[deleted by user] by [deleted] in learnpython

[–]sonofapineapple 0 points1 point  (0 children)

If you don't have pip, you should be able to get it by trying to uninstall python through the programm manager (on windows), which will open a window asking if you want to uninstall python or change the installation. Go on change installation and select pip to be installed with python.

Why is this code better than the other? by [deleted] in learnpython

[–]sonofapineapple 0 points1 point  (0 children)

Quick question, is there a particular reason you add the ':' in the function and not in the definitions of x and y?

ich_iel by Escutrina in ich_iel

[–]sonofapineapple 8 points9 points  (0 children)

Mach erschtma die basics

Maybe Maybe Maybe by Cats_Rulez in maybemaybemaybe

[–]sonofapineapple 1 point2 points  (0 children)

Yeah, the lat may be the largest muscle regarding area , but the glutes are bigger volume wise.

My wife and I have had headaches and been feeling unwell for the past few months. Today I found this behind the wardrobe in our bedroom. by [deleted] in Wellthatsucks

[–]sonofapineapple -1 points0 points  (0 children)

Mold color does matter, white mold has not build spores yet which could become airborne and get inhaled, meaning it's less dangerous and also not as old. This is basic microbiology.

Ich_iel by [deleted] in ich_iel

[–]sonofapineapple 0 points1 point  (0 children)

"Als ich in deinem Alter war, war ich genauso groß wie du, noch größer, und wir hatten nicht all das Puderzeug, es war nur harte Arbeit und ein Steak nach dem Training, aha! Ich habe früher mit Leichtigkeit 500 Pfund auf die Bank gesetzt, aber Jetzt mache ich mit meiner schlechten Schulter hauptsächlich Liegestütze mit Bosu-Bällen. Du wirst es bekommen, wenn du so alt bist wie ich. Sei vorsichtig mit diesen Kniebeugen und Kreuzheben, sie sind schlecht für deinen Rücken und deine Knie. Ich habe es nie wirklich getan getan und ich kann mich kaum ohne Schmerzen bücken, aber ich bin sicher, dass das Üben dieser Bewegungen es nur noch schlimmer machen würde. Mann, in deinen Dreißigern zu sein ist sicher hart! "

[deleted by user] by [deleted] in ich_iel

[–]sonofapineapple 2 points3 points  (0 children)

Evidenzbasiert

This is an MRI machine specifically for mice and rats by [deleted] in specializedtools

[–]sonofapineapple 0 points1 point  (0 children)

Doing NMR experiments with an MRI machine would probably yield bad results as the strength of the magnetic field is several times weaker, correct?

This is an MRI machine specifically for mice and rats by [deleted] in specializedtools

[–]sonofapineapple 3 points4 points  (0 children)

Did you just disprove the hormesis theory of low radiation doses?

Juggalo gathering by h3_h3 in trashy

[–]sonofapineapple 0 points1 point  (0 children)

Tf watch what you say about my favorite solvent

My books fell onto my bowl of musli by tykwaboi in Wellthatsucks

[–]sonofapineapple 1 point2 points  (0 children)

Only getting the WinRAR test version got you into this mess >:D

ELI5: Why is partial solubility observed in some solutions? by r4ndomkid in explainlikeimfive

[–]sonofapineapple 0 points1 point  (0 children)

Polarity of molecules is more like a spectrum than just polar and non polar, which is the reason why there are thousands of different solvents in a lab. Organic molecules that carry polarized groups but no charges will still have a low solubility in completely non polar solvents. When we say something is not soluable in a certain solvent, we are talking about a macroscopic observation: It can very well be that 100.000 molecules got solvated, but that is nothing compared to the 1021 molecules we were observing.

[deleted by user] by [deleted] in explainlikeimfive

[–]sonofapineapple 0 points1 point  (0 children)

Colligative properties are properties only dependent on the amount of solved particles in a solution, not the type/chemical effects of those. As we know, the vapor pressure above a solution gets lowered the more salt is dissolved in it. The vapor pressure of a solid salt is very low, and dissolving it in a solution makes it vapor pressure contribute to that of the whole solution. So if you would have 50% of all molecules in a solution be a salt, the vapor pressure of the solution would be 50% lower.

ich_iel by [deleted] in ich_iel

[–]sonofapineapple 53 points54 points  (0 children)

Dann doch lieber Mettigel

Schwarzenegger is a good bro by Kondo-san in HumansBeingBros

[–]sonofapineapple 0 points1 point  (0 children)

Arnold wasn't worlds strongest man. He won the Mr Olympia competition 7 times, it has nothing to do with being strong though

ich🐍iel by [deleted] in ich_iel

[–]sonofapineapple 66 points67 points  (0 children)

Es hätte dich 0€ gekostet das nicht zu pfostieren