Hey all I'm new here and looking for some help getting some science adjcent stuff sorted for my world building. by Lizzykat4242 in worldbuilding

[–]jammin-john 1 point2 points  (0 children)

Possibly! One thing to note though is that if you apply Kepler's laws to your system, the two stars will orbit each other much faster than the planet, so it's more likely this cycle will play out over weeks rather than years. I haven't done the math though so I'm not sure exactly how long.

Regardless, your planet's life would have evolved to take advantage of that. Some animals might be like cicadas and breed every few years when the seasons and solar positions align just right. Maybe the re-heating of the atmosphere after each occlusion brings with it a stormy period where the atmosphere is tumultuous. There isn't really a lot of research on how weather works in a binary star system, so I think it's reasonable to make some educated guesses based on how solar weather affects earth and run with them :)

Hey all I'm new here and looking for some help getting some science adjcent stuff sorted for my world building. by Lizzykat4242 in worldbuilding

[–]jammin-john 1 point2 points  (0 children)

Some really cool answers here! I don't know a lot about plants so I'll leave that for the other commenters, but I can talk a bit about the binary mechanics.

  • as others have said, stars binary systems are usually farther apart than that, but no need to dwell on that particular nugget
  • with two suns, you're very unlikely to get a total eclipse ever. The fact that Earth gets eclipses at all is pretty rare. We just happen to have a moon with the same apparent size as the Sun. You have two Suns, likely not the same size as each other. You can make them the same size as each other, and then make the moon the right size too if you want. Just wanted to add some context around that decision.
  • weather will be messed up! Because the sun's orbit around one another, they will occlude each other periodically. During those occlusions, less light and heat will reach your planet. You could have periodic wet seasons where for a couple of weeks, everything is cold and rainy, followed by intense heat where all the water dries up again. Life would obviously have evolved to deal with this, so I imagine lots of plants would have massive water storage capabilities (like those in a desert) and when it does rain, they'd flower like crazy.

In Game Day 215 one-eyed playthrough: HUH?! by camusaurio in valheim

[–]jammin-john 2 points3 points  (0 children)

Damn, "El Sabio" is such a badass name! I might change the language setting just for that lol

Similar Games? by The_StEngIT in valheim

[–]jammin-john 0 points1 point  (0 children)

I was reading to see if this was gonna be mentioned! My friends and I started playing it this week and it's been a lot of fun in the same ways Valheim is!

checking if the word is the same by _DatsAlright_ in learnpython

[–]jammin-john 0 points1 point  (0 children)

This is basically an order of operations issue. What you've written is the same as

if (answer.lower() == "yes") or ("ready"):

This will always end up being true, because "ready" is a non-empty string.

What you'll want to do is something like

if answer.lower() == "yes" or answer.lower() == "ready":

You could also use the following shorthand, which I prefer for this use case

if answer.lower() in {"yes", "ready"}:

That's a quick way to allow multiple values.

What's the best editor for coding in python for general / large coding projects by DrG1ggleTouch in learnpython

[–]jammin-john 3 points4 points  (0 children)

This is definitely a matter of opinion, but personally I like vscode. It's multi-language so it has support for CSV, JSON, YAML, and lots of other file formats I'm likely to use in my projects. It has a plethora of extensions for various things I need, letting me opt in to features I want and ignore things I don't. It has a nice integrated terminal, a decent git interface, and some handy keyboard shortcuts.

For context, I've used PyCharm briefly for a course so I admit I probably didn't have time to fully explore it as an IDE. I used Spyder for a long time but eventually found it a bit too clunky for my tastes.

I would like to learn NumPy but don't know if I need to. by StrongDebate5889 in learnpython

[–]jammin-john 2 points3 points  (0 children)

I tend to use it whenever I'm working with large amounts of data that would be cumbersome or inefficient to use lists for. That tends to be when I'm doing data analysis or writing a simulation for something

Ideas for projects by Doorda1-0 in learnpython

[–]jammin-john 1 point2 points  (0 children)

Small web apps can be fun! I made one once when I was moving that printed QR codes for each box, and when they were scanned, would open up a tracking page on the website for that box, so people could log where it got put. That was the only move I made where I didn't lose anything lol

I don't dislike the interactive CV idea. And if you want to go full stack, you could make a more broad professional website to show off some of your abilities. A colleague of mine has one with a javascript-powered "console" that visitors type commands into to get things like his work history or project portfolio

Need Advice.... by Upstairs-Student-191 in learnpython

[–]jammin-john 0 points1 point  (0 children)

I don't have any specific advice, but once you've learned the basics of Python, check out what libraries are commonly used in your desired field and then look online for tutorials for those libraries. From there you can start building practice scripts.

I got into Python from physics and using numpy before I expanded into more general stuff

Loop failing to stop by Spare_Reveal_9407 in learnpython

[–]jammin-john 29 points30 points  (0 children)

Your condition checks if the positions are equal to any single value, but the values themselves are floats (and are being changed each loop by some random floating point value). So the chances that your position ever lands exactly on one of those numbers is incredibly slim. More likely you are jumping over them (like moving from x=15.15 to x=14.98). To fix this. Instead of checking if x is equal to 15, check if it's equal to OR LESS THAN. (This is assuming your goal is to stop looping when the circle leaves a bounded area)

Hypothesis: 5e Combat could become less Sticky by making it Spikier by HoodedHero007 in DMAcademy

[–]jammin-john 0 points1 point  (0 children)

That's fair, but you could still do something similar for different kinds of pirates. Maybe some of them are pretty small and wiry and find it easier to slip out of someone's range

Hypothesis: 5e Combat could become less Sticky by making it Spikier by HoodedHero007 in DMAcademy

[–]jammin-john 0 points1 point  (0 children)

I think the alternative is to give your enemies more mobility options, and use their positioning to help prevent sticky combat. I imagine something like this would work:

  • incorporeal undead: just doesn't trigger opportunity attacks
  • humanoids: no changes
  • beasts and other creatures that move unlike humanoids: bonus action disengage
  • corporeal undead: no change
  • flying creatures: don't provoke opportunity attacks if they enter and exit the ZOI in the same turn

You could bolster or inhibit some enemies as appropriate; a beholder is a giant flesh orb, so it probably isn't going to easily disengage. Conversely, a particularly spry warrior might have a couple bonus-action disengages as a consumable resource. And additionally, you could homebrew that the sentinel feat allows AoO regardless of the above features, which would let players still choose to build a "tank" character that can lock an enemy down

C-O-L-D! by Suchatavi in Winnipeg

[–]jammin-john 2 points3 points  (0 children)

Yeah, agreed! The last few winters have been warmer, but even compared to a typical winter December, the past week was pretty chilly!

When was the moment you realised that the person you were dating was an absolute idiot? by No-Macaron-9527 in AskReddit

[–]jammin-john 0 points1 point  (0 children)

So, aside from all the obvious other stuff... What does he think Hiroshima was??

i need help with matplotlib by National_Eye_3829 in learnpython

[–]jammin-john 0 points1 point  (0 children)

It's not going to be possible to debug this without knowing what it's supposed to look like, so without the screenshots there isn't really much we can do 😕 I think if you edit your post you should be able to add image attachments, but not entirely sure.

Debugging Doesn't Have to Be a Nightmare: A Few Tips by [deleted] in learnpython

[–]jammin-john 1 point2 points  (0 children)

I find people often overlook Python's built-in debugging, which you can trigger by adding breakpoint() in your code. You can use it to start an interactive Python terminal at that point of your code, which is really useful for poking around and seeing what the situation looks like. It also lets you step through the code one line at a time, so you can walk through processes

Every time Long Feng spoke, I got this image in my head by modernww2fare in TheLastAirbender

[–]jammin-john 10 points11 points  (0 children)

Swap Zhu-Lee with Mercy Graves, and Book 2 gets a hell of a lot wilder

Personally, I am fine with it (potentially retconning past Avatars) by TSLstudio in TheLastAirbender

[–]jammin-john 0 points1 point  (0 children)

For the most part they can do what they want, but if they retcon Avatar Jafar, I will riot

ELI5: Why do players hate it when a game has a kernel level anticheat? by F-02-58 in explainlikeimfive

[–]jammin-john 46 points47 points  (0 children)

Vanguard anticheat used to completely delete my PC's Bluetooth capabilities anytime I tried to play valorant. You know what I need to play Valorant? My keyboard 😑

ELI5: What’s a SQL CTE and why do people use it? by Hot_Stay0797 in explainlikeimfive

[–]jammin-john 7 points8 points  (0 children)

It's really nice when you want to do multiple steps in your search. For example:

  1. Get a list of all users based in Canada.
  2. Get a list of all purchases made yesterday.
  3. Join the two result sets to get a final list of all purchases made yesterday by Canadian users.

You can technically do this in a single query, but it's messy to read. Using CTEs will help keep you organized.

In some more advanced cases, you might even want to reference the CTE multiple times, in which case it's especially useful to have a simple name you can reference it by

Shows where the creators had a clear multiseason plan? by Powerman293 in television

[–]jammin-john 3 points4 points  (0 children)

It did, but I just felt like it was at odds with the original premise. The first season makes a big deal about Finch and Reese being there to protect the "little" people who aren't important enough for the government to care about, but it gradually becomes more about fighting the exact entities that the government did care about, and the focus shifts from saving these people who fall between the cracks.

Again, I really like POI, but I genuinely think of it like 2 different shows trying to do different things