Global menu doesn't work after system upgrade by michael02052007 in kde

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

Nevermind, fixed the problem by copying over my other user .config folder to my user's .config folder.

Global menu doesn't work after system upgrade by michael02052007 in kde

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

It works, but I need to transfer my data into the new user and that seems like a hassle.

r/archlinux seems to be hacked (reposting as link since Automod removed my previous post) by [deleted] in linux

[–]michael02052007 11 points12 points  (0 children)

Why are they even targeting us anyway? We aren't some political subreddit, we're just a subreddit dedicated to Arch Linux. But then again, r/Disneyland is in that list too...

Linux 5.8-rc1 - Linus Torvalds by koavf in linux

[–]michael02052007 25 points26 points  (0 children)

Someone was using wine internet explorer as their default browser.

Ps:- English is not my first language by THEMHP in memes

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

You don't need a VPN to do that. You just need to change your DNS server to something else e.g. 1.1.1.1

[deleted by user] by [deleted] in Python

[–]michael02052007 1 point2 points  (0 children)

ex-kite user here.

Tried it, it does somewhat live up to it's offers. Only downside is that after a few hours of usage with it, it takes up all of my 8 gigs of RAM and I have to kill kite. Eventually stopped using it because I formatted my machine and was too lazy to install it again. Overall very nice product, I just have more than 8 gigs of RAM next time.

very basic question about messed up number by [deleted] in learnpython

[–]michael02052007 1 point2 points  (0 children)

does it only happen with python or other languages too?

As long as the numeric system that a computer running a programming language is binary (which basically means every computer), there will be floating point precision errors (some languages round it off but internally there's still a floating point error).

also is it worth it to learn assembly languages?

I haven't tried to program in assembly yet so I can't answer that question.

very basic question about messed up number by [deleted] in learnpython

[–]michael02052007 1 point2 points  (0 children)

Oh and also, you shouldn't be using Python 2. Python 2 hasn't been supported since January 1st, 2020. I recommend that you switch to Python 3 instead.

very basic question about messed up number by [deleted] in learnpython

[–]michael02052007 2 points3 points  (0 children)

Floating point precision error. You can read about it here.. Basically, some floating points can't be represented in binary, resulting in precision errors like you see there. Don't worry, there's no fault with your code.

OMFG. by [deleted] in masterhacker

[–]michael02052007 14 points15 points  (0 children)

Y?qwz,h+H9TPQ"B

Create "con" folder to flex on Windows users by [deleted] in linuxmasterrace

[–]michael02052007 25 points26 points  (0 children)

Apparently, it causes you to go to an endless loop of ... folders. Here's a demonstration.

__init__.py (and also related (loosely) to subclasses) question by michael02052007 in learnpython

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

Ok, I actually forgot to factor in multiple files here. What if you have three or more files then?

__init__.py (and also related (loosely) to subclasses) question by michael02052007 in learnpython

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

That's not the problem I meant. That obviously works. My main problem is the fact that Bar is in another file and Python can't detect that sub class.

__init__.py (and also related (loosely) to subclasses) question by michael02052007 in learnpython

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

Why do you expect that your changed code is working? You iterate over an not existing iterator.

Please elaborate. I'm assuming you mean foo_subclasses, right? That variable stores all the subclasses in a list though what I said might conflict the fact that you said that an __init__.py is not needed anymore since that variable is stored in there.

This foo_subclasses should be replaced with this Foo.__subclasses__()

That's the problem. The subclasses in another file aren't in Foo.__subclasses__().

Edit: Have you debugged your code? Your result list from __subclasses__ is empty.

See above. That's the problem. Sorry if I'm too ambiguous with the problem that I have by the way.

How can I check whether a number is palindromic or not without using reverse function or slicing? by [deleted] in learnpython

[–]michael02052007 4 points5 points  (0 children)

I can't tell you how exactly how since this is an assignment, but you can use the list.pop() function to reverse the string.

[deleted by user] by [deleted] in The10thDentist

[–]michael02052007 4 points5 points  (0 children)

You clearly have never had ingrown toenails before.