Jonas Wielicki

Germany

sotecware.net

Age: 22

19h
comment How can a DM brighten the mood?
Is this still too broad? I know that the close happened after the clarifying edits, but I wonder whether that was some reviewing mistake?
21h
comment Will standing on a non-conductive surface with wet feet prevent grounding and therefore electrocution?
Aside from the main question, I’d not be too sure that wetted newspapers won’t conduct too.
23h
comment What makes mains voltage safe in homes?
IEC 60906-1 looks really awesome. Looks like in EE, things take even longer to roll out (compared to software).
1d
revised What makes mains voltage safe in homes?
added 150 characters in body
1d
awarded Teacher
1d
answered What makes mains voltage safe in homes?
Sep
17
comment Electricity Calculator
Let the practical usefulness aside, this heavily depends on the input value distribution. If one (or a few) values are very likely, an if-else block can be much more efficient. Keep in mind, all the strings have to be processed at least once for hashing, and have to be inserted into the dictionary, which might even need to grow if the amount of values is large. However, this discussion isn’t of much value, as python is generally not a performance-centric language (read: it is slow) and it’s only about readability (and writability!) here. A dict clearly wins for any amount of values > 2.
Sep
17
comment Electricity Calculator
“Using a dictionary is generally more efficient and more concise than an if-else block.” Concise yes, more efficient in many cases not (hashes need to be calculated, the dict needs to be built on every use if you don’t cache it manually). [i made a quick timing test with 5 string keys, and values sourced from the global scope; ifelse was about 2 times faster; but python is generally not the language for performance arguments]. Also, why did you rename pvoltage etc. to voltage2? This removes all information about what the difference between voltage and voltage2 is.
Sep
17
comment Electricity Calculator
functools.partial comes into mind for the operations list. Also, you’re not passing the 4th argument to readInputAndExecuteOperation. In addition, python prefers underscores over camelCase (c.f. pep 8)
Sep
17
comment Electricity Calculator
I think there is absolutely no reason to use a class at that point. It is a class which has only static methods. Use a module for that.
Sep
17
revised PCB's and designing power connections
their -> there in that context, also some minor formatting
Sep
17
revised Shutdown in linux without sudo
added 4 characters in body
Sep
17
comment Shutdown in linux without sudo
Eh right, of course.
Sep
17
answered Shutdown in linux without sudo
Sep
16
awarded Commentator
Sep
16
comment mplayer2 playing pictures from mp3
It may be worth mentioning that the -novideo option must be placed in front of the argument (possibly in conformance of other mplayer options).
Sep
14
awarded Supporter
Sep
13
comment How to throttle power consumption of a heating coil?
If they run hot, how is that voltage drop lossless?
Sep
9
accepted Why does my 2N7000 show a gate current of more than 4mA?
Sep
9
comment Why does my 2N7000 show a gate current of more than 4mA?
Ok, turns out it is not the multimeter. Replacing the FET removes the gate current.
1 2 3 4 5