Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Sep 3, 2021 22:41
could have opened a channel with just me and him
Sep 3, 2021 22:40
Mmh, sure. That was kinda dumb.
Sep 3, 2021 22:39
I am currently reading a book about networking :D
Sep 3, 2021 22:38
like greatly better speeds or sth
Sep 3, 2021 22:37
@PM2Ring do you think there will be some groundbreaking discoveries in networking?
Sep 3, 2021 00:35
I think I try out writing a quote "generator" that Display: "quote here" - random famous person random year :D
Sep 3, 2021 00:32
just a change of perspective if you want
Sep 3, 2021 00:32
not doing it tho
Sep 3, 2021 00:31
@PM2Ring is there some educational value to dig into hacking?
Sep 2, 2021 23:42
sanitize requests I mean would have prevented it?
Sep 2, 2021 23:41
so Hearthbleed was: One requests something unpredicted by the server from the server and gets useful data in return? KINDA like sql-injection or not?
Sep 2, 2021 22:59
@PM2Ring so the gist of this dwheeler.com/trusting-trust is, you gotta have a trusted compiler to compare your potential untrustworthy compiler? I feel that's just outsourcing the problem to the next chainmember
Sep 2, 2021 21:08
@PM2Ring sick.
Sep 2, 2021 20:33
@Elysiumplain so pray and hope is the winning strat?
Sep 2, 2021 20:21
Of course it helps if you don't pay the hardware haha
Sep 2, 2021 20:20
to squeeze every ounce of it
Sep 2, 2021 20:20
I've heard bitcoining is not very environment friendly, because the hardware that works for year x, will get replaced in x+1
Sep 2, 2021 20:14
for example (didn't test)
Sep 2, 2021 20:14
@Elysiumplain ah you mean numpi instead of numpy which imports a seemingly working numpy but with a few "special quirks"?
Sep 2, 2021 20:11
Me neither because it's coding unrelated
Sep 2, 2021 20:07
Sep 2, 2021 20:00
So there is no danger of mistypos, you have to be really creative? (or copy untrusted code/libraries)
Sep 2, 2021 19:59
@roganjosh ah, I thought incorrectly
Sep 2, 2021 19:58
@roganjosh Sorry I forgot that Python doesn't produce .exe's to be run, I'm coming from codeblocks c++
Sep 2, 2021 19:52
if some guy thought it would be funny to write malicious code
Sep 2, 2021 19:51
I just wondered how you safely program. I have compulsing thoughts to I need to be on the safe side. So if I just c/p code I don't want my PC to be ripped apart :D
Sep 2, 2021 19:47
ah ok
Sep 2, 2021 19:45
How can I make a program that doesn't require the targetmachine to have python installed (in this case linux and windows)
Sep 2, 2021 19:43
@roganjosh maybe I make it complexer than it needs to be :D
Sep 2, 2021 19:40
suppose I write a windows/linux program that is written in the other OS, obviously running it will be dumb
Sep 2, 2021 19:39
I only want to compile, not run
Sep 2, 2021 19:34
how can I disable the ability to run code in vscode? To not accidently run it.
Sep 2, 2021 01:09
Is there a solution which doesn't involve looking in other processes that determines whether a file is in use already? (crossplatform)
Sep 1, 2021 20:20
@MisterMiyagi can you explain in easy words what it means if an application is in an inconsistent state? (in general, not tied to my code)
Sep 1, 2021 20:06
inconsistent state was it
Sep 1, 2021 20:05
Oh ok
Sep 1, 2021 20:02
@MisterMiyagi can you say me again the term you used? undefined state or something.
Sep 1, 2021 10:26
Should comments/docstrings be always written in English, no matter what?
Sep 1, 2021 10:04
@MisterMiyagi Thank you for mentioning it, kinda forgot such things exist :D
Sep 1, 2021 09:53
or should it really be if (first_condition_in_the_same_line_as_if...
Sep 1, 2021 09:50
if (
    this_thing and
    that_thing
    ):
    do something
Sep 1, 2021 09:50
does this follow the PEP8?
Sep 1, 2021 09:33
^
Sep 1, 2021 09:32
Also the German wikipedia article has not the same information as the English one (but no contradicting at least)
Sep 1, 2021 09:30
I assume there is no "negative current"
Sep 1, 2021 09:29
To be honest I don't understand ternary. Is -1 then 0 current, 0 some current, 1 more current?
Sep 1, 2021 09:14
Is ternary the highest useful, or can there be a computer where one bit has 4 possible states?
Aug 31, 2021 15:02
Should I use a machine with other users that doesn't reset everything on new boot?
Aug 31, 2021 15:00
@Kevin I can't see a reason to have files related to the program in any other folder than the program folder. Is it used for multiple users on one machine?
Aug 31, 2021 14:57
I miss these days where you copy/paste a program folder between PCs and it just runs as whished