#voice-chat-text-0
1 messages · Page 365 of 1
test = input("Enter input here: ")
floor = 0
gone = 0
for char in test:
if char == "(":
floor = floor + 1
gone = gone + 1
elif char == ")":
floor = floor - 1
gone = gone + 1
if floor == -1:
print(gone)
break
test = input("Enter input here: ")
floor = 0
for i,char in enumerate(test):
if char == "(":
floor = floor + 1
elif char == ")":
floor = floor - 1
if floor == -1:
print(i + 1)
break
has anyone here used ant for java?
what is Temperature ?? for programming ??
punk hair cut rice
Hey hey
Generally people do this in one step, but here's the formulas for the in-betweens
def kelvin_to_rankine(kelvin):
return kelvin * 9/5
def celsius_to_kelvin(celsius):
return celsius + 273.15
def rankine_to_fahrenheit(rankine):
return rankine - 458.67
def celsius_to_fahrenheit(celsius):
kevlin = celsius_to_kelvin(celsius)
rankine = kelvin_to_rankine(kelvin)
farenheit = rankine_to_farenheit(rankine)
return farenheit
common beginner problems dont worry
also shame on you for not including reaumer
Hey guys new here, whats going on?
Hi everyone
So is 3.13 worth the standardization of all my Python in projects or should I look at other versions? What is coming in the future versions of Python?
reaumur sucks so badly
imagine wanting degrees to be even more annoyingly large
How it going?
What are we talking about today
May I ask, have you worked with django before?
!e
from sys import version
print(version)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
3.12.7 (main, Oct 12 2024, 13:13:42) [GCC 12.2.0]
notice the buttons in the embed above:
in 3.13 there's a bit of a choice of what you'd actually be using
!e
from sys import version
print(version)
:white_check_mark: Your 3.13 free threaded eval job has completed with return code 0.
3.13.0 experimental free-threading build (main, Oct 12 2024, 13:18:27) [GCC 12.2.0]
^ now you can build python with free-threading
i got a thing and i have to make up different names for Class as in what we attend and Class as in about 30 people any idea how i should name them
do you mean something like this?
https://github.com/joke2k/faker
I dont think so
im makeing a client for a hungarian api
and in hungary those 2 meanings of Class are called differently im thinking how i could translate them without name collisions
a thanks
(I'm trying to remember look up if there are more words for that)
How the weekend is going so far...
You know the tests threw you a curveball when you need to write custom behavior on list.
I am sure there is a better way, but hey, it works.
repr(list(self)) seems like an even better option
that fails too?
Yes
It did supply an external library, but I wanted to do this using only the standard library
one sec
!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
decode_list doesn't seem to pass type check
signature has list[bytes | int] but it's apparently list[str | int]
you sure?
class CustomList(list) makes it class CustomList(list[Any])
if I understand correctly, it should be
class CustomList(list[str | int | Self])
and this is why this is the prototype, and then I'm going to redo it in a statically typed language. this is just the "make sure I understand what I am implementing" before I implement it in an unfamiliar langauge step.
... and, if needs not to mention CustomList as an implementation detail:
type RecursiveList = list[str | int | RecursiveList]
iirc, this depends on the "mode" the pyright is in
in strict it disallows using list as a type
I'm just going off of what was used in the pre-commit hooks when I had a job
But Pylance isn't flagging anything in the editor either...
correction: list[Unknown]
which, in basic mode, seems to behave like Any
ok I added strict, and now I have more debugging to do. Given this is python, I'm getting worried this'll count as premature optimization.
however, I am keeping strict from now on, because I want to build a good habit
I do appreciate the code review
Morning @stark river
afternoon vic
Im a beginner and am learning python. Nothing is as embarrassing as my attempts at labs
it is an expense tracker app
Nice! Is this work-related or something you are doing towards your portfolio?
it is a hobby project
hey guys I have some questions about ml could someone help me with that?
might put it into production later + mobile app if it works
@raven smelt Hey Hero! Sorry, thats out of my league
technically it works. its the test runner frameworks that i am having problems with
Heck yeah! That's awesome
I've contemplated creating a mobile game in the future
how long have you been working on this project?
a week
You've done a lot in a week!
i'm also using it as a way to learn how to work it with diff libs.. so one version i make with zero frameworks and pure sql, another v i will use orms with it, another i will make completely in client side using indexedDB
so it is one dish i am cooking in many ways just to learn diff ways of cooking
I have many more questions, but I will save them for other sessions lol. I dont want to hold you up on your project. I'll be watching in the background while I study
I appreciate you answering!
feel free to ask anytime
better than wanting to bang my head anyways
technically the app is made anyways.. i'm just figuring out how to work with diff libs now
I'm planning to take courses next semester for C++ and for SQL and databases. I'm curious if taking those two in the same semester make sense, in your opinion
that is something you should ask a cs graduate. i am an accounting & finance graduate.
Ahhh, I should have led with that question first
And that also makes this hobby project connect
Hi all!
@pine shore Hello!
Hi!
A little about me: I learned Python two years ago, but since I haven’t used it much, I’ve forgotten most of it. Are there any good refresher courses, like a YouTube channel or similar resources, that can help me quickly brush up on everything?
Im happy to share some of the sources that have helped me with Python
Yeah Thanks!
Here is an excellent beginnner course in Udemy
Also, a favorite YT course I watch frequently:
Learn Python programming from Harvard University. It dives more deeply into the design and implementation of web apps with Python, JavaScript, and SQL using frameworks like Django, React, and Bootstrap. Topics include database design, scalability, security, and user experience. You will learn how to write and use APIs, create interactive UIs, a...
Thanks!
can someone help me
i have an error in kali linux
when i try to install a package
or whem i try doing a command
like python3
Yo guys
I found this old computer
What do you think the issue is , it doesn’t seem to start up properly
Volume to low on phone
@faint ginkgo I think that might be a you thing.
re: "I can't hear anybody"
It seems to me as though there's an obvious solution, but perhaps I don't have a full understanding of the situation.
ohhhh soo good
it look good actually
Can some1 help and vc
hello
wassup
sounds fun im works on a ai with a web scrapper
well what it does it takes all the first sites and finds say codes blcks for code and the ai combines them and simpllify and js for chat purposes
i jus gotta talk more
i like the enviroment tho in vc
cs its hard to find programmers
imma go get food brb
@dawn fjord 👋
im back
Yes
hi guys
hello
@sweet rivet 👋
hi OpalMist
it says this
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
You have sent less than 50 messages.
hey opal i have question
are you Ai or Human
@swift pollen 👋
you got nice voice
can i spam 50 messages
@quartz beacon Thanks
Mass nouns and count nouns ¯_(ツ)_/¯
i have question so is math really require to become good programmer
But I think 'fewer' has gone the way of 'whom'
yes, you need to have PHD in Math before you can write "hello world"
really
/s
i accidently pasted it
If you can understand the rules of a board game, you can probably understand programming, is how I think about it 😄
Advanced maths only really becomes important for certain applications (graphics, cryptography, machine learning), and things like analysis of algorithms.
you making a game?
yea
hello world
hello world
freelance
Wasn't that a Black Mirror episode? 🤔 I was only half-listening
what type a project ur working oin rn
Don't spam please
You will not be able to voice-verify for at least two week.
Blue App?
oh its Discord
It doesn't take long to reach the 50 message requirement with genuine activity.
discord
like 3 convos
0
codeforces is best for algorithm imp
I'll take your word for it.
jikky how old are you
Jammie Dodgers are a popular British biscuit, made from shortcake with a raspberry or strawberry flavoured jam filling. Bought by Burton Biscuit works in 1960, they are currently produced by Burton's Biscuit Company at its factory in Llantarnam.
In 2009, Jammie Dodgers were the most popular children's sweet biscuit brand in the United Kingdom, w...
@quartz beacon Background noise 👀
@brazen zephyr 👋
Break on through to the other side?
Jikky my name is Didrik im not allowed too say this but im the defenition of AGI, im litteraly a transformer, not any transformer. the transformer
?
bad joke thats all
-_-
trying to get my verification, had to be creative you know
Erm, not bad, you?
@fickle veldt 👋
DAMN.
aaaa
yo guys
hello @toxic viper
does anyone know C
ye
I know C++ but this might not be the best suited server
there isn't a server ONLY dedicated to C but python is build on C so im good
wanna create a project together?
not really
if you want to discuss C, just go to usenet
busy with other stuff
bet thx
np cya
but python is build on C so im good
?
CPython
!d ctypes
Source code: Lib/ctypes
ctypes is a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap these libraries in pure Python.
i want to build python in Assembly
in Перфокарты
😳
A punched card (also punch card or punched-card) is a piece of card stock that stores digital data using punched holes. Punched cards were once common in data processing and the control of automated machines.
Punched cards were widely used in the 20th century, where unit record machines, organized into data processing systems, used punched cards...
72 character limit
death
Σ
next attempt https://minesweeper.online/game/3866346553
there are cases when you can say "not sure if I will do it, and I don't care yet", and in that case no schedule is okay
I have a todo list. Unfortunately i cross off one thing from the list as done, 2 more appear
with most of GitHub/Forgejo issues I have, I'm completely fine with never getting to them
@molten pewter oh, there's a Rust version too
"TODO or Die" is a concept in programming where you add a special TODO comment to your code that raises an error if it's not addressed by a certain deadline.
In Python, you can implement this using a decorator:
Python
import datetime
def todo_or_die(deadline: datetime.date, message: str = "TODO has not been addressed"):
def decorator(func):
def wrapper(*args, **kwargs):
if datetime.date.today() > deadline:
raise Exception(message)
return func(*args, **kwargs)
return wrapper
return decorator
@todo_or_die(datetime.date(2024, 12, 31))
def my_function():
# Code that needs to be updated by 2024-12-31
pass
Explanation:
The todo_or_die decorator takes a deadline and an optional message.
If the current date is beyond the deadline, it raises an Exception with the specified message.
Otherwise, it executes the decorated function normally.
How to Use:
Decorate any function that has a TODO that needs to be addressed by a specific date.
Set the deadline argument to the date by which the TODO should be resolved.
Optionally, customize the message that will be raised in the exception.
Important Considerations:
This implementation raises an exception during runtime, so you need to handle it gracefully.
Consider using a more specific exception type for better error handling.
You can also explore third-party libraries that might offer more features and flexibility.
@quartz beacon termux
I've ran minecraft servers through that
it worked
I've also ran OpenTTD with GUI there
did it lag? yes
todo_or_die::issue_closed!
I'm scared to ask how that works
ah, right
compile error
was running air pump aquarium
so your pre-built binaries aren't influenced
huh
less than 100K
I can't use that because I need the thing to build regardless of the outside world
so todo_or_die is fine for actively developed applications
@quartz beacon "as opposed to neoregulars"
XD
when the text is referred to as "amount", you know it's not short
who doesn't like to read? it's the best activity ever
"NFS doesn't like to read, it prefers to just die and hang forever until you sigkill the process"
me
classic
Hired
this sucks and doesn't suck 
not like IBM is going to patent it
you understand that it's the only company allowed to do evil using JSON?
radio DJ who can code , noice
- maybe it was jslint
Also about once a year, I get a letter from a lawyer, every year a
different lawyer, at a company. I don't want to embarrass the company by
saying their name, so I'll just say their initials, "IBM," saying that
they want to use something that I wrote, 'cause I put this on everything
I write now. They want to use something that I wrote and something that
they wrote and they're pretty sure they weren't gonna use it for evil,
but they couldn't say for sure about their customers. So, could I give
them a special license for that?
So, of course!
So I wrote back---this happened literally two weeks ago---I said, "I
give permission to IBM, its customers, partners, and minions, to use
JSLint for evil."
And the attorney wrote back and said, "Thanks very much, Douglas!"
the top 3 gpa in my business school:
- 4.0
- 3.95
- 3.9
i was the 3.9.. and i was robbed of the silver 😦
@rugged root "there's one more short amount of text to read through"
We present YOLO, a new approach to object detection. Prior work on object detection repurposes classifiers to perform detection. Instead, we frame object detection as a regression problem to spatially separated bounding boxes and associated class probabilities. A single neural network predicts bounding boxes and class probabilities directly from...
Amazing
ed mentioned
i dislike you
YES YOU
great video
"can't wait for OpenGPAConnect 2.1 to come out"
biased, not based
I have you to thank
'just a number' as in no specific mistakes pointed out?
yeah
it depends, maybe they'll mark the question that was incorrect
but there's no initative to rectify the mistakes post-test
not really familiar with such approach
"don't attribute to malice what can be attributed to malice and incompetence"
Russian state exams for Russian language were great before Ilyin moment happened
I mean, people have been thinking about ways to improve education for literally a thousand years.
Everyone has an opinion on it, because eveyone went to school ¯_(ツ)_/¯
the whole "oh, it limits people to think a certain way, it makes students not think out of the box" story is completely not to do with the exams
power
power of a number
Not to mention societal norms can be different so different groups can see changes as negative or positive
@ionic ferry Still looking
@rugged root thanks 🙂
how expensive are static IPs generally? (monthly)
Depends. Not all charge for it
mine costs $1.85/month or $1.25/month, I don't remember
this is very reasonable
For my ISP, it’s about 55 bucks for static IP
it totals to around $8~10/month if including the base price
(for internet as a whole)
!stream 277886690197110784
✅ @ionic ferry can now stream until <t:1729528261:f>.
with 600 mbps upload
I only know two providers in European Russia that provide high upload speeds
for others 20mbps seems to be the norm
Hi
This is your total internet cost?
My god, which country is this?
Russia, the wealthy parts thereof
yes
This is 1/3 of what I am paying, and I thought my internet was cheap
Mine is 500 mbps upo and down at 30$ month.
Nice work on the 3.9!
I'm actually in love with this resume
I might look into using something similar
It’s going okay
doing good, thank you for asking.
Hope you're doing well @odd dove
Gtk
Im tyfa
Gtk
@harsh pollen 👋
Hi there!
Thank you, I had seen that... is this channel only for 1:1 chats, or are there open conversations going on that one can listen in on?
I see, thanks a lot @somber heath ! 🙂
@whole bear 👋
I was coding on a little side project in Python and was looking for a bit of virtual company 🙂
It's this one here: https://ramdass-search.net/
Yeah... it helps people search through the transcripts of certain talks on Youtube
I had the need for that myself and decided to put it online publicly...
What brings you here at this hour? You sound English, presumably it's rather late/early in your TZ?
Oh, OK. 🙂 Few kilometers off. 🙂
Nice, you're heading into spring now.
Do you work with Python professionally atm?
👍
Hello @stark river
hello ahmed
Heyo @somber heath @late spoke
object has no attribute 'upper'
how do I solve this error?
data = open('Practice 1\input.txt', 'r') text_upper = data.upper() output = open('Practice 1\output.txt', 'w') output.write(text_upper)
yes I am a newbie
what's the difference between doing the open and using the read method??
I'm very confused man my OOP teacher is confusing me 😭
I'd ask what OOP has to do with reading text files, but I don't think it'd be relevant.
talk to my university man
don't talk to me
You're the student.
I'm just doing practice cuz it's on the syllabus
!e ```py
class A:
def alpha(self):
print('Alpha.')
class B:
def beta(self):
print('Beta.')
a = A()
b = B()
a.alpha()
b.alpha()```
It's your degree mate, you gotta learn it one way or another. If you see it as just another course, then what's the point of the degree?
:x: Your 3.12 eval job has completed with return code 1.
001 | Alpha.
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 12, in <module>
004 | b.alpha()
005 | ^^^^^^^
006 | AttributeError: 'B' object has no attribute 'alpha'
yuh
Check this course out. It helped me when I was learning python. It has lecture videos, quizzes, labs, etc.
MIT OCW 6.0001 and MIT OCW 6.0002.
You can finish it through two weeks or so.
ok so im calling a function for a class it's not a part of?
ok I get you
but how else do I get the string from the note then?
I appreciate this btw
like thanks
so I use .read?
IT WORKEDDDD
data = open('Practice 1\input.txt', 'r') string = data.read() string = string.upper() output = open('Practice 1\output.txt', 'w') output.write(string)
!code
This is what I ended up doing
!e ```py
with open('temp.txt', 'w') as file:
file.write('Hello, world.')
with open('temp.txt', 'r') as file:
text = file.read()
print(text)```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, world.
temp.txt
Hello, world.
Images, too.
So, is it destroyed afterwards?
Yes.
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | with open('temp.txt', 'r') as file:
004 | ^^^^^^^^^^^^^^^^^^^^^
005 | FileNotFoundError: [Errno 2] No such file or directory: 'temp.txt'
Cool.
Yeah my professor told me about that
that we gotta close the file when we're done
that sounds nifty
idk if this is gonna sound dumb
but isn't that kinda like an if statement?
so when I say with:
it means like
only have this thing available
while doing this thing?
sexy
yeah cuz my prof was talking about manually closing n stuff
so it's nice to know there's a better way
anyways thanks for helping me with my revision but I gotta go continue
I really appreciate the help man 😄
!e py import numpy as np from PIL import Image arr = np.empty((100, 300, 3), dtype=np.uint8) arr[:] = np.linspace([255, 100, 50], [50, 50, 200], 300, True, dtype=np.uint8) Image.fromarray(arr).save('out.jpg')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Zyxel
WAN is basically your ISP related settings.. if you mess it up, you loose internet (until you fix the settings again). Good luck, keep looking
@rugged root Hey!
@rugged root
@burnt idol Yo
Doing well I take it?
yeah~
Solid
Do they call it Mercurial because it only sometimes works?
@raw rock Yo
wassup my guy
Not much, 'bout you?
I'm getting ready to mess with my bread board n stuff
👋 @rugged root @somber heath
It took me a second to realize you were talking about electronics. I legit thought "Oh sick, you're baking bread"
I'm tired and also feel more unwelcome here recently so
Eh?
👋
I the name really is funny ngl
Hiii
I do wonder where it came from
Either way, what're you making? Or are you just futzing around
fooling around, I got a kit that came with a bunch of components so stuff like switching a LED on and off switch has been fun
but I wanna be able to log temps in my room this winter in the morning with a DH11 and use a 4 digit 7 segement display to show current temp
Uhhhhhhh. Giddy-up?
I want to see that gif where it's the tank but it's also the Uber Eats delivery guy. Like you see it shift the barrel down so that the plastic bag of food slides down on the door mat, it scoots forward to ring the bell, then just reverses and leaves
I have no idea why, but that just pleases me as an image
@terse needle Yoooooooooooo
I have to go to get dinner with some friends
have fun mate
Cya 👋
👋
isn't ShP written in WPF?
@devout kelp
ppsps
pixel per second per second
less sharp? are you rewriting it in just C?
What’s up men
🤘
boo hiss
Was going to say, I wondered where you went
Didn't realize you went into Snooki mode. Also forgot that Snooki existed. I curse you for reminding me
so fission doesn't count, great
using nuclear fission to fire a round is not adviseable
(speaking from experience)
How do sisters of the cloth defend themselves? ||They use nun-chucks.||
Bolters
godwyn pattern my beloved-
i'm trying to fit a sister act joke in here somewhere
Classic movie
Praise Democracy
what my classmate calls perfectly functional
Biryani tree.
mixing is less reliable I'd expect
anyone free to teach me python
what are you learning python for?
Sure, some people get really crazy into minature painting
Clockwork's nail-painting robot can paint the perfect polish in less than 10 minutes. Customers must arrive with prepped nails, since the machine does not cut or clean nails. It works by using a 3D scanner to capture the exact shape and size of your nails, then painting over it in a circular motion while you're sitting still.
Founder and CEO R...
are you there?
VRify
#0140
tech bros invaded geology using that same name
whats this
whats this
@whole bear What kind of help are you wanting?
to learn python
How much experience do you have
2 month
What resources have you gone through
some basics like oops, loop
welcome to the 'this is untested waters' club, would you consider a complimentary membership of 'you have to figure things out yourself' club ? 
sorry idk anything i have to learn from scratch
What's everyone working on?
2 month of python, keep building projects this is how you improve your skillset
Is there a passion to learn python? Build websites, build desktop related apps
yess
I must say, python has alot of libaries to work with.
some body needs 'patience'
ive only know tkinter
patience is key, no one masters a langauge in a day it takes months/years even to master a skill
Thats a start
true
yes it is and i know to connect python with sql
i like to do this but now i am studying about data analyst
Ok, where getting somewhere
data analyst fancy
very important role
My intellectual capacity to understand data analyst/science is limited
print('yes so that i choose to study')
ohhh
@stark river Sorry for the ping, just wanted to ask, thats React right?
You working with React.js
I'm gonna mute myself for a bit, will check the chat in-between of work
you know ethical hacking
@rugged root can I get temp streaming permissions please
idk about that
Yes.
I see that you viewed my full profile.
I do penertration testing
yesss
Most of the tools developed in python.
Because of the amount of libraries you can use in python
comeover to dm i have some many question to ask
Ask question here.
no . vanilla js
Vanilla
but this is node js backend
I noticed
the client side is in vanilla js
Your skilled.
I work with React.js, I feel like I have not marsted the skill of vanilla, got any advice?
how can you know react but not vanilla js?
I primarily work with React.js, but I feel like I haven't fully mastered vanillia, in a sense of developing projects I tend to forget a few basics when it comes to developing web applications in react.js, you understand?
just remember react is a framework using vanilla js under the hood
Thats correct/
What im saying is, if a project was givin to me to develop an applciation in vanilla js, I would have a little struggle developing it, if I do with React.js its a breeze.
is react js is an libraries
now i understand
can you tell me about frontend roadmap
@stark river Maybe he can provide better advice than I can. More experienced developer
All I can say is to start with the basics - Html, Css, Javascript
ohh
I understand the fundamentals, so I pushed myself further by using React, not sure if this was the best choice, it was something I was interested in.
@stark river , advice for developer burnout?
im really happy to talk about this codes becoz idont know have friend to discuss this
thats why i am bothering you
@frosty garnet your audio is leaking
take a vacation
I'm constantly tempted to learn more, then I get burnout and think about code again, what's your perspective on this.
managing your 'nerves' is a skill on its own as well
Nerves?
@frosty garnet an expense tracker app
mock server and test file
testing the backend
i have to be thorough 😦
different people have different psychology.. so they have different ways to keep themselves concentrated, motivated
one common trick for reducing distractions is to go to a library to study, which many people do
Better.
Who can say?
idk
I would encourage you to pay attention to your classwork if you're in class at the moment.
I'm at proggramming class
I see.
but is there a python function, that shuffels a list but it shuffelse it so that all the elements are on another space.
because random.shuffel() can give the list with a item in the original place but I need it to be 100% not overlaping with the original list
What do you mean by on another space?
like [1,2,3,4,5] needs to be [4,3,1,5,2] not [1,5,4,2,3]
so all the elements are on another space
Will the list elements be unique?
yes
Then just do a shift.
Either left or right.
!e
a = [1, 2, 3, 4, 5]
b = []
for i, j in zip(a[0:-1:], a[1::]):
b.append(j)
b.append(a[0])
print(b)
for i, val in enumerate(a):
if val == b[i]:
raise ValueError("Oyy!")
I have that, is there also another way?
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[2, 3, 4, 5, 1]
!e
code
!e geschut_lootjes.append(geschut_lootjes.pop(0))
:x: Your 3.12 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | geschut_lootjes.append(geschut_lootjes.pop(0))
004 | ^^^^^^^^^^^^^^^
005 | NameError: name 'geschut_lootjes' is not defined
list.append(list.pop(0)) this is what I have atm
for i, operation in enumerate(circuit_1.circuit_log):
for key in set(operation.keys()).intersection(QUBIT_KEYS):
circuit_1.circuit_log[i][key] = a2_qsd_block_qubit_indices[index]
for i, operation in enumerate(circuit_1.circuit_log):
for key in set(operation.keys()).intersection(QUBIT_KEYS):
circuit_1.circuit_log[i][key] = a2_qsd_block_qubit_indices[index][circuit_1.circuit_log[i][key]]
!e py mapping = {1: 2} alpha = {1: ..., 3: ...} beta = {mapping.get(k, k): v for k, v in alpha.items()} print(beta)
@upper basin
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{2: Ellipsis, 3: Ellipsis}
thank you, but its a bit to complicated for me
This isn't for your problem.
but it wil help me
it was for this one
@lime chasm 👋
hello
@somber heath
!e
import math
import matplotlib.pyplot as plt
def Dn(num_items):
return sum([(-1)**i/math.factorial(i) for i in range(num_items+1)])
def overlap_probability(num_items):
return 1 - Dn(num_items)/math.factorial(num_items)
overlaps = [overlap_probability(i) for i in range(1, 30)]
plt.plot(range(1, 30), overlaps)
Hey guys idk if i am allowed to say this Hemlock can correct me, but i'm live in Twitch.
Currently refreshing my memory on Python :
https://www.twitch.tv/cyberdevil669
Could be self-advertising, not sure.
!rule 6
I'm probably wrong. This seems like just you sharing your screen.
Hello
07791b516b69 ghcr.io/open-webui/open-webui:main "bash start.sh" 2 months ago Up 29 seconds (health: starting) 0.0.0.0:3000->8080/tcp, [::]:3000->8080/tcp open-webui
docker inspect ->
122.12.0.1
Don’t leave yourself unprotected, get the best protection by checking out BitDefender Premium Security at the link below.
https://bit.ly/BitdefenderNC
Today you are going to explore the mysterious world of Docker networking. From the default bridge to the blackhole of none. NetworkChuck is going to help you navigate this fascinating technolog...
Study IT with me. Ethical hacking labs, Programming and much more amazing stuff.
Tom Homan, a Project 2025 contributor, served as the acting director of ICE during the Trump administration.
💪 /s
@next spindle How to enable standby 3 using bios in ASUS laptop?
!stream 962128994814263316 20M
✅ @sweet sorrel can now stream until <t:1729701763:f>.
!stream 962128994814263316 10M
✅ @sweet sorrel can now stream until <t:1729703369:f>.
@weak grove 👋
hello
mmd-abad
wrong 'ha' btw
no the song
الله اکبر
HEHEHA
pleas shot up
*shut
herherher
good
im iran
are you minecraft player ?
yee
and meeeee
+why did they remove me the voc pass when i quit the server
are you good in python
or in front end developement
ok
Hi
I m New to Discord
Oh no
A hale and hearty welcome. 🙂
FIRST be awere of fake nitro gifts or milicious links
even if its your friend
/ friends
sounds like someone had a bad exp
Thank you 😊
can someone tell something to add in my python library for making the creation of minecraft launcher easy, so people can focus on the front end
Ohh k .I don't know anything seriously
Please tell me some important observations
Just maintain a healthy level of skepticism.
bay
yes
Okay
I have to download this?
Yes I did thank you yahya
ok
hi
@upper valve 👋
i need help regared a project of mine can u help?
its a kind of chatbot
i am currently making a ui for it
using tkinter
but i dont really know tkinter i havent used it much can u help?
should i dm u the issue?
then? i should post my py code heere?
!code
i mean i maade the ui
but i want suggestion
so ill need to show u the output of ui ig
wait i am taking a ss
no i was just taking ss
i mean i feel this is childish
yeah ik i can use spicy and others but this is for my school project
Do the bare minimum to get your A, and if you have time do the best you can afterwards.
i need to use tkinter for school project
what do u mean?
I think tkinter can have some flash to it too.
For school projects, you shouldn't waste time if what you already have gets you your full grade.
First secure your grade, and then start comfortably improving it until deadline.
If you go in trying to do sth really hard (and unnecessary) to show dedication, you may overestimate the time you have and then have to submit sth incomplete.
yeah ig ur correct
but i was thinking like i have 1 month extra if i can do some improvements
Yes. Check your grading criteria, make sure you cover all the marks, and then start improving as much as you can for learning purposes.
@rugged root My cover is blown.
yo guys
hy
I appear to be experiencing bad network jitter.
!stream 1252153066480861217
✅ @umbral locust can now stream until <t:1729782165:f>.
# Convert y to a NumPy array
y = np.array(y)
Yay, I can hear everyone well, now.
def find_best_move(board):
moves = get_all_moves(board)
move_player = ["O", "X"]
move_int = 0
levels = [board]
lvl = 1
levels.append([])
for i, move in enumerate(moves):
board[move[0]][move[1]] = "O"
print(board)
levels[lvl].append(board)
board[move[0]][move[1]] = " "
print(levels)
[['X', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']]
!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
!stream 958057865032106045
✅ @versed heath can now stream until <t:1729783073:f>.
this has an .ipynb in there
ok
Going to lunch. I'll be back in a bit. Cheers!
bu bye
turns out swagger codegen is utterly awful for python.
I tried it out for an api I want to use, to see if I can get out of writing the api calls manually.
The very first line of the generated sdk: from __future__ import print_function
or some other?
this just happens to have that name and be for python
funnily, that project has been archived for longer than it's been alive
(I assume it's not that one", given python2 wasn't all that hype in 2020 anymore")
not sure if the supported frameworks in README.md is up-to-date in the codegen repo.
In my experience, the only ones that are actually supported are commonjs and Java 7
Hello everyone!
Last time I tried it with FastAPI then gave up, (not supported)
If your already have OpenAPI spec file , maybe try prompting chat bot for sample (server api function or client code) in specific language (like python) ?
Although what would be really cool is if I could use this to generate a prisma schema.
there's probably already something in the js ecosystem for that, will research during lunch
muuuuch better
Pantry Inventory and Recipe Manager app just got a lot easier to program as a result of this.
!stream 1252153066480861217
✅ @umbral locust can now stream until <t:1729816601:f>.
Why can’t I talk in the voice chat 😦
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Gotcha haven’t send enough messages yet lol
Not gonna spam tho
Yeah lol
Novice/Intermediate programmer, rn I’m learning Nodes
How long have you been programming ?
Are we there yet?
Are we there yet?
Are we there yet?
But it's online.
"Sorry, kids. You asked one too many times. That's a breach of TOS. Straight to jail."
The Internet isn't in the constitution. The Internet is therefore illegal.
What's a bum pallocator?
Wrong answers only.```
Sure! Here are some wrong answers for different questions:
What is the capital of France?
The capital of France is Atlantis.
What do bees make?
Bees make spaghetti.
What is the boiling point of water?
The boiling point of water is 1000 degrees Celsius.
Who wrote "Hamlet"?
"Hamlet" was written by Dr. Seuss.
What is the largest planet in our solar system?
The largest planet in our solar system is a pizza.
Feel free to ask more questions for wrong answers!```
Courtesy of deepai.com
Ask Mindful Dev, please don't tag all mods.
@umbral locust You have background audio coming through to here. 🙂
The paralax effect is cool @obsidian dragon
evernt team
Hey
Sorry iwas abt to leve bur o forhot
But i forgot
@wind raptor bye
@burnt ore 👋
Hi
sitting here with my current project. the things I have to do to pass unit tests written by other people...
the commented out line was for the previous step, I'm working on the next step, and that involves getting an understanding of sha1
@tender gazelle 👋
I cannot speak
I am trying to open my mic
but it doesn't work
but it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't workbut it doesn't
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
:incoming_envelope: :ok_hand: applied timeout to @tender gazelle until <t:1729866706:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
the entitlement people show, assuming that they don't need to be active members of the community to receive privileges
hello 
@whole bear 👋
hello!
@idle hinge 👋
so many servers have voice verification
first time hearing that lol
hi! May I know what you guys are discussing about?
most people come in and complain no other server does that
me too
@rugged root Hey!
Mornin'
about voice verification
oh okay
@somber heath @desert vector
rplcs has its own vc issues but they don't get hit with trolls as often
only if i can bring the pepperoni pizza and eat it like this
A sudden, intense migraine causes the expulsion of pizza mid consumption.
@timid fable 👋
@somber heath 👋🏻
@grand dew 👋
yeah?
@rugged root Stringent Rules?
We having fight club discussion?
Figured
@timid fable Mr Opal Mist is a very welcomming guy
oh ok
@timid fable He wecolmes everyone 😊
For people of all races and creeds to work together for the betterment of humanity and the ecosystem and the responsible pursuit of scientific knowledge.
ok
😄
a-tier response



miooooo