#voice-chat-text-1

1 messages · Page 16 of 1

barren basin
#

we good

mild flume
#

Appreciated

delicate wren
#

limit is at 15
16~20 appear in Journey mode
there's M1~M30, but that's a separate mode

#

level 100 was the most time-consuming part

#

everything else took ~10 days

mild flume
#

Oh sweet zombie jesus

#

I'm looking at an HP printer repair manual. Guess how many pages

delicate wren
#

250?

trim violet
#

30

#

2k? lemon_scared

#

I do

#

love it

mild flume
trim violet
#

monkeytype

silver mulch
#

@past beacon monkey what????

#

oh sorry

#

I didn't check for other messages\

#

I scored 64 on 157 characters
is that bad??

past beacon
mild flume
#

Yeah, I'm slow

#

106 for a 30 sec

#

Beat my PB, though

past beacon
#

that's desccent

delicate wren
mild flume
#

Gonna do a couple more

past beacon
#

your getting older brrody

mild flume
#

Also when I make a typing error I HAVE to go back and fix it

#

I can't not

#

It's a compulsion

#

My consistency is absolute shit, too

delicate wren
past beacon
#

consistency if above 80

#

your doin fine

mild flume
#

Another pb, 111

#

On the last two my consistence was 75%

#

When I make a mistake and go back and to fix it it just throws me off

delicate wren
#

for example, this is three key presses, not 20~30

past beacon
#

500000x5

delicate wren
#

!e

print(500000*5)
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

2500000
past beacon
#

ty alisa ^

silver mulch
past beacon
#

hemlock

#

stuck on 11

#

1

mild flume
#

Yeah, I think that's my peak today

#

I'm just fucking up now

trim violet
#

yay typeracer

obsidian nebula
trim violet
#

race link

obsidian nebula
#

i joined

past beacon
#
obsidian nebula
misty sinew
#

i joined

frigid ember
misty sinew
#

bors

#

10 megabits

trim violet
#

GN

past beacon
obsidian nebula
#

me when satellite internet

mild flume
#

Whaaaaaaaat?

obsidian nebula
#

what setting were u talking about hemlock

mild flume
#

Let me double check

#

Win 10 or 11?

obsidian nebula
#

win10

#

i refuse to update to win11 😭

mild flume
#

Settings -> Updates and Security -> Delivery Optimization

frigid ember
#

Get Linux

obsidian nebula
mild flume
#

Could just turn it off for safety

obsidian nebula
#

fair

mild flume
#

Might want to do a disk cleanup to clear out any old update files

obsidian nebula
#

even then, there are no other pc's on my network

mild flume
#

Those can take up some serious space sometimes

obsidian nebula
past beacon
#

11th

#

12th

#

13th

#

i5-12th
rtx 3060
16gbs ddr4-3200 Mhz
650 watts
any shitt case

#

800-950

frigid ember
#

This is my pc

#

Very powerful 💪

past beacon
hearty heath
#

Just wear glasses with eyes drawn on them

tulip grail
#
untold plank
#

@stuck bluff yep true

#

did you create user in chrome?

#

yes

#

i use in mac os

#

Don’t know about Ubuntu

misty sinew
#

hello

untold plank
#

@misty sinew hello

shell socket
#

no

#

true

random minnow
shell socket
#

lol

#

yeah

#

crazy

past beacon
brittle tapir
mild flume
#

@misty sinew what're the timestamps I should be looking for for fazi trying to cover his tracks?

#

Asking for a friend

misty sinew
#

qui est fr ?

misty sinew
mild flume
#

Fair enough then

golden tendon
#

Hay dos anyone know how to do p2p??

#

In Python??

#

Yes

#

Its for a game !!

#

Multiplayer!

misty sinew
misty sinew
stoic dune
#

homie gonna get banned from python discord server now too

#

🤣

misty sinew
stoic dune
#

probably best to just pre-emptively ban....better safe than sorry u know

solid marten
#

Not Irani bro

#

Like Americans speak Americani

#

lol

#

I am from Mars

#

dont judge

#

Redde

misty sinew
#

Kabab koobideh

#

@stoic dune

stuck bluff
#

@bright wraith 👋

hollow bay
#

how gosey broskey?

hollow bay
#

@stuck bluff good evening

velvet musk
#

@quasi hingeI just wanted to help

#

@hollow bayI just wanted to help

#

]@quasi hingeI just wanted to help

copper cedar
#

PBR is great

#

hello

#

I start every morning with a shot of Malört and then breakfast with PBR 40oz

stuck bluff
#

Spruce beer is a beverage flavored with the buds, needles, or essence of spruce trees. Spruce beer can refer to either alcoholic or non-alcoholic beverages.
A number of flavors are associated with spruce-flavored beverages, ranging from floral, citrus, and fruity, to cola-like flavors to resinous and piney. This diversity in flavor likely comes ...

lethal wadi
#

fuck seagulls

#

that is all

mild flume
rugged veldt
#

Yoooo what up!!

rugged veldt
#

they eat dog food too

raven orbit
lethal wadi
#

behold classic yoon pfp

mild flume
#

So good

raven orbit
boreal canopy
#

Also, everyone trying to fake the non protected AP, can let the previous connected client connect to fake AP

raven orbit
#

this tune has a very confusing time signature
https://youtube.com/watch?v=GG34pxW_N4c

Snarky Puppy feat. Väsen - Shapons Vindaloo
From Snarky Puppy's live CD/DVD - "Family Dinner - Vol. Two"
Stream/Download/CD/Vinyl: https://orcd.co/familydinnervol2
©GroundUP Music 2016

Written by André Ferrari
Arranged by André Ferrari, Michael League & Snarky Puppy
Recorded and filmed at Esplanade Studios in New Orleans, LA, February 12-14, 2...

▶ Play video
boreal canopy
#

You can use traceroute to check that

mild flume
#

There's typically a lot of hops between you and your destination

boreal canopy
#

Generalyl http connections are pretty unsafe in public wifi

#

https would usually fix things by itself, but it depends on the applications

mild flume
#

Also depends on if that https site is legit as well

#

Just having https doesn't mean it's safe

#

Also, keep your browser up to date

#

And your computer in general

tulip grail
#

no, keep ports open for us

#

dont make it do hard

#

to*

rugged veldt
#

@molten nebula you gotta chat here a bunch before you can voice verify

#

Its kinda dummm but its how this server works

rugged veldt
molten nebula
#

I see

molten nebula
rugged veldt
#

i think 50 msg

molten nebula
#

gonna be a long night

#

so much work

rugged veldt
#

type "!verify"

molten nebula
#

!verify

#

it's not doing anything

rugged veldt
molten nebula
#

What do you wanna talk about?

rugged veldt
#

C++

#

Lol

molten nebula
#

OKay

rugged veldt
#

This guy is talking up the mod about interpersonal relationships

#

lol

molten nebula
#

We should study it a bit later

rugged veldt
#

Yea we can

#

should we add services to the index of the BPS

molten nebula
#

BPS?

rugged veldt
#

Blue Pherret Software

#

!!

molten nebula
#

Does the admins need to give me role to chat in vc?

rugged veldt
#

No..scroll up the right side and find the voice verify channel

molten nebula
#

That's so annoying

#

hate typing lol

#

the people dont even have streaming rights lol

#

this server is very hard on the rules

rugged veldt
#

Lol

#

this server is okay

#

I like to listen to what they say

molten nebula
#

Kinda weird that they don't give users streaming rights tho

rugged veldt
#

when its of substance....not just mod drama...or reckless banter

#

We do this in our server too @molten nebula thats why i came up with the idea of "the wild"

molten nebula
#

what's wrong with streaming? people can just stop watching the stream if they don't want to watch

#

what do you then need to do to be able to stream?

lethal wadi
#

there's no way you're that naive

rugged veldt
#

come to the server @molten nebula

molten nebula
rugged veldt
#

come to the spacer

lethal wadi
#

like an official discord server will need spam control

rugged veldt
#

we have another meeting with another tech

#

we will return here later

lethal wadi
#

and with streaming, there's a whole concern about exposing anything against terms and rules

molten nebula
lethal wadi
#

it's the only way to handle it lmao

elder wraith
lethal wadi
#

you ever see those webinars where they have live tweets being shown?

#

the ones where they come immediately without being moderated turn into an immediate shit show

rugged veldt
#

brooo this is the official python discord bro..

molten nebula
#

people can just choose not to watch the stream, don't see why you need to beg the admins to get streaming right

rugged veldt
#

but re-enter the wild in our server

lethal wadi
#

when given an opportunity to be able to troll and stream porn to unsuspecting viewers, trolls will stream porn to unsuspecting viewers

#

the official python discord server doesn't wanna have to deal with allowing this to happen

#

rightfully so

#

so i think that thinking otherwise is naive

mild flume
#

We've discussed that as an option in the past, but the consensus was that we didn't like the idea or regular users moderating other users.

elder wraith
#

I don't remember this vote

mild flume
#

Mods+

#

Rabbit, I'm not giving you that power

lethal wadi
#

lmao

mild flume
#

No matter how hilarious it would be

lethal wadi
#

the plebian votes don't matter

elder wraith
#

LP or plome can substitute as well

lethal wadi
#

gimme stream and mod perms i won't do porn probably

#

cable porn

#

from my IT days

#

go into software development

raven orbit
lethal wadi
#

185 gang

raven orbit
#

you Dutch? @shell socket

hazy garden
#

183

lethal wadi
#

feet 🤤

hazy garden
#

be right back, you guys made me hungry

hearty heath
#

👋

raven orbit
shell socket
#

flixable. taco

#

how much

past beacon
hearty heath
#

brb

shell socket
#

yes

#

12 per day?

#

wow

#

id drop out

#

it's eurated

#

@hazy garden omg i love that anime

#

yess

hazy garden
#
shell socket
#

eww

#

no voice acting just subtitles

#

dubbed anime is just weird

#

sedentary life style

shell socket
#

s korea has the highest sucide rate afaik

shell socket
#

thats alot

#

why rich ppl are expected to donate just because they are rich?

raven orbit
#

Snarky Puppy feat. Väsen - Shapons Vindaloo
From Snarky Puppy's live CD/DVD - "Family Dinner - Vol. Two"
Stream/Download/CD/Vinyl: https://orcd.co/familydinnervol2
©GroundUP Music 2016

Written by André Ferrari
Arranged by André Ferrari, Michael League & Snarky Puppy
Recorded and filmed at Esplanade Studios in New Orleans, LA, February 12-14, 2...

▶ Play video
random minnow
#

does my mic keep having small noises coming through

mild flume
#

Not that I can hear

#

Or see

hazy garden
#

pretend you didn't hear it 😄

mild flume
#

I just love the random Michael Cera thing

raven orbit
mild flume
#

@dull cave If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

#

@golden tendon What's the question in relation to?

lethal wadi
#

who was asking for the django stuff again?

mild flume
#

!stream 586321204047249423

coarse hearthBOT
#

✅ @lethal wadi can now stream until <t:1693250804:f>.

golden tendon
#

@mild flume basically what I'm trying to do is make a multiplayer system for multiplayer Tetris that I'm currently constructing cuz I figured that might be a simpler project to work on

#

But I don't want it to rely on a centralized server I wanted to allow users to connect to each other directly basically client to client

#

And as far as I've looked at for the socket module and stuff it uses a centralized server at one point or another

mild flume
#

@golden tendon I'd look into websockets instead of regular sockets

delicate wren
#

likely

#

or one can be a server, but not treated as such after the connection

golden tendon
#

??

#

Ok

delicate wren
#

> connect to each other directly
via IP?

#

for that you'd need either port forwarding or same network

golden tendon
#

Ideally I would like to build a browser interface so people can just look at what the available games or open games are and just connect to that through the browser

delicate wren
#

that would be a centralised server

#

representing the site

golden tendon
#

Well that's disappointing

#

But like I get what you're saying it's just disappointing that it has to be that way cuz I don't want to have to go out and rent a server just to host it

delicate wren
#

where would the clients get list of games otherwise?

golden tendon
#

I mean I would imagine it would just construct the list by just pinging the available games

#

Like like each game would have like a tag associated with it upon startup

delicate wren
#

to ping something, you need its address

golden tendon
#

And that tag gets changed from open to close depending on if it's full or not

#

Right

#

I guess I can't be that hard to host a game list server that contains all the IPS and s*** and then just pass that when it's called on

#

Thanks

delicate wren
#

connecting to clients's IPs would still be impossible in most cases

#

(because requires forwarding)

rugged veldt
lethal wadi
lethal wadi
#

@restive jolt

restive jolt
#

company_status = CompanyBalance.objects.update_or_create(user_company_ticker=ticker,
user_annual_quick_ratio=annual_quick,
user_quarter_quick_ratio=quarter_quick,
user_annual_current_ratio=annual_current,
user_tick)

lethal wadi
#
company_status = CompanyBalance.objects.update_or_create(user_company_ticker=ticker,
                                                        defaults={
                                                            "user_annual_quick_ratio":annual_quick,
                                                            "user_quarter_quick_ratio":quarter_quick,
                                                            "user_annual_current_ratio":annual_current,
                                                        })
                                                        ```
#
obj, created = Person.objects.update_or_create(
    first_name="John",
    last_name="Lennon",
    defaults={"first_name": "Bob"},
)```
lethal wadi
#

return f'{self.ticker}'

untold plank
#

@restive jolt # makemigrations - create changes and store in a file

migrate - apply the pending changes created by makemigrations

#

@lethal wadi @restive jolt did you guys come daily on vc?

lethal wadi
#

im a monday friday guy

untold plank
#

yep

lethal wadi
#

soliciting time

last cove
#

"test'

#

"test"

#

'test'

last cove
#

n = 15
n += 15
n/5

dry pendant
#

'hello' + " world"

#

'""tim""" *3

#

'''this will work''' *3

#

print('Bob'*8)

lilac sand
#

Do you guys think you could help me after please?

#

don't want to interrupt current call

dry pendant
#

2**5

molten nebula
#

Hello

shut belfry
#

@rugged veldt what are you talking about

proud cloak
#

hey

hollow bay
#

hey

#

couldn't stand all that crap

proud cloak
#

eh just political debates lol

hollow bay
#

i start it too but generally don't contiuate like that

#

a few words here and there a little discussion no problem but a heated one?? no

#

can't do it

proud cloak
#

so hows your day going

hollow bay
#

I think i made a break through in data science

#

simple code but crazy start

proud cloak
#

oo nice

#

im coding a POS rn

hollow bay
#

well at least your honst

proud cloak
#

hello opal!

hollow bay
#

Danger wanna take a look its python?

proud cloak
#

sure

hollow bay
misty sinew
#

!paste

coarse hearthBOT
#
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.

proud cloak
#

still on about all the politics

tulip grail
#

flobert

proud cloak
#

hello!

misty sinew
#

.rfc

ocean orbitBOT
#
Are you trying to kill me?

Your input was invalid: rfc_id is a required argument that is missing.

Usage:```
.rfc <rfc_id>

barren basin
#

.dfc 1

#

.rf 1

#

.rfc 1

ocean orbitBOT
barren basin
#

.rfc 2

ocean orbitBOT
barren basin
#

.rfc 3

ocean orbitBOT
barren basin
#

.rfc 69

ocean orbitBOT
barren basin
#

.rfc -1

ocean orbitBOT
#
RFC not found

RFC -1 does not exist.

barren basin
#

yes it does

random minnow
stuck bluff
#

@mild flume Everyone could jump back up.

spiral rune
#

gm

mild flume
#

Yo

halcyon notch
#

gm

misty sinew
#

gm

ocean orbitBOT
#
RFC not found

RFC -1 does not exist.

woeful laurel
#

aa

coarse hearthBOT
#

:incoming_envelope: :ok_hand: applied timeout to @woeful laurel until <t:1693525135:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

modern musk
#

Hey guys, Use this way to share live code

  1. download & install vscode
    https://code.visualstudio.com/download

  2. install live share extension
    https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare

Or simply, Use this link

https://codeshare.io/

Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.

torpid cloud
mild flume
#

!stream 337997669899304961

coarse hearthBOT
#

✅ @blazing garnet can now stream until <t:1693596706:f>.

stable zealot
#

any of you guys know folium library or similar ones

#

@mild flume can i get temp voice or do i need to fufill all the things

edgy chasm
#

i need help

solid gyro
mild flume
delicate wren
#

is this only affecting terminals?

edgy chasm
#

hemlock

#

has opal ever been mod or anything similar?

mild flume
#

What's the actual issue you're running into with that library?

#

No he hasn't

edgy chasm
#

i could have sworn he has

#

mandela effect be like

stable zealot
#

cause it seems like folium is pretty bare bones in terms opf help

stable zealot
#

can i link something

delicate wren
#

also jupyter, as opened by VSC doesn't re-run .*rc file, allegedly

#

so, the thing might work if vsc is restarted
but that's not a good solution, likely

mild flume
#

I've never messed with these kinds of libs for that

stable zealot
#

send picture

delicate wren
#

is code right now started from shell?

#

after having enough trouble with jupyter, I no longer ever run it outside Docker

stable zealot
#

basically i want to make a visualzation of my data

#

that zoomed out its just one bubble wiuth the count

#

but when you zoom in the bubble seperates

#

and than when you zoomed in enough the indiviudal points appear and they are clickable and show the data from that

#

point

#

i use google colab

#

for data science

delicate wren
#

you can run your own JupyterHub instance in Docker
with certain settings, it will be able to interact with GPU

stable zealot
#

i skipped sql cause i was working with massive stuff that needed data cleaning and it was much easier on python

#

and jupyter lab i forgot my password

#

and my laptop had less resources than google colab free resources

stable zealot
delicate wren
stable zealot
#

i jsut didnt want to link craigslist cauyse its selling site

delicate wren
#

in Linux the problem is you wouldn't know what to install

#

it's installed via several weird separate packages
and you need to choose

delicate wren
#

forwarding to be accessed externally was difficult for me, but that had nothing to do with Docker
(Docker made it easier)

#

((I just had no idea how apache httpd proxying works properly))

#

ah, and also one of the recent jupyterhub versions got broken and default_url = '/lab' doesn't work, so that had to be overwritten in proxy

stable zealot
#

some herbs depends where you live can survive

#

theyll just drop the leavexz

#

dont grow mint

#

it spreads

#

its very invasive

#

jasmine is nice to grow

#

basil is easy so is rosemary

turbid silo
#

anyone up for chat?

glad turtle
hollow bay
#

anyone alive

hollow bay
#

I hate how linux makes it difficult to complile things

#

ugh

obtuse sundial
#

hi

ivory sparrow
#

hello

misty sinew
#

Hello

mild flume
#

@cyan rivet #career-advice will have plenty of good advice on how to help with that as well

paper robin
#
x = 0
for i in range(1000):
    if i % 3 == 0 or i % 5 == 0:
        x + i
        print(x)

print(x)```
mild flume
#

Oh so you're doing x + i, but it's not being stored

#

It does the calculation but then doesn't do anything with it

paper robin
#

yes

#

so the x should be the variable

#

x + i = x?

#

still printed 0 tho

mild flume
#

Flip it

#

Things get packed to the left

#

So it'd be x = x + i

#

Also, shorthand for that is x += i

#

Which makes it clean

paper robin
#

ohhh

#

thank you

mild flume
#

Happy to help

atomic hinge
hollow bay
#

Jeeeus

#

this is as big as i a have seen this

#

15

#

Multiple Primary Periods?

#

or Primate?

#

There One hell of a delay since the update when my voice actativation feature turns on.. like damn near a minute

#

@mild flume

#

Oh thats right gotta install Android studio

hollow bay
#

the new update

#

wait, never mind

#

earlier conversation

broken moss
#

hello!

hollow bay
#

moring everyone

high prairie
#

hello

hollow bay
#

yeah great cool day

gilded portal
#

78|

broken palm
#

ok

#

i don't understand what you are saying

#

could you be a little bit louder please

#

osyra

#

ur voice very clear

#

ok

#

back

fair heron
uncut cairn
#

why can't i talk in the voices?

fair heron
coarse hearthBOT
#
Voice verification

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

uncut cairn
#

thanls

#

i joined 3 minutes ago, so i'll just hear

fair heron
uncut cairn
#

I wanna learn it to improve my degree, i"m studyng economics and if you know data analytics you have more opportunities

#

also, it's a interesting way to improve my english

charred creek
#

Kevlin Henney
It is all to easy to dismiss problematic codebases on some nebulous idea of bad practice or bad programmers. Poor code, however, is rarely arbitrary and random in its structure or formulation.
Systems of code, well or poorly structured, emerge from systems of practice, whether effective or ineffective. To improve code quality, it m...

▶ Play video
copper cedar
#

getting goated sounds painful

#

how does that work

stuck bluff
#

A form of mayonnaise.

#

Japanese.

copper cedar
#

both of them are the same?

stuck bluff
#

Are all carbonated lemonades the same?

charred creek
#

!e


class Hello:
  def __init_subclass__(self, hello: str):
    print(hello)

class Example(Hello, hello="Hello"): ...


coarse hearthBOT
#

@charred creek :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello
charred creek
#

!stream @last cove

coarse hearthBOT
#

✅ @last cove can now stream until <t:1694619144:f>.

stuck bluff
#

!e ```py
def class_decorator_with_parameters(a):
def d(cls):
class C(cls):
def init(self):
print(a)
super().init()
return C
return d

@class_decorator_with_parameters("Apples.")
class MyClass:
def init(self):
print("Native.")

mc = MyClass()```

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Apples.
002 | Native.
charred creek
#

!e

def class_decorator_with_parameters(a):
    def d(cls):
        class C(cls):
            def __init__(self):
                print(a)
                super().__init__()
        return C
    return d

@class_decorator_with_parameters("Apples.")
class MyClass:
    def __init__(self):
        print("Native.")

mc = MyClass()

print(mc.__class__.__name__)
coarse hearthBOT
#

@charred creek :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Apples.
002 | Native.
003 | <class '__main__.class_decorator_with_parameters.<locals>.d.<locals>.C'>
stuck bluff
#

!e py float('@*!')

coarse hearthBOT
#

@stuck bluff :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     float('@*!')
004 | ValueError: could not convert string to float: '@*!'
stuck bluff
#

Where a % b == 0, a is fully divisible by b.

mild flume
#

!e print(10.11 % 10)

coarse hearthBOT
#

@mild flume :white_check_mark: Your 3.11 eval job has completed with return code 0.

0.10999999999999943
stuck bluff
#

!e

coarse hearthBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

Currently only 3.11 version is supported.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

stuck bluff
#

!d math.isclose

coarse hearthBOT
#

math.isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)```
Return `True` if the values *a* and *b* are close to each other and `False` otherwise.

Whether or not two values are considered close is determined according to given absolute and relative tolerances.

*rel\_tol* is the relative tolerance – it is the maximum allowed difference between *a* and *b*, relative to the larger absolute value of *a* or *b*. For example, to set a tolerance of 5%, pass `rel_tol=0.05`. The default tolerance is `1e-09`, which assures that the two values are the same within about 9 decimal digits. *rel\_tol* must be greater than zero.

*abs\_tol* is the minimum absolute tolerance – useful for comparisons near zero. *abs\_tol* must be at least zero.

If no errors occur, the result will be: `abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)`.
flint comet
#

i think you can use index method for looking for character or text in a string

stuck bluff
#

!e py for i in range(1, 11): print([v % i for v in range(10)])

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
002 | [0, 1, 0, 1, 0, 1, 0, 1, 0, 1]
003 | [0, 1, 2, 0, 1, 2, 0, 1, 2, 0]
004 | [0, 1, 2, 3, 0, 1, 2, 3, 0, 1]
005 | [0, 1, 2, 3, 4, 0, 1, 2, 3, 4]
006 | [0, 1, 2, 3, 4, 5, 0, 1, 2, 3]
007 | [0, 1, 2, 3, 4, 5, 6, 0, 1, 2]
008 | [0, 1, 2, 3, 4, 5, 6, 7, 0, 1]
009 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 0]
010 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
charred creek
#

!timeit

coarse hearthBOT
#
Missing required argument

code

#
Command Help

!timeit [python_version] [setup_code] <code, ...>
Can also use: ti

Profile Python Code to find execution time.

This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

If multiple formatted codeblocks are provided, the first one will be the setup code, which will not be timed. The remaining codeblocks will be joined together and timed.

Currently only 3.11 version is supported.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

mild flume
#

!timeit

def is_mul_10_bitwise(n :int) -> bool:
  return i & 0xF == 0
for i in range(1000):
  is_mul_10_bitwise(i)
coarse hearthBOT
#

@mild flume :white_check_mark: Your 3.11 timeit job has completed with return code 0.

2000 loops, best of 5: 157 usec per loop
mild flume
#

Oh right right

charred creek
#

that was literally even

#

yikes

mild flume
#

Yeah that's.... weird

#

That doesn't feel right

#

Unless under the hood that particular one is optimized to use bitwise?

#

I would think mod 10 and mod 2 would be common enough to put in a special condition

#

Wait would it be F?

#

It'd be 0x0 I thought

charred creek
#

it would be two checks

#

is div 2 and is div 5

#

div 5 in bin sounds grim

mild flume
#

!timeit

for i in range(10000):
  i & 0x1
coarse hearthBOT
#

@mild flume :white_check_mark: Your 3.11 timeit job has completed with return code 0.

500 loops, best of 5: 600 usec per loop
mild flume
#

!timeit

for i in range(10000):
  i % 2
coarse hearthBOT
#

@mild flume :white_check_mark: Your 3.11 timeit job has completed with return code 0.

500 loops, best of 5: 731 usec per loop
stuck bluff
#

!d divmod

coarse hearthBOT
#

divmod(a, b)```
Take two (non-complex) numbers as arguments and return a pair of numbers consisting of their quotient and remainder when using integer division. With mixed operand types, the rules for binary arithmetic operators apply. For integers, the result is the same as `(a // b, a % b)`. For floating point numbers the result is `(q, a % b)`, where *q* is usually `math.floor(a / b)` but may be 1 less than that. In any case `q * b + a % b` is very close to *a*, if `a % b` is non-zero it has the same sign as *b*, and `0 <= abs(a % b) < abs(b)`.
mild flume
#

I think that'd be equivalent?

charred creek
mild flume
#

Oh derp

charred creek
#

wait

#

basically

mild flume
#

Yeah you're right

charred creek
#

does it end in 1

mild flume
#

Yeah

charred creek
#

so odd even

mild flume
#

I done goofed

charred creek
#

that, odd even and is div by 5]

mild flume
#

0x2 right?

charred creek
#

that doesn't work either

mild flume
#

Bitwise confuses me

charred creek
#

think about this

#

!e

print(bin(0x2)) # 0x2 == 2
coarse hearthBOT
#

@charred creek :white_check_mark: Your 3.11 eval job has completed with return code 0.

0b10
charred creek
#

so

#

ur doing 0100 & 0010

#

if comparing 4

#

so

#

columns

#

any match?

#

no

#

so 0

mild flume
#

Right

#

I getcha

#

Oh apparently i & 1 would work to see if it's divisible by 2 as well?

charred creek
#

yeh

#

well

#

does it end 1, is another way of asking if its even or divisible by 2

mild flume
#

Right

charred creek
#

different phrasing, same question and answer

mild flume
#

Oh right ye

delicate wren
charred creek
#

yes now

delicate wren
#

binary string divisibility by 3 is relatively easy

#

5 -- not as much, but likely possible

stuck bluff
#

!indent

coarse hearthBOT
#
Indentation

Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.

Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.

Example

def foo():
    bar = 'baz'  # indented one level
    if bar == 'baz':
        print('ham')  # indented two levels
    return bar  # indented one level

The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.

Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines

More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation

charred creek
#

!e

import dis

def func():
  pass


def func():
  if True:
    pass
  else:
    pass

dis.dis(func)
coarse hearthBOT
#

@charred creek :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |   7           0 RESUME                   0
002 | 
003 |   8           2 NOP
004 | 
005 |   9           4 LOAD_CONST               0 (None)
006 |               6 RETURN_VALUE
charred creek
#

NOOP

mild flume
#

!e

ham = "pork"
float(ham)
coarse hearthBOT
#

@mild flume :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 2, in <module>
003 |     float(ham)
004 | ValueError: could not convert string to float: 'pork'
mild flume
#

!e

beef = "spam"

try:
  float(beef)
except ValueError:
  print("Invalid float")
coarse hearthBOT
#

@mild flume :white_check_mark: Your 3.11 eval job has completed with return code 0.

Invalid float
mild flume
#

It's more that people aren't getting cross trained in the event something goes wrong

#

It's reactive not proactive responses

idle sand
#

Doing HW?

mild flume
#
SourceFolderPath = GetFolderPath
#

That's a function call

#

God

#

Damn it

broken palm
#

guys

#

didn't Egypt supply Russia with bombs or smn

#

they have bombs

#

watch your mouth, buddy

hollow bay
#

uh

flint comet
#

hey

latent sorrel
#

!e

y=3
print(x*y)```
coarse hearthBOT
#

@latent sorrel :white_check_mark: Your 3.11 eval job has completed with return code 0.

6
sly coral
#

!e print(“hello”)

#

no way

#

!e list = [1,2,3,4]

coarse hearthBOT
#

@sly coral :warning: Your 3.11 eval job has completed with return code 0.

[No output]
sly coral
#

!e highest = [1,2,3,4] print highest.max

sly coral
#

!e max(1,2,3,4)
print (max)

#

!e max(1,3,3,46,run)

#

!e max(1,3,3,46,)

#

!e max(1,3,3,46) print (max)

#

!e max(1,3,3,46) print max

stuck bluff
#

!e py arr = 1, 3, 3, 46 result = max(arr) print(result)@sly coral

coarse hearthBOT
#

@stuck bluff :white_check_mark: Your 3.11 eval job has completed with return code 0.

46
sleek thunder
#

!e
print("Hello Snake")

coarse hearthBOT
#

@sleek thunder :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello Snake
sleek thunder
#

!e
while true:
print("That snake which made my life slow is Python")

coarse hearthBOT
#

@sleek thunder :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     while true:
004 |           ^^^^
005 | NameError: name 'true' is not defined. Did you mean: 'True'?
sleek thunder
#

!e
while True:
print("That snake which made my life slow is Python")

coarse hearthBOT
#

@sleek thunder :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).

001 | That snake which made my life slow is Python
002 | That snake which made my life slow is Python
003 | That snake which made my life slow is Python
004 | That snake which made my life slow is Python
005 | That snake which made my life slow is Python
006 | That snake which made my life slow is Python
007 | That snake which made my life slow is Python
008 | That snake which made my life slow is Python
009 | That snake which made my life slow is Python
010 | That snake which made my life slow is Python
011 | That snake which made my life slow is Python
... (truncated - too many lines)

Full output: too long to upload

sleek thunder
#

!e
a=" "
loopcount=0
while True:
loopcount++
print(a*loopcount+ "That snake which made my life slow is Python")

coarse hearthBOT
#

@sleek thunder :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 4
002 |     loopcount++
003 |                ^
004 | SyntaxError: invalid syntax
sleek thunder
#

!e
a=" "
loopcount=0
while True:
loopcount=loopcount+loopcount
print(a*loopcount+ "That snake which made my life slow is Python")

coarse hearthBOT
#

@sleek thunder :x: Your 3.11 eval job has completed with return code 143 (SIGTERM).

001 | That snake which made my life slow is Python
002 | That snake which made my life slow is Python
003 | That snake which made my life slow is Python
004 | That snake which made my life slow is Python
005 | That snake which made my life slow is Python
006 | That snake which made my life slow is Python
007 | That snake which made my life slow is Python
008 | That snake which made my life slow is Python
009 | That snake which made my life slow is Python
010 | That snake which made my life slow is Python
011 | That snake which made my life slow is Python
... (truncated - too many lines)

Full output: too long to upload

obsidian shale
#

!e

coarse hearthBOT
#
Missing required argument

code

coarse hearthBOT
#
Missing required argument

code

#
Command Help

!eval [python_version] <code, ...>
Can also use: e

Run Python code and get the results.

This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.

The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.

If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.

Currently only 3.11 version is supported.

We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!

misty sinew
#

hello?>

raven orbit
mild flume
#

Ew

frank gazelle
#

lol

frank gazelle
raven orbit
#

infested mint

frank gazelle
#

infested with drugs?

raven orbit
#

no, aphids

distant tinsel
#

lo

#

l

distant tinsel
#

I am looking for some people to code with dm if you’re interested

stuck bluff
tawny ferry
#

how to SPEAK IN THE VOICE CHAT

hearty heath
#

Pretty much

mild flume
#

@tawny ferry Check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

tawny ferry
#

ok thanks

hearty heath
#

I enjoy Rabbit's rants 😄

mild flume
#

Same

#

He's my anger translator

tawny ferry
#

they say that i have to have over 50 massger so can i spam🤔

tawny ferry
hearty heath
#

You'll meet the message count fairly quickly by just chatting in the server.

#

gtg

copper cedar
stuck bluff
#

@pallid basalt 👋

pallid basalt
#

all in one

trim violet
#

gottem

agile crystal
mild flume
#

Cheep cheep

trim violet
#

🐤

#

I took a photo of a sparrow few days ago

agile crystal
#

care to share?

trim violet
#

findin it

stuck bluff
#

Chaim chaier.

trim violet
#

my house is named 'sparrow's song' (translated)

agile crystal
trim violet
#

slo-mo of hummingbirds is cool to watch

#

they had a baby few days ago

stuck bluff
#

The Australian wood duck, maned duck or maned goose (Chenonetta jubata) is a dabbling duck found throughout much of Australia. It is the only living species in the genus Chenonetta. Traditionally placed in the subfamily Anatinae (dabbling ducks), it might belong to the subfamily Tadorninae (shelducks); the ringed teal may be its closest living r...

trim violet
#

yea, they are

#

diy nest

agile crystal
stuck bluff
#

@fresh pecan 👋

fresh pecan
fresh pecan
stuck bluff
#

@fluid silo

#

!code

coarse hearthBOT
#
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.

stuck bluff
#

@toxic perch 👋

lofty osprey
#

anybody wanna play some chess ? voice-chat 1?

rough igloo
#

how to get good at python?

#

does anyonw know im not doing so good

serene lark
stuck bluff
#

@flat crag 👋

#

@narrow shoal 👋

sinful echo
#

how do i create a canvas with python

exotic ivy
#

man this verification thing takes forever

#

i wonder when it will be over

distant tinsel
#

I am building a backtracking algo to solve sudoku boards but I dont know how to get possible boards that are not solved

tiny flare
#

👋

distant tinsel
#

btw if anybody is starting to learn python and wants free coaching just dm me

misty sinew
#

@humble osprey

#

w

#

wewq

#

hello

humble osprey
#

hi

outer oriole
#

I worked at Google a long time ago, it's interesting to hear what's happening now

fast ore
#

Hi

outer oriole
#

@glad turtle ....there was discussion of the enshittification going on... cancelling projects, getting rid of people, the usual late state capitalism that we have seen in less succefful companies is now making its way through alphabet

glad turtle
#

Nice summary of Company Culture

#

Notice how thin that slice is, it's not even lunch, it's not a meal.
Culture is a very elusive concept.

sonic lantern
#

Can someone who knows django join voice chat 1?

shut dragon
#

!projects

coarse hearthBOT
#
Kindling 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.

shut dragon
full violet
#

!projects

coarse hearthBOT
#
Kindling 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.

ocean mantle
#

just don't want to reveal my voice

glad turtle
raven orbit
thin estuary
#

why i cant use mike

#

i just joined

glad turtle
# raven orbit

only fizzy drinks. they had no sandwiches, no waffles..

stuck bluff
#

!voice

coarse hearthBOT
#
Voice verification

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

covert smelt
#

mist

#

I wish i had a mic

#

or a voice

#

ig

trail edge
#

Thonny

#

import tkinter as tk
import time

def slow_print(*args, sep=' ', end='\n', file=None, flush=False):
def print_then_wait(c):
text_widget.insert("end", c) # Insert the character in the Text widget
text_widget.see("end") # Automatically scroll to the end
text_widget.update() # Update the Text widget
time.sleep(0.05)

_sep = ''
for arg in args:
    print_then_wait(_sep)
    _sep = sep
    for char in str(arg):
        print_then_wait(char)
print_then_wait(end)

Create the main window

root = tk.Tk()
root.title("Slow Print Output")

Create a Text widget to display the output with custom colors

text_widget = tk.Text(root, wrap="none", bg="#000000", fg="#00FF00") # Black background and light green text
text_widget.pack()

Example usage:

slow_print("Welcome", "Username!", sep=' ', end='\n', flush=True)

Start the Tkinter main loop

root.mainloop()

pliant turret
#

The app has a list of stopwatch objects that hold the time stamps that describe the time intervals. But that is only available in the console. There's debug print statements when the user clicks the start and stop buttons. It prints the time.

#

YOUR TASK:

#

Create a gui interface were the user can access those time stamps in those stopwatch objects. Add a button for each stopwatch, or perhaps just a menu option to create another window. But basically the user should be able to click to reveal more detail about the stopwatch objects. And then close it when he's done examining it.

tawny ferry
#

it's been a year daddy
I really really miss you
Mommy said you went to the store to get the milk
anyways
I'm failing all my classes
and Mommy hits me very frequently
and she changed my name too tickle Timpson
anyways Daddy I forgive u for abusing me
pls come back

delicate wren
#

macros?

#

proc macros?

#

second is more cursed

#

is this from some spec?
if yes, then there's not much choice other than to hard-code it

#

you can also store it in a different format and then parse inside Rust
but converting, for example, strings to enum variants would still be a troublesome part

#

can't this be translated using regex?

#

!e

import re
pattern = re.compile('{\s*(".*?")\s*,\s*&a::(.*?)\s*,\s*&a::(.*?)\s*,\s*(.*?)\s*}')
print(pattern.sub(lambda m: f'Instruction({m[1]}, CPU::{m[2]}, CPU::{m[3]}, {m[4]})', '{ "ORA", &a::ORA, &a::IZY, 5 }'))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

Instruction("ORA", CPU::ORA, CPU::IZY, 5)
delicate wren
#

shift+end

raw wren
#

!e

import re
pattern = re.compile('{\s*(".*?")\s*,\s*&a::(.*?)\s*,\s*&a::(.*?)\s*,\s*(.*?)\s*}')
print(pattern.sub(lambda m: f'Instruction({m[1]}, CPU::{m[2]}, CPU::{m[3]}, {m[4]}) ', '{ "???", &a::XXX, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 8 },{ "BIT", &a::BIT, &a::ZP0, 3 },{ "AND", &a::AND, &a::ZP0, 3 },{ "ROL", &a::ROL, &a::ZP0, 5 },{ "???", &a::XXX, &a::IMP, 5 },{ "PLP", &a::PLP, &a::IMP, 4 },{ "AND", &a::AND, &a::IMM, 2 },{ "ROL", &a::ROL, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 2 },{ "BIT", &a::BIT, &a::ABS, 4 },{ "AND", &a::AND, &a::ABS, 4 },{ "ROL", &a::ROL, &a::ABS, 6 },{ "???", &a::XXX, &a::IMP, 6 },'))
#

!e
import re
pattern = re.compile('{\s*(".?")\s,\s*&a::(.?)\s,\s*&a::(.?)\s,\s*(.?)\s}')
print(pattern.sub(lambda m: f'Instruction({m[1]}, CPU::{m[2]}, CPU::{m[3]}, {m[4]}) ', '{ "???", &a::XXX, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 8 },{ "BIT", &a::BIT, &a::ZP0, 3 },{ "AND", &a::AND, &a::ZP0, 3 },{ "ROL", &a::ROL, &a::ZP0, 5 },{ "???", &a::XXX, &a::IMP, 5 },{ "PLP", &a::PLP, &a::IMP, 4 },{ "AND", &a::AND, &a::IMM, 2 },{ "ROL", &a::ROL, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 2 },{ "BIT", &a::BIT, &a::ABS, 4 },{ "AND", &a::AND, &a::ABS, 4 },{ "ROL", &a::ROL, &a::ABS, 6 },{ "???", &a::XXX, &a::IMP, 6 },'))

coarse hearthBOT
#

@raw wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

Instruction("???", CPU::XXX, CPU::IMP, 2) ,Instruction("???", CPU::XXX, CPU::IMP, 8) ,Instruction("BIT", CPU::BIT, CPU::ZP0, 3) ,Instruction("AND", CPU::AND, CPU::ZP0, 3) ,Instruction("ROL", CPU::ROL, CPU::ZP0, 5) ,Instruction("???", CPU::XXX, CPU::IMP, 5) ,Instruction("PLP", CPU::PLP, CPU::IMP, 4) ,Instruction("AND", CPU::AND, CPU::IMM, 2) ,Instruction("ROL", CPU::ROL, CPU::IMP, 2) ,Instruction("???", CPU::XXX, CPU::IMP, 2) ,Instruction("BIT", CPU::BIT, CPU::ABS, 4) ,Instruction("AND", CPU::AND, CPU::ABS, 4) ,Instruction("ROL", CPU::ROL, CPU::ABS, 6) ,Instruction("???", CPU::XXX, CPU::IMP, 6) ,
raw wren
#

!e

import re
pattern = re.compile('{\s*(".*?")\s*,\s*&a::(.*?)\s*,\s*&a::(.*?)\s*,\s*(.*?)\s*}')
print(pattern.sub(lambda m: f' Instruction({m[1]}, CPU::{m[2]}, CPU::{m[3]}, {m[4]})', '{ "???", &a::XXX, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 8 },{ "BIT", &a::BIT, &a::ZP0, 3 },{ "AND", &a::AND, &a::ZP0, 3 },{ "ROL", &a::ROL, &a::ZP0, 5 },{ "???", &a::XXX, &a::IMP, 5 },{ "PLP", &a::PLP, &a::IMP, 4 },{ "AND", &a::AND, &a::IMM, 2 },{ "ROL", &a::ROL, &a::IMP, 2 },{ "???", &a::XXX, &a::IMP, 2 },{ "BIT", &a::BIT, &a::ABS, 4 },{ "AND", &a::AND, &a::ABS, 4 },{ "ROL", &a::ROL, &a::ABS, 6 },{ "???", &a::XXX, &a::IMP, 6 },'))
coarse hearthBOT
#

@raw wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

 Instruction("???", CPU::XXX, CPU::IMP, 2), Instruction("???", CPU::XXX, CPU::IMP, 8), Instruction("BIT", CPU::BIT, CPU::ZP0, 3), Instruction("AND", CPU::AND, CPU::ZP0, 3), Instruction("ROL", CPU::ROL, CPU::ZP0, 5), Instruction("???", CPU::XXX, CPU::IMP, 5), Instruction("PLP", CPU::PLP, CPU::IMP, 4), Instruction("AND", CPU::AND, CPU::IMM, 2), Instruction("ROL", CPU::ROL, CPU::IMP, 2), Instruction("???", CPU::XXX, CPU::IMP, 2), Instruction("BIT", CPU::BIT, CPU::ABS, 4), Instruction("AND", CPU::AND, CPU::ABS, 4), Instruction("ROL", CPU::ROL, CPU::ABS, 6), Instruction("???", CPU::XXX, CPU::IMP, 6),
stuck bluff
#

@olive basalt 👋

olive basalt
#

Hi

#

what we working on? the above?

delicate wren
#

i++-ish thing in Rust
awful but possible

fn main() {
    trait PlusPlus {
        fn plusplus(&mut self) -> Self;
    }
    impl PlusPlus for i32 {
        fn plusplus(&mut self) -> Self {
            let prev = *self;
            *self = prev + 1;
            prev
        }
    }
    let mut i = 5;
    let j = i.plusplus();
    println!("{i} {j}");
}

(this outputs 6 5)

indigo patrol
#

heyyy

#

how u all doing ?

misty sinew
#

good wby

indigo patrol
#

not bad at all

#

hey @stuck bluff ur ok ?

misty sinew
#

💀 kinda boring day das all

olive basalt
#

One day ill get voice verified

indigo patrol
#

thats a normal dev felling

#

hahah

#

i get u

misty sinew
indigo patrol
olive basalt
#

I need like 24 more messages

#

Ill get there

misty sinew
#

i feel like my computers gonna blast on my face

indigo patrol
#

u get there

olive basalt
#

Tbh It's difficult to just hop into a community sometimes 02_scared

misty sinew
#

💀 high temp issues

delicate wren
#

"heat issues? what heat issues?"

indigo patrol
#

ow my

olive basalt
#

do you all have jobs?

delicate wren
#

docstrings work slightly weirdly with IDEs and stub files

indigo patrol
#

no ;-;

misty sinew
indigo patrol
#

just doing intership at uni

misty sinew
#

i don't

#

i'm broke

#

alr 💀

delicate wren
olive basalt
#

LOL

indigo patrol
misty sinew
#

like can you tell me what should i try to learn after OOP

#

i feel like i am lost

indigo patrol
#

a frame work ?

#

i guess

olive basalt
#

Depends what you want to work on

indigo patrol
#

just get a project, then see what u need to use and then learn it

#

then do it

olive basalt
#

If you follow the uni way, after OOP next is your senior project classes

delicate wren
#

to fully understand match is harder than if, but basic functions of it might even be simpler than if

#

applies slightly more to analogues of it in static-ish languages

misty sinew
#

ye true

indigo patrol
#

@stuck bluff Have you tried game dev?

#

what part ?

#

ohhh cool

delicate wren
#

like, semantically the first thing is simpler in certain context/for some people

match condition:
    case True:
        ...
    case False:
        ...

if condition:
    ...
else:
    ...
misty sinew
#

I'm tryin to build a script which can store my app usage on pc

#

I try to read psutil doc

#

but i couldn't find anything related to it

#

no Time

#

jus like digital

#

welbing

#

yeee

delicate wren
humble osprey
#

what does the app need to be?

delicate wren
#

time spent using cpu? time spent being used by the human?

humble osprey
delicate wren
#

need to find a way to find whether an app is focused

misty sinew
#

haven't you used digital wellbeing ?

delicate wren
#

might require accessing the windows manager

misty sinew
#

i mean

#

you only need pid

delicate wren
#

to check whether the window is focused

misty sinew
#

and stuff to extract

#

info

#

aah

#

ic

delicate wren
twilit dragon
#

hi

misty sinew
#

ye but then end time?

misty sinew
#

ooh

#

what

#

wait*

delicate wren
#

for windows

#

for linux -- idk

#

depends

stuck bluff
#

@misty sinew 👋

misty sinew
#

I'll try

delicate wren
#

this is what would be needed for Linux version, I guess
https://en.wikipedia.org/wiki/D-Bus

D-Bus (short for "Desktop Bus")
is a message-oriented middleware mechanism that allows communication between multiple processes running concurrently on the same machine. D-Bus was developed as part of the freedesktop.org project, initiated by GNOME developer Havoc Pennington to standardize services provided by Linux desktop environments such as ...

misty sinew
#

psutil.process_iter(attrs=None, ad_value=None)

#

mb i can

#

run a loop on list of

#

programs

#

running

#

and check whether my proccesss is still running

delicate wren
#
pip install pywin32
import win32gui

print(win32gui.GetWindowText(win32gui.GetForegroundWindow()))
#

this gives the title only

#

which is not enough likely

misty sinew
#

💀

misty sinew
#

i think this ones useful

delicate wren
#
from win32api import CloseHandle, OpenProcess
from win32con import PROCESS_QUERY_INFORMATION, PROCESS_VM_READ
from win32gui import GetForegroundWindow
from win32process import GetModuleFileNameEx, GetWindowThreadProcessId

hwnd = GetForegroundWindow()
_, dwprocid = GetWindowThreadProcessId(hwnd)
hproc = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, False, dwprocid)
try:
    print(GetModuleFileNameEx(hproc, 0))
finally:
    CloseHandle(hproc)
#

don't put it "into production", it's missing error handling

misty sinew
#

what this script do

delicate wren
#

prints the path of the current active window's executable

misty sinew
#

huh PATH , what will i do with path ?

#

i mean

#

how can i use it for usage

#

recording stuff

delicate wren
#
try:
    path = GetModuleFileNameEx(hproc, 0)  # changed from `print` to `path = `
finally:
    CloseHandle(hproc)
print(Path(path).stem)  # prints the name of the process
#

there might be an issue of different apps sharing the same path
that's where title might help, I guess

#
chrome
Discord
pycharm64
#

you'd either need to extract some metadata or configure this to translate to human-readable format

misty sinew
#

alr I'll try using it

hollow bay
#

getting old sucks and is rewarding at the same time

#

you get up earlier with no reason

#

no need for alarm clocks

#

there's your future everyone

#

#themoreyouknow

median cairn
#

.

tawny ferry
#

guys i wil try how smart is the robot is

#

||FUCK||

#

will the robot is dumb

modern musk
#

WHO CAN WORK WITH OPENCV ?

elfin pebble
#

y

#

Ruan

tawny ferry
#

GUYS I NEED HELP
so i will race in soming that the winer will get 40k$ so i want to win the age is from 13 to 18 and im 13 so i wat to make a cool web so i win sooooo how do i make a web by using javescript html and python and I NEED HELP I HAVE ONLY 3 MOUTH

glad turtle
delicate wren
#

!e

from random import choice
print("back-end:", choice(["Flask", "Django", "FastAPI"]))
print("front-end:", choice(["Svelte", "React", "Vue", "Angular", "just JS"]))
coarse hearthBOT
#

@delicate wren :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | back-end: FastAPI
002 | front-end: Vue
delicate wren
#

"the guide to choose what tools to start with"

misty sinew
#

riyal

ocean mantle
#

hello

umbral rose
#

!stream 737321460435124285

coarse hearthBOT
#

✅ @last cove can now stream until <t:1696443593:f>.

umbral rose
#

!stream 264657660190654464

coarse hearthBOT
#

✅ @glad turtle can now stream until <t:1696444655:f>.

umbral rose
delicate wren
#

there was some excel-like terminal-based software in ~80s, I think

#

I don't remember the name remembered

#

VisiCalc ("visible calculator") is the first spreadsheet computer program for personal computers, originally released for Apple II by VisiCorp on October 17, 1979. It is considered the killer application for the Apple II, turning the microcomputer from a hobby for computer enthusiasts into a serious business tool, and then prompting IBM to intro...

#

1979

glad turtle
delicate wren
#

either History of Programming part 0 by Mark Rendle
or something by Dylan Beattie

glad turtle
delicate wren
# delicate wren now I'm not sure what talk I learned about it from

Join Mark on a quick-fire, whistle-stop, shallow-to-the-point-of-vacuous tour through the history of programming and programming languages, from the surprise twist at the beginning, through the Golden Age of LISP, C and Smalltalk, right up to the present day. What was the Greatest Programming Language ever? Which is better: dynamic or static typ...

▶ Play video
#

(there are many errors in the talk, but that's normal for Mark Rendle)

spring finch
#
spring finch
#
axios.interceptors.request.use(request => {
  console.log('Starting Request', JSON.stringify(request, null, 2))
  return request
})

axios.interceptors.response.use(response => {
  console.log('Response:', JSON.stringify(response, null, 2))
  return response
})
dawn surge
#

!voiceverify

proud pendant
#

sorry I can't speak

thin sundial
#

stupid me

distant tinsel
#

Does anybody want to be friends dm me pls anyone

solar niche
#

best way to make friends 💯

wet nexus
#

!voiceverify

odd cobalt
urban citrus
#

mikro

unkempt ingot
#

hello

ivory sparrow
#

Hello everyone

ocean mantle
#

hello

#

can someone help me with my project? if anyone wants

stuck relic
#

Whats up ?

frail moth
frail moth
proper jay
#

man i still have perms to speak

#

36

#

36

exotic apex
#

All u guys masterd python?

#

Any newbie?

dusky cave
wary gazelle
steady finch
formal hedge
#

!voiveverify

coarse hearthBOT
#

You are not allowed to use that command.

wise palm
#

!voiverify

coarse hearthBOT
#
Voice verification

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

mortal iris
#

please,Can you active my voice

languid zephyr
#

@misty sinew i do not know how to play ches lmao

hexed narwhal
steady finch
misty sinew
#

@stuck bluff yo sup

#

how was your day?

#

💀

#

@stuck bluff

#

Tree work?

#

heh

#

aah

delicate wren
#

oh, I found an OpenCL program from 3~4 years ago

misty sinew
#

world B

#

day

#

wth is that

delicate wren
misty sinew
delicate wren
#

(prime number sieve)

misty sinew
#

💀

delicate wren
#

bee

#

🐝

turbid silo
#

ness is snake sound

#

I guess

#

I am not sure tho

misty sinew
delicate wren
#

In mathematics, the sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit.
It does so by iteratively marking as composite (i.e., not prime) the multiples of each prime, starting with the first prime number, 2. The multiples of a given prime are generated as a sequence of numbers starting from that prim...

turbid silo