#voice-chat-text-0

1 messages · Page 365 of 1

spare isle
#
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
gilded rivet
tepid mantle
#

has anyone here used ant for java?

young matrix
#

what is Temperature ?? for programming ??

upper basin
#

brb

#

I'll be back later. Cya folks!

gilded rivet
#

Made Saag Curry a few weeks ago

#

Here is how it turned out

#

@rugged root

vocal basin
#

rare rice

#

and the epic one is purple

stark river
orchid ravine
#

Hey hey

stoic chasm
# young matrix what is Temperature ?? for programming ??

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

willow light
#

or just use metpy

#

!pip metpy

wise cargoBOT
#

Collection of tools for reading, visualizing and performing calculations with weather data.

Released on <t:1724714078:D>.

willow light
#

also shame on you for not including reaumer

sage radish
#

Hey guys new here, whats going on?

calm smelt
#

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?

stoic chasm
#

imagine wanting degrees to be even more annoyingly large

sage radish
#

How it going?

#

What are we talking about today

#

May I ask, have you worked with django before?

wanton inlet
#

ok

#

@calm smelt Are u ok ?

vocal basin
#

!e

from sys import version
print(version)
wise cargoBOT
vocal basin
#

!e

from sys import version
print(version)
wise cargoBOT
vocal basin
#

^ now you can build python with free-threading

versed heath
trail grove
#

hi

dull sluice
#

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

dull sluice
#

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

vocal basin
#

ah

#

there's a "lesson"

#

as what one attends

#

hmm

dull sluice
#

a thanks

vocal basin
#

(I'm trying to remember look up if there are more words for that)

willow light
#

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.

vocal basin
#

lines 177~180:

items.append(f"{item!r}")
#

although

willow light
#

I tried that

#

The tests fail when I do that

vocal basin
#

that fails too?

willow light
#

Yes

#

It did supply an external library, but I wanted to do this using only the standard library

#

one sec

#

!paste

wise cargoBOT
#
Pasting large amounts of 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 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.

willow light
#

now you can see the tests

vocal basin
#

signature has list[bytes | int] but it's apparently list[str | int]

willow light
#

you sure?

vocal basin
#

class CustomList(list) makes it class CustomList(list[Any])

#

if I understand correctly, it should be

class CustomList(list[str | int | Self])
willow light
#

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.

vocal basin
vocal basin
#

in strict it disallows using list as a type

willow light
#

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...

vocal basin
#

at the top:

# pyright: strict
vocal basin
#

which, in basic mode, seems to behave like Any

willow light
#

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

willow light
#

I do appreciate the code review

orchid ravine
#

Morning @stark river

stark river
orchid ravine
#

🙂

#

May i ask what are you programming? @stark river

stark river
#

an embarrasment

#

😭

orchid ravine
#

Im a beginner and am learning python. Nothing is as embarrassing as my attempts at labs

stark river
#

it is an expense tracker app

orchid ravine
#

Nice! Is this work-related or something you are doing towards your portfolio?

stark river
#

it is a hobby project

orchid ravine
#

If im asking too many questions, you can let me know lol

#

Ah, okay, perfect

raven smelt
#

hey guys I have some questions about ml could someone help me with that?

stark river
#

might put it into production later + mobile app if it works

orchid ravine
#

@raven smelt Hey Hero! Sorry, thats out of my league

stark river
#

technically it works. its the test runner frameworks that i am having problems with

orchid ravine
#

I've contemplated creating a mobile game in the future

orchid ravine
stark river
#

a week

orchid ravine
#

You've done a lot in a week!

stark river
#

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

orchid ravine
#

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!

stark river
#

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

orchid ravine
#

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

stark river
orchid ravine
#

Ahhh, I should have led with that question first

#

And that also makes this hobby project connect

pine shore
#

Hi all!

orchid ravine
#

@pine shore Hello!

pine shore
#

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?

orchid ravine
orchid ravine
#

Here is an excellent beginnner course in Udemy

#

Also, a favorite YT course I watch frequently:

https://youtu.be/nLRL_NcnK-4?si=Bx5kqtpwXDjCR-BB

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...

▶ Play video
pine shore
#

Thanks!

faint ginkgo
#

Hello hi

#

Those permissions lol

#

Oh noes

jovial iris
#

@stark river salam bai

#

can i ask you smth about your system configuration ?

hollow rampart
#

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

faint ginkgo
#

Yo guys

#

I found this old computer

#

What do you think the issue is , it doesn’t seem to start up properly

kindred bolt
#

hello @somber heath

#

I have no voice chat permissions 😭

somber heath
kindred bolt
#

Thanks

#

I still haven't met them I believe

#

Yeah yeah, I entered recently

faint ginkgo
versed heath
#

:start
x=10

#

10010000000000010000000000000000

#

00000000000000000000000000001010

faint ginkgo
#

Volume to low on phone

somber heath
#

@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.

kindred bolt
#

Sup @terse rose

#

I do not have microfone permissions 😭

faint ginkgo
#

@odd dove

odd dove
odd dove
lime fractal
#

Can some1 help and vc

dim thicket
#

a

#

hi

faint ginkgo
#

hello

past lintel
#

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

somber heath
past lintel
#

i jus gotta talk more

#

i like the enviroment tho in vc

#

cs its hard to find programmers

#

imma go get food brb

somber heath
#

@dawn fjord 👋

past lintel
#

im back

dawn fjord
#

Yes

toxic viper
#

hi guys

stark river
#

hello

somber heath
#

@sweet rivet 👋

sweet rivet
#

hi OpalMist

somber heath
sweet rivet
#

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

somber heath
#

@swift pollen 👋

sweet rivet
#

you got nice voice

quartz beacon
#

wait

#

can't hear y

somber heath
#

@quartz beacon I can hear you

#

@pliant zodiac 👋

sweet rivet
#

can i spam 50 messages

rugged root
upbeat bobcat
#

@quartz beacon Thanks

stuck furnace
#

Mass nouns and count nouns ¯_(ツ)_/¯

sweet rivet
#

i have question so is math really require to become good programmer

stuck furnace
#

But I think 'fewer' has gone the way of 'whom'

quartz beacon
sweet rivet
#

really

quartz beacon
#

/s

sweet rivet
#

i accidently pasted it

stuck furnace
#

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.

steel elbow
faint ginkgo
#

yea

sweet rivet
#

hello world

steel elbow
#

based

#

im made to make a game for one of the class im taking too

sweet rivet
#

hello world

faint ginkgo
#

freelance

stuck furnace
#

Wasn't that a Black Mirror episode? 🤔 I was only half-listening

sweet rivet
#

what type a project ur working oin rn

quartz beacon
sweet rivet
#

hello worl hell

#

world

#

world

#

is 50 messages thsi hard

#

damn damn

stuck furnace
#

Don't spam please

sweet rivet
#

okay

#

if i spam what will happen

stuck furnace
#

You will not be able to voice-verify for at least two week.

sweet rivet
#

im new in blue app

#

really

#

hey lX

somber heath
sweet rivet
#

oh its Discord

stuck furnace
#

It doesn't take long to reach the 50 message requirement with genuine activity.

sweet rivet
sweet rivet
#

whats u guys leetcode solved problems

#

how much

somber heath
#

0

sweet rivet
#

codeforces is best for algorithm imp

quartz beacon
#

🌞

somber heath
#

I'll take your word for it.

sweet rivet
#

jikky how old are you

quartz beacon
stuck furnace
#

Australians are rabid for a bit of fibre optic cable

#

Famously

quartz beacon
#

big eyes

#

Jammi Dodger

somber heath
#

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
#

guinar

stuck furnace
#

@quartz beacon Background noise 👀

somber heath
#

@brazen zephyr 👋

atomic gust
#

Hello

#

From the other side

quartz beacon
#

😳

rugged root
atomic gust
#

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

atomic gust
#

bad joke thats all

quartz beacon
#

-_-

atomic gust
#

trying to get my verification, had to be creative you know

somber heath
quartz beacon
#

please delete

#

this is disturbing

atomic gust
#

this one can't be

quartz beacon
#

it's not

#

dw

desert vector
#

hey @stuck furnace!

#

how goes it?

stuck furnace
desert vector
#

doin' fine, thanks!

#

i just don't see ya often, is all

somber heath
#

@fickle veldt 👋

quartz beacon
desert vector
#

DAMN.

sweet rivet
#

aaaa

vocal basin
#

it's only spectatable

toxic viper
#

yo guys

quartz beacon
#

hello @toxic viper

toxic viper
#

does anyone know C

desert vector
#

ye

quartz beacon
toxic viper
#

there isn't a server ONLY dedicated to C but python is build on C so im good

toxic viper
desert vector
#

not really

vocal basin
#

if you want to discuss C, just go to usenet

desert vector
#

busy with other stuff

toxic viper
toxic viper
quartz beacon
vocal basin
#

CPython

quartz beacon
#

Cython

#

😂

vocal basin
#

!d ctypes

wise cargoBOT
#

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.

vocal basin
#

you can build Python with Zig if you really want to

#

in C but with Zig

quartz beacon
#

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...

vocal basin
#

72 character limit

quartz beacon
quartz beacon
#

Σ

vocal basin
#

put 99.7 instead

#

a whole three sigma confidence interval

quartz beacon
vocal basin
#

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

stark river
#

I have a todo list. Unfortunately i cross off one thing from the list as done, 2 more appear

vocal basin
#

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

molten pewter
#

"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.

vocal basin
#

@quartz beacon termux

#

I've ran minecraft servers through that

#

it worked

#

I've also ran OpenTTD with GUI there

#

did it lag? yes

quartz beacon
#

THANK

#

hugging you

vocal basin
#

todo_or_die::issue_closed!
I'm scared to ask how that works

#

ah, right

#

compile error

faint ginkgo
#

was running air pump aquarium

vocal basin
#

so your pre-built binaries aren't influenced

#

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"

quartz beacon
#

XD

vocal basin
#

when the text is referred to as "amount", you know it's not short

stark river
#

who doesn't like to read? it's the best activity ever

vocal basin
#

"NFS doesn't like to read, it prefers to just die and hang forever until you sigkill the process"

rugged root
vocal basin
#

classic

stuck furnace
#

Hired

desert vector
vocal basin
#

not like IBM is going to patent it

#

you understand that it's the only company allowed to do evil using JSON?

ivory flower
#

radio DJ who can code , noice

quartz beacon
rugged root
#

Slint is cool

#

Name is weird

vocal basin
#
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!"
stark river
#

the top 3 gpa in my business school:

  1. 4.0
  2. 3.95
  3. 3.9
    i was the 3.9.. and i was robbed of the silver 😦
vocal basin
rugged root
#
#

Amazing

quartz beacon
#

ed system is opressive

#

for a reason

vocal basin
#

ed mentioned

rugged root
desert vector
rugged root
desert vector
#

YES YOU

cobalt fractal
vocal basin
#

"can't wait for OpenGPAConnect 2.1 to come out"

desert vector
#

biased, not based

rugged root
vocal basin
#

'just a number' as in no specific mistakes pointed out?

desert vector
#

yeah

#

it depends, maybe they'll mark the question that was incorrect

#

but there's no initative to rectify the mistakes post-test

vocal basin
#

"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

stuck furnace
#

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 ¯_(ツ)_/¯

vocal basin
#

power

#

power of a number

amber raptor
rugged root
#

@ionic ferry Still looking

ionic ferry
#

@rugged root thanks 🙂

vocal basin
#

how expensive are static IPs generally? (monthly)

rugged root
#

Depends. Not all charge for it

vocal basin
#

mine costs $1.85/month or $1.25/month, I don't remember

molten pewter
#

this is very reasonable

amber raptor
#

For my ISP, it’s about 55 bucks for static IP

vocal basin
#

(for internet as a whole)

rugged root
#

!stream 277886690197110784

wise cargoBOT
#

✅ @ionic ferry can now stream until <t:1729528261:f>.

vocal basin
#

I only know two providers in European Russia that provide high upload speeds

#

for others 20mbps seems to be the norm

whole bear
#

Hi

molten pewter
vocal basin
#

yeah, monthly

#

unlimited traffic

#

"as in I haven't hit the limit yet"

molten pewter
#

My god, which country is this?

vocal basin
#

Russia, the wealthy parts thereof

molten pewter
#

Wow

#

600 mbs up and down?

vocal basin
#

yes

molten pewter
#

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.

orchid ravine
#

I might look into using something similar

odd dove
#

@faint ginkgo how is ur gaming making going on?

#

@orchid ravine hiii hru doing today?

faint ginkgo
#

It’s going okay

orchid ravine
#

Hope you're doing well @odd dove

odd dove
odd dove
somber heath
#

@harsh pollen 👋

harsh pollen
somber heath
harsh pollen
#

I see, thanks a lot @somber heath ! 🙂

somber heath
#

@whole bear 👋

harsh pollen
#

I was coding on a little side project in Python and was looking for a bit of virtual company 🙂

#

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?

#

👍

late spoke
#

Hello @stark river

stark river
#

hello ahmed

arctic salmon
#

hello

#

yea the first one

unique scaffold
#

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 😭

upper basin
unique scaffold
#

don't talk to me

upper basin
#

You're the student.

unique scaffold
#

I'm just doing practice cuz it's on the syllabus

somber heath
#

!e ```py
class A:
def alpha(self):
print('Alpha.')

class B:
def beta(self):
print('Beta.')

a = A()
b = B()
a.alpha()
b.alpha()```

upper basin
#

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?

wise cargoBOT
unique scaffold
#

yuh

upper basin
#

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.

unique scaffold
#

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)

upper basin
#

!code

unique scaffold
#

This is what I ended up doing

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

somber heath
#

!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)```

wise cargoBOT
upper basin
#

Where does the bot store the text file?

#

Didn't know it could make files.

somber heath
#

Images, too.

upper basin
#

So, is it destroyed afterwards?

somber heath
#

Yes.

upper basin
#

Interesting.

#

!e

with open('temp.txt', 'r') as file:
    text = file.read()

print(text)
wise cargoBOT
upper basin
#

Cool.

unique scaffold
#

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 😄

somber heath
#

!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')

wise cargoBOT
somber heath
#

@whole bear 👋

#

@inland snow 👋

odd dove
#

@arctic salmon hiii

#

@late spoke hiii

#

Hru all?

lime fractal
#

Zyxel

late spoke
# lime fractal 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

upbeat bobcat
#

@rugged root Hey!

late spoke
#

@rugged root

rugged root
#

@burnt idol Yo

arctic salmon
#

hey

rugged root
#

Doing well I take it?

arctic salmon
#

yeah~

rugged root
#

Solid

somber heath
#

Do they call it Mercurial because it only sometimes works?

stuck furnace
#

👋

#

I was sneaking ducky_ninja

rugged root
#

@raw rock Yo

raw rock
#

wassup my guy

rugged root
#

Not much, 'bout you?

raw rock
#

I'm getting ready to mess with my bread board n stuff

quartz beacon
#

👋 @rugged root @somber heath

rugged root
#

It took me a second to realize you were talking about electronics. I legit thought "Oh sick, you're baking bread"

quartz beacon
#

I'm tired and also feel more unwelcome here recently so

rugged root
#

Eh?

quartz beacon
rugged root
#

Either way, what're you making? Or are you just futzing around

raw rock
#

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

desert vector
#

howdy

#

feelin' a little western today
spaghetti, if'n you mind callin' it that

rugged root
#

Yee haw, y'all

#

Or something like that

desert vector
#

how dismissive D:

#

put yer heart in ta' it!

rugged root
#

Uhhhhhhh. Giddy-up?

stuck furnace
#

Never would have guessed 🤭

#

You always seem so sunny and upbeat

stark river
#

🚬

#

lets do this

rugged root
#

I have no idea why, but that just pleases me as an image

#

@terse needle Yoooooooooooo

terse needle
#

I have to go to get dinner with some friends

desert vector
#

have fun mate

stuck furnace
#

Cya 👋

terse needle
#

👋

rugged root
late spoke
desert vector
#

i actually rather like his brother's story more: epimetheus

#

real funny guy

marble mantle
#

isn't ShP written in WPF?

rugged root
#

@devout kelp

devout kelp
marble mantle
#

ppsps
pixel per second per second

rugged root
#

tee hee

#

pps

marble mantle
#

less sharp? are you rewriting it in just C?

whole bear
#

What’s up men

rugged root
#

Suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuup

#

How you doing

whole bear
#

🤘

amber raptor
#

boo hiss

dry jasper
rugged root
#

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

marble mantle
#

so fission doesn't count, great

desert vector
#

using nuclear fission to fire a round is not adviseable
(speaking from experience)

rugged root
#

How do sisters of the cloth defend themselves? ||They use nun-chucks.||

desert vector
#

godwyn pattern my beloved-

desert vector
rugged root
#

Classic movie

amber raptor
#

Praise Democracy

devout kelp
somber heath
#

Biryani tree.

gilded rivet
whole bear
#

Hu

#

hi

marble mantle
#

mixing is less reliable I'd expect

gilded rivet
whole bear
#

anyone free to teach me python

marble mantle
whole bear
#

data analyst

#

but i like to learn everything

#

i know some basics

amber raptor
gilded rivet
#

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...

▶ Play video
whole bear
#

are you there?

sharp idol
#

VRify
#0140

rugged root
marble mantle
#

tech bros invaded geology using that same name

whole bear
whole bear
rugged root
#

@whole bear What kind of help are you wanting?

whole bear
#

to learn python

gilded rivet
#

How much experience do you have

whole bear
#

2 month

gilded rivet
#

What resources have you gone through

whole bear
#

some basics like oops, loop

gilded rivet
#

??

#

Like

#

what resources

late spoke
#

welcome to the 'this is untested waters' club, would you consider a complimentary membership of 'you have to figure things out yourself' club ? ducky_beer

whole bear
#

sorry idk anything i have to learn from scratch

sage radish
#

What's everyone working on?

sage radish
#

Is there a passion to learn python? Build websites, build desktop related apps

whole bear
#

yess

sage radish
#

I must say, python has alot of libaries to work with.

late spoke
#

some body needs 'patience'

whole bear
#

ive only know tkinter

sage radish
sage radish
late spoke
#

true

sage radish
#

What do you want to start with python?

#

Like

#

Web apps, dekstop apps. games, etc

whole bear
#

yes it is and i know to connect python with sql

whole bear
sage radish
#

data analyst fancy

#

very important role

#

My intellectual capacity to understand data analyst/science is limited

whole bear
#

print('yes so that i choose to study')

sage radish
#

@stark river Sorry for the ping, just wanted to ask, thats React right?

#

You working with React.js

late spoke
#

I'm gonna mute myself for a bit, will check the chat in-between of work

whole bear
#

you know ethical hacking

late spoke
#

@rugged root can I get temp streaming permissions please

whole bear
sage radish
#

I see that you viewed my full profile.

#

I do penertration testing

whole bear
#

yesss

sage radish
#

Most of the tools developed in python.

#

Because of the amount of libraries you can use in python

whole bear
#

comeover to dm i have some many question to ask

sage radish
sage radish
stark river
#

but this is node js backend

sage radish
#

I noticed

stark river
#

the client side is in vanilla js

sage radish
#

Your skilled.

#

I work with React.js, I feel like I have not marsted the skill of vanilla, got any advice?

stark river
#

how can you know react but not vanilla js?

sage radish
stark river
#

just remember react is a framework using vanilla js under the hood

sage radish
#

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.

whole bear
#

is react js is an libraries

sage radish
#

React.js is a framework

#

aka React Libary for Javascript, frontend development

whole bear
#

now i understand

sage radish
#

React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.

whole bear
#

can you tell me about frontend roadmap

sage radish
stark river
sage radish
#

All I can say is to start with the basics - Html, Css, Javascript

whole bear
#

ohh

sage radish
#

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?

whole bear
#

im really happy to talk about this codes becoz idont know have friend to discuss this

#

thats why i am bothering you

stark river
#

@frosty garnet your audio is leaking

stark river
sage radish
late spoke
stark river
#

@frosty garnet an expense tracker app

#

mock server and test file

#

testing the backend

#

i have to be thorough 😦

late spoke
# sage radish Nerves?

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

stark oxide
#

hello opalmist

#

I can't join cuase of school

somber heath
stark oxide
#

sorry

#

how are you?

somber heath
#

Who can say?

stark oxide
#

idk

somber heath
#

I would encourage you to pay attention to your classwork if you're in class at the moment.

somber heath
#

I see.

stark oxide
#

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

upper basin
stark oxide
#

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

upper basin
#

Will the list elements be unique?

stark oxide
#

yes

upper basin
#

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!")
stark oxide
#

I have that, is there also another way?

wise cargoBOT
stark oxide
#

!e

wise cargoBOT
#
Missing required argument

code

stark oxide
#

!e geschut_lootjes.append(geschut_lootjes.pop(0))

wise cargoBOT
# stark oxide !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
stark oxide
#

list.append(list.pop(0)) this is what I have atm

upper basin
#
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]]
somber heath
#

!e py mapping = {1: 2} alpha = {1: ..., 3: ...} beta = {mapping.get(k, k): v for k, v in alpha.items()} print(beta)
@upper basin

wise cargoBOT
stark oxide
#

thank you, but its a bit to complicated for me

somber heath
stark oxide
#

but it wil help me

stark oxide
somber heath
#

@lime chasm 👋

lime chasm
upper basin
#

@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)
cedar mason
upper basin
#

!rule 6

wise cargoBOT
#

6. Do not post unapproved advertising.

upper basin
#

I'm probably wrong. This seems like just you sharing your screen.

whole bear
#

Hello

cedar mason
whole bear
#

docker inspect ->
122.12.0.1

cedar mason
sweet sorrel
#
Newsweek

Tom Homan, a Project 2025 contributor, served as the acting director of ICE during the Trump administration.

Military.com

When I came to Congress two years ago and joined the House Veterans' Affairs Committee, I was cautiously optimistic that lawmakers would put aside their differences to serve the needs of veterans.

stark river
#

💪 /s

whole bear
#

@next spindle How to enable standby 3 using bios in ASUS laptop?

sweet sorrel
rugged root
#

!stream 962128994814263316 20M

wise cargoBOT
#

✅ @sweet sorrel can now stream until <t:1729701763:f>.

rugged root
#

!stream 962128994814263316 10M

wise cargoBOT
#

✅ @sweet sorrel can now stream until <t:1729703369:f>.

somber heath
#

@weak grove 👋

weak grove
#

hi

#

howaryou

whole bear
#

hello

weak grove
#

hello

#

guys

#

im just 12 years old

whole bear
#

the h it's like a حـ

#

so

weak grove
#

سلام

#

خوبی

#

تو هم ایرانی ای ؟

#

یهیی

whole bear
#

i prefer talking french

#

or english

weak grove
#

mmd-abad

whole bear
#
  • discord has bad arabic writing
#

opalmist try singing erica

stark river
whole bear
#

no the song

weak grove
#

الله اکبر

whole bear
#

HEHEHA

weak grove
#

yert miooooo

whole bear
#

In german

#

but still good

weak grove
#

pleas shot up

whole bear
weak grove
#

herherher

whole bear
#

good

weak grove
#

heeeeeee

#

bro

whole bear
weak grove
#

im iran

whole bear
#

its imran

#

the name

#

is written like imran not im ran

weak grove
#

are you minecraft player ?

whole bear
#

yee

weak grove
#

and meeeee

whole bear
#

+why did they remove me the voc pass when i quit the server

weak grove
#

im 1596 star in hypixel

#

accept my addfriend pls

whole bear
#

thanks

#

for

#

the info opalMist

whole bear
#

or in front end developement

#

ok

real oracle
#

Hi

whole bear
#

HI

#

you must in the voc 1 to use the voice chat text

real oracle
#

I m New to Discord

whole bear
#

Oh no

somber heath
whole bear
#

even if its your friend

#

/ friends

stark river
#

sounds like someone had a bad exp

whole bear
#

so

real oracle
whole bear
#

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

real oracle
#

Please tell me some important observations

whole bear
#

there are a lot of femboys in discord

#

thats an observation

somber heath
#

Just maintain a healthy level of skepticism.

whole bear
#

bay

real oracle
#

Okay

#

This app is for free

#

Or

whole bear
#

free

#

100 % FREE

real oracle
#

Thank you

#

Can we use this app in laptop windows

#

I m using it in mobile

whole bear
real oracle
#

Okay

whole bear
real oracle
#

I have to download this?

real oracle
#

Yes I did thank you yahya

whole bear
#

ok

whole bear
#

hi

somber heath
#

@upper valve 👋

upper valve
#

hey

#

@somber heath hey

#

i cant talk i dont have permission

somber heath
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?

somber heath
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

upper valve
#

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

upper basin
upper valve
#

i need to use tkinter for school project

upper basin
#

I think tkinter can have some flash to it too.

upper basin
#

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.

upper valve
upper basin
upper valve
#

what u guys do here usually?

#

i mean do u get paid or something? or just for fun

upper basin
toxic viper
#

yo guys

whole bear
#

hy

somber heath
#

I appear to be experiencing bad network jitter.

wind raptor
#

!stream 1252153066480861217

wise cargoBOT
#

✅ @umbral locust can now stream until <t:1729782165:f>.

terse rose
#
# Convert y to a NumPy array
y = np.array(y)
somber heath
#

Yay, I can hear everyone well, now.

versed heath
#
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', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']]

wind raptor
#

!paste

wise cargoBOT
#
Pasting large amounts of 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 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.

versed heath
wind raptor
#

!stream 958057865032106045

wise cargoBOT
#

✅ @versed heath can now stream until <t:1729783073:f>.

umbral locust
vocal basin
#

this?

umbral locust
vocal basin
umbral locust
#

ok

vocal basin
#

basically same person

#

~~

#

Fnman

wind raptor
#

Going to lunch. I'll be back in a bit. Cheers!

umbral locust
#

bu bye

willow light
#

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

vocal basin
#

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")

ivory flower
vocal basin
#

seems like I got recommended something very weird by google

#

broken search 🎉

willow light
upbeat bobcat
#

Hello everyone!

ivory flower
willow light
#

I found a solution

#

!pip datamodel-code-generator

wise cargoBOT
willow light
#

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.

wind raptor
#

!stream 1252153066480861217

wise cargoBOT
#

✅ @umbral locust can now stream until <t:1729816601:f>.

slender elbow
#

Why can’t I talk in the voice chat 😦

wind raptor
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

slender elbow
#

!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 ?

somber heath
#

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

upper basin
#

Ask Mindful Dev, please don't tag all mods.

somber heath
#

@umbral locust You have background audio coming through to here. 🙂

wind raptor
#

The paralax effect is cool @obsidian dragon

obsidian dragon
#

evernt team

wind raptor
#

Hey

umbral locust
#

But i forgot

upbeat bobcat
#

@wind raptor bye

umbral locust
#

@terse rose

lime fractal
#

Hi can any1 help i try portforwarding but its not working

#

Zyxel router

somber heath
#

@burnt ore 👋

burnt ore
willow light
#

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

somber heath
#

@tender gazelle 👋

willow light
#

oh boy

#

that cpu percentage tho

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

somber heath
#

!voice

wise cargoBOT
#
Voice verification

Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

tender gazelle
#

You have sent less than 50 messages.

#

but how

wise cargoBOT
#

: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.

willow light
#

the entitlement people show, assuming that they don't need to be active members of the community to receive privileges

somber heath
#

@mystic river 👋

#

@mint tide 👋

mint tide
turbid ridge
#

italics

#

bold

#

underline

somber heath
#

@whole bear 👋

whole bear
#

hello!

somber heath
#

@idle hinge 👋

vocal basin
#

so many servers have voice verification
first time hearing that lol

whole bear
#

hi! May I know what you guys are discussing about?

vocal basin
upbeat bobcat
#

@rugged root Hey!

rugged root
#

Mornin'

upbeat bobcat
whole bear
rugged root
#

@somber heath @desert vector

vocal basin
#

rplcs has its own vc issues but they don't get hit with trolls as often

desert vector
somber heath
#

A sudden, intense migraine causes the expulsion of pizza mid consumption.

desert vector
#

i call it the makyus principle

somber heath
#

@timid fable 👋

strong bough
#

@somber heath 👋🏻

somber heath
#

@grand dew 👋

timid fable
strong bough
#

@rugged root Stringent Rules?

timid fable
#

@somber heath

#

what do you want?

amber raptor
#

We having fight club discussion?

desert vector
#

shhhhh

#

we don't talk about it

amber raptor
#

Figured

strong bough
#

@timid fable Mr Opal Mist is a very welcomming guy

timid fable
#

oh ok

strong bough
#

@timid fable He wecolmes everyone 😊

timid fable
#

ok

#

i'm new so ok 😄

#

a lil bit

somber heath
# timid fable what do you want?

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.

desert vector
#

a-tier response

strong bough
#

With his @somber heath's Royal British Accent makes these greetings more elegantly official.

#

😊

timid fable
#

snake is good

#

👍