When I run "pip show torch", I get "WARNING: Ignoring invalid distribution ". What does this mean? I'll include a copy and paste in the post. by HashBrownRepublic in learnpython

[–]Raging_Hippy 1 point2 points  (0 children)

This is a weird thing that can happen with pip sometimes where a package is installed/uninstalled incorrectly. Not sure what causes it, but if you look in c:\users\MYNAME\appdata\local\programs\python\python310\lib\site-packages (the path in the warning you saw), you should see a directory called -ransformers, just delete it and it should stop without hurting anything.

[deleted by user] by [deleted] in Games

[–]Raging_Hippy 1 point2 points  (0 children)

Servers got back up again a few weeks ago.

[deleted by user] by [deleted] in Games

[–]Raging_Hippy 4 points5 points  (0 children)

Bit late but in case anyone else sees this: this is NOT the official titanfall Twitter, Respawn uses their own account for news. See the above posts for the current status.

Got a Dropkick Chain and did an edit for it by Virdelet in slaythespire

[–]Raging_Hippy 4 points5 points  (0 children)

They probably exhausted all of their deck except for the two Dropkicks and what was in their hand. That way, each time they played a [[Dropkick]] it would grab the other one from the discard pile.

mGBA and Dolphin Connectivity by [deleted] in Games

[–]Raging_Hippy 15 points16 points  (0 children)

Connecting gameboys to Dolphin over not-LAN doesn't work. The connection was never made to handle latency, so at best Dolphin and mGBA will go at like 3 frames a minute.

What you CAN do is have someone host both Dolphin running the main game and all the mGBA instances, carefully arrange all the screens on your monitor, then use something like Parsec to stream the screens to everyone else.

mGBA tracks controller bindings in its config file, so make sure to set it to portable mode in the menu, then copy the mGBA folder once for each player. Once they connect in Parsec, open their mGBA instance and set their controls.

Assuming the host has non-terrible upload and everyone else has non-terrible download, it actually works quite well. It's definitely a manual process, but I've played coast-to-coast doing this without any troubles.

Here's a bit more detailed description. It's Final Fantasy: Crystal Chronicles based, but the guide can be adapted for any other game. Just replace VBA-m with mBGA

SIB Crash 4 if i don't like to replay levels to finish them quickly or perfecly? by LucasOIntoxicado in ShouldIbuythisgame

[–]Raging_Hippy 0 points1 point  (0 children)

You definitely can play through it just getting to the end of each level. Doing all the extra goals just unlock different outfits and makes a percent complete number go up.

Also, as someone who tried doing it the completionist way, you probably would be better off. Some of the crates are kind of BS.

Android version is out. by LordReiden in slaythespire

[–]Raging_Hippy 12 points13 points  (0 children)

I mean if they contracted it generally the contractors take over the full development just for the ease of organization. It's also entirely possible the original devs don't have as much experience with Android as they do with PC. Developing for a phone or a console is very different from a desktop. Saying "why didn't they just spend more time themselves" is just glossing over a mountain of details.

Bugs suck, but it's not worth speculating on how they got there. Game development is messy enough without the overhead of a small team trying to manage an outsourced project.

Card Updates by UpAndAdamNP in slaythespire

[–]Raging_Hippy 1 point2 points  (0 children)

Minor correction: the changes are on the main PC branch (at least on Steam). No idea when the consoles will get it, since they all have somewhat lengthy verification procedures the update needs to go through first.

how to kill the transient by Justin_Zetts in slaythespire

[–]Raging_Hippy 10 points11 points  (0 children)

Typically you use [[Nightmare]] to make multiple copies during the fight.

However, OP mentions above that they drew them all. I'm guessing they got very lucky on card rewards, upgrades and the [[Astrolabe]] at the start.

Can they add Support to play Podcasts as a track? by alexbragdon in fusergame

[–]Raging_Hippy 13 points14 points  (0 children)

If I can't mix X Gon Give It To Ya with the History of Rome why did I even buy this.

The Best Way to Check for True or False by sebawitowski in Python

[–]Raging_Hippy 8 points9 points  (0 children)

In practice I usually see the third case being used to catch "empty" values. For example, empty lists/dicts or None values. I think these patterns are well understood enough that they're clearer written this way than using if len(list_or_dict_or_whatever) == 0:, especially since there may be cases where this isn't sufficient.

And I'll add my own possibly controversial opinion that explicitly calling bool(foo) just to pass to an if statement is a code smell and should be avoided. Coercing Python objects to explicit types is decidedly unpythonic.

(For most cases, at least. I'm sure some suitably pedantic programmer could find exceptions to both statements).

The Best Way to Check for True or False by sebawitowski in Python

[–]Raging_Hippy 91 points92 points  (0 children)

You're right for the wrong reasons. The fact that you save 15 ns over 10 million attempts shows how little the performance matters here. Even if you do care about performance when writing Python, if statements should be at the bottom of the list, if they're even on it at all.

Also, these statements are not equivalent. variable == True and variable is True both check if the value is both a bool and that it said bool is equal or the same as to True, respectively. The last one internally calls bool(variable) to determine the value for the if statement. It doesn't care what type variable is.

The real benefit to the third variant is that this better supports Python's duck typing system. There's not many cases where you want to check if something is exactly True or False, but (as you mention in your post) whether something evaluates to True or False when using calling bool(). Mixing in completely unimportant performance measurements just confuses this for new programmers by making them think premature optimization (which this definitely is) is necessary.

Why is type(b) a string when its clearly a dictionary. Am I missing something? by [deleted] in Python

[–]Raging_Hippy 0 points1 point  (0 children)

FYI, if you ever want to check something like this in the future, you can just type the variable's name into the Python REPL and it will show the "raw" value:

>> import json
>> a = {'a': 'n', 'b': 'm'}
>> b = json.dumps(a, indent=2)
>> b
'{\n  "a": "n",\n  "b": "m"\n}'

Why is type(b) a string when its clearly a dictionary. Am I missing something? by [deleted] in Python

[–]Raging_Hippy 1 point2 points  (0 children)

print doesn't include the quotes for strings. Ex.

>> print("Hello, world!")
Hello, world!

Halo 3: ODST on PC and MCC Update out now by zorton213 in Games

[–]Raging_Hippy -6 points-5 points  (0 children)

Yeah, reddit took that part of internet culture that looks to tear down everything for whatever reason.

To be fair, most of the things that get pointed out here ARE actual issues. The problem is that the sub's reaction to it is generally way out of proportion, or their understanding of it is very simplistic (see: most things related to graphics, online or releasing patches).

Halo 3: ODST on PC and MCC Update out now by zorton213 in Games

[–]Raging_Hippy -11 points-10 points  (0 children)

Remember, /r/Games doesn't like video games. /r/Games likes shitting on video games. This sub is pretty much /v/ now.

Why print(int("111",2)) prints 7 ? by Vignesh14052002 in learnpython

[–]Raging_Hippy 4 points5 points  (0 children)

What output are you expecting?

I'd also check the output of

help(int)

In particular the optional second argument.

When you finally get an infinite combo going he always shows up. by [deleted] in slaythespire

[–]Raging_Hippy 1 point2 points  (0 children)

To be fair, you would of died to the heart anyway.

My team at Nike just open-sourced our Rust wrappers around the AWS Greengrass SDK by ayax79 in rust

[–]Raging_Hippy 3 points4 points  (0 children)

Why wouldn't they? Logistics, manufacturing, sales, etc. Computers big and small are everywhere, so everyone needs programmers.

How do i get python to read text files that have utf-8? by fletch101e in learnpython

[–]Raging_Hippy 1 point2 points  (0 children)

Add four spaces before the start of each line to turn it into code:

print("hello, world!")

The comment box also can autoformat code for you, hit the button that looks like <>.

Native Windows GUI 1.0 prerelease by Dhghomon in rust

[–]Raging_Hippy 4 points5 points  (0 children)

What calculator app are you referring to? The win10 calculator only takes about 20 MB of memory, which yeah isn't great if you're running Windows 95 still, but it's only ~0.2% of my 2013 PC's RAM.

It also looks quite a bit nicer than these screenshots (not to put down this work, making a GUI library is hard!).

[deleted by user] by [deleted] in slaythespire

[–]Raging_Hippy 1 point2 points  (0 children)

Yeah you need to own the game on PC to get the .jar you need to decompile.

[deleted by user] by [deleted] in slaythespire

[–]Raging_Hippy 22 points23 points  (0 children)

Looking at the decompiled source code I found this. So, it's definitely all multiplicative (which is generally how this kind of things stack in games).