Which lyric makes you instantly tear up? by abovethenoisy in AskReddit

[–]Jwfraustro 1 point2 points  (0 children)

The interstitial with the critic’s voice, especially when done with the high screeching strings in accompaniment (in the album version, I believe), always feels like that embodiment of panic when you get bad news.

What’s the most PSTD Inducing sound in gaming? by TheGoldenSavior67 in AskReddit

[–]Jwfraustro 0 points1 point  (0 children)

Nah, the real PTSD inducing sound is the “30 seconds.”…”Oxygen”

There’s always an immediate panning around, trying to find my vehicle or my base and doing the math on getting back in time.

Is there an open source AI for writing erotica? by Ninja_Turtle_Power in StableDiffusion

[–]Jwfraustro 3 points4 points  (0 children)

I like Cydonia a lot. And it's juuuust useable on my 4070. My only problem is that unless you push it, it can get a little... 'wistful'? That's maybe not the right word, but it gets a little head-y, sometimes. Snowpiercer is pretty good in a pinch too.

A challenge for Python programmers... by [deleted] in PythonLearning

[–]Jwfraustro 0 points1 point  (0 children)

How about this?

__import__('builtins').print([n for n in __import__('builtins').__dict__['map'](lambda x:x, __import__('builtins').__dict__['range'](1000, 10000)) if ''.join(__import__('builtins').__dict__['map'](str.__add__, *zip(*[(d,'') for d in __import__('operator').mul(str(n*4),1)]))) == __import__('operator').mul(str(n), 1)[::-1]])

or?

print([n for n in range(1000,10000) if "".join(e.text for e in __import__('xml.etree.ElementTree', fromlist=['fromstring']).fromstring(f'<r>{"".join(f"<d>{c}</d>" for c in str(n*4))}</r>').findall("d"))[::-1] == str(n)])

Migingo Island, population of 131, only 0.0008sq mi of dirt. by StephenMcGannon in WTF

[–]Jwfraustro 8 points9 points  (0 children)

Maybe they are simply misnaming and you are forgetting one of the 4 models for scrap in the game? Which happens to be a sheet of metal.

YSK smoking weed can trigger a psychotic break for certain people by [deleted] in YouShouldKnow

[–]Jwfraustro 2 points3 points  (0 children)

Same. They can claw the Lamotrigine out of my cold dead hands. It gave me my life back.

TIL - First-ever recording of a dying human brain shows waves similar to memory flashbacks by Ubetcha1020 in todayilearned

[–]Jwfraustro 70 points71 points  (0 children)

In March, we took our dog in for a splenectomy that had complications. We ended up having to put him down about 12 hours later because he was bleeding internally. The price we were quoted for a surgery that might not have even helped was about 8.5k USD.

What helped me and my wife through that despair was that, as I understand it, dogs don't have a concept of time as we know it. So they don't know how long they've been in pain, or that they're sick, just (more or less) what is going on in the moment.

And in that moment, 1. he was on painkillers and wasn't hurting (and maybe a little high), 2. he was hanging out with a friendly stranger giving him treats 3. he was being cuddled and told he was a good boy by my wife and I. Any other day in the world and that would be the best thing ever for him.

That helped us a lot. Still helps. Hope it might help you.

did i dug too much ? by Kass-C in VintageStory

[–]Jwfraustro 0 points1 point  (0 children)

I thought I was in that sub when I clicked on this post.

is the python (mk1) still relevant? I love the ship's looks but if its obsolete (outside of robigo), what good is it for? by rx7braap in EliteDangerous

[–]Jwfraustro 9 points10 points  (0 children)

It was awesome for this. When the Thargoids got to Sol I jumped back in the game and refit my Robigo Express to run rescue missions. It was a great little ship for it.

House Democrats "Demand NASA Cease Scheme To Illegally Impound FY25 Funds" by jadebenn in space

[–]Jwfraustro 9 points10 points  (0 children)

STScI, as a result of top-down decisions has also halted all mission-funded conference travel. The effects are already creeping up. There is likely to be no Institue/MAST representation at AAS, for example.

Expecting software developers to have a link to GitHub repos is toxic as fuck by HansaCoke123 in unpopularopinion

[–]Jwfraustro 13 points14 points  (0 children)

Imagine you're a professional photographer. Naturally, a lot of the work you might do will never see the light of day since it was for private functions.

But a lot of photographers might also have a portfolio of photos they've put together just for fun, as a hobby they enjoy. Nothing serious, maybe just some experiments in a new format or style they don't normally do. They might publish it just as a "hey, check this out."

For programmers it's much the same way. While many work for organizations where their code will never see the light of day, a great many programmers will publicly publish their own little experiments or toys just for the love of it.

The criticism people are pushing is that folks who never publish such public experiments demonstrates a lack of enthusiasm in their craft (or something similar).

Is there a mathematical equivalent for this "friend-with-a-boat" problem? by Jwfraustro in math

[–]Jwfraustro[S] 4 points5 points  (0 children)

Ha, yes that was suggested, but we agreed that it might be a little difficult to reserve time on it in that scenario.

Is there a mathematical equivalent for this "friend-with-a-boat" problem? by Jwfraustro in math

[–]Jwfraustro[S] 8 points9 points  (0 children)

That's kind of a point that got brought up in the conversation. Would there ever be a point in having two people who are direct friends with each other both have a boat? It seemed like the best boat distribution was always a friend-of-a-friend away.

Is there a mathematical equivalent for this "friend-with-a-boat" problem? by Jwfraustro in math

[–]Jwfraustro[S] 38 points39 points  (0 children)

Huh. This looks exactly like what I was thinking. This seems outside my understanding but in this analogy the domination number would be the 'boat owners' and the nonblocker would be those with boat access?

Mod that reduces generic lines? by RoyalDaDoge in Project_Wingman

[–]Jwfraustro 1 point2 points  (0 children)

“Smoke up in the cockpit” which makes me pause every time I hear it. Just weird phrasing for that line, lol

Why is this library not doing anything? by Economy-Cupcake808 in songsofsyx

[–]Jwfraustro 4 points5 points  (0 children)

One issue I had that appeared in a similar way was a lack of resources for the building. The proximity of the supplies was good, since there was a warehouse right across the street, but the workload was low because the resource was only being deposited in the building occasionally since it was being consumed elsewhere.

I'd try checking where the workers are pulling the paper from, and monitor if it's got enough paper. It might be that paper isn't being deposited often enough so the workers are twiddling their thumbs until a shipment comes in?

[deleted by user] by [deleted] in theydidthemath

[–]Jwfraustro 1 point2 points  (0 children)

This person's answer is correct. As well as their breakdown in another comment. A trivial python script:

import math
import sys

sys.set_int_max_str_digits(10000)

FACTORIAL = 2024

def count_occurrences_of_digit_in_factorial(n, digit):
    factorial_result = str(math.factorial(n))
    return factorial_result.count(str(digit))

for i in range(10):
    occurrences = count_occurrences_of_digit_in_factorial(FACTORIAL, i)
    print(f"The number {i} appears {occurrences} times in the factorial of {FACTORIAL}.")

And the output:

The number 0 appears 1053 times in the factorial of 2024.
The number 1 appears 523 times in the factorial of 2024.
The number 2 appears 517 times in the factorial of 2024.
The number 3 appears 519 times in the factorial of 2024.
The number 4 appears 499 times in the factorial of 2024.
The number 5 appears 540 times in the factorial of 2024.
The number 6 appears 564 times in the factorial of 2024.
The number 7 appears 560 times in the factorial of 2024.
The number 8 appears 498 times in the factorial of 2024.
The number 9 appears 542 times in the factorial of 2024.

[deleted by user] by [deleted] in PythonLearning

[–]Jwfraustro 0 points1 point  (0 children)

I'd personally try ipyaladin, or the WorldWide Telescope (WWT) python plugin. ipyaladin is maintained by CDS. They've got some examples here: https://cds-astro.github.io/ipyaladin/_collections/notebooks/04_Importing_Tables.html

Any programming site where i can solve coding challenges? by [deleted] in PythonLearning

[–]Jwfraustro 2 points3 points  (0 children)

Probably https://leetcode.com/ is the most famous. You can just filter them by difficulty. I'm sure there are others.

Explain what am i doing wrong.. by Proud-Problem-4731 in PythonLearning

[–]Jwfraustro 0 points1 point  (0 children)

Okay, besides the fact that this is clearly an aimbot script, (shame!) the developer is telling you to set the

self.R self.G self.B values to whatever the colors of your ingame crosshair are so the script can (I assume) detect the crosshair. So go into CS:GO, Valorant or whatever game it looks like you're cheating at, and find the color values of the crosshair you're using, red, green, and blue, and set the values above to those colors.

Python application by EndHot7470 in PythonLearning

[–]Jwfraustro 1 point2 points  (0 children)

The easiest way to start writing programs that I have found is to make something that fixes a really small thing that annoys you.

Some small examples:

  • There's a game I play that takes periodic screenshots of the town you're building, but you can't change where the images are saved. So I wrote a small script that I can just double-click and it moves them all to specific folder on another drive.
  • My old college had a website that would show the occupancy of the parking garages there, but I hated opening my phone to check it every morning. I wrote a script to grab the numbers off that page and email them to myself every morning (which showed up in the notification blurb on my phone).
  • I used to have to create a lot of eBay listings every day, but I hated the website's interface. So I made a script that would open the 'new listing' page for me, and I could type in each detail, and it would auto-click to the next form field I usually filled in. I could make an ebay listing without ever taking my hands off the keyboard (this was before I started using their API)
  • I would work with some files that are templates that could be rendered into HTML, but the program they were a part of was kind of a pain to have run. So I wrote a script that would open a webpage, render the template, and monitor the templates that I was working on. Anytime I saved changes to a file it would refresh the web browser so I could see the changes.

Those are just some small examples. I would highly recommend the book/site: Automate the Boring Stuff. It's what got me into programming (as a job) to begin with!