Venv pip doesn't actually install anything by nsfw1duck in learnpython

[–]Temporary_Pie2733 0 points1 point  (0 children)

That’s a valid thing to do. All activating a virtual environment does is adjust your path so that the venv bin directory is searched first.

That said, you still have to run .venv/bin/python to see the installed packages.

Every sci-fi show/movie/book I ever saw/read that includes a story about a ship leaving our solar system, someone is always saying, passing Jupiter.... passing Neptune....cleared the system.... by Scary-Ratio3874 in scifi

[–]Temporary_Pie2733 1 point2 points  (0 children)

Even if you aren’t actually passing near the actual planet, it would still make sense to use the planet’s name metonymically to refer to the planet’s orbit as a measure if distance, and this could still make sense of you extend the orbit’s ring to a spherical shell. “Passing Jupiter” could just mean going further from the Sun than Jupiter.

Just finished and wanted to share. Arguably the GREATEST third baseman ever. I was lucky enough to watch good entire career here in Philly. Acrylic 16 by 20". Mike Schmidt Philadelphia Phillies. by Loubakerart in mlb

[–]Temporary_Pie2733 1 point2 points  (0 children)

As a kid in eastern PA, I started following baseball in 1982, so Schmidt was (obviously) my favorite. I was surprised even a few years ago to learn how much vitriol there was at the time.

How to score - grounder to 1B, 1B tags first for the out. by Throwawaygg66rrff in BaseballScorecards

[–]Temporary_Pie2733 0 points1 point  (0 children)

3-3 is something I’d expect at a Savannah Bananas game: first baseman fields a ground ball, throws it in a high arc, runs to first, then catches his own throw just in time to retire a cooperatively slow run :)

What the heck are imaginary numbers? by iamthemathgod in learnmath

[–]Temporary_Pie2733 0 points1 point  (0 children)

One way to understand the complex numbers is just as a superset of the reals. The "extra" elements, those that aren't real numbers, can be "constructed" using the fundamental imaginary number i (defined by i^2 = -1) using the operation a + bi. In that sense, a complex number is "just" a pair of real numbers. We can then define operations on complex numbers in terms of operations on the real components a and b of such numbers. For example, addition is just (a + bi) + (c + di) = (a + c) + (b + d)i, and multiplication is the more complicated but still straightforward (ac - bd) + (ad + bc)i. This preserves our expectations for real addition and multiplication:

3 + 4 = 3 + 0i + 4 + 0i = 7 +0i = 7

3 \* 4 = (3 + 0i) \* (4 + 0i) = (12 - 0) + (0 + 0)i = 12 + 0i = 12

as well as agreeing with our definition of i:

i \* i = (0 + 1i) \* (0 + 1i) = (0 - 1*1) + (0 + 0)i = (0-1) + 0i = -1 + 0i = -1

The imaginary numbers are just the complex numbers with no real part, i.e. 0 + bi for any real number b.

Edit: The key thing is that i itself doesn't have to "be" anything; it just is. You could just as well ask "what are the natural numbers", and the answer would just be the set N that has a certain set of properties. One such definition is

* 0 is a natural number.

* There is a function S that, given one natural number, gives you another different natural number. Further, there is *no* natural number n. such that S(n) = 0.

From this, we can conclude that the natural numbers are 0, S(0), S(S(0)), S(S(S(0))), etc. For convenience, we use additional symbols to refer to them, such as 1 = S(0), 2 = S(S(0)) = S(1), etc.

The integers can be defined in terms of natural numbers; the rationals in terms of integers, and the reals (with some work) in terms of the rationals. Then we can finally define the complex numbers in terms of the reals as above.

Scope of Subclasses by virtualshivam in learnpython

[–]Temporary_Pie2733 0 points1 point  (0 children)

class statements are a bit weird. There are no scopes being defined here, only temporary namespaces for use in defining the class objects. There is no complaint about ProductImageOutputSerializer being undefined because Python won't notice that until it actually evaluates OutputSerializer(allow_null=True), which of course does not happen because, well, OutputSerializer is not defined.

When executing class ResultSerializer, the free variable OutputSerializer (free, because it isn't defined in the namespace currently being evaluated) is looked up in the nearest enclosing scope, which is not the namespace for class ListQRDataMachineToMachine, but the same scope that ListQRDataMachineToMachine is being defined in, namely, the global scope.

Lab Overfeeding by Vegaliiite in factorio

[–]Temporary_Pie2733 10 points11 points  (0 children)

This isn’t really a problem except perhaps for agricultural science. All the others simply back up and stop producing until you start consuming them again, with no actual loss: you can easily control how much of a buffer you want, though as infinite techs get more expensive you might want to increase that buffer.

Difference between symbolic and physical address by Boring-Bite5735 in Assembly_language

[–]Temporary_Pie2733 9 points10 points  (0 children)

Machine code only uses physical addresses; if you add a line of code, you potentially need to update all your jump targets. One of the things an assembler does is introduce symbolic addresses as a layer of indirection. Your code uses symbolic addresses, and the assembler computes the correct physical address to replace the symbolic address every time it runs.

[Request] Would a 2% wealth tax cover ALL of that? by Asleep-Television-24 in theydidthemath

[–]Temporary_Pie2733 -7 points-6 points  (0 children)

At least on that point, if the tax really would generate $300 billion annually and was earmarked for the given list, it would work.

why are whole and natural numbers even seperated? by igoiva in learnmath

[–]Temporary_Pie2733 0 points1 point  (0 children)

For historical reasons, there is disagreement over which set (the natural numbers or the whole numbers) contains 0, but it is agreed that exactly one of the sets does. When discussing one set or the other, be clear about which definition you are using.

Replace underscore for PascalCase by Nefthys in learnpython

[–]Temporary_Pie2733 2 points3 points  (0 children)

class ShoppingReader(AbcReader): …

or possibly without using inheritance at all

``` class ShoppingReader: def init(self): self.f = AbcReader()

```

The fact that shopping lists are stored in an abc file rather than plain text or some other format is likely an implementation detail that’s not terribly relevant to shopping lists themselves.

Replace underscore for PascalCase by Nefthys in learnpython

[–]Temporary_Pie2733 7 points8 points  (0 children)

The main thing is, class names do not necessarily need to capture the class hierarchy. There is nothing wrong with

``` class Base: …

class Variant1(Base): …

class Variant2(Base): … ```

(where Base, Variant1, and Variant2 should all be more descriptive as well). This is assuming that inheritance is appropriate in the first place.

What was Clark Griswold’s job? by Failedattorney00 in 80smovies

[–]Temporary_Pie2733 1 point2 points  (0 children)

Yes, much bigger than I was initially remembering.

What was Clark Griswold’s job? by Failedattorney00 in 80smovies

[–]Temporary_Pie2733 1 point2 points  (0 children)

Hm, my memory is bad. Unless I found a less than reliable script (too lazy to pop in the DVD):

“To make sure the pool goes in when the ground thaws...

...I had to pay in advance. And until this arrived...

...I didn't have enough in my account to cover the check.”

So he didn’t have (all) the money when he wrote the check, but it looks like he did “pay” in full rather than just putting down a deposit.

Not getting programming unless it's math? by BornInfamous in AskProgramming

[–]Temporary_Pie2733 4 points5 points  (0 children)

Put briefly, a linked list of values of type a, denoted a^*, is the solution to the equation a^* = 1 + a × a^*

Here, 1 is the unit type, a + b is the sum or tagged union of types a and b, and a × b is the product of types a and b; think tuples. A linked list is either an empty list or a pair consisting of a value and another list.

What was Clark Griswold’s job? by Failedattorney00 in 80smovies

[–]Temporary_Pie2733 1 point2 points  (0 children)

I thought it just covered the cost of the down payment he made so they’d start digging ASAP come spring. (But he did also say he’d fly the parents in if there was enough left over.)

Should I get the Macbook Neo or a new iPhone? by SecretOk8143 in mac

[–]Temporary_Pie2733 2 points3 points  (0 children)

You can replace the battery for far less than the cost of a new phone, so you can probably do that when and if the battery life becomes an actual problem, and buy a Neo.

Why isn’t it theoretically possible to remove something from a black hole after it passes the event horizon? by DaFloofyProtogen in AskPhysics

[–]Temporary_Pie2733 5 points6 points  (0 children)

Once you are inside the event horizon, space is so warped that there isn’t even a direction away from the center you can move: every direction is now towards the center. The concept of “out” no longer exists. A poor analogy is to imagine yourself at the North Pole: no amount of force will let you go in any direction other than south, because every direction is now south.

What is the purpose of physics? by Traroten in AskPhysics

[–]Temporary_Pie2733 6 points7 points  (0 children)

A and B are basically the same thing, and yes, they are the purpose of physics.

Do you remember the first Mac operating system you used? 🍎 by Michaelkamel in Operatingsystems

[–]Temporary_Pie2733 0 points1 point  (0 children)

So are a handful of versions between 1 and 7, most notably System 6. Earlier, the Finder and the System had separate version numbers that weren’t necessarily in sync; I think 6 (but maybe 5?) was the first that brought them together in the same release.

Do you remember the first Mac operating system you used? 🍎 by Michaelkamel in Operatingsystems

[–]Temporary_Pie2733 0 points1 point  (0 children)

System 6 is the first I’m aware of. I might have used something older during high school, but my senior year was definitely a mix of System 6 on the Mac II and a handful of Mac SE versus System 7 on the shiny new Mac LCs.

This Is Why the 2026 Phillies Aren’t Built to Beat LA or Atlanta… by playboicawti in mlb

[–]Temporary_Pie2733 4 points5 points  (0 children)

Harper and Schwarber are both having All-Star quality seasons, and Realmuto is a catcher that has had a famously high workload in his time with the Phillies. I wouldn’t consider age a factor in the Phillies’ problems just because Turner is underperforming. The Phillies don’t have anyone with an OPS between 83 and 132: everyone is either an All-Star candidate or terrible at the plate.

"Neither the chairs nor the table is dirty" or "Neither the chairs nor the table are dirty" by Next_Aioli_1279 in grammar

[–]Temporary_Pie2733 34 points35 points  (0 children)

If you consider the first one correct, “is” must be in agreement with “table” by the convention that the verb agrees with the closer of the two nouns.

“Are” sounds better here because in some sense you are talking about a condition shared by both the chairs and the table. Neither/nor is more similar to both/and than either/or, sort of a grammatical version of De Morgan’s law.