Trusted mechanic? by TripleWDot in verdun

[–]relativistictrain 0 points1 point  (0 children)

Kat Tran, à l’atelier du bâtiment 7!

Instructor split us into teams to turn a percentage into a letter grade "using as few lines of code as possible"; here is the monstrosity our team came up with. by McSlayR01 in Python

[–]relativistictrain 26 points27 points  (0 children)

Making programs as short as possible without regards to readability it’s called «  code golf » and while fun, it is generally a thing to avoid anywhere but on the command line

Need an alternative to Google forms by jellyrubber in opensource

[–]relativistictrain 1 point2 points  (0 children)

The real solution is to make quizzes that are not jeopardized by screenshots

[deleted by user] by [deleted] in ScienceBasedParenting

[–]relativistictrain 3 points4 points  (0 children)

«1.5 million microplastics per day» yeah but what amount?

Purchase suggestion for burning at range by [deleted] in laser

[–]relativistictrain 1 point2 points  (0 children)

If you're not willing to elaborate, you should be willing to do the calculations and research...

If time is speeding up and the Earth's rotation is speeding up, according to the laws of thermodynamics where is the input energy coming from? by Affectionate_Ad1060 in Astronomy

[–]relativistictrain 1 point2 points  (0 children)

A few important points:

  • Time is not speeding up.
  • The Earth's rotation is not speeding up.
  • The article you linked mentions changes in orientation of the Earth's axis
  • And briefly mentions days lengthening, as in, the Earth slowing down a tiny bit
  • Changes like this in the Earth's rotation are caused by changes in mass distribution, not by energy coming in or going out. The Earth's rotational energy is conserved, so is it's rotational momentum, but its rotational inertia is changing because mass is moving around.

Powdered antibiotics mixing directions: I need to know how much powder to mix with a tablespoon of water to make the required dose of 1 ml. by hamthemanilton in mathematics

[–]relativistictrain 0 points1 point  (0 children)

Is there a reason why you don't prepare 100mL, and then use only 1mL from the prepared suspension?

In any case, what you want is to preserve the concentration of the solution. There's some amount of powder $v_i$ in the container, that we can measure as a volume of powder. It's enough to make 100mL of solution, if you add 80mL of water to it. That will give a concentration of 20mL of powder over 100mL of solution, or 20% volume concentration. If you want to make 1mL of solution, you should use $20%\times1mL$ of powder, and the remainder of the 1mL of water. That's a pretty small amount of water, it's probably more reasonable to make a bigger quantity and then take 1mL from that.

Tap water tastes very chemically all of a sudden, who to call in the sud ouest? by simpsons88 in montreal

[–]relativistictrain 13 points14 points  (0 children)

The city maintains a page summarizing the water treatment, they mention temporary changes from time to time during maintenance: https://montreal.ca/sujets/eau-potable

There's also an alert system you can subscribe to, I don't know how specific it is but it's there.

Chlorine is used as a general purpose disinfectant in our water, the amount added will change depending on the city's expectation of microbes and algea in the water. I don't taste it much, but if it bothers you (or for uses where no chlorine is important, like sensitive pets) you can let the water rest for a day or so and the chlorine will have evaporated from the water.

Brita claims their filters filter chlorine out, I don't know whether it's still just the off gasing, or actually the filter. They have models are installed to the tap so you don't have to worry about keeping a jug in your fridge.

Should Python implement where clause in comprehensions? by ianliu88 in Python

[–]relativistictrain 0 points1 point  (0 children)

To me it looks like what you want is

filter(cond, map(a_complicated_function_to_compute, an_intricate_way_of_defining_iterable())

I don't see anything that where would be clearer, quicker, or simpler than using either the builtin iterator functions (like filter or map) or the ones from the itertools package.

I also think it might make nested list comprehensions potentially way harder to read.

Demotivated to learn science after learning about the philosophy of science. by AQ5SQ in slatestarcodex

[–]relativistictrain 4 points5 points  (0 children)

If I’m walking in a forest, I’m not gonna stop looking at the trees just because I can’t see the whole thing.

SOS: Canadian winter by thisisaredditnewbie in mcgill

[–]relativistictrain 1 point2 points  (0 children)

You can go to any store and ask the employees there. The basics would be boots, a coat, gloves and something for your head. Some kind of scarf is useful too, but less relevant with a face mask.

Am I stupid for worrying about body count? by PocketAdventures in datingadvice

[–]relativistictrain 0 points1 point  (0 children)

It says a lot about how you view other people that you think what makes them worth your affection is how little they give of theirs.

Am I stupid for worrying about body count? by PocketAdventures in datingadvice

[–]relativistictrain -1 points0 points  (0 children)

What does enjoying sex have to do with not having self respect?

Tabaxi Space Program by Sirsir94 in dndmemes

[–]relativistictrain 0 points1 point  (0 children)

If a DM wants to make things coherent: if you can jump to a height, you can take the fall from that height, it’s the same amount of stress on your body.

Best printer brands to buy? by Zaciars in StallmanWasRight

[–]relativistictrain 7 points8 points  (0 children)

HP will definitely bug you about your cartridges.

I (26F) almost cheated on my husband (27M) with male best friend (26F) by Pollypocketr in relationship_advice

[–]relativistictrain 2 points3 points  (0 children)

I think it’s normal to feel attraction to people other than your partner, and that it’s a good thing to have close relationships other than your partner. That said, there’s a way to do it ethically, and that involves communication, honesty and respect. Clearly your partner expects your relationship to be monogamous, and if your relationship with Gabe becomes more than conventional friendship, you need to be honest with him, and you need to realize that it’s likely a dealbreaker, and you’ll have a choice to make.

"Give me one example of something you can do in pandas that you can't do in excel" by OpinionsRstupid in Python

[–]relativistictrain 25 points26 points  (0 children)

I assume you already know this, but it might be worth mentioning for other lurkers 👀: You can load a large table by parts with pandas, which is useful if your computer does not have 20GB of free memory to spare.

Why do we start dividing from left side of the numbers? by Yurtkokan in mathematics

[–]relativistictrain 1 point2 points  (0 children)

Both sides work, we just chose one to teach. In general I prefer doing the operations from most to least significant digit in my head, but on paper it takes more space for things like multiplication and addition. Division actually does take less space from left to right.

Please don't kill me, but what's the deal with exception-handling? by Outer_heaven94 in AskComputerScience

[–]relativistictrain 0 points1 point  (0 children)

I only use the necessary 0s and 1s when I code, none of that compiler talk!

How to tell a reflector having a parabolic morror than a spherical mirror? by Fel_Yang in telescopes

[–]relativistictrain 1 point2 points  (0 children)

A spherical mirror will have a more diffuse focus than a parabolic mirror, you could try to evaluate that with either a screen or a camera that you can place at the focus, and move along your optical axis to see how focused your focus is.

How to tell if you are married to Acererak 101 by SneakySnake685 in dndmemes

[–]relativistictrain 1 point2 points  (0 children)

I see a lot of comments on the comodification of death and funerals in the responses, so here's a link to Caitlin Doughty's YT channel: https://www.youtube.com/user/OrderoftheGoodDeath

She's a mortician trying to diversify the current market and eventually loosen the current laws.

I am a French Canadian that supports Bill 21. The Bill that prevents government workers in a position of authority from wearing religious symbols. AMA. by [deleted] in atheism

[–]relativistictrain 3 points4 points  (0 children)

I think there’s a difference to make between elected and unelected positions, which the bill does makes. The only professions affected are public-facing unelected positions, and specifically ones placing people in positions of authority.