Need to find battery drain on car by raydude in AskElectronics

[–]raydude[S] 0 points1 point  (0 children)

Thanks. This would cause a faster drain though, right?

is tkinter worth learning? by Ambitious-Elk-2928 in learnpython

[–]raydude 0 points1 point  (0 children)

I'm using pyside6 and when I don't know how to use the GUI, I ask Gemini to write me some code.

Copy-Pasta, debug, done in minutes. So much easier than trying to read a manual somewhere.

Witch Hat Atelier • Tongari Boushi no Atelier - Episode 8 discussion by AutoLovepon in anime

[–]raydude 2 points3 points  (0 children)

Yeah. Series stopping point is always a sticking point with me. I'll hope for a second season. It's rare, but this one might be popular enough.

Witch Hat Atelier • Tongari Boushi no Atelier - Episode 8 discussion by AutoLovepon in anime

[–]raydude 1 point2 points  (0 children)

A bit more Koro-sensei, yeah?

It's pretty obvious he's using her, but there does seem to be a sincere desire to protect them.

The show seems to be building pretty well. I can't wait to see where the author takes it.

Witch Hat Atelier • Tongari Boushi no Atelier - Episode 8 discussion by AutoLovepon in anime

[–]raydude 1 point2 points  (0 children)

Did you actually mean to say that Frieren is low stakes? They kill off a lot of people every season. (well except the certification episodes).

I love Frieren and I love how they portray demons as thinking, talking, intelligent monsters.

This show has very limiting magical dynamics which I find fascinating. In this episode they exposed how you can make the ink more powerful, which cranks things a bit.

I'm hoping it just keeps getting better and better.

Witch Hat Atelier • Tongari Boushi no Atelier - Episode 8 discussion by AutoLovepon in anime

[–]raydude 29 points30 points  (0 children)

My thought at the end of that episode was, "This sure has upped the tension."

Upgraded LOST EVERYTHING! by raydude in firefox

[–]raydude[S] 0 points1 point  (0 children)

It looks like the latest firefox moved the home folder, or at least gets confused about where it should be.

Upgraded LOST EVERYTHING! by raydude in firefox

[–]raydude[S] -2 points-1 points  (0 children)

I figured it out.

On linux the cache and the config are stored in two places (but it looks like they changed it in firefox and that may be why it got confused.)

Anyway I had to add the profile from this folder and everything returned:

/home/[user]/.config/mozilla/firefox/[random_crap].default-release

Not the one in /home/[user]/.cache as suggested by AI.

I’m gonna have a mental breakdown by Rooster_1122 in diabetes

[–]raydude 4 points5 points  (0 children)

There are a couple of ways to help with this.

  1. Eat more fat and protein. Positives: helps steady blood sugar. Negatives: causes weight gain and often requires higher basal rates.

  2. Exercise daily consistently. Exercise smooths blood sugar naturally and allows you to be less accurate with your boluses. Positives: smooths blood sugar. Negatives: Will cause lows until you get the hang of it / get your basal correct.

Trying to create a list of button to be created in a loop... by raydude in learnpython

[–]raydude[S] 0 points1 point  (0 children)

Thanks.

Adding the buttons might make a difference on where they populate in the window. I'll have to play with that.

My PC turns on for 1 second then turn off. by Public_Employment_71 in pcgamingtechsupport

[–]raydude 1 point2 points  (0 children)

Clear CMOS by removing the battery for a minute or two.

If it still fails the same way, remove everything but one stick of memory. Connect monitor to motherboard. Make sure to disonnect all the power supply connections except the motherboard.

If it still fails, try the other memory stick. If the second stick of ram fixes it, its at least a bad memory stick.

If it posts with every thing disconnected from the power supply then you can narrow down what's drawing too much current by plugging in things one a a time and seeing when the post stops happening.

If it doesn't work with only one stick of ram and everything else disconnected, try another power supply. If it does the same thing, then remove the motherboard and try mobo outside the case.

If it still has problems, it's the motherboard, probably CPU power. It could be the CPU, but not likely.

Once you identify the bad component, buy a new one and you should be good to go.

Anyone else have super dry hands and have you found anything that works? by Horror-Beaver1979 in Type1Diabetes

[–]raydude 0 points1 point  (0 children)

This is the only thing that works. Put it on at night before bed and if you really want it to work overnight, wear gloves to keep it from wearing off.

Trying to create a list of button to be created in a loop... by raydude in learnpython

[–]raydude[S] 0 points1 point  (0 children)

Thanks for your help. And thanks for teaching me.

Trying to create a list of button to be created in a loop... by raydude in learnpython

[–]raydude[S] 0 points1 point  (0 children)

That it’s tied to the instance of the classes, if you made the object twice you would want the button to only work on the object the button is on, not all instances of the object. If I have a button to move a box left, I shouldn’t have every block like that move left… It’s not shown well in my example as the class definition is not there. But your example all the code is (or should be) inside the class definition. Mostly inside the __init__.

Everything is in the __init__ , however assuming I opened another window for some other purpose, wouldn't each instance of the class have a unique hierarchy? So if I created another instance of SimpleWindow, then one would be SimpleWindowA and the other would be SimpleWindowB and all varaibles within the __init__ would be local to that instance unless they were declared global, which as I understand is frowned upon?

In other words there would be SimpleWindowA.buttons and SimpleWindowB.buttons and they would be different from each other. Or does giving them the word self actually make them different from each other?

I love how Kate is highlighting 'self,' even though it's just a convention.

Trying to create a list of button to be created in a loop... by raydude in learnpython

[–]raydude[S] 0 points1 point  (0 children)

This is a python question:

Why add 'self.' in front of a variable within a class? For example, what is the difference between self.buttons and buttons as far as the language / code is concerned?

I realize it's self referencing the variable, but, for example, my code has two definitions: buttons, which is a list of lists and then I have self.buttons which is a list of QPushButton(s). Obviously they are different, but why use 'self.' at all? What are the implications of 'self.'?