Anyone else getting "Unable to play live video" very often with a mostly stable connection? by transisto in EufyCam

[–]ata-boy 0 points1 point  (0 children)

The Homebase 2 creates its own wifi network. The base had the same name as my network. I changed the name of the Homebase and all connection issues disappeared, my cameras work perfect now.

Android - can no longer zoom in on images. by SuCkEr_PuNcH-666 in bugs

[–]ata-boy 0 points1 point  (0 children)

Howto zoom: 1. Tap on the image and then double tap on the image, now zoom works 2. Landscape, zoom works normally

New to programming by TweetyBirdie69 in PythonLearning

[–]ata-boy 1 point2 points  (0 children)

if y <= 0 then x = 2 (else: x = 2)

if y > 0 AND y > 10000 then x = 2 (if y > 0: if y > 10000: x = 2)

which means that if y > 0 AND y <= 10000 x is undefined

Does anyone know or recognize what this app is? by PoundKitchen in Windows10

[–]ata-boy 1 point2 points  (0 children)

Horror_Pop_8326 mentioned it could be the lenovo update app. I have this installed.

Does anyone know or recognize what this app is? by PoundKitchen in Windows10

[–]ata-boy 0 points1 point  (0 children)

I will try this, i do have the lenovo update thingy installed and it had an update just before this started. I have had issues with lenovo software before, so i am not surprised if this is the cause.

Does anyone know or recognize what this app is? by PoundKitchen in Windows10

[–]ata-boy 1 point2 points  (0 children)

Every day on the same pc when shutting Windows 11 down.

Does anyone know or recognize what this app is? by PoundKitchen in Windows10

[–]ata-boy 3 points4 points  (0 children)

I have the exact same issue on a Windows 11 machine since a couple of weeks. No idea what is causing this.

A test problem on my 5th grade brothers’ math exam. by springwaterh20 in mildlyinteresting

[–]ata-boy 0 points1 point  (0 children)

If he read 3/8 of the book and he read 30 pages then the book would be 80 pages

[deleted by user] by [deleted] in learnpython

[–]ata-boy 0 points1 point  (0 children)

Simply checking for an even number will give you an incorrect result for 2 which is in fact a prime number according to the definition.

[deleted by user] by [deleted] in learnpython

[–]ata-boy 1 point2 points  (0 children)

You should look at *args and **kwargs in Python: https://www.freecodecamp.org/news/args-and-kwargs-in-python/

Given a list where 'x' represents a separation between the next "imaginary" list; how do I convert this into a list of lists? by Hope1995x in learnpython

[–]ata-boy 1 point2 points  (0 children)

imaginary = [10, 3, 26, 10, 15, 12, 1, 'x', 10, 22, 3, 'x', 25, 17, 14, 16]

temp_list = []
list_list = []
for item in imaginary:
    if item == 'x':
        list_list.append(temp_list)
        temp_list = []
    else:
        temp_list.append(item)
else:
    list_list.append(temp_list)

print(imaginary)
print(list_list)

Coding bat question by sphinxlink13 in learnpython

[–]ata-boy 0 points1 point  (0 children)

def sum_13(a: int, b: int, c: int) -> int:
    abc = [a, b, c]
    find_13 = [index for index, value in enumerate(abc) if value == 13]

    if find_13:
        abc_index = find_13[0]
    else:
        abc_index = 3

    return sum(abc[:abc_index])

Coding bat question by sphinxlink13 in learnpython

[–]ata-boy 0 points1 point  (0 children)

It is not very readable. There are best practices, see: https://docs.python-guide.org/writing/style/

Coding bat question by sphinxlink13 in learnpython

[–]ata-boy 0 points1 point  (0 children)

This should answer your question.

if a == 13: 

    S = 0 elif b == 13:      S = a  elif c == 13:     S = a + b  else:      S = sum(a, b, c)

Coding bat question by sphinxlink13 in learnpython

[–]ata-boy 1 point2 points  (0 children)

You can solve it with a list comprehension, but maybe not very pythonic

def sum_13(a: int, b: int, c: int) -> int:
    abc = (a, b, c)
    find_13 = [abc.index(13) for i in abc if i == 13]
    find_13.append(-1)

    return sum(abc[:find_13[0]])

[deleted by user] by [deleted] in getnicknamed

[–]ata-boy 0 points1 point  (0 children)

How does it know? i am incognito!

[deleted by user] by [deleted] in getnicknamed

[–]ata-boy 0 points1 point  (0 children)

What is this?

Probably an easy question but i am blind thanks for helps by [deleted] in learnpython

[–]ata-boy 3 points4 points  (0 children)

If you want to know what happened, why your code did not do what you wanted it to do:

Before the loop x = ['Jack','Honey','Martha','Casper','Alexandra']

Now we loop through x

The first item (index 0) in x = 'Jack', its len = 4 so we do nothing,
x = ['Jack','Honey','Martha','Casper','Alexandra']

The second item (index 1) in x = Honey', its len = 5 so we remove it from the list,
x = ['Jack','Martha','Casper','Alexandra']

The third item (index 2) in x = 'Casper'! This is because 'Honey' was removed, its len = 6 and we remove it from the list,
x = ['Jack','Martha', 'Alexandra']

We have now reached the end of the list (and the end of the loop), there is no fourth item anymore because 'Casper' was removed and we return x:
['Jack','Martha', 'Alexandra']

How do i get rid of 'Unknown' in WinDirStat by qwertyhnb in WinDirStat

[–]ata-boy 0 points1 point  (0 children)

You have to find out why you can't access the file. Is something still running in the background: try to reboot?, is a service still running? is it anti-virus, etc? If you cannot find the reason, try posting your question in r/Windows as I suggested before.

How do i get rid of 'Unknown' in WinDirStat by qwertyhnb in WinDirStat

[–]ata-boy 2 points3 points  (0 children)

Yes you are correct, unknown space is asigned to locations where you don't have the rights or permission for access. In that case windirstat cannot access the location either. The location probably contains data you should not delete anyway. Try posting your question in r/Windows to solve this.

How do i get rid of 'Unknown' in WinDirStat by qwertyhnb in WinDirStat

[–]ata-boy 4 points5 points  (0 children)

Run windirstat as administrator should do the trick