What songs do they usually play at their own concerts?

Only their newer ones that were released within the last 2-3 years (the "weird"/heavier ones, including "SALT") or also older songs from 5+ years ago?

reddit.com
u/Nefthys — 8 days ago

Do acrylic cases for the Pico 1 also fit the Pico 2W?

I'm planning to buy a Pico 2W (no headers) to use as a bluetooth dongle for my PS5 controller but I don't want the board to just lie around "naked" on my desk. Sadly I currently haven't got a working 3D printer to print my own case, which means that I'm going to have to buy one.

I found a small shop (would rather order there than from amazon) that sells both the Pico and a "case" (basically 2 acrylic sheets that are screwed to the board - kind of like this, I bet you can add standoffs too) but they're only sold for the Pico 1 (no "W"). Is anyone using/has anyone tried one of those with their 2W? Does it fit?

u/Nefthys — 15 days ago

No cussing!!!11!

I found this review for an SCP handbook.

For anyone who doesn't know what SCP is:

It stands for "secure, contain, protect" and it's a wiki about an organisation that deals with weird, dangerous, "cursed" and rarely harmless creatures, objects and even locations. There are a ton of entries that are all made to look like field reports, with redacted sections and often also including a containment protocol.

There might be things like a rat that you can hire to look for a lost item but there's also a vase that always has to be kept in a brightly lit room, otherwise something will escape that ... yeah, you don't want it to escape - and a report on how the secret sauce at Mc Donald's is made (hint: >!it's people!<). Think Warehouse 13 but mostly R-rated, so yes, definitely not for kids.

u/Nefthys — 1 month ago

Is there a second way into the subway?

I just finished Initiation 8 and now that Parliament Tower is back (Alan's statue at the plaza instead of the fountain), I can't get back into Caldera Station because I can't take the "Missing FBI Agent" element off the board (Alan complains that he isn't at the scene).

There's the obvious staircase leading down into the tunnels but isn't there also another way that you exit earlier but then can maybe use to get back in later?

reddit.com
u/Nefthys — 2 months ago

3x05: Wtf happened to ....?

You don't even have to know the books to question this:

Armand is 500 and he's able to walk in the sun. Louis was there, Daniel was there, even though I don't like it (makes him too op imo) but there's no point questioning it after the offer of giving it to Daniel too.

Akasha is the "Mother of all Vampires", the show doesn't say how old she is exactly but there's no doubt that she's ancient and yet she burned and Enkil died because of the sun? Why does his head look like it was bashed in right there on the slab? Did Marius arrange it that way (was he feeling guilty?)?

What the fuck happened? What are they not telling us?

I like that they added this mystery to keep even the book readers on their toes!

Also: Sheila is awesome!!!

reddit.com
u/Nefthys — 3 months ago

Remote Play on PS4 without internet connection?

I use RP to stream my PS4 (regular) to my Win 11 PC. They're both in the same network but currently my internet isn't working properly. I can still successfully ping the PS4 on my PC but when I try to connect it with the RP app, it just tries and tries and tries but never succeeds (the PS4 is on and I'm in my account).

In another thread people say that it should be possible to use RP with a PS5, as long as they're in the same network and they had an internet connection once while setting RP up. Is this not the case with the PS4? Is there a way to get it to work on the PS4 (without using mobile data)?

reddit.com
u/Nefthys — 4 months ago

Replace underscore for PascalCase

I've got three classes:

class MyClass_Parent():
class MyClass_Version1(MyClass_Parent):
class MyClass_Version2(MyClass_Parent):

Pylint complains that this isn't true PascalCase. I know that Pylint doesn't always know what's best but I sadly have to use it for this project and reach a certain score.

I could probably rename MyClass_Parent to just MyClass, which isn't great (but acceptable, I guess). But, removing the underscore for both child classes would turn them into MyClassVersion1 and MyClassVersion2, which is so much less clear than the version with underscore. "Real" PascalCase apparently also doesn't use hyphens.

How would you fix this? Is there a better name that tells you exactly what the child classes are (version 1 and version 2) on first glance?

Edit: "MyClass" is just a stand-in because I can't post the real name here and couldn't come up with anything better. So are "Version1" and "Version2": They are two different versions that are used independently, think of it more like version A and version B. One doesn't derive from the other but they share some code, that's why I added the parent.

Edit 2: A better example:

Let's say your code reads files. You might have .txt files and .abc files and .xyz files, so you've got a TxtReader and an AbcReader,... but you might also have two versions because one .abc file could contain a shopping list and the other contains an essay, so you'd have AbcReader_ShoppingList and AbcReader_Essay. AbcReaderShopping and AbcReaderEssay are bad names imo because you don't see the difference on first glance and just Shopping and Essay don't show that they're only meant to be used with .abc files.

reddit.com
u/Nefthys — 4 months ago

Import .module vs. package.module

This has probably been asked a hundred times already but I'm not sure how to search for this (google doesn't like dots in search queries, even with quotation marks) and this long stackexchange answer didn't fully answer it for me.

I've got this file structure:

myfolder/
    __init__.py
    classa.py
    classb.py

classa.py contains only ClassA and classb.py only contains ClassB.

  • ClassA/ClassB = class
  • classa.py/classb.py = module
  • myfolder = package (because of the __init__.py file)

from classa import ClassA throws an error if I do it in __init__.py and also load that file because, according to the answer, classa isn't part of a/the package because it doesn't contain any dots, so __init__.py can't see it.

It doesn't seem to matter if I do

from .classa import ClassA

or

from myfolder.classa import ClassA

What's the difference? I know that .. steps up one level but there's only one dot here and both versions seem to work the same way.

u/Nefthys — 4 months ago

Reload other class from init

I'm having problems with old code being cached and old errors being thrown, even though I've already fixed them, so I'm using reload to reload all classes that are imported later. Both files are in the same folder.

This works:

from classb import ClassB
from importlib import reload
import classb as classb
reload(classb)

class ClassA(): #classa.py
    def init(self,doreload):
        #Some other code

class ClassB(): #classb.py
    def init(self):
        #Do something

However, I want to use doreload to decide if ClassB should be reloaded, so I tried to move the code to __init__:

from classb import ClassB

class ClassA(): #classa.py
    def init(self,doreload):
        from importlib import reload
        import classb as classb
        reload(classb)
        #Some other code

This throws an error at the reload line:

>ModuleNotFoundError: spec not found for the module 'classb'

I already tried to keep import reload outside the class and also used reload(ClassB) instead but that threw another error:

>ImportError: module ClassB not in sys.modules

How do I reload another class from within __init__?

Edit: The problem is simply the app I have to use to test my code: It caches old code at unexpected times (at least when I don't expect it) and without using reload I'd have to restart the app pretty much every 5 minutes while testing, which is quite annoying. Reloading itself seems to be working fine.

reddit.com
u/Nefthys — 4 months ago

Circular import with inheritance

I've got three classes:

  • ClassA
  • ClassB1(ClassA)
  • ClassB2(ClassA)

ClassA reads a file and passes the contents to either ClassB1 or ClassB2 for further processing. The code is kind of similar but still too different require a lot of if/elif that would make it a lot harder to read, so I decided to split it into two classes that each do their own version. ClassA also contains functions that are used by both ClassB1 and ClassB2.

All three files are in the same folder but they can't see each other and class ClassB1(ClassA) throws an exception:

>NameError: name 'ClassA' is not defined

If I add from classa import ClassA, then it works, however when I do b1 = ClassB1() in ClassA.readFile(), then it complains that it can't find that ClassB1, so I have to do from classb1 import ClassB1. This causes a circular import, which is obviously not good.

How do I fix this?

Can you not create an instance of the child class within the parent class in Python?

reddit.com
u/Nefthys — 5 months ago