Yeah, nevermind, I didn't know what I wrote either. I need my sleep lol.
Genuinely curious, why do you hate public cameras/cctv?
It is worse in HW prototyping where sometimes loose wire is all over the place
No problems. Learning a new concept is not stupid. So you are familiar with C. In C term, you are likely to do something like this:
int a[10] = {0}; // Just imagine this is 0,1,2,etc...
int b[10] = {0};
for (int i=0; i < 10; i++) {
b[i] = a[i]*2;
}
A 1 to 1 correspondent might looks like ths:
a = range(10) # 0,1,2,etc...
b = []
for x in a:
b.append(x*2)
However in python, you can then simplify to this:
a = range(10) # Same as before, 0,1,2,etc...
b = [x*2 for x in a]
# This is also works
b = [x*2 for x in [0,1,2,...]]
Remember that list comprehension is used to make a new list, not just iteration. If you want to do something other than making a list from another list, it is better to use iteration. List comprehension is just "syntactic sugar" so to speak. The concept comes from functional programming paradigm.
You can. Whatever the method returns will be the element of that list. So if for example I do this:
def mul(x):
return x*2
list = [mul(value) for value in range(1,20)]
It will have the same effect. But this:
def mul(x):
return
list = [mul(value) for value in range(1,20)]
Will just makes the list element all None
Edit to add more: List comprehension works not from the range function. Rather, the range function is returning a list. Hence the name, "list comprehension". You can use any old list for it.
What it did under the hood is that it iterates each element on the list that you specify (the in ...), and applies those to the function that you specify in the very first place. If you are familiar with the concept of Array.map in other languages, this is that. There is also a technical explanation for it if it helps, but it requires more time to explain. Just let me know if you would like to know it.
List comprehension is not whatever you're doing there. An example of list comprehension:
list = [value*2 for value in range(1, 20)]
See, list comprehension is used to make a list from an existing list. The value of the new list is defined by a function. In this case, the value of a will be 2,4,6, etc.
Your current syntax list[...], is trying to access an element of a list.
Yep. Already edited my comment too
Yeah, I may need to rethink my recommendation for the future. Especially their willingness to read and patience. I am happy to guide anyone if they asked and hence why I usually recommend it.
Regarding the random udev rule, I doubt it was that. Cooler Master mouse has known issue in Linux in which they don't wake up from sleep when using the dongle. So it could just be the mouse regardless of the distro.
As for the wrong driver, the OP stated that he experiences stutter for certain games but not for others. As I said, I am not an expert for troubleshooting stutter as it could be from a lot of factors. But I doubt OP installed the wrong driver. Wrong drivers usually lead to more uniform glitches across the board.
Well, it is pretty recent and also the wiki for installing is still pretty comprehensive
You're welcome. I also recommends Arch Wiki on SELinux. It helps clarify a lot of things and how different it is with traditional linux privilege escalation.
bitfucker
0 post score0 comment score
Hmm, maybe I am missing the point. What exactly do you mean by handling automatic updates in place? Like, the program that requires and parses the config file is watching for changes to the config file?