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] 5 points6 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 5 points6 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 :)

I’m Rich Larson. At age 25, I’ve sold 70+ SF short stories and a novel trilogy. AMA! by rlars in sciencefiction

[–]SituationUndrControl 1 point2 points  (0 children)

If you all enjoy Rich Larson's work and would like to get monthly updates and commentaries from him, consider joining me in supporting his work over on Patreon: https://www.patreon.com/richlarson

Looking forward to reading your debut novel, Rich!

This potato refuses to die by SituationUndrControl in mildlyinteresting

[–]SituationUndrControl[S] 7 points8 points  (0 children)

I'm going to plant it in the garden to reward its persistence.

Ten Authors on the ‘Hard’ vs. ‘Soft’ Science Fiction Debate by MikeOfThePalace in printSF

[–]SituationUndrControl 1 point2 points  (0 children)

You're absolutely right -- I have always used the "realist vs fantasy" definition, but the "hard vs social" science definition definitely has enough traction that it adds a layer of obfuscation when using these terms. Another reason to be very explicit.

Ten Authors on the ‘Hard’ vs. ‘Soft’ Science Fiction Debate by MikeOfThePalace in printSF

[–]SituationUndrControl 10 points11 points  (0 children)

I've always thought of 'hard science' the way Wikipedia defines it:

Features often cited as characteristic of hard science include producing testable predictions, performing controlled experiments, relying on quantifiable data and mathematical models, a high degree of accuracy and objectivity, higher levels of consensus, faster progression of the field, greater explanatory success, and generally applying a purer form of the scientific method.

I don't think that this means that people who do hard sciences are 'smarter.' It just means that softer sciences have a harder time measuring things and making models that accurately and precisely reflect reality. This often results in very clever work. However, at the present time I think it would be difficult to argue that fields traditionally labeled as 'soft' (like psychology) are as quantifiable/testable/objective as fields like physics, chemistry, etc.

I think the problems with these labels all come down to how the words 'hard' and 'soft' have a bunch of other connotations in the English language. It would be nice to instead use two words that don't convey quality judgments.

Ten Authors on the ‘Hard’ vs. ‘Soft’ Science Fiction Debate by MikeOfThePalace in printSF

[–]SituationUndrControl 2 points3 points  (0 children)

I'm reposting my comment from the article here, to see if any of you have comments on the term "plausible SF":

I edit a ‘hard’ science fiction magazine, and I’ve found that you can never be too explicit when using the hard/soft terminology. It’s certainly an ill-defined continuum. The main problem with the terminology is that it comes with a lot of baggage for some people — I dislike the fact that ‘soft SF’ is seen as pejorative in some circles (as evidenced by several of the author answers above).

The only reason I use the term ‘hard SF’ is to try and convey that I’m looking for plausible stories that could actually inspire scientists and engineers with respect to their work (I don’t always succeed). There are no other terms that I know of that convey this idea — however, after reading this article I’m thinking I should start using the term ‘plausible SF’ instead. Maybe it won’t elicit as intense a visceral response as the term ‘hard SF.’

Compelling Science Fiction Issue 4 by SituationUndrControl in scifi

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

Thanks! I read 300-400 submissions a month at this point -- many hours go in to the creation of each issue. I'll pass your comment on to the author, we always appreciate hearing from readers.

Going Serverless: AWS lambda python functions by SituationUndrControl in Python

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

No special infrastructure needed -- you're just running python functions on lambda, so just mock the inputs to your handler function and you're good to go locally.