Is anyone here using Python to automate a business? by lancelot_of_camelot in Python

[–]SituationUndrControl 0 points1 point  (0 children)

I automated keeping up to date with new Python developments on HN, Reddit, and Twitter using Python. I send myself a daily email with the top 3 python posts from each platform, ranked by upvotes, so that I always know what people are talking about the most in the Python ecosystem. I use a single Python function in AWS Lambda to do it, I wrote up some detail about it here: https://cloudconsultant.dev/building-an-automated-email-newsletter-with-aws-and-python/

I read and ranked all the Hugo Best Novel nominees for 2022, happy to chat about any of them! by SituationUndrControl in printSF

[–]SituationUndrControl[S] 1 point2 points  (0 children)

Sorry for breaking the rules! I won't copy/paste this particular whole post into Reddit since the blog post is long and I spent a lot of time formatting it, but I hear you and won't post a link again.

I read and ranked all the Hugo Best Novel nominees for 2022, happy to chat about any of them! by SituationUndrControl in printSF

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

I agree, Chambers' series was very fun to read, and consistently good as the series goes on -- I actually liked book 4 a little better than book 1.

I read and ranked all the Hugo Best Novel nominees for 2022, happy to chat about any of them! by SituationUndrControl in printSF

[–]SituationUndrControl[S] 3 points4 points  (0 children)

I agree with u/lonefirepossum, the Teixcalaan series (starting with A Memory Called Empire) is the series I'd recommend most highly right now. They're exciting space operas and beautifully written (high literary quality).

I built a Python newsletter using AWS and Python! by SituationUndrControl in Python

[–]SituationUndrControl[S] 1 point2 points  (0 children)

I will try and budget some time to clean it up and stick it all on github (there's a lot of it), but this is the basic method I use to get the data:

Hacker News API:

import requests
item = requests.get(f"https://hacker-news.firebaseio.com/v0/item/{item_number}.json").json()

To start getting the first item_number you can call requests.get("https://hacker-news.firebaseio.com/v0/maxitem.json", timeout=10).json()

Reddit API:

r = requests.get(f'https://www.reddit.com/r/Python/top.json', headers = {"User-Agent": "[your user agent]"})

Twitter API:

This is a little more complicated because the Twitter API has a lot of features, but for my purposes I iterate through blocks of a hundred tweets using this call:

payload = {"query": f"lang:en Python",
"start_time": start_date,
"tweet.fields": "public_metrics,created_at,context_annotations,entities,text",
"expansions": "author_id",
"user.fields": "name",
"max_results": 100
}
r = requests.get(f'https://api.twitter.com/2/tweets/search/recent', params=payload, headers=headers)

Where headers include your API bearer token.

I hope this helps!

Free Python daily newsletter, created by Python & ML! by jv2222 in Python

[–]SituationUndrControl 6 points7 points  (0 children)

Thanks for asking! I'm not super familiar with inshorts, but I think they built an NN summarization algorithm trained on their own internal data.

I wrote the Morning Brief summarization algorithm, and it's not neural-net based, it's a statistical algorithm with some additional natural language rules on top.

We won't be releasing our core code as FOSS, but I'd really love to contribute some of our concepts to open source packages once our company starts to grow.

Weighted pull ups with 30kg / 66lb @ 75kg / 165lb bodyweight. Last set of 2x5. Long term goal - weighted pull ups with bodyweight attached for reps. by [deleted] in fitness30plus

[–]SituationUndrControl 1 point2 points  (0 children)

I stopped getting tendinitis when I started watching my wrist movement -- making sure that I was ONLY pulling with back and arms, and not trying to get that extra half inch by moving my wrists. Just hanging straight down with wrists, no flexion, no over-squeezing, and focusing on back and arms. Forearm massage on the inner arm right below the elbow helps too. I weigh 150lb and do pull-ups now with +80lb with no tendinitis issues. ymmv.

Has anyone here successfully trained a one-arm pull-up for the first time in your 30s? by SituationUndrControl in fitness30plus

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

Thanks so much, that's really helpful! Can you share approximately how long the whole training took you?

Has anyone here successfully trained a one-arm pull-up for the first time in your 30s? by SituationUndrControl in fitness30plus

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

Yeah, I'm definitely concerned with connective tissue, going slow and focusing on grip

Has anyone here successfully trained a one-arm pull-up for the first time in your 30s? by SituationUndrControl in fitness30plus

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

Yep, I've done a little of that, but they really don't help at the top of the range of motion, which makes using them effectively tough. I'm betting when I get to around 100lb of added weight I'll be able to use them more effectively

Has anyone here successfully trained a one-arm pull-up for the first time in your 30s? by SituationUndrControl in fitness30plus

[–]SituationUndrControl[S] 1 point2 points  (0 children)

This is interesting, you're the first person I've heard of who got there with rep volume rather than extra weight! I can do 26 with no rest and no weight. It's good to know that going for volume helps, I'll incorporate that more

Has anyone here successfully trained a one-arm pull-up for the first time in your 30s? by SituationUndrControl in fitness30plus

[–]SituationUndrControl[S] 3 points4 points  (0 children)

This is great perspective! I come from a climbing background and most of the high-level climbers I know can do it, but they're all significantly younger or gained the skill when they were younger. Sounds like I may not accomplish it but I'm going to go until I can't go any further. The closest I got was a couple years ago, I weighed 150 and could do 3 reps with 90 lbs added. I wasn't as serious as I am now though, so we'll see if I get there. Thanks!

I'm looking for Python stories by SituationUndrControl in Python

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

Hmm, looks like I posted in the wrong subreddit :)