Posts

Time

Image
A timer makes sense in small pieces. But when you look at huge stretches of time, it's almost impossible to wrap your head around things. So let's start small-- with minutes, hours, and days. You probably spent the last 24 hours mostly sleeping, and working, and you probably wasted a good chunk of yesterday on the internet. Days become weeks, weeks become months, and then we have a year. Let's look at 2020. T he nastiest coronavirus had appeared. Paycheque nuclear power plant held a bikini contest to pick their new intern, and people on the internet made a challenge out of eating bleach. You know, the usual stuff. Let's go back further… A kid born in the first year of the 21st century is 21 years old now. But the century is still young, even if you're not. It was largely shaped by the attacks on 9/11, which led to the war in Afghanistan and the invasion of Iraq. In March 2011, the Syrian civil war began and is still ongoing after ten years. Most of us were born in t...

Automatic raining alert project with Python

Introduction:  This simple python project alerts you if it will rain in the next defined hour. All you have to do is sign up openweather API and Twilio messaging service and replace your API key below.  CODE: import requests as w import datetime import os from twilio.rest import Client END_POINT = "https://api.openweathermap.org/data/2.5/onecall" api_key = "enter_your_weather_api_key_here" long = "83.995590" lat = "28.237988" account_sid = "your_twilio_account_sid" auth_token = "your_twilio_auth_token" twilo_ph = "twilo_phone_no" client = Client(account_sid, auth_token) api_param = { "lat" : lat, "lon" : long, "appid" : api_key } response = w.get(END_POINT, params=api_param, ).json() weather = response[ "hourly" ][:13] is_raining = False for weather_data in weather: condition_code = weather_data[ "weather" ][0][ "id" ] if condition_code ...

The story of life.

If you believe me, I bet, you won't hate anyone else ever again. This is the story of all of me and me. Me as He: You were on your way home when you died. It was a car accident. Nothing particularly remarkable. But fatal, nonetheless. It was a painless death. The medics tried their best to save you... but to no avail. Your body was so utterly shattered, you were better off. Trust me. And that's when you met me. Me: What happened? Where am I? He: You died. I said a matter of factly. No point in mincing words. Me: There was... there was a truck. And it was skidding. He: Yes. Me: I... I died? He: Yes. But don't feel bad about it. Everyone dies. Me: I looked around. There was.. nothingness. Just he, and I. What is this place? Is this, the afterlife? He: More or less. Me: Are you... God? He: Yes. I'm God. Me: My dad... My mom... What about them? Will they be alright? "That's what I like to see," I said. He: You just died, and your main concern is for your famil...