#voice-chat-text-0
1 messages ยท Page 118 of 1
pre-allocate after analysing the function
with roughly how many variables it references
initial=input("Please input your city, province, and country")
answer=initial.split()
initials=answer[0,0]
print(initials)
0,0 is wrong
what is an example input/output?
aecor is too readable for my own good
!e
out = ""
out += "h"
out += "e"
print(out)
@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.
h
print[] is an error
print(i[0], end="")
"\n"
!e
test = "Hello world"
answer = test.split()
print(answer[0])
if you know the number of the words, you can hard-code indices of elements
if that's required
@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello
[0],[0]
initial=input("Please input your city, province, and country")
answer=initial.split()
print(answer[0][0],answer[1][0],answer[2][0])
@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 + 3 = 4
initial=input("Please input your city, province, and country")
answer=initial.split()
for i in answer:
print(i[0]+(","), end="")
Hey guys, extremely beginner here. Just wanted to ask smth real quick. As y'all must know theres a guess the number game, and I want them to guess a spesific number instead a random one. But have no idea since all I know is how to do a random one with random.randint(1,x)
Does anyone have idea?
what do you mean by "specific number"?
Lets say, 5
and its 1 to 10
Yep, the number I want
Not the random one computer is giving
Erm.. Im lost?
Do I add break as well?
Lol I cant speak tho I want to, but thanks for the help, I'll try
So the code I wrote is something like this:
import random
number = random.randint(1, 10)
number_of_guesses = 0
print(" I am Guessing a number between 1 and 10:")
while number_of_guesses < 5:
guess = int(input())
number_of_guesses += 1
if guess < number:
print('Your guess is too low')
if guess > number:
print('Your guess is too high')
if guess == number:
break
if guess == number:
print('You guessed the number in ' + str(number_of_guesses) + ' tries')
But its still a random number, not 5
Where do I put it?
Ah ok, let me try
lol:D
Ok I did it
It said your guess is too low..
???
Eh??
Im so lost you have no idea lol
I just want them to guess 5
:(
while isn't very ideal there
you can just replace random.randint(1,x) with 5
No, Them to guess 5
Oh god, makes sense. Thats why I gotta write guess 1-10
I thought I had to code it as well
Yeah
Worked
Thank you
Thanks!
code can be simplified by moving one of the prints inside
while number_of_guesses < 5:
...
if guess == number:
print('You guessed the number in ' + str(number_of_guesses) + ' tries')
break
string concatenation can be replaced with string interpolation/formatting
print(f'You guessed the number in {number_of_guesses} tries')
Youre amazing, thank you so much!
while loop can be replaced with a for loop
number_of_guesses = 0
while number_of_guesses < 5:
number_of_guesses += 1
...
for number_of_guesses in range(1, 5 + 1):
...
Let me try!
cargo clippy takes .4s to run
if I can spot an issue faster, this skill is worth it
.4s on a hello-world project on Celeron J4105
around 1s on the thing I'm actually developing
one second is so much time
a Windows thread can sleep a thousand times during that
Traceback (most recent call last):
File "/home/main.py", line 7, in <module>
if guess < number:
NameError: name 'guess' is not defined
put back the guess = int(input()) line if you deleted it
hello i feel like i want to stuck my head into a wall
def count_down(count):
print(count)
if count > 1:
window.after(1000, count_down, count -1)
why the hell this code does not make a recursive loop?
I have not but let me send it again I feel like I did sum wrong
number = 5
number_of_guesses = 0
print(" Guess a number between 1 and 10:")
for number_of_guesses in range(1, 5+1):
if guess < number:
print('Your guess is too low')
if guess > number:
print('Your guess is too high')
if guess == number:
break
if guess == number:
print('You guessed the number in ' + str(number_of_guesses) + ' tries')
count_downis called indirectly so noRecursionError- callbacks aren't infinite because there is a case where a new callback isn't scheduled (count <= 1) towards which the execution is headed
(countbeing a semi-invariant in this case)
guess = int(input()) missing
at the start of the loop
(inside the loop)
i can remove the condition its not the issue
does it actually work?
as in, does it print numbers until it reaches 1?
yes
it works with tkinter so i cant really tell if the code executing stops besides the window
So, on the top of the for?
Sorry lol, as I said extremely beginner
i mean in this line window.after(1000, count_down, count -1)
you litteraly call count_down
how does python know what function to apply it on without going over the code
at the start of the body of the loop
for number_of_guesses in range(1, 5+1):
guess = int(input())
if guess < number:
print('Your guess is too low')
if guess > number:
print('Your guess is too high')
if guess == number:
break
> litteraly call count_down
not yet
it stores it to call it later
window.after(1000, count_down, count - 1)
# ^~~~~~~~~^ ^~~~~~~~^ -- these both get stored
# function argument
it calls it when 1000ms time passes
int(input**(**))
!e
from time import sleep
function = print
argument = "example"
sleep(1)
function(argument)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
example
so lets make it visible to the human eye
first time function execute:
it defining a "function settings"?
then just going over the code with kind of commenting the line?
File "/home/main.py", line 6
if guess < number:
^
IndentationError: unindent does not match any outer indentation level
no.. i work with tkinter
you cant use time
since it will stop the mainloop and stuck the program
number = 5
number_of_guesses = 0
print(" Guess a number between 1 and 10:")
for number_of_guesses in range(1, 5+1):
guess=int(input())
if guess < number:
print('Your guess is too low')
if guess > number:
print('Your guess is too high')
if guess == number:
break
if guess == number:
print('You guessed the number in ' + str(number_of_guesses) + ' tries')
yes, I know
just an example of something similaar
oh sorry mb
remove two spaces before guess=int(input())
python argues because it's on the different level from next line
def count_down(count):
# this calls immediately
print(count)
if count > 1:
# this puts the function away, not yet calling it
window.after(1000, count_down, count - 1)
Tysm<3
can i think of it that way:?
window.after(1000ms delay, if the function name is countdown, do -> count -1)
So, should I use for instead of while whenever I use numbers then?
"after 1000ms from now, call count_down with an argument count + 1"
you can think as if you pass the name of the function
(but you actually pass the function itself)
thats the whole problem๐คฃ
oh wait no i think i got it
so basically it would be infinite without the if statement since the function will call endlessly
idk why i thought of the process as a loop
i mean it is a loop idk i guess i am too tired and had too many issues with inifnite loops
Thanks:)
!e
import heapq
import time
tasks = []
task_no = 0
def after(delay, function, argument):
global task_no
task_no += 1
heapq.heappush(tasks, (time.time() + delay, task_no, function, argument))
def count_down(count):
print(count)
if count > 1:
after(1, count_down, count - 1)
after(0, count_down, 5)
while tasks:
call_at, _, function, argument = heapq.heappop(tasks)
delay = call_at - time.time()
if delay > 0:
time.sleep(delay)
function(argument)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 4
003 | 3
004 | 2
005 | 1
@whole bear this is how after might be implemented, if you're interested
there are two views on how closure works
Rust/Python way
and, I'd guess, Simula way
moving values "out of" the scope
moving scope "out of" the stack
I will insist on my idea that you only need void function(void *context)
which follows a number of protocols, I guess
no, not that
for a lambda, context would
- hold the closure
- receive the return value as one of its "fields"
I have on compact mode which is why
that's just a dumb generalisation which allows to do anything
hypothetically
@midnight agate what's the question?
print("hello world") # hello world
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
โข PEP 8 document
โข Our PEP 8 song! :notes:
ok
Inline comments should be separated by at least two spaces from the statement.
from I've heard about early OOP languages of Simula/ALGOL variety, moving out stack frames was, at least, an idea
conditionally allocating stack frames differently is normal/common
not necessarily good, but normal
idk heapq library
i tried learning about it but i see i will have to take a course about code complexity/ data structuring
since idk what's the diff between this heapq.heappush and an array
basically what you did was:
after -> creating an "array" containing task number, delay,function to exe, and arguent.
count_down -> exec func
calling "after" func to add value to tasks
and i lost it, too many concepts i dont kno
I don't like reference counting stack frames for some reasons
there is also reason why keeping reference to stack frames is difficult
in Rust there is a specific term which highlights those issues
Pin
I should look into history of those
to check whether or not they did stack frame reference counting
if i learn heapq library i should be able to fully understand that right?
heapq is an implementation of a priority queue
it's used in that code to get the earliest scheduled task
kind of like semaphore or lock in threads?
I might be mixing those up with some another language
call_at, _, function, argument = heapq.heappop(tasks)
this looks like a syntax to me
semaphores/locks sometimes use queues inside of them, yes
something beyond just a queue
because a new task might be scheduled to be called earlier than one of the existing ones
Hiy myy namey isy Dukey
task_no exists for the following two reasons:
- avoiding comparison errors for tasks scheduled for the same time
- strict order for tasks scheduled for the same time
meeting to schedule a meeting to discuss a possibility of a meeting
I'll try to list the reasons
if I can
- potentially unnecessary data moved out of the stack
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
It's early.
In an open hearing on Unidentified Anomalous Phenomena before the Senate Armed Services Committee on April 19, Dr. Sean Kirkpatrick, director of the All-domain Anomaly Resolution Office (AARO), shared a video that depicts an apparent silver, orb-like object cross the sensorโs field of view.
This clip was taken by an MQ-9 in the Middle East, an...
what is this
โข You have an active voice infraction.
In short, someone fucked up and a moderator applied a restriction in response.
@urban temple ๐
hello
coulnd find the chat
im muted for some reason
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
got it
thanks
i gotta write 50 messages
so ill do it rn
ill do it slightly
are there many people who works in data analytics???
I did try to explain above.
I apologise. I mustn't have been clear.
i didn't not understand
@lucid blade did you really work for nasa?
Is this your problem, or someone else's?
my problem
i dont understand why i can not voice verefy
what is this
โข You have an active voice infraction.
@somber heath are you somehow related to Ukraine???
You did bad. So bad happened to you.
How me fix this
bro
@loud tapir ๐
yeah I also noticed that
how do i verfiy
what a great man
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
jhin wtf
:incoming_envelope: :ok_hand: applied timeout to @loud tapir until <t:1681992121:f> (10 minutes) (reason: burst spam - sent 8 messages).
The <@&831776746206265384> have been alerted for review.
stop it now
banned
hah ๐
thank you
welcome
If the action was justified, and be honest to yourself about that, wait.
If you feel it was a misunderstanding, there is an appeals process.
@loud tapir This is what happens when you don't follow the instructions. ๐
@turbid sandal I had a look at the chat history and I'm sorry to say it looks like you'll have to wait until the 30th.

no dont ask her nicely
dont ask her to leave you alone
why dose she attacks you?

@whole bear you have to read about narcs
@gentle sand ๐
@somber heath i can't speakkk
@somber heath i cannot verify yet, i just need help with an open ssh install i'm having trouble if u cannot help its okay
linux ubunto
what does allow password auth mean
i do work w github i have ssh on my mac alr sent up w my repos but i would like it on my distro too
This lesson, featuring hands-on activities, teaches lower elementary students about nutrition and Japanese food culture through introducing the obento, or Japanese lunchbox many children bring to school.
i'mma good boy
i been subpoenaed before by discord
i changed imma good boy now
it's for school final
LOL
"my own final"
@glad cape ๐

@mellow trellis how are you
hows your grandma doing
after she did a backflip on your dad
is she ok now

brb
LUL ๐
ill stop
i didnt realise there were so many monty python gifs
what were they talking about though? anything interesting?
@whole bear are you in the USA
should be one
SpaceX is targeting as soon as Thursday, April 20 for the first flight test of a fully integrated Starship and Super Heavy rocket from Starbase in Texas. The 62 minute launch window opens at 8:28 a.m. CT and closes at 9:30 a.m. CT.
Starship is a fully reusable transportation system designed to carry both crew and cargo to Earth orbit, help huma...
who watching?
hhhhhh
it's your problem
No channel here should be considered as a meme dumping ground, but if there's one relevant to the conversation, then, in moderation, it's going to be okay. The problem is when people post stuff without regard for the conversation or who might be interested.
agree
We've certainly gone on minor meme rampages in here
Just try to keep it from being absurd
Also just be aware that the Python bot can be a little zealous when it comes to too many attachments too quickly
Oh sure sure
Just had to mention it while it was on my mind
On in a sec, getting coffee
post python gifs the mods are getting coffee https://tenor.com/view/monty-python-runaway-run-retreat-gif-15654151
Used to have that movie memorized when I was younger
Like pre-teens
not a bad thing
For sure
Same! It's so good!
Ah fair fair
i cant speak
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Check out the #voice-verification - yeah that
That channel will tell you about the voice gate
@warm pelican @jaunty reef Yo to you both
"Check out No Access to get access."
lol
Sup?
Yo. Not much, you?
Nothing much man, how was your day off yesterday?
anyone else watch the test of Space Karen's new toy?
My name's Jeb and this is my channel. I like to try out new things in the garden and have some fun at the same time.
The best way to support my channel is to watch the videos and share the ones you enjoy. However any donations to the cause are much appreciated!
Patreon https://www.patreon.com/JebGardener
BTC deposit address 12zckkJQ4suG3qecp...
Good luck on your Exam Bud!
Self Control ๐
hahaha.
We'll be here when you come back
Kubernetes in producktion.
Use code RCTESTFLIGHT50 to get 50% OFF your first Factor box at https://bit.ly/3JgFdFQ
Get Onshape for free: https://Onshape.pro/RCTestFlight
Onshape CAD Models: https://cad.onshape.com/documents/71c1c3109ad20afea7030828/w/ae3070383f47edac27390360/e/5cca435e15dceee1c209636e?renderMode=0&uiState=6440535bc5d73457b8307704
Follow rctestflight on I...
I did this during the time of my final exams of highschool: create a folder and just have all the most used servers in that and never touch it.
Oh huh, that's actually a really good idea. Hadn't thought about just tossing into a folder
@scenic quiver ^ check the video
bbl
!stream 1087096079645954259
โ @proven raft can now stream until <t:1682001713:f>.
!stream 1087096079645954259
โ @proven raft can now stream until <t:1682002077:f>.
Hey guys againt
any good man help me correct this function plsss
import pandas as pd
import warnings
warnings.filterwarnings('ignore', category=UserWarning, module='openpyxl')
from openpyxl import load_workbook
Load in the workbook
data_file = 'Clinic.xlsx'
Load the entire workbook.
wb = load_workbook(data_file)
ws = wb['MasterList']
cols = [0,1,2,3,4,5,6,7]
def AddPatient(ws,wb,file_name):
df = pd.read_excel('Clinic.xlsx')
patient_id = input("Enter your id : ")
if ws.cell(row=int(row),column=1).value in account:
print("The ID already exist")
elif ws.cell(row=int(row),column=1).value not in s:
patient_id = input("Enter your id : ")
name = input("Enter your name : ")
age = input("Enter your age : ")
height= input("Enter your height : ")
weight = input("Enter your weight : ")
address = input("Enter your Address, City, State and ZIP code : ")
contact = input("Enter your phone number : ")
parent = input("Enter parent name : ")
contact_emergency = input("Enter phone number : ")
ws.append([patient_id, name, age, height, weight, address, contact, parent, contact_emergency])
wb.save(file_name)
print("Done add")
Note on naming convention. Function names should, except in accounted-for cases, be written using snake_case.
def add_patient(ws, wb, file_name):
...```
do not use CamelCase, in societas vivimus
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
โข PEP 8 document
โข Our PEP 8 song! :notes:
I have no technical comments at this time. I don't use Pandas.
Polars is better pandas.
@meager raven What do you mean by correct the function
What's it doing that it shouldn't, is there an error, etc.
the function keep error and idk how to fixed it
What is the error?
also, unless I'm reading your indentation wrong, don't use input() inside a function
it also looks to me like you'd be better served with a database than with an excel workbook
also why are you importing pandas if you don't end up using it?
@cerulean ridge You magnificent bastard
Yeah, don't use McAfee.
Click here to download free virus removal tool from Kaspersky. Protect yourself from malware, viruses and cyber threats.
HitmanPro Malware Removal Cleans Viruses, Trojans, Keyloggers, Ransomware, Spyware and More. Secure from Attacks in Real Time with HitmanPro.Alert.
"Brilliant!"
Nortonlifelock Support
Burn it down. Restore from backups.
Yes. It's a pain in the arse, but you know what's more of a pain in the arse? Fiddlefarting around with half measures then, finally, realising that you need to
Burn it down. Restore from backups.
2fa
Were you running software from sketchy sources?
I was afk, making instant noodle, what was the context of this?
"Good luck! I'm using seven antiviruses!"
It was something you said that had me stumped how to respond
lol haha
"Agh! I got hacked! Welp, time to tear my pants off."
HHHHHHHHHHH
I...
"In addition to seven antiviruses, I'm also wearing seven pairs of pants!"
"Well, six, now."
@sonic monolith If you're on Windows, after you run the virus scanner and get your system clean, open up a PowerShell window as Admin (Windows Key + X is the fastest way to it), and then enter the following commands:
sfc /scannow; dism /online /cleanup-image /restorehealth; sfc /scannow
Netwalker: The fileless ransomware can encrypt your data without any exe file or trace, just a string of characters as a powershell command. https://www.acronis.com/en-us/products/true-image/?utm_source=thepcsecuritychannel&utm_medium=social&utm_campaign=fy22-q2-thepcsecuritychannel-yt-acpho (Get Acronis with exclusive 30% sponsor discount)
Buy...
I am studying for a certificate.
guys how to split a number?
vertically or horizontally?
Get instant answers, explanations, and examples for all of your technical questions.
This seems interesting...
Does it have limits? Paid services?
No limits and itโs free. I learned about it from this Hacker News post https://news.ycombinator.com/item?id=35543668
Hi HN,Today weโre launching GPT-4 answers on Phind.com, a developer-focused search engine that uses generative AI to browse the web and answer technical questions, complete with code examples and detailed explanations. Unlike vanilla GPT-4, Phind feeds in relevant websites and technical documentation, reducing the modelโs hallucination and keepi...
That's cool. And I wouldn't agree on AI taking over a group/cult that would be quiet influential over people. People see it as a tool more than something that they would completely rely on...
๐
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hey
does anyone know if i cant make screenshot from nasaview and train AI model with it ?
is it legal ?
@rugged root you have to sing ... bborn in the usa
George Carlins train of imagination
Land of the fee.
hey , you gotta a liscence for that , show me your papers
150???
usa is the only place i know , where one day you draw a diagram on a napkin and 5 years later you made 5 million -- its a paradox
That's not the majority
That's not something that people should point to as proof the system works
if you make it faster , better , cheaper now what
fred - do you speak at least 3 ?
porteguese , fracais , english
@rugged root any progress on CHIP 8
Not yet. Haven't been able to force myself yet
well think of it as Tetris or Solitair or Soduku - but can actually learn something , its a ZEN activity
Sure sure, just had stuff going on
@terse needle Yo

Q - can the chat GPT ( AI? ) can it be in a isolated computer ?
wonder how much resources , cpu , mem ... is needed
yes, many people do
kde connect
Hello
That's the province of #data-science-and-ml
@dire storm ๐
I've given you the impression you can't talk about it here. That wasn't my intention.
Bingle
Is it 50?
Seems like I'll be muted forever
Aha, I thought it was 30
don't worry
you just need to wait 6 months
Hahaha god.. nvm I like listening people talk as well
๐
yeah i'm jk
3 days?
yeah
I'd rather listen more about car crash
i joined this server two years ago and I still can't talk
Other than sending 60 messsages
and you joined this morning @keen tiger so you have two days left
you've already sent 50 messages
so that requirement has already been met
two more days and you can talk
I have sent 50 messages?
yes
when i'll finally send 50 messages they will change the rule to 5000 messages
but you have not yet been here for 3 days
So its not 6 months lol.. 3 days indeed
so you still can't speak yet
Ty for letting mk
@dire storm19 messages left
cooooool
if current_room == 'Lake':
print("You have stumbled into the Hydra's liar and die\n"
"The End.")
break
rooms['Lake']
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
how long have you been programming with Python guys?
8yr
gosh
10 days..
i'm starting with Python coz i want to become an AI developer
I only know about Java
master ๐๐ผ
if rooms[current_room[name]] == rooms['Lake']:
if rooms[current_room["name"]] == rooms['Lake']:
ormat(rooms[current_room['text']]))
ormat(rooms[current_room]['text']))
@wind raptor Hey, you there?
Hey
Oh, nothing much Chris
Just seeing how you're doing
I don't chat often with you is all ๐
Doing great! just got over some Covid and am doing much better now!
Happy you're doing better now then :D
How bad was your COVID, if you don't mind me asking? I was bedridden with fever and a headache for about a week.
Mine was really mild, like a light cold. I did lose my sense of taste and smell, which sucked, but could have been much worse.
My wife is still not great. she had much worse symptoms
Oh, you both got it? Shame
Yeah. We started feeling ill around the same time
Well, I have full confidence she'll also be back in no time :D
Yeah, she's just nauseous now. much better than before
Weird to think being nauseous is a good thing comparatively ๐
That's the spirit
Working on something big?
I'm going through something big, sooner or later
So I need to be in the right space; the happy kind of space, y'know?
Yeah. Well, I hope it all goes well! Sometimes the waiting is the worst part.
Oh, I'm sure it will! The trepidation is killing me though 
So you're right on that!
Do not entrust you with specific, critical tasks
Noted
Nah, it's mostly the woes in life I don't like to store
Just change that w to a t and you're good to go
uhh, is that what I said
Anyway, I don't recall what we were just talking about but how are you?
I feel like Bill Murray right now 
lmao
!projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
@faint raven
@wind raptor thank you
Just let me in

So wait I just have to talk for 50 msgs and then be like ah yes verification
yes
!stream 972190885439750164
โ @knotty dome can now stream until <t:1682020956:f>.
just don't spam por favor
Because of the thing
:3
untill you mix lua with json makes it worse

Ye i saw that yesterday
uhh
dm? no
but you can try
also did someone say my name before? I heard "august"

no
definitely not
nah, you're acking
oh ye luna i need to show you something
my_dict['aaa'] = val @knotty dome
bc you are now only setting the dict key
!e
d = {"a": 1}
print(d)
d["b"] = 2
print(d)
@desert vector :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | {'a': 1}
002 | {'a': 1, 'b': 2}
!stream 142721776458137600 2h
โ @severe panther can now stream until <t:1682028420:f>.
movies={"Avengers":0,"Breaking":0,"Spiderman":0}
for i in range(3):
preference=input("Enter movie")
if preference in movies:
movies[preference]+=1
else:
movies[preference]=1
for i in movies:
print(i+str(movies[i]))
!code
movies={"Avengers":0,"Breaking":0,"Spiderman":0}
for i in range(3):
preference=input("Enter movie")
if preference in movies:
movies[preference]+=1
else:
movies[preference]=1
for i in movies:
print(i+str(movies[i]))
!e
movies={"Avengers":0,"Breaking":0,"Spiderman":0}
for i in movies:
print(i+str(movies[i]))
@desert vector :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | Avengers0
002 | Breaking0
003 | Spiderman0
does anyone know of a way I can access an xlsx file, and save a chart to a png
in python
playing around with openpyxl a bit
What you all up to?
Erm, not much
Trying to learn about how to make a Gnome extension.
Yep
Well desktop environment.
Right ๐
Going to get back to that ๐
hi
ive had to write merge sort in assembly for a computer architecture class ๐
see you guys
r]
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.
.snake card
A wild Western Diamondback Rattlesnake appears!
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Can you solve this real interview question? Profitable Schemes - There is a group of n members, and a list of various crimes they could commit. The ith crime generates a profit[i] and requires group[i] members to participate in it. If a member participates in one crime, that member can't participate in another crime.
Let's call a profitable sch...
@lunar haven :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | The Zen of Python, by Tim Peters
002 |
003 | Beautiful is better than ugly.
004 | Explicit is better than implicit.
005 | Simple is better than complex.
006 | Complex is better than complicated.
007 | Flat is better than nested.
008 | Sparse is better than dense.
009 | Readability counts.
010 | Special cases aren't special enough to break the rules.
011 | Although practicality beats purity.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/wozujoqune.txt?noredirect
hello @somber heath , @vivid viper
yeah
In India it is very hot
opal how can we get
the video tag
@somber heath
ok that makes sense
noticed one thing that was funny
you went from saying Mr. Hemlock to Hemlock
some funny conversation I noted between you and hemlock
Mr. Hemlock - Kill Me
Opal - Later
Mr. Hemlock - Please Now
Opal - I'll not
Team Fortress 2: Meet the Medic
But there's a draft version of that video, too, which that video references re: the spy head.
Looking smoother.
@somber heath it's all done
How easily stained by food oils, pigments, etc is it?
hello @somber heath
how are you doing
just a question do you don't want to be a mod or is it so that they are not making you
don't answer that
hello @rugged root
are you all following fide chess championship
Not really, I don't typically follow chess
what about you @somber heath
dict = {"key1": "value1"}
for i in range(2):
print(dict["key1"])
try:
file = open("day_30_working.txt", "r")
print(dict["key2"])
except FileNotFoundError:
file = open("day_30_working.txt", "w")
except KeyError as missing_key:
print(f"Error, Key {missing_key} not exist.\n Creating the key for you.")
missing_key = str(missing_key)
print(list(missing_key))
dict[missing_key] = ""
i get the wierdest outputs in the world
i am trying to create a key but the key name goes like = " ' key1 ' "
how do i fix that
"ChatGPT, how do I perform CPR?!"
"Say please..."
yeah chat gpt thrw me off with his answers
"Hello, I'd like to have an argument, please."
Could you show the output of your code? (Though do feel free to redact sensitive information)
or have any experience in it
My answer to your question is yes.
Official Video for โLeave Me Aloneโ by Michael Jackson
Listen to Michael Jackson: https://MichaelJackson.lnk.to/_listenYD
Michael Jacksonโs short film for โLeave Me Aloneโ is the seventh of nine short films for the โBadโ album. The visually stunning short film is the first of Michaelโs songs and short films that serve as commentary on the me...
Ah. I don't have a lot of experience with UEFI.
oh
i pressed esc, and space bar same thing
i solved it i can tell you the whole process
this is basically it: missing_key = "".join(list(str(missing_key))[1:-1])
"No you wouldn't."
No need. I'm glad to hear it.
๐
Germany's federal office of justice has started proceedings to fine Twitter , accusing the social media company of mishandling user complaints over "illegal" content, a statement said on Tuesday.
@faint raven We're getting background noise from your mic
@zenith radish You do marine biology in addition to what you do otherwise? That's awesome.
@rugged root can you give me the video role? it's been like 2 days
it's not a thing people get permanently anymore
@zenith radish Also, I think the tide of the world is turning against...certain sectors. Self business might attract issues.
What do you mean it's been 2 days?
I mean since the last time I requested the role from you
me
I grant it temporarily
oh sure but what are the requirements for the permanent stuff
Colorado-based Biofire Tech is taking orders for a smart gun enabled by facial-recognition technology, the latest development in personalized weapons that can only be fired by verified users.
No one is going to buy this
@pulsar island I'm so mad at myself for laughing at that
loooool
@peak copper Yo
Or they just want to develop patents, buy up others and sit on them.
I read that as parents
what class is this
You're not touching states, you keep getting turned around at the border.
Option Explicit
Dim Count As Integer
Private Sub Form_Load()
Count = 0
Timer1.Interval = 1000 ' units of milliseconds
End Sub
Private Sub Timer1_Timer()
Count = Count + 1
Label1.Caption = Count
End Sub```
beautiful
Heavily sharted
@quick cloak Send more messages. I need you to have voice permissions.
Is that cosine similarity?
hahaaha will do
can I send them in here?
yes
sweet
So long as they're actually talking and not spamming
you only need 50
beegas
what was being talked about? Why was I being summoned?
well you see it all began with...
unless you want to lose voice privileges for a further two weeks
A
we are just fooling around
B?
you are far more qualified to be talking about subjects than most of the people here. I need you to be talking more. You are summoned to be present.
I wouldnt want to B a fool and C what happens
this is what I'm talking about
๐ญ
this pun is perfect.
you are too kind
I'll be kinder once you have typed 50 messages...
is this flirting
or at least less annoying.
I feel like I'm missing something
I think I need someone to engage with me
MOAR messages.
I dont want to actually spam
Are we there yet?
Please don't
All birds are cats.
C
cat software atleast
cat bird | grep fish
Hemlock, I got you.
lol.
well im currently in my masters studying computer science with a concentration in machine learning
and that has led me down the path of trying to learn attention alternatives
PyDis. Python Discord. Here.
I take particular interest in models that support long sequences
attention as in self-attention
beegass normal humans dont know what that is
uhhhhh
ok
let me try again
in machine learning there is a popular model that is called "self-attention"
๐
You'll still have to do the proper verification at some point
I believe I already have done that
This was mainly because @molten pewter was driving me insane
im not sure thought
You'd have to still do the message count, then run the !voiceverify command in #voice-verification
You're sitting at 25 right now
how do i post code in discord without it converting to a file
!code
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
The Annotated Transformer
yea
neural net mathematics
neural network is a group of nodes connected to each other
stored just like anything in memory
Transformers are slow and memory-hungry on long sequences, since the time and
memory complexity of self-attention are quadratic in sequence length.
Approximate attention methods have attempted to address this problem by trading
off model quality to reduce the compute complexity, but often do not achieve
wall-clock speedup. We argue that a missin...
explosivity? exprosivity?
could any 1 help me with a issue i am having
If you tell people about the problem, perhaps.
It's hard to answer yes, honestly, otherwise.
i am trying to make a puzzle where there is there is a list and one of the values is blank and if the user enters a value the blank value is switched with the value entered
no its really basic
i just started python
i posted my code in the help channel its the one that says puzzle
been trying to fix it but dont know what i have wrong
You're probably after the concept of subscription by index position.
yea thats right
expressivity
@knotty dome Try stepping through the code with this tool:
So, what's in Cancun? ๐
Ah right nice
Could you see yourself doing a cruise?
4 + (3 + (2 + (1 + 0)))
That's not quite right. Try evaluating the expression part-by-part: ```py
f(4)
(4 + f(3))
(4 + (3 + f(2))
...
huhhh???
could u possibly stream it and explain somehow??
bc i got a midterm in 1 hour...
Please LX
do my homework type beat
could you write my paper after you are finished with BeeGas's homework?
haters
Yeah fair enough.
My DMs have been off for like a year
Yeah it was pretty entertaining ๐
Pretty sure it came off the launch pad at a weird angle.
There's a great picture that illustrates...
Ah yeah
Literal crater ๐
People are saying at least now they don't have to dig a flame trench
It looked like something exploded on the side too apparently.
It was kind of surreal actually seeing it lift off
LIVE | The world's biggest, most powerful rocket takes a second attempt at its first full test flight with SpaceX's Starship.
Read more on the rocket and the test flight: https://bit.ly/3KWVtLc
https://wgntv.com/
https://wgntv.com/news/wgn-news-now/
https://www.youtube.com/user/wgntv?sub_confirmation=1
https://www.facebook.com/WGNTV
https://ww...
LIVE | The world's biggest, most powerful rocket takes a second attempt at its first full test flight with SpaceX's Starship.Read more on the rocket and the ...
Heading off cya ๐
Explosion: https://www.youtube.com/watch?v=Eup_ww89NiY
LIVE | The world's biggest, most powerful rocket takes a second attempt at its first full test flight with SpaceX's Starship.
Read more on the rocket and the test flight: https://bit.ly/3KWVtLc
https://wgntv.com/
https://wgntv.com/news/wgn-news-now/
https://www.youtube.com/user/wgntv?sub_confirmation=1
https://www.facebook.com/WGNTV
https://ww...
"icing on the cake"
Hi
hey guys!
we have the chesepeap bay bridge in virginia
what yall going on about bridges for??
Everything alright in here...
A large fire has closed Interstate 95 South in Groton at the Gold Star Bridge. State police said injuries are reported and buildings below the bridge are also on fire. The northbound side of the highway was closed but has reopened. A fuel tanker truck rolled over on the Gold Star Bridge, according to state police. Videos that people whoโฆ
Two armies clashโฆwho will be victorious? Stratego is the classic game of battlefield strategy that has sold over 20 million copies worldwide. For over 50 years, Stratego has thrilled strategy game fans by inspiring them to challenge an opponent and attempt to lead their army to victory. Two playe...
Open source HTML5 app that is a recreation of the classic game of Stratego
Open source HTML5 app that is a recreation of the classic game of Stratego
Open source HTML5 app that is a recreation of the classic game of Stratego
mom called
I couldn't understand it too , can anybody explain it?
What part is tripping you up? Just how it it works in general?
!e
def my_function(x):
if x == 0:
return x
else:
return x + my_function(x - 1)
result = my_function(4)
print(result)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
10
More than happy to walk through it with you if you want
Yes please! I cannot really figure it out
Sure sure, I'll explain in the #voice-chat-text-1 chat
Alright
f(0)= 5
f(n) = f(n-1)+2
# Load train and test data
train_data = pd.read_csv('dataset/train.csv')
test_data = pd.read_csv('dataset/test.csv')
I am getting ParserError: Error tokenizing data. C error: EOF inside string starting at row 74037
when I am running on google colab but no error when I run in dataspell
whats wrong?
Maybe colab can't handle the data size? Or possibly it's using the wrong line ending... not sure
Ehrharta erecta is a species of grass commonly known as panic veldtgrass. The species is native to Southern Africa and Yemen. It is a documented invasive species in the United States, New Zealand, Australia, southern Europe, and China.The species is perennial, and normally grows to about 30 to 50 centimeters, although it may reach two meters in ...
Weed we have around here.
I did not know about the name.
I just know it as panic veldt.
Oh yes.
Hence "panic"
Because you panic when you see it.
yo yo
void func(int *arr, int n) {
}
2 ^ 4
people those who are in VC. One of the most active member had a bread pfp previously. I forgot his name. Can you tell me please?
Initial was O. I guess
Bread pfp and name starts with O. Opalmist? Or something similar?
@somber heath have you ever used Bread as pfp on Discord? I don't remember actually but it must be you the guy I'm looking for.
Toast, yes.
Ah! Great. Finally i got you.
!d random
Source code: Lib/random.py
This module implements pseudo-random number generators for various distributions.
For integers, there is uniform selection from a range. For sequences, there is uniform selection of a random element, a function to generate a random permutation of a list in-place, and a function for random sampling without replacement.
On the real line, there are functions to compute uniform, normal (Gaussian), lognormal, negative exponential, gamma, and beta distributions. For generating distributions of angles, the von Mises distribution is available.
How are you doing @somber heath? I came back here after long time. Two years back when I was a beginner in Pyrhon you helped me many time. Thanks for that. I recently got my first internship as a backend developer Django. Just wanted to thank you. ๐
Neato.
!d enumerate
enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](https://docs.python.org/3/glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](https://docs.python.org/3/library/stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](https://docs.python.org/3/library/functions.html#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
``` Equivalent to...
for item,c in zip(list_,range(len(list_)))
!e
for i, season in enumerate(['Spring', 'Summer', 'Autumn', 'Winter']):
print(i, season)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 Spring
002 | 1 Summer
003 | 2 Autumn
004 | 3 Winter
Hey @rugged root, Thanks to you too. You also helped me back in the days many times. I got my first internship as a backend developer last week. This server was the beginning point for me in learning Python.
Are we planning for a revolution or so? Hehe
We encourage people to try to break the eval
Ideally if you're going to be dumping a lot of commands into it, though, please use #bot-commands
Keeps the clutter down
It has no net connection
Oh. That's why
This sums up everything
Would you recommend using bcrypt for storing credentials in database? Or is there any better solution?
Not sure
Seems to be some debate one way or the other on whether bcrypt is still good enough
Would be curious to see what the #cybersecurity channel says
Ease up on the gif spam
2 gifs = gif spam? or are you also including the ones i sent earlier
i have 1 more FBI gif
What's the joke here?
the guy was talking about federal agents
sha one. Its pronounced S H A 1 right?
Hmm. But it confuses me sometimes. I was like what the fuck is a sha one. Hehe
There was that idea to put solar panels in space and beam the power down wirelessly ๐ค
Just a kite with a metal wire
ยฏ_(ใ)_/ยฏ
A Benjamin Franklin expert reveals his controversial theory about the discovery of electricity.
Derek Waters presents: Drunk History vol. 2
Starring Jack Black and Clark Duke
Witness history as it's never been told before...Drunk.
Filmed, Edited & Directed by Jeremy Konner
Created by Derek Waters
Thanks to Eric Binns
Could we add โBusiness Servicesโ to โlocationsโ so that I can add vacations to that calendar similar to the way we can pick a conference room for scheduling?
Hemlock. From how long you haven't changed your job.
I mean not the job but the companies you work.
Oh. I've heard that people in IT keep changing jobs in 1 or 2 years just to get good hike in salary.
So this only implies to US IT culture?
Lucky guy
your country? Hemlock?
For a fresher. If i haven't did any internship but have great projects on my resume. Will that help me get the job or i need internship to get into a good company?
get an internship
without that projects won't matter
is that a question
Yeah. I am pursuing masters in computer application.
Yeah. It's a question
no, it's not true
@somber heath you're from Australia right?
That seems to be the prevailing theory.
These are great
You shared some images of front of your house a long time ago. It looked like you were living in woods with greenery around. I assumed you're from Australia or maybe you told me sometime back in the days.
I wish I had money to buy things with ๐
Anyone among you guys uses those standing desk that shift height?
Right?
@pallid hazel sad to hear about your father.
@rugged root Here they all are ๐คฃ Sorry for the pic spam
