#voice-chat-text-1
1 messages Β· Page 69 of 1
its trash and repetetive
@winged rose π
π
its sickeningly perfect
it's not
not even that
(responding to meu)
it sounds shit
all of it
there is not a hint of "perfect"
@stuck bluff shitpost as a service, as all genAI
I wonder if troll farms are still cheaper than LLMs 
the only use-case for gen AI is answering my dumb question like how to quit neovim
judging by job postings, yes
fake, exiting vim is impossible
depends on what state you got yourself in
:q! sometimes doesn't work immediately
spam escape, wait, spam escape more, then :q!

I almost never :q, got a habit of :q!ing even from a read-only open
on my setup first ypu enter the visual mode then you will hit the leader key then go to the telescope and you search for the magic word then you ask lucifer for permition to leave then you press esc button thr trolly pop up will show and if you shoose not to change the rail then neovim will exit
i just exit out of tmux and then then kill vim process
best program
/ # ed
quit
?
exit
?
^C
?
?
?
@rapid granite π
M-x ed
?
one-way trip
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@fossil garden π
hi!!
One question
I have than wait by 3 days for voice verification?
oh ok, thanks
π€
@violet badger π
Pardon?
I slightly bollocksed up some spag bol. It was okay, though.
I made pasta.
Chicken and tomato based sauce.
I slightly mistreated the pasta side of things.
mamma mia
The pasta stuck to itself and to the pan and sat in there for too long because it wasn't hot enough so it was a touch clumpy and it also broke up into shorter noodles.
π€ pasta al fuckuppi
It was okay. It wasn't too bad.
Pasta Grannies. Good channel.
I'm usually pretty good at the pasta.
on my code event listener was per objects
because the window manager will take those events and call that event for the selected object
Doc.
@lavish pumice π
I said hi back.
I do.
I've never called you Stacey, Osyra.
...do you want me to?
What operating system do you guys use
π§
Who uses mac here
Lunix.
I wasn't talking about yours.
SunOS 4.1
internet is filled with sora AI flops π
Lamb.
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 8
002 | 15
003 | 12
004 | 35
I'm slightly surprised it worked first time
ugh the rerun timed out
wanted to add clarity to the output
!e
from collections.abc import Callable
from math import prod
class Number:
def __init__(self, value: int):
self.__listeners = []
self.__value = value
def _set_value(self, value: int):
self.__value = value
for listener in self.__listeners: listener()
@property
def value(self) -> int: return self.__value
def add_listener(self, listener: Callable[[], None]): self.__listeners.append(listener)
class Sum(Number):
def __init__(self, *numbers: Number):
value = lambda: sum(n.value for n in numbers)
super().__init__(value)
for n in numbers: n.add_listener(lambda: self._set_value(value()))
class Prod(Number):
def __init__(self, *numbers: Number):
value = lambda: prod(n.value for n in numbers)
super().__init__(value)
for n in numbers: n.add_listener(lambda: self._set_value(value()))
class Input(Number):
def set_value(self, value: int): self._set_value(value)
a = Input(2)
b = Input(3)
c = Sum(a, b)
d = Prod(a, b)
c.add_listener(lambda: print(a.value, '+', b.value, '=', c.value))
d.add_listener(lambda: print(a.value, '*', b.value, '=', d.value))
a.set_value(5)
b.set_value(7)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | 5 + 3 = 8
002 | 5 * 3 = 15
003 | 5 + 7 = 12
004 | 5 * 7 = 35
here both inputs have multiple event handlers per same event
(stuff of that sort is more common in UI stuff, idk what specifically you're using event handlers for)
for UI
more realistic example of that I wrote recently:
one event handler updates a table,
another updates a graph
currently im trying to make a foundation for my larger project by creating a simple calculator app
by creating stuff
ill show my file tree
add an option to run multiple calculations on same input
and have them dynamically update
basically this
you'll see then how it becomes simpler with a multi-map
@thin lintel I can play tomorrow, yes
Hey, Maro.
you mean marco
@crystal aurora got summoned by earlier pasta discussion, clearly
with a slight delay
π€
@crystal aurora it's going to be multi-language anyway, I'd assume (at least Bash+Java)
@turbid field π
depends on what level it's composed at
process call or method call
many small Java tools vs one big Javalith
How long have you all been building projects using python
8 years
Hi
(minus three days)
That's long
@crystal aurora have Java call Kotlin and have Kotlin call Rust via UniFFI
java π kotlin π rust π the police python
UniFFI comes with full support for Kotlin, Swift and Python
Android, iOS and the rest of the world
seems like Swift has async/await too
I wonder if they'll do C# support
at some point
Bash is slightly older than Linux
ash and bash are both from 1989
I finally started working on the intrusive queue implementation
it might end up being slower than what I currently have
since I still want a safe interface
so there are no guarantees that I'll gain anything from this
other than dropping Unpin requirement
and some not-running-out-of-memory guarantees
no
unsure
some of those letters are effectively just umlauted versions
just not via diacritics
and, like, two which do have diacritics
North Ossetia
South Ossetia isn't Russia, according to Russia
Georgia says it's Georgia, Russia says its independent
afk for a sec
there is some amount of fear involved, since doing anything against the system (including being a fan not loudly enough) is potentially prosecutable
and I'd expect that to be even more the case in European parts which aren't Moscow
the sky is sideways
back
does any one know how api work
which API
web sever api it not sending my my data from my script to a web ui
a csv file that dispays the info to the ui
are you using someone else's API or one you made?
who hosts the web server?
@misty urchin look at how aligned this is
serendipity or intentional?
one i made
intentional, easier to read that way
in either case it's nice
(also it's not starting from 0 because it's nicer to have 0 as invalid state, in case I accidentally read from zeroed memory)
two main values to avoid are 0 and 65
is this for me
or 170 if you scream in hex not ASCII
what backend are you using for the server?
how are you detecting whether or not calls arrive there?
I've definitely seen some digital forensics talk, not sure if that one
were there two presenters?
ok this worked
slightly more orthographically normal
(I have no idea what worked, since I so far only asked questions, and all the state stuff was unrelated)
ok so umm is there a better way to do this i am bull data from an api right and it make a csv file and i think every time i pull new data it creats a new file so the api does not using the new file
@misty urchin disk at a low level is just a bunch of bytes, so, as soon as it gets paved over with a new filesystem, that's all you have left, kind of
I don't understand are you getting data from the api or sending data?
it should just add to the csv file right instead of creating a new file alltogether
both
unencrypted swap
if the power gets cut off
, then there is no way to proactively do that
i am pull and sending the data gets pulled creates a CVS file and stores multiple data letters and numbers
somewhen ago, NVMM was considered a possible idea, ZFS even had some work done on it
bro i am not hacking i am pull data form an api that is a public api i can pull from
(what ZFS potentially got from it: persistent caching)
((non-volatile main memory))
@clever isle noone said you were hacking
is it overwriting the file or making a separate one?
if you want to append to a file, open it with "a" instead of "w"
making a separate one?
no i am not
I think csv module should work fine even with an append-only file
I think for debugging, it would be easier if you separate the requesting of new data from the pushing to your web api
Rust is about to yell at me for using the wrong atomics ordering
(once I fix name errors)
its funny becasue the words number are going it just he words
first figure out if when you send something if it's shown on your UI
if yes, then the issue is probably with how you handle files between requesting data and sending data
if not, then you know it's something that happens after posting new data to your api endpoint
how do i fix the scan issue do i make one file enforce that all re scans go to that specific file and then the api get theh info from that file
is that the wright way to do this
what do you mean by rescans?
Theodore Wright mentioned
rescans? i pull data list data is a lot of things its big i am only pulling 2000 when i re scan it pulls another 2000
you can just store the data in a file and overwrite it on a new post
if you don't care about the old data
The data flows from Python scanner β CSV file β Backend service β API endpoint β Frontend component β UI display!
i care about old data it would reduce scans
do u think the data gets stuck in the api or the back end devices
who want to do this for me
I would send one request and follow what happens in the logs and on the ui
and see at what point the thing I expect to happen doesn't happen
and then start looking there
bro how do i debug
print()
ahhh
idk what you have running on your backend
but logging should make your life easier
lol
how do not display wht ur api is doing in the console of the web browser
I tried to encrypt it and then it blow up my code
F12
Network
i dont want my stuff showing on there how do i take it out or it because it a dev sever
all the data, that JavaScript has access to, is also accessible to the user
the are no easy/efficient ways to encrypt it, JavaScript presently doesn't provide a mechanism to use certain CPU's intrinsics for running trusted code on untrusted platforms
if you want something hidden, don't send it to the user
it's displaying my Python process in the console. I just want to show the numbers. It's like showing what it calculated and how I calculated it.
if it redirects your python logs there, then, yes, that is, possibly, a feature of the dev server
got it
so is this the best way to to do this have one csv file that re scans just add to the file list
is anyone here working on any cool things
if you want to add a row to the CSV file, you can open the file in append-only mode
i want it to be done automatic
currently translating https://www.1024cores.net/home/lock-free-algorithms/queues/intrusive-mpsc-node-based-queue into Rust from C
!e
with open("test.csv", "a") as f:
f.write("a;1\n")
with open("test.csv", "a") as f:
f.write("b;2\n")
with open("test.csv", "a") as f:
f.write("c;3\n")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
test.csv
a;1
b;2
c;3
!e
from csv import writer
with open("test.csv", "a") as f:
writer(f, delimiter=";").writerow(["a", "1"])
with open("test.csv", "a") as f:
writer(f, delimiter=";").writerow(["b", "2"])
with open("test.csv", "a") as f:
writer(f, delimiter=";").writerow(["c", "3"])
:white_check_mark: Your 3.14 eval job has completed with return code 0.
test.csv
a;1
b;2
c;3
@clever isle csv seems to work fine with "a"
"also consider using [today's hangman phrase] instead"
look u picking apples from tree ur basket is not full and lets say u make a new basket instead of just using the same one u have
(this reuses the same file)
"a" means "write to the end of the file"
@misty urchin I assumed it would be quite simple from context to guess the answer
(it was primarily made for @sly pond to guess)
((this is the hint))
@misty urchin working with pointers seems to be surprisingly not that painful in Rust
(compared to typical C/C++)
@misty urchin seemingly they're just files
as far as cleanup/whatever goes
also seems like can't O_TMPFILE it
That is a lot of U's
I'd have to go with an R
I assumed it was meant to be solved without extra letters
That's just bang you die
no hangman
I assume hangman means guess letters until the man hangs
That's how I always played as a child
What a pleasant children's game
words and murder
lots of stuff that's for children is actually pretty hardcore
__ru__ur__ _u_r_ ____u___
"clearly, the pipelines in question are (were?) Nord Stream 1 and 2"
I haven't read through these
proper Linux is definitely preferable over WSL
none
you just don't get those perms when a moderator isn't in the VC already
@odd ember thats it?
dawg my eyes turn red and my pants turn brown when i get scammed dawg
π₯Ή βοΈ
@hybrid wolf please come back
I can't do my code
If I didn't have you
@hybrid wolf If you come back, you can ask me for anything
I can't sleep @hybrid wolf
@stark drum
what do u wanna do
i have connection issues please write in text
also im arabi too
oh
I don't use Mac, so I'm slightly useless.
Drop-down menu, Options, Configure IDLE, Highlights, Highlighting Theme
Would anyone like to hear a joke?
somename.py
!code
@crude mirage https://peps.python.org/pep-0008/#package-and-module-names "Modules should have short, all-lowercase names. Underscores can be used in the module name if it improves readability. Python packages should also have short, all-lowercase names, although the use of underscores is discouraged."
module / .py file
input()``````py
input(prompt, /)```
If the *prompt* argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, [`EOFError`](https://docs.python.org/3/library/exceptions.html#EOFError) is raised. Example...
input()
input("What is your name? ")```Are both valid.
"
'
Double quote, single quote.
Each are one symbol.
Oh pal miss t
Suu doh nim
Pneumatic. New mat ic.
!e py name = "Ghazi" print("Hello, {name}.") print(f"Hello, {name}.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello, {name}.
002 | Hello, Ghazi.
!f-string
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
!e ```py
(string) variables using the + operator
a = "abc"
b = "def"
c = "ghi"
print(a + " and " + b + " and " + c + ".")
f-strings are often better
print(f"{a} and {b} and {c}.")```
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | abc and def and ghi.
002 | abc and def and ghi.
!code
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
```py
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
I'm asking you to send your code as text, not as an image.
print("Hello, world.")
name = input("What is your name ? ")
print(f"Hello, {name}.")
This shows you a good way of doing so in Discord.
print("Hello, world.")
name = input("What is your name ? ")
print(f"Hello, {name}.")
'''py
name = input("What is your name ? ")
print(f"Hello, {name}.")
name = input("What is your name ? ")
print(f"Hello, {name}.")
,
p y space your code
Not this.
This.
This
name = input("What is your name ? ")
print(f"Hello, {name}.")
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
p y print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")
name = input("What is your name ? ")
print(f"Hello, {name}.")```
name = input("What is your name ? ")
print(f"Hello, {name}.")
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")
name = input("What is your name ? ")
print(f"Hello, {name}.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
```py <- Line 1
print("Hello, world.") <- Line 2
name = input("What is your name? ")
print(f"Hello, {name}.")```
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")```
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")
print("Hello, world.")
name = input("What is your name? ")
print(f"Hello, {name}.")
@stark drum I return.
I came one minutes
If you want to know something the common ancestor between cats and dogs must have been very happy because they're relative was the
|| -#smilodon||
how many years
@hybrid wolf Keep your promise
The part I don't want you to take away means I want you to stay @hybrid wolf
I have a sound @fathom ore ?
i cant talk rn
me no too
yes i can hear you
im not robin
@shell mural https://www.twitch.tv/lapetitepotiere
this is the one right?
yes ofcourse !
MSI Thin 15 B13UC-3024FR
Ubuntu 24.04 probe for it, it looks good
https://linux-hardware.org/?probe=942218360f
hey @glad turtle what r u doing
I'm going to provide you a detailed report on my activities ASAP
what kind of activities
Please send me a Timesheet Template so I can fill it in with every task I've worked on, and the amount of time it took me to complete it
u can speak right
You will find out by reading the Timesheet Report that I will send to you
ok sure i will definitely read it
is this some kind of game website
i already visited but i didn't understand
cool
stay tuned for my detailed Timesheet & Activity Report where I will explain to you everything I'm doing, free of charge, in detail
ok
XD
I don't remember the question, but I remember the answer: Ruby
@misty sinew not really, mostly cultural
mostly environment
early programmers were mostly female
that too was just an environment result
thats not true lol
mostly a result of discrimination within the hardware industry at the time
burden of proof is on you
programming and alike was seen as tedious, therefore delegated to women
same thing happened to computers (human workers, mostly female, doing calculations) in early 20th century astrophysics

(this specific image is unrelated to programming directly, adjacent occupation)
okay, sure, I'll try to find specific sources, but, also, go learn history
This is a unique way of looking at it with knowing that
that picture could be a consequence of selection bias, that tells almost nothing about them their percentage in relation to the whole category
idk why you keep saying that lol
if you post a plot in response to claims about early programming that starts with 1965, this shows you have no clue about programming history
for someone to make the claim and not be able to back it up, and keep asking me for counter when i didnt even make a claim for or against anything
If I say George Washington was the first president, do I need to back it up?
Historical fact is just that
okay maybe you are the one who should consider doing that lol
everyone should get educated continuously, not going to argue against that
there is only so much one can know and for you to blatantly throw a statement and not back it up when asked for and attacking with "you should go educate yourself" reads to me bad faith
I'm slow at finding specific sources, and I'm currently busy doing that
Harvard Computers
okay you could have said that lol
the reason here seems to have been wage discrimination
(it wasn't based on skill difference)
you say that, but where is that coming from
(I assume we're at least not going to debate the fact that Harvard Computers were female)
you're asking for sources on reasoning why female were picked, right?
we are not debate you show me clear stats and i believe but you havent yet
let me make is easy for you, number of programmers, men percentage in it, female percetnage in it
can we establish at least the fact that Harvard Computers were female?
as a start of properly figuring this out
which kind of sources do you accept for that claim?
i mean lol i dont think i am willing to grant you that
numerical data?
if you want a number:
100%
from what kind of source will you accept that number?
idk lol, study, article? whatever takes you to prove that female > male
I'm not making that claim
credible source
my two specific claims were:
- early programmers were mostly female
- early computers (human computers) were mostly female
don't try to make up what I'm claiming
quoting you on this one
early programmers were mostly female
this has absolutely nothing to have with this
enlighten me how
this can be true as well just because female were worse but cheaper to hire
doesn't have to relate to skill
do you want me to explain basic logic to you?
attacks again?
ye sure explain me basic logic
cause idk how "mostly female" doesnt imply female > male
neither of these claims implies the either:
"early programmers were mostly female"
"female are better than male at programming"
why? because difference in percentage of employment doesn't inherently mean difference in skill
more people of certain kind hired doesn't mean those people are of higher skill
if you apply your logic,
"programmers are mostly inexperienced" implies "inexperienced > experienced"
ok that sounds irrelevant, i thought it was implicitly implied for you to be called a programmer it must be your primary job, so by claiming that early programmers were mostly female you are basically making this vague aregument that there were more women who could program than men and no one can prove that, tells more about your biases and lack of scientific tempramwnt
i dont think anyones making the inference
I didn't claim "could program", what I said specifically was about actually being working on programming
but nor am i making the opposite inference and if you are doing that hey bias alert
if you need a more specific timespan, iirc this was specifically the time when most programming was done on ENIAC
that seems like another red herring
i am sorry i dont wanna bail out, but i really dont think this is going anywhere
do you agree that arranging/configuring ENIAC to do execute specific instructions is considered programming?
oh you edited
I added /configuring
ok sure
or do you require a textual programming language to qualify the activity as programming?
(with text interpreted/compiled by the machine)
because, sure, if you push and twist the definition of programming the right way, you can get very varying ages for "early programming"
where tf do i find publicly available books on eniac
i mean you claimed early programmers were mostly female, that definitely begs alot of questions about the entailment of the word programmer back then. i ll let you choose that definition as long as it not tooo far off
this with regard to ENIAC
is this selection bias because only including ENIAC?
within that time period, no, because there was nothing other than ENIAC at the time that was actually used and programmable
Bombe was way too inflexible, and from what I'm finding, also had fewer people working on it
if you want a specific year estimate where the percentage flipped, I can try doing so finding it
ugh why is it paywalled
https://journals.sagepub.com/doi/10.1177/00218286211000470
i am not the one to accuse everything of selection bias that image was clearly a seems a product of that unless you expand on the context
I'm clarifying because you accused earlier
i am more than happy to concede that female was majority gived convincing evidendces
(I'm back to trying to find specific articles for the Harvard Computers thing)
my bad, it seemed like it was just like a photo session or some think along those lines for the women to signal inclusivivty or diversity some shit
ah, yes, the classic mid 20th century DEI
"β make sure to include some housewives in there"
whats dei
if I demonstrate the following two things:
- early programming for some period of time was only ENIAC
- most ENIAC programmers were female
will that be enough?
this is absolutely not an ego thing for me;
if you find a hidden pile of male programmers from the time of ENIAC, I will concede the point
I have no idea for what was happening right after ENIAC
Descartesn't:
I do not think therefore I do not am
"I think therefore I am" (Descartes)
sure yeah
e.g. if you want spoilers on the Computers thing rather than the Programmers thing:
I though the difference continued well into mid/mid-late 20th century
it didn't
like on that, while I didn't claim it, I misremembered
and this might've been a photo from those later years
that's fine i am not gonna pin you on that even if you did
the main competitor to this claim is [I don't remember its name] by Konrad Zuse
Z3
Z3 and other Zuse's stuff was more advanced than ENIAC, earlier than ENIAC
but didn't get enough recognition/use
what competiter mean in that sentence lol
probably partially because Germany
you mean like opposition by any chance
no
hmm
competitor to ENIAC's claim of being the only used and programmable computer
oh
the main proponent of that claim you mean?
competitor to ENIAC
and I guess, yes, counts as opponent to the overall first claim from there
(thanks for helping with words, I'm so sleep deprived lmao)
i am drunk haha
((this might be why sometimes sounding like broken record))
we are both not in the best position for having debates
IT WAS WHOLE 6 YEARS BEFORE THE NEXT COMPUTER???
they made, like, several UNIVACs next, went bankrupt, then got bailed out
hmm
irrational is real\rational
lmao
omfg this computers timeline site of some museum is driving me insane
I can't stand this layout
the picture does not fit on the damn page aaaaaa
most follow up computers seem to be around 1949
1945~1949 so far is exclusively ENIAC, as far as programmable stuff goes, as far as I can see
the zoom out doesn't work
okay, found, update: 1948
(SSEM)
SSEM had one whole kibibit of memory
how luxurious
(I'm trying to narrow down that period of ENIAC only)
there is a sleep deprived text-only woman
I think this was with the introduction of UNIVAC
"I'm not going to back up any side of this because I'm way too busy reading computer magazines"
I have no clue what's going on in voice
I have my happy box of text where I hide and I pretend I don't hear the rest
@sly pond "you're missing everything", whatever this everything is
this is early RAM memory or its immediately predecessor.
aaahhhh
@small field you remember me?
i'm lagging
Woo.
does anyone know a library for py interaction with a paystack api
Last muted night tonight.
No.
I hope you reported that.
Good.
Did you reach out to the target?
@little nova π
@manic stirrup π
did you need something @small field ?
Can you look my website bro : )
link seems sus
@small field
The URL provided (http ://thumbnails-racial-parent-argued.trycloudflare.com/home/) does not return directly accessible or meaningful content for summary from the search results or cached sources. It appears to be related to a temporary or proxy Cloudflare URL potentially serving thumbnails or media content with no clear text or context available from public web indexing.
This website is programmers social media
@small field Thumbnails Racial Parent Argued is not a social media site
No bro this websiteβs name is codechest and URL is random
see earlier joe's comment on not sharing trycloudflare links
if you can, pay for a domain, they're cheap
@misty sinew
https://www.codebattle.in/ (multiple players, LC problems, poorly written, down most of the time, confirmed by Noodle)
https://www.beatcode.dev/ (only 1v1, LC problems, works but only 1v1)
https://leetrooms.com/ (requires chrome ext)
https://www.cpduels.com/ (only for codeforces)
https://code-duel.vercel.app/ (web server is improperly configured, doesn't allow login)
@misty sinew click it https://beatcode.dev/room/6BE7WE
@misty sinew i wanna try leetrooms instead, this is too draining of a problem
@misty sinew are you okay with that?
class Solution {
public boolean wordBreak(String s, List<String> wordDict) {
for (int i = 0; i < wordDict.size(); i++) {
s = s.replaceAll(wordDict.get(i), "");
}
return s.equals("");
}
}
"tcrc", wordDict = [""tc", "tcr", "c"]
cause tc will be encountered first so it will remove it before trc
right
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
if __name__ == "__main__":
for host in hypervisors:
tcp_check(host)
ssh_client = connect_to_host(host, username, password)
try:
hypervisor, list_command, shutdown_command, pattern = get_hypervisor(ssh_client)
info = get_info(ssh_client, list_command, pattern)
print(info)
run_shutdown(info, hypervisor, host, ssh_client, shutdown_command)
finally:
ssh_client.close()
print("Connection closed.")
!e
class A:
pass
class B(A):
pass
a = A()
b = B()
print(isinstance(a, A))
print(isinstance(b, A))
print(isinstance(a, B))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | True
002 | True
003 | False
class A:
pass
a1 = A()
a2 = A()
!e
class Person:
def __init__(self, name):
self.name = name
def greet(self):
print(f"Hello. My name is {self.name}.")
sally = Person("Sally")
peter = Person("Peter")
peter.greet()
sally.greet()
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello. My name is Peter.
002 | Hello. My name is Sally.
def get_hypervisor(ssh_client):
output, err = run_command(ssh_client, "which esxcli >/dev/null 2>&1 && echo ESXi || ( which pveversion >/dev/null 2>&1 && echo Proxmox || echo Unknown )")
hypervisor = output.strip()
if hypervisor == "ESXi":
list_command = "vim-cmd vmsvc/getallvms"
shutdown_command = "vim-cmd vmsvc/power.shutdown"
pattern = r"^(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*?(\S*)\s*?$"
elif hypervisor == "Proxmox":
list_command = "qm list"
shutdown_command = "qm shutdown"
pattern = r"^\s+(\d\d\d)\s+(\S+)\s+(\S+)\s+\d+\s+\d+\.\d\d\s(\d+)\s*$"
else:
list_command = ""
shutdown_command = ""
pattern = ""
return hypervisor, list_command, shutdown_command, pattern
list_command = "vim-cmd vmsvc/getallvms" if hypervisor == "ESXi" else "qm list"
how about having a base class "Hypervisor", and 2 classes derived from that "Proxmox" and "ESXi"
and a class called "VM", which is basically what you have running in a hypervisor..
or LXC container..
val_if_cond_true if cond else val_if_cond_false
I suggest named captures for those regexes
also add unit tests, tests are important
$Battery = Get-CimInstance -ClassName Win32_Battery
$status = switch ($Battery.BatteryStatus) {
1 { "On Battery (Discharging)" }
2 { "Plugged in (Not Charging)" }
3 { "Fully Charged" }
6 { "Charging" }
default { "Status: $($batt.BatteryStatus)" }
}
$level = switch ($Battery.EstimatedChargeRemaining) {
{ $_ -le 10 } { "Critical - 10% or less" ; break }
{ $_ -le 30 } { "Low - 30% or less" ; break }
{ $_ -lt 80 } { "Normal Level" ; break }
default { "High / Fully Charged" }
}
wym named captures?
def get_hypervisor(ssh_client):
output, err = run_command(ssh_client, "which esxcli >/dev/null 2>&1 && echo ESXi || ( which pveversion >/dev/null 2>&1 && echo Proxmox || echo Unknown )")
hypervisor = output.strip()
if hypervisor == "ESXi":
return hypevisor,
"vim-cmd vmsvc/getallvms",
"vim-cmd vmsvc/power.shutdown",
r"^(\d+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*?(\S*)\s*?$"
elif hypervisor == "Proxmox":
return hypervisor,
"qm list",
"qm shutdown"
r"^\s+(\d\d\d)\s+(\S+)\s+(\S+)\s+\d+\s+\d+\.\d\d\s(\d+)\s*$"
return hypervisor, "", "", ""
hypervisor, list_command, shutdown_command, pattern = get_hypervisor(ssh_client)
here
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 0); // Logs 3, 3, 3
}
for (let j = 0; j < 3; j++) {
setTimeout(() => console.log(j), 0); // Logs 0, 1, 2
}
function parent() {
let count = 0;
return {
increase: () => {
count++;
},
getCounter: () => {
return count;
}
}
}
const a = parent();
const b = parent();
a.increase();
b.increase();
b.increase();
console.log(a.getCounter()); // 1
console.log(b.getCounter()); // 2
A songification of that most holiest of Python Enhancement Proposals, the PEP 8.
Based on an idea by Daniel "Mr. Hemlock" Brown.
Written and performed by Leon SandΓΈy, A.K.A. lemonsaurus.
Music and melody from Mad World by Roland Orzabal. This version was inspired by the version released by Gary Jules.
π Website: https://pythondiscord.com/ ...
Python does name mangling automatically when you prefix an attribute name with two underscores ( __ ).
Hey can you suggest the things needed for devops with python?
Any road map, good resources etc ????
I cannot sorry I am not knowledgable about it.
AI would probably give you a good start
!stream 874027855674216528 30M
β @high pagoda can now stream until <t:1762025133:f>.
@crude mirage
https://www.codebattle.in/ (multiple players, LC problems, poorly written, down most of the time, confirmed by Noodle)
https://www.beatcode.dev/ (only 1v1, LC problems, works but only 1v1)
https://leetrooms.com/ (requires chrome ext)
https://www.cpduels.com/ (only for codeforces)
https://code-duel.vercel.app/ (web server is improperly configured, doesn't allow login)
https://beatcode.dev/room/6BE7WE
Welcome to CodeBattle.in, the ultimate platform for practicing coding and DSA problems with Friends! Join coding contests, tackle real interview questions, and collaborate with friends in a vibrant community. Level up your coding skills with CodeBattle.
A live LeetCode battle game where you can use abilities to sabotage your oponents. Invite your friends and beat them with your code!
1v1 Competitive Programming Duels
CodeDuels: The ultimate platform for coding battles!
axpIXWUUVG

yoo
@small field if I understand correctly, Discord flagged you for sending links that you were sending
=> another reason not to share trycloudflare
@umbral rose Can I get streaming priv please?
@stuck bluff hello teacher, if you have leisure time for 5 min please came .
curly braces
{}
asking name
name = input("what's your name?")
print(f"hello,{name}")```
On my way.
{} curly braces
[] square brackets
() parentheses
{ curly brace
[ square bracket
( parenthesis
!d set
class set(iterable=(), /)``````py
class frozenset(iterable=(), /)```
Return a new set or frozenset object whose elements are taken from *iterable*. The elements of a set must be [hashable](https://docs.python.org/3/glossary.html#term-hashable). To represent sets of sets, the inner sets must be [`frozenset`](https://docs.python.org/3/library/stdtypes.html#frozenset) objects. If *iterable* is not specified, a new empty set is returned.
Sets can be created by several means...
!e py my_set = set() print(my_set) my_set.add(1) print(my_set) my_set.add(2) print(my_set) my_set.add(1) print(my_set)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | set()
002 | {1}
003 | {1, 2}
004 | {1, 2}
!d dict
class dict(**kwargs)``````py
class dict(mapping, /, **kwargs)``````py
class dict(iterable, /, **kwargs)```
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments.
Dictionaries can be created by several means...
:white_check_mark: Your 3.14 eval job has completed with return code 0.
{1, 2, 3, 5}
set
Does a set of all sets contain itself?
@plucky rampart π
object or expression
=
name = object
Ghazi = student
1 + 1 + 2 + (5 * 2)
1 + 1 + 2 + 10
14```
please judge my code
"Please gag me." means something very different.
Love the use of f strings. Good stuff.
much appreciated , came share us please, nice coures
!e py name = "Peter" age = 17 print(f"Hello, {name}. You are {age} years old.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
!e py name = "Peter" age = 17 print("Hello, {name}. You are {age} years old.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, {name}. You are {age} years old.
!f-strings
Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.
>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."
Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.
A form of "string interpolation".
this
!e py name = "Peter" age = 17 text = f"Hello, {name}. You are {age} years old." age = 9001 print(text)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
here
!e py name = "Peter" age = 17 print("Hello, " + name + ". You are " + str(age) + " years old.") print(f"Hello, {name}. You are {age} years old.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | Hello, Peter. You are 17 years old.
002 | Hello, Peter. You are 17 years old.
!e py foo = "abc" bar = "def" print(f"{foo}{bar}") print(foo + bar)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
001 | abcdef
002 | abcdef
!e
number = 87
print(f"It also helps to not have to convert intigers to strings using str(number), such as with: {number}")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
It also helps to not have to convert intigers to strings using str(number), such as with: 87
!e py "abc" + 123
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | [31m"abc" [0m[1;31m+[0m[31m 123[0m
004 | [31m~~~~~~[0m[1;31m^[0m[31m~~~~[0m
005 | [1;35mTypeError[0m: [35mcan only concatenate str (not "int") to str[0m
!e py var = "abc" + str(123) print(var)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
abc123
!e py a = "abc" b = 123 c = f"{a}{b}" print(c)
:white_check_mark: Your 3.14 eval job has completed with return code 0.
abc123
!e py print(f"{1 + 1 = }")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
1 + 1 = 2
!e py name = "Peter" print(f"Hello. {name = }.")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
Hello. name = 'Peter'.
!e
print(f"{28 + 72 = }")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
28 + 72 = 100
!e
print(f"{28 + 72}")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
100
quote, unquote
!e py value = 123456789 print(f"{value: _}")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
123_456_789
.
!e py value = 123456789 print(f"{value: b}")
:white_check_mark: Your 3.14 eval job has completed with return code 0.
111010110111100110100010101
Not a dictionary.
what define letter b
quote, unquote
{ curly brace
[ square bracket
( parenthesis
@lone crypt he is back
{ curly brace
[ square bracket
( parenthesis
{} curly braces
[] square brackets
() parentheses
opening curly brace
"You have a jar of marbles."
"Yes. What of it?"
"Well, why do you have a jar of marbles?"
"To put flowers in."
"Oh."
{ curly brace
[ square bracket
( parenthesis
{} curly braces
[] square brackets
() parentheses
Singular vs plural.
curly brace / curly braces
square bracket / square brackets
parenthesis / parentheses
vs = versus
word, but think werd
weired
weird
Hey guys wassup!!
"This person has a very singular way of doing things."
curly brace / curly braces
square bracket / square brackets
parenthesis / parentheses
Singular vs plural
( parenthesis
) parenthesis
() parentheses
(())() parentheses
very similar
@unreal rune π
Hey π»
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hey,, i cant talk
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I have an idea about the proper usage of parentheses that contain other parentheses - I call it my parent parentheses thesis.
https://paste.pythondiscord.com/ZQKQ got it to work
Paradox of Tolerance
@wraith swallow π
@weak shell you are on so right trackkkk
idk what to do
You want #voice-chat-text-0
I AM SORYY
theres no active music production servers
huh
boe of the piano?
oh
idk instruments or singing I just make stuff in lmms sometimes
nu
isn't that an ai thing
nu I think those are ai models
linux multi media studio is a daw
I have used ai for code
you have to break it down for it
it's getting much better very fast
I still haven't got one of the real vs ai video quiz things wrong yet but it's getting harder
who is it
I will look whats happening in roblox studio vc
bai
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stuck bluff Hello
I don't have permission to speak in that channel
I'm not eligible for voice verification
For the reason that I have not been active enough on this server.
I'm new
Both
@marble river π
I'd say, beginner to intermediate in Python.
How about you?
What do you use it for?
Pretty pictures?
It is difficult, though, useless, isn't it?
Do you work?
Is it related to Python, or computer science in general?
Sounds like advanced stuff
Hi can anyone help me about the llm project?
Try asking in #data-science-and-ml
@stuck bluff what's that bird in your pfp ?
phaps chalcoptera
i thought its a mourning dove
@rough raptor π
hlo
Friend: "Just put your image into variables and no one can change it after you encode the files"
Me: "Thanks, so wtf is this zeros and ones"
c-<something> server, those usually function correctly
Hi hi.
Missed the i. Hit o.
"Hi ho."
also Chrome suddenly decided not to work at all
(I'm not using it for Discord, that one is through Firefox)
I mostly use it only for work/government services stuff and minesweeper
I've heard it said that webbrowsers are notoriously nondeterministic.
Sometimes shit just doesn't work.
Chrome also, for whatever reason, forces me to do captcha when using Google in incognito
even though I'm opening it from the same IP all the time
Mm. I was surprised to see searches being challenged with captchas when I occasioned to use Google search the other day. I'd never seen that for that, before.
Hey, mx.
Not much going on.
It's great.
I don't miss that.
I miss most of the people.
Oh, so do I, but school has a way of turning learning into work rather than something you want to learn.
I accidentally sat in smart math on my first day and I thought the teacher was great. I was actually excited to learn math. It was never a strong point for me. I was disappointed when we worked out I was in the wrong classroom.
He looked like a math teacher, too. Like he kind of fit the crazy grey hair scientist stereotype.
@restive lagoon π
!voice π
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
we seem to be having another internet semi-outage
So not an internet, but an outernet.
Yo.
(it's within a container, which is going to be thrown out in 10 minutes anyway)
Maro face reveal.
Not that we haven't seen, previously.
@dense quarry π
@turbid hollow π
@ember moss π
hi
@vapid lantern π
The Kindling projects page contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
im ran out of idea
Do whatever you feel is within your abilities but also something you can chew on.
@wide flicker π
I left voice chat.
!stream 317279909112446976
β @stuck bluff can now stream until <t:1762919348:f>.
@coral geode
not "passive" aggressive, just aggressive
we trust you guys can handle him
The sugar glider (Petaurus breviceps) is a small, omnivorous, arboreal, and nocturnal gliding possum. The common name refers to its predilection for sugary foods such as sap and nectar and its ability to glide through the air, much like a flying squirrel. They have very similar habits and appearance to the flying squirrel, despite not being clo...
how is everyone?
hello everyone
My audio is failing me.
hii
π
muhehehehe
yea, my braincells consumes itself
bro is that heaven theme mode?
i use
echo "print('Hello, World')" >> hello.py
bm
-bm
we should bring back TurboPascal
how to use bookmark feature ? i forgot
https://www.snia.org/sites/default/files/SDCEMEA/2020/6 - Aviad Zuck Apps can quickly destroy.pdf
tl;dr some apps can destroy your eMMC storage by over-using it, so it can be very useful to check the wear levels
that does not sound Russian
.bm
.bm
!e
a = "......................................................................................................................................................................................................................................................................................................................................................................................."
print(len(a))
:white_check_mark: Your 3.14 eval job has completed with return code 0.
375
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@versed mural π
@dawn elbow π
Hello
What if no law enforcement agency had any privacy?
when you talk about "free and open society" it's now more "open" then it has previously.
hi all
hi
yes there is whats u problem?
I see that you are getting help elsewhere so I'll bow out of the private message and just answer in here.
We need a company to maximize profits and a counter weight organization to oppose the capitalists reductions. (this is for prisons/healthcare/insurance) We don't have a counterweight organization we just have individuals suing which doesn't work well.
thats really true
was working on a project in a completing stage facing some errors and bugs . need some help
A software project with bugs? you don't say!
.
AND Errors TOO?
how about we built one lol,
Is there a photo of the error?
