#voice-chat-text-0

1 messages ยท Page 839 of 1

lucid blade
#

๐Ÿ˜ฆ

#

ok ๐Ÿ˜

rugged root
#

Kind of depends

#

If they're relevant to the ongoing conversation, yes

#

But we're not a meme dumb, as it were

lucid blade
#

nah ill get carried away

#

๐Ÿ˜„

rugged root
#

Fair

molten pewter
amber raptor
#

US has these laws as well. Since we havenโ€™t drafted since early 70s, they havenโ€™t been looked at a ton in the US.

molten pewter
#

the International Covenant on Civil and Political Rights left the issue of conscientious objection inexplicit, as in this quote from War Resisters International: "Article 18 of the Covenant does put some limits on the right [to freedom of thought, conscience and religion], stating that [its] manifestations must not infringe on public safety, order, health or morals. Some states argue that such limitations [on the right to freedom of thought, conscience and religion] would [derivatively] permit them to make conscientious objection during time of war a threat to public safety, or mass conscientious objection a disruption to public order, ... [Some states] even [argue] that it is a 'moral' duty to serve the state in its military."

#

Article 18 is of the Universal Declaration of Human Rights

lucid blade
#

DEPENDS HOW SCREWED YOUR SLEEPING PATTERN IS

#

woah caps

#

i have ptt on capslock

#

the weekend i do the hackerthon thing is literally 48hrs+ straight

#

with maybe a little nap sometime

#

what if you dont sleep ๐Ÿ˜„

#

hahaha

#

or just sleep always!

#

have u seen the fomo machine ?

#

ill try and dig the video out

dire folio
lucid blade
#

it browses the web an likes random posts on your behalf lolol whilst you're afk so you don't miss out

dire folio
#

my new office/hobby station

#

I do

lucid blade
#

can i dm you @dire folio ?

amber raptor
#

Thatโ€™s Warcraft?

whole bear
#

game

dire folio
dire folio
lucid blade
#

i got leman russ

#

and some other good ones

#

๐Ÿ˜„

#

โค๏ธ space wolves

dire folio
#

nice..

#

let me show you my latest space marine

lucid blade
#

i doubt a small amount would hurt

dire folio
lucid blade
#

nice ๐Ÿ™‚

#

ill show u a few later i havent painted for ages but when everyone was like 'im selling my figures' due to the stupid rule changes they were making and people wanted to boycott

dire folio
lucid blade
#

i was buying a few hehe ๐Ÿ˜„

#

nice dude

#

how do they hold up to uv ?

#

bc we had a resin printer at one place i worked and the they went brittle after a while

#

esp if exposed to the sun / outside

faint ermine
lucid blade
#

yeethon haha wtf

#

i totally read that as yeetathon

#

lol

dire folio
lucid blade
#

ah ok i dont have a 3d printer yet ... tbh ive been avoiding getting one

#

but inevitable now i think ๐Ÿ˜„

dire folio
#

i have not printed them, but someone has ๐Ÿ˜„

lucid blade
#

haha cool ๐Ÿ™‚

dire folio
#

i just bought them online

lucid blade
#

almost looks like laser sinter printing

rugged root
#

Hey magic

lucid blade
#

where they build the models layer by layer fusing powdered metal

#

i have a friend trying to make a printer that prints pcbs

#

he works for xerox so i dont doubt his comitment

#

ill try and get him over here sometime

rugged root
#

Wait, printing them himself?

dire folio
#
plush prawn
gilded rivet
whole bear
#

hi

#

anyone wanna protect rick with me?

#

@dire folio buy a house just for an office

#

lol

#

why

#

lol

dire folio
#

XenoSkin Black Arkhive Deck Box

faint ermine
icy axle
plush prawn
dire folio
icy axle
#

๐Ÿ˜„

dire folio
#

yes, its my dog

rugged root
#

I mean

#

There are options

icy axle
plush prawn
dire folio
#

no i missed it, please share it again or link me it

#

sure

rugged root
#

Sublime Text 4 is so clean

dire folio
#

but im not sure my old configuration would work

#

so i have to test it some

rugged root
#

Seems like it does

dire folio
#

excellent. nicely done

rugged root
#

I think I've only had 1 package not work so far

#

And that's the LSP one

#

I just realized I haven't absorbed any of the conversation for the last like 5 minutes

plush prawn
#

We're talking TDD. :)

rugged root
#

Right

hallow warren
#

I have to eat and zoom. Ttyl!

dire folio
#

Systems design is the process of defining the architecture, product design, modules, interfaces, and data for a system to satisfy specified requirements. Systems design could be seen as the application of systems theory to product development. There is some overlap with the disciplines of systems analysis, systems architecture and systems engine...

plush prawn
#
Svenska (Swedish)    Engelska (English)
systemerare    computer programmer```
#

I thought you mean a biological rabbit and hemlock as a herb, which was slightly confusing..

errant crater
plush prawn
rugged root
#

Forgot to leave the call since I'm on the phone with our IT

dire folio
#

HP ZBook 15C G7 Mobile Workstation 15,6"
GeForce RTX-2070 Super, Core i9-10885H, 32GB RAM, 1000GB SSD, Windows 10

molten pewter
whole bear
#

!catify

#

hi

#

hi

#

how you doing

#

fine, wbu

icy axle
#

.catify

viscid lagoonBOT
#

Your catified nickname is: Vestergurkan | แ“‡แ˜แ—ข

whole bear
#

.catify

viscid lagoonBOT
#

Your catified nickname is: Gi | แ“‡แ˜แ—ข

whole bear
#

D;<

dire folio
icy axle
dire folio
#

Hey @plush prawn take a look at this.

#

Storage room

#

Hobby room

molten pewter
#

ok, that is a lot of flex

grand acorn
#

@dire folio awesome :D

vivid palm
#

white nc700 :)

icy axle
dire folio
#

Lol ;) yeah

#

Also have I ever told you guys what's the beverage of choice for a dark lord of the sith is?

#

You can also get @whole rover to approve or not

#

;)

stuck furnace
#

Have you seen the UK equivalent... Geordie Shore ๐Ÿ˜„

#

Pixels script @icy axle ?

icy axle
#

yess!

#

The data for this

whole rover
#

yorkshire tea is fantastic

stuck furnace
#

Yep ๐Ÿ˜„

#

I was actually about to change it back.

#

Yeah, it's grown on me too ๐Ÿ˜„

#

It was meant to be crappy fyi ๐Ÿ‘€

icy axle
#

*authentic

stuck furnace
#

But yes, it is artisanal.

#

What you been up to Frederik?

#

Ah right

#

Yep, that was me at university tbh ๐Ÿ˜„

#

But I did also drop out, so... take that as a precautionary tale.

icy axle
stuck furnace
#

I hate it when they mess with your password (e.g. truncate it) or have silly requirements about number of digits etc lemon_pensive

amber raptor
stuck furnace
#

Berkley I think have a cool git course where you make your own implementation ๐Ÿ˜„

#

Actually it's just one project on a course, not a whole course.

#

It's usually the kind of thing that's taught on a "software engineering" course.

molten pewter
#

"eternal subjugation to pay a license"
"entrapment of intellectual property"
-Maroloccio May 27th, 2021

stuck furnace
#

Who was asking about a DM?

fossil perch
#

why cant i speak in the voice channel?

stuck furnace
molten pewter
stuck furnace
#

Lego!

flat sentinel
#

hello vesbouse

stuck furnace
#

Erm... what?

uncut meteor
#

i wasn't listening

#

whats up

stuck furnace
#

Hey Griff

#

I just joined and heard "it goes straight to ball sacks"

uncut meteor
#

oh yike

stuck furnace
#

But there was context, right? ๐Ÿ˜„

#

Heyy ๐Ÿ‘‹

gentle flint
stuck furnace
#

Can you credit me too? ๐Ÿ‘€

#

Griff, what are you reading? ๐Ÿ˜„

molten pewter
uncut meteor
lucid blade
#

waves

whole bear
#

yea

#

alr

#

see you later ig

#

lool

whole bear
#
mainpath='C:\\Users\\Ayoush\\Pictures\\Screenshots'
        a=os.listdir(mainpath)


        e=[]
        dix={}
        ite=[]

        for x in a[1:]:
            aaa=re.search("[0-9]+",x)
            b=int(aaa.group())
            dix[b]=x
            e.append(b)

        e.sort()

        for ee in e:
            ite.append(dix[ee])
#

screenshots (1).png

#

thats what i really created

#

hello!

#

hi

#

what's up?

#

it`s alrite

#

why can't i talk?

#

how long u been in ths server

#

just joined like 30 min ago i think

#

i think u need to waid till ree days \

#

search for voice verification and see the requirements to be fullfilled

#

yeah i just saw

somber heath
#
import re, os
path = 'C:\\Users\\Ayoush\\Pictures\\Screenshots\\'
file_names = [file_name for file_name in os.listdir(path) if any(v in file_name for v in '0123456789')]
sorted_file_names = sorted(file_names, key=lambda file_name: int(re.search('[0-9]+', file_name).group()))```
The double backlashes are there because of evil code gremlins.
#

Admittedly, this code isn't much more readable.

whole bear
#

'Screenshot (1).png', 'Screenshot (10).png', 'Screenshot (100).png', 'Screenshot (1000).png', 'Screenshot (1001).png', 'Screenshot (1002).png', 'Screenshot (1003).png', 'Screenshot (1004).png', 'Screenshot (1005).png', 'Screenshot (1006).png', 'Screenshot (1007).png', 'Screenshot (1008).png', 'Screenshot (1009).png', 'Screenshot (101).png', 'Screenshot (1010).png', 'Screenshot (1011).png', 'Screenshot (1012).png', 'Screenshot (1013).png', 'Screenshot (1014).png', 'Screenshot (1015).png', 'Screenshot (1016).png', 'Screenshot (1017).png', 'Screenshot (1018).png', 'Screenshot (1019).png', 'Screenshot (102).png', 'Screenshot (1020).png', 'Screenshot (1021).png', 'Screenshot (1022).png', 'Screenshot (1023).png', 'Screenshot (1024).png', 'Screenshot (1025).png', 'Screenshot (1026).png',

sinful pawn
#

@uncut meteor Linux doesn't like playing with my laptop's internal microphone

#

But then again, my Windows counterpart doesn't have the tools I use (various shell commands, Sublime Text and Merge, IDEs, debuggers)

#

And wsl2 conflicts with my Android emulators

severe pulsar
#

;-;

lucid blade
#

mornings

sharp briar
#

morning

severe pulsar
#

hey

sharp briar
#

can i ask something?

lucid blade
#

@severe pulsar i could smell you a mile away

severe pulsar
#

easy

lucid blade
#

๐Ÿ˜›

severe pulsar
#

๐Ÿ˜ฌ

sharp briar
#

any one like data anlaysis ?

lucid blade
#

hehe ๐Ÿ™‚

#

lols its kind of a meme

severe pulsar
sharp briar
#

oh

lucid blade
#

NULL

severe pulsar
#

if its a csv

lucid blade
#

is none equiv to null ?

uncut meteor
#

NaN

lucid blade
#

cool

#

its weird null

#

i think null would be unset

#

like true/false/unset

uncut meteor
severe pulsar
#

thanks for the reference

uncut meteor
#

!stream @lucid blade 1M

wise cargoBOT
#

@lucid blade

โœ… @lucid blade can now stream.

whole bear
#

Hi

#

I own Church of Rickโ„ข๏ธ

#

lol

uncut meteor
#

@severe pulsar

#

@severe pulsar

whole bear
#

@severe pulsar

severe pulsar
#

oh

wise cargoBOT
#

@severe pulsar Help me

whole bear
#

lol

#

I should be asleep but I don't sleep

#

it's 5:30am

severe pulsar
#

;-;

whole bear
#

Church of Rickโ„ข๏ธ NEEDS ME

#

EST??

severe pulsar
#

๐Ÿ‘€

#

who knows

whole bear
#

rn 7 I think

#

@uncut meteor you can check here

#

lol I made the front-end

#

and some of the backend

#

lol

#

@severe pulsar ikr

#

I agree

#

I do it while I'm cooking or just thinking

#

lol

#

idk why

#

why not

#

Mine?

#

Thanks

#

yes

#

no

#

I made it by myself

#

gitbook is easy

#

I just filled in shit

#

it's their templating and all that

#

so prob markdown

#

nope

#

I made it

#

by hand

#

lol

#

I was bored

#

and well ye

#

Ill make it auto

#

I jsut don't have admin perms to repos

#

and all that

#

I know they do

#

lol

#

I was about to use some other one that auto generated

#

but lots of setup

#

ew

#

that's a mess

uncut meteor
#

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

whole bear
#

Would anyone like to join the Church of Rickโ„ข๏ธ?

severe pulsar
#

โ„ข๏ธ moment

whole bear
#

โ„ข๏ธ included

#

โ„ข๏ธยฎ

#

@elfin fractal Ill be back later

uncut meteor
#

wrong one

#

Orange is close enough tho

severe pulsar
#

true lol

#

material design

whole bear
#

Hi

#

majority color?

fading mason
#

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

fading mason
whole bear
#

@midnight agate you were using creative wording

#

oops

#

ofc ofc I won't

hidden wedge
#

can any one help me

gentle flint
whole bear
#

@uncut meteor you can

#

lol

#

I've done it before

#

LOL

silver valley
#

Good morning from Germany

whole bear
#

Good morning from the US

silver valley
whole bear
silver valley
#

Same tahanks

#

Also no permission to talk?

#

I am new here on this server

#

Thanks but the Problem is that i have not enough messges

gentle flint
#

then the mystery has fled with the mists of time

whole bear
#

good morning

silver valley
#

@whole bear I think in USA there is realy early on the morining 6 AM

#

๐Ÿ˜ฑ

gentle flint
#

depends on where in usa

#

east coast it's 10 to 7

silver valley
#

What are you doing here are you Python developer

whole bear
#

me?

#

its almost 4am lol

silver valley
#

yes

whole bear
#

team no sleep

gentle flint
whole bear
#

Well I code and I started with py but I now use like low level langs

whole bear
silver valley
#

OK

whole bear
#

team I stayed up all night handwriting docs

#

i like how almost no one can talk in the vc lol

silver valley
#

A lot of people in the Voice Chat but no one talking thats crazy

whole bear
#

is there a channel where people put their open source projects

silver valley
#

Do you have some OpenSource Projekts on that are you currently working

manic plinth
#

what u workin on

whole bear
#

idk all my programming has been for work so i cant post it anywhere public or use it as an example for job applications

#

so im trying to help with some open source projects

manic plinth
#

@whole bear if u ok take a look at mine

silver valley
#

But are you also developing on othe OpenSource projects

#

@whole bear

manic plinth
silver valley
#

i mean OpenSource Software that was not launches by you?

whole bear
#

im just looking for public projects i might be able to contribute to

#

prefer github

manic plinth
#

check the link i gave its on git

silver valley
#

I am Contributing on some OpenSource Software

obtuse rivet
rugged root
#

!voice @strange lance

wise cargoBOT
#

Voice verification

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

strange lance
stuck furnace
#

Heyo ๐Ÿ‘‹

#

Should we try to get hemlock onto the pixels canvas? ๐Ÿ˜„

whole bear
#

Hi

#

@rugged root wanna join my botne church?

#

damn

#

ok

stuck furnace
whole bear
#

very funny

stuck furnace
autumn stream
#

whats the best sever to join c programming?

whole bear
#

not botnet, more pool

#

yep

stuck furnace
#

Right now 2 every 2 minutes yeah.

whole bear
#

yep

autumn stream
whole bear
#

@rugged root same just do one every min

rugged root
stuck furnace
#

It's been pretty fun tbh!

rugged root
stuck furnace
#

Er what sorry?

#

I haven't noticed any dodgy images/symbols on the canvas yet, are we actively moderating this? ๐Ÿ˜„

whole bear
#

@rugged root

#

oops

#

my img uploader isn't working

autumn stream
whole bear
#

@rugged root did you see the Joe I used my botne church to draw??

strange lance
#

@rugged root

whole bear
#

๐Ÿ˜

strange lance
#

joe ๐Ÿ™‚

stuck furnace
# whole bear

Where? Can I join? ๐Ÿ‘€ I have some spare capacity.

whole bear
#

lol ๐Ÿ˜

#

dm me

stuck furnace
#

DMs are off sorry.

strange lance
#

@rugged root u sound like siri

#

say hello

#

:))))))))))))

whole bear
#

@stuck furnace ok, so Ill give you a api key for the church's api then you can use that to get data from the api then you send it to Pixel's API

stuck furnace
#

Mina cough

#

I mean, it would be a bit weird if you had a random teenager as your PFP ๐Ÿ˜„

icy axle
#

Fair enough

stuck furnace
#

Picture looks professional though!

#

You can request the whole board.

#

It sends you a load of bytes in return.

#

I'm using numpy to reshape this.

short gate
#

Hello.

stuck furnace
#

You should also get the size when you get the board.

#

(Rather than hard-coding it.)

whole bear
short gate
#

Thanks to Jupyter Notebook (no PR).

eager haven
#

I would say hello but it seems I cannot talk.

short gate
stuck furnace
#

@icy axle Want me to add the gurkult logo to my list?

eager haven
#

hello then ๐Ÿ‘‹

icy axle
icy axle
#

Someone else on the gurkult server felt like making one, and suddenly one started appearing

stuck furnace
#

It's not the best circle I've ever seen, I have to admit ๐Ÿ˜„

#

It's more like an octagon.

#

I'm currently maintaining: py_guido scout yert wilson

#

Oh, and the duck in the top-middle.

icy axle
#

I thought this was what they were going after, but maybe they changed it

eager haven
#

I feel like i'm privileged to meet my rarest error message I think I have ever seen.

stuck furnace
#

The smaller of the two scout s

whole bear
#

@rugged root

icy axle
#

I might make this one when my new CLI is done

whole bear
#

thomas the thermonuclear bomb

short gate
#

Hey guys.

#

Can you guys tell me your tricks to make the program work efficiently when playing with Python Discord Pixelsโ„ข๏ธ?

stuck furnace
zealous wave
short gate
rugged root
#

Back in a bit, getting some stuff packed up and ready for my boss

short gate
#

I wanted to inject my painting into the canvas.

stuck furnace
zealous wave
#
get_str_time_mapping(original_time)['amount']
stuck furnace
#

Chili, want a 5 minute regex lesson?

rugged root
#

The Cucumber Conclave

#

(still afk, just had to rush back to type that one out)

vivid palm
zealous wave
stuck furnace
#

๐Ÿ˜“

#

The main regex symbols you need to know are:

  • . any character,
  • * zero-or-more of the previous character,
  • + one-or-more of the previous character,
  • ? zero-or-one of the previous character,
  • {k} k of the previous character,
  • [abcxyz] any of the characters contained,
  • [^abcxyz] any character not contained,
  • [a-f] any letter from a to f,
  • [0-9] a digit,
  • [^0-9] any character not a digit,
  • ^ the start of a line,
  • $ the end of a line,
  • () a group (groups can be individually extracted from the match),
  • \s a whitespace character,
  • \S a non-whitespace character,
    The main functions are:
  • re.match match a pattern at the beginning of a string,
  • re.findall find all occurrences of a pattern in a string,
#

Ah ๐Ÿ˜„

#

So like, [0-9]+ is a sequence of digits.

icy axle
#

a*

stuck furnace
#

Erm, I should probably just write a guide.

zealous wave
#
    arg_string = []
    arg_int = []
    for letter in arg:
        if not letter.isdigit():
            arg_string.append(letter)
        else:
            arg_int.append(letter)
stuck furnace
#

So you want to find all numbers in a string?

#

!eval ```py
import re
some_string = "the 123 quick 45 brown f0x."
print(re.findall(r'[0-9]+', some_string))

wise cargoBOT
#

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

['123', '45', '0']
stuck furnace
#

That won't match fractional numbers though ๐Ÿ˜„

#

But do you see how it works?

short gate
#

Just you wait.
Pekora is coming to Python Discord Pixelsโ„ข๏ธ...

cerulean moth
stuck furnace
#

NP ๐Ÿ‘

icy axle
#

Yess

stuck furnace
short gate
stuck furnace
short gate
stuck furnace
#

All of the strings? ๐Ÿค”

short gate
#

loader.py has a colour lookup table.

stuck furnace
#

Like quoted strings?

#

Erm, what format does the text have?

#

[^0-9] matches anything that's not a digit.

short gate
# stuck furnace Erm, what format does the text have?

loader.py has a colour lookup table.
It reads each character extracted from the .pxpy file and checks which colour in the table corresponds to that character. If it matches, then the program proceeds to inject a pixel with that colour into the canvas.

#

The colour lookup table looks like this.

rgb_table={
    "0":"000000",
    "1":"000050",
    "2":"005000",
    "3":"005050",
    "4":"500000",
    "5":"500050",
    "6":"505000",
    "7":"505050",
    "8":"c0c0c0",
    "9":"0000ff",
    "a":"00ff00",
    "b":"00ffff",
    "c":"ff0000",
    "d":"ff00ff",
    "e":"ffff00",
    "f":"ffffff",
}
#

Oh, about that "program" I used to draw a crude painting of Usada Pekora...

stuck furnace
#

No prob ๐Ÿ˜„

#

Yeah, different people.

slate viper
#

!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.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

stuck furnace
#

Chili has been corrected lemonshake

atomic forum
#

Whats the point of this channel. A text channel with the name 'voice-chat-0'. I dont get it....

zealous wave
#

windows in a nutshell

atomic forum
zealous wave
atomic forum
zealous wave
#

or of we need to link something that relates to the convo

short gate
stuck furnace
#

[#751591688538947646](/guild/267624335836053506/channel/751591688538947646/)

zealous wave
zinc plover
#

i cant talk

stuck furnace
#

I know what "pog" means now ๐Ÿ˜„

#

I'm down with...

stuck furnace
#

You making a pixels interface @icy axle? ๐Ÿ‘€

zinc plover
#

lol

eager haven
#

euro millions

#

big stacks

stuck furnace
#

You can make a rudimentary interface using matplotlib I think ๐Ÿค”

#

I think github pages is static isn't it?

#

One annoying thing about the API currently is that you have to actually make a request to get the rate-limit information.

stuck furnace
#

So, if you restart your app, and lose the rate-limit information, you end up falling foul of it.

icy axle
#

Sadly

#

!vote "What interface should I make?" "Web-app" "TUI (CLI)" "GUI"

wise cargoBOT
#
What interface should I make?

๐Ÿ‡ฆ - Web-app
๐Ÿ‡ง - TUI (CLI)
๐Ÿ‡จ - GUI

stuck furnace
#

GUI is a pain, from past experience. But maybe there are some good tools about.

#

Did you see my matplotlib suggestion? ๐Ÿ˜„

#

I can see you typing btw ๐Ÿ‘€

icy axle
#

Right, yeah. I'm not quite sure how that would work

#

I know, it's scary ๐Ÿ‘€

stuck furnace
#

Super weird ๐Ÿ˜„

short gate
cerulean moth
stuck furnace
#

I was showing someone my pixels code yesterday, and they were horrified by the hackyness of it ๐Ÿ˜„

cerulean moth
icy axle
icy axle
#

@stuck furnace would you like to help out with it? Probably gonna be a web-app. Iโ€™ll make the UI and stuff, but I might now have time to make it all polished

cerulean moth
icy axle
#

Thatโ€™s nice

eager haven
#

Awesome, I've now managed to completely break my server somehow and I don't know how to fix it

icy axle
#

Eh, you know what, Iโ€™ll make it a CLI

stuck furnace
#

brb

icy axle
#

Or maybe a command, so you can use it like pixxls --list to get active and pixxls --new to add a new image

eager haven
#

I was messing around with my flask server. Now all my redirects throw a 500 error

#

I think some error was being caught in a try loop and I was ignoring it

cerulean moth
#

that's what I am trying to do now, I have 3 threads using a variable called TASK_IMAGES, and called poetry run python main.py -a image.png -x 100 -y 100 -batch_size 2

Just figuring out how to add it while the script is runnng

eager haven
#

I'm a monkey that doesn't use proper version control

#

Yeah

#

Not helpful

eager haven
#

Traceback (most recent call last):
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\werkzeug\serving.py", line 319, in run_wsgi
execute(self.server.app)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\werkzeug\serving.py", line 308, in execute
application_iter = app(environ, start_response)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\app.py", line 2069, in call
return self.wsgi_app(environ, start_response)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\app.py", line 2062, in wsgi_app
ctx.auto_pop(error)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\ctx.py", line 440, in auto_pop
self.pop(exc)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\ctx.py", line 427, in pop
app_ctx.pop(exc)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\ctx.py", line 232, in pop
self.app.do_teardown_appcontext(exc)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask\app.py", line 1925, in do_teardown_appcontext
self.ensure_sync(func)(exc)
File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\flask_mysqldb_init_.py", line 100, in teardown
ctx.mysql_db.close()
MySQLdb._exceptions.OperationalError: (2006, '')

#

Which it was giving me before, but it was working

cerulean moth
# icy axle Nice

the problem is i don't see anyway of adding it while the script is running

eager haven
#

Now it just gives me the error and doesnt work

icy axle
#

Might be time for a rewrite

eager haven
#

No idea, could only find 2 instances on github. It's not the timeout 2006

#

stackechance*

cerulean moth
#

lol, this would be the fourth rewrite then

icy axle
#

Hahah

eager haven
#

Yeah

cerulean moth
#

or hmm, write a file as cache containg the image data, which is read in the threads pithink

icy axle
#

Iโ€™ll get working on my thing now

cerulean moth
#

good luck, you are streaming ti?

icy axle
#

Yess

eager haven
#

Actually god damn, now none of my redirects at all work

cerulean moth
#

cool

#

you can try using click

#

!pypi click

wise cargoBOT
cerulean moth
#

or argparse

#

!pypi argparse

wise cargoBOT
cerulean moth
#

@icy axle

icy axle
#

Ooh, right

plain mica
#
@bot.command()
async def cooldowns(ctx):
    result = requests.get(
        "https://pixels.pythondiscord.com/get_pixel",
        headers=Headers
    )
    requests_limit = int(result.headers.get('Requests-Limit'))
    request_remaining = int(result.headers.get('Requests-Remaining'))
    requests_reset = int(result.headers.get('Requests-Reset'))
    await ctx.send(f"Request_limit:{requests_limit}\n"
             f"Request_remaining:{request_remaining}\n"
             f"Request_cooldown:{requests_reset}\n")

cerulean moth
#

click is more feature ful

icy axle
#

I thought there was a nice RealPython too

cerulean moth
#

i am migrating my piston-cli to click too later

#

with argparse you always need -- glags

#

in click you don't need that

amber raptor
#

You must cast headers into dict

plain mica
#
Ignoring exception in command cooldowns:
Traceback (most recent call last):
  File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "C:\Users\IvanV\PycharmProjects\pythonProject2\Bot.py", line 320, in cooldowns
    requests_limit = int(result.headers.get('Requests-Limit'))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "C:\Users\IvanV\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
cerulean moth
#

you can or not its a caseinsensitivedict @plain mica

#

Requests-Limit is not always present in the headers i think

#

not sure

plain mica
amber raptor
#

!e python a = {'a': 5} int(a.get('b'))

wise cargoBOT
#

@amber raptor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
cerulean moth
#

print the whole headers

#

r.headers

eager haven
#

Anyone know a way to map out flask blueprints to check pages are working?

amber raptor
#
        headers = dict(r.headers)
        requests_remaining = r.headers.get('requests-remaining')
        requests_reset_after = r.headers.get('requests-reset')
        cooldown_reset = r.headers.get('Cooldown-Reset')```
rugged root
austere locust
#

What IDE is this?

#

@icy axle

eager haven
#

I'm just trying to catch this shitty error but I don't know where it's coming from since the stack points to my database connection

#

MySQLdb._exceptions.OperationalError: (2006, '')

plain mica
#

how would I cache request-remaining,requests-reset,Cooldown-reset

icy axle
austere locust
#

Okay thank you

#

Is it better then PyCharm?

#

In your opinion

icy axle
#

Both are fantastic tools

gentle flint
#

very diplomatic

stuck furnace
#

There's also RISC-V which is an open (non-proprietary) alternative to ARM.

#

Nah, I'm RISC all the way.

#

It reduces complexity for everyone.

#

Should be new Apple desktop chips coming out soon ๐Ÿคž

eager haven
#

40k

#

It's like a german mixed with english

rugged root
#

True dat

gentle flint
plain mica
rugged root
whole bear
#

I Remember when I used my soldering iron as a lever and shattered it

rugged root
stuck furnace
plain mica
rugged root
sharp rivet
#

hi guys

gentle flint
#

decmber 1996

icy axle
#

Looks like a cult

gentle flint
#

june 2003

#

june 2006

tiny socket
#

gtg have a meeting

sharp rivet
#

i wish i could talk too

gentle flint
#

time to update the list of things that use much electricity

hallow coyote
#

@amber raptor ^

eager haven
#

Hey, I bitching earlier but maybe im just a dumbass. Anyone know if its fucky if your hosting a database and a flask server locally, but your flask server is on a local ip (192.168.1.xxx).

rugged root
# sharp rivet i wish i could talk too

You'll get there eventually. Just hang out in here, get help or give help in the help channels, check out the topical channels, or hang out in the off-topic channels and you'll be able to verify in no time

#

And when we're in the voice chat, most of the time we're watching the accompanying text chat as well

gentle flint
#

looks cool, loads fast; 694 ms to load in total for me

#

those two don't often go together
compare that to github.com which takes 2.22 s for me; 3.2 times as long
or readthedocs.io which takes 2.86 s; 4.12 times as long

paper tendon
sharp rivet
#

@rugged root thank you ๐Ÿ‘

faint ermine
#

@rugged root ```py
while cv2.getWindowProperty('image', 0) >= 0:
cv2.imshow("blah", image)
for _ in range(1000*3):
cv2.waitKey(1)

sinful pawn
#

@rugged root Are the printers linking properly Hemlock?

rugged root
#

Thankfully yes

#

Only thing I've had to do recently was shake a toner cartridge and run a couple cleaning pages.

severe pulsar
#

๐Ÿ‘

rugged root
#

!voice @sinful orbit If you're wondering why you can't talk, check this out

wise cargoBOT
#

Voice verification

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

rugged root
sinful orbit
#

!voice

faint ermine
sinful pawn
# rugged root 'bout you? How're you doing?

Campus' DB is currently fucked, a lot if not all students are locked out from accessing any material of courses they're taking this semester including critical material regarding finals

rugged root
#

Yeesh

#

That's not good. The teachers at least acknowledge this and giving them a bit more time?

sinful pawn
#

Nope

#

I mean, acknowledgement is yes, but extension is nope

sweet lantern
#

I think I'm in this server more than 3 days

rugged root
severe pulsar
#

@ Vestergurแ“šแ˜แ—ข if you need any help with the typer/cli side of things feel free to ping me :) (I would love to help lol)

icy axle
severe pulsar
#

I would, if you needed me to

#

:)

icy axle
#

Sure thing, Iโ€™ll tell you if thereโ€™s anything to do! Or feel free to ping me if thereโ€™s anything particular you want to do

severe pulsar
#

awesome!

#

A suggestion:

[tool.poetry.scripts]
pixxls = "pixxls.__main__:app"

If you put this in your pyproject.toml file it will allow you to run your cli tool with poetry run pixxls - or if you are already in your poetry shell/virtual environment(which you are) you can just run pixxls
@icy axle
More information at: https://typer.tiangolo.com/tutorial/package/

icy axle
#

Ooh, nice, thanks!

severe pulsar
#

does it not work

#

try poetry run pixxls or restarting the vscode terminal?

#

@icy axle not poetry pixxls

#

poetry run pixxls

#

๐Ÿ˜…

icy axle
#

Ohh right

#

Iโ€™ve been sitting here for too long

severe pulsar
#

i just saw it but didnt want to interrupt vc

#

hence the ping

icy axle
#

Iโ€™m always happy to get pings, so I donโ€™t miss things

#

Nice

whole bear
#

ey

#

@icy axlewhat are ya building?

icy axle
uncut meteor
#

!e

from dataclasses import dataclass

@dataclass
class Basket:
  fruits: list[str]


basket = Basket(fruits=["Apple", "Banana"])
print(vars(basket))
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

{'fruits': ['Apple', 'Banana']}
uncut meteor
#

@severe pulsar ^

severe pulsar
#

thanks!

#

might end up using this

icy axle
#
print "hello there"
#

!e ```py
print("hello world", end="!!!")

wise cargoBOT
#

@icy axle :white_check_mark: Your eval job has completed with return code 0.

hello world!!!
fiery juniper
#

!e

# print("Parzivel_1".reverse())
print("Parzivel_1"[::-1])
wise cargoBOT
#

@fiery juniper :white_check_mark: Your eval job has completed with return code 0.

1_levizraP
fiery juniper
#

Is there a reverse method for strings?

#

Like lists have .reverse()

#

!e

x = [1,2,3]
x.reverse()
print(x)
wise cargoBOT
#

@fiery juniper :white_check_mark: Your eval job has completed with return code 0.

[3, 2, 1]
severe pulsar
#

!e

string = "yo what up"
print(string[::-1])
wise cargoBOT
#

@severe pulsar :white_check_mark: Your eval job has completed with return code 0.

pu tahw oy
severe pulsar
#

@fiery juniper

#

:)

fiery juniper
#

I know about that

severe pulsar
#

aah

#

try str(reversed(string))

fiery juniper
#

!e

print(str(reversed("hello")))
wise cargoBOT
#

@fiery juniper :white_check_mark: Your eval job has completed with return code 0.

<reversed object at 0x7fb070df5c10>
fiery juniper
#

Hmmm not really

severe pulsar
#

huh my bad hang on

uncut meteor
#

!e

from typing import NamedTuple

Location = NamedTuple("Location", x=int, y=int)
Size = NamedTuple("Size", width=int, height=int)

my_size = Size(27, 30)
print(my_size.height)

loc = Location(7, 9)
print(loc.x)
wise cargoBOT
#

@uncut meteor :white_check_mark: Your eval job has completed with return code 0.

001 | 30
002 | 7
sweet lantern
#

how big is that screen

#

you guys are working in pixels

#

?

rugged root
#

I think so

hushed elm
#

@stuck furnace ey Alex how's it been?

stuck furnace
hushed elm
#

Going home to get some food

stuck furnace
#

I hear you got a new camera? ๐Ÿ‘€

hushed elm
#

Really hungry

#

Yesss i got a brand new one

#

A fuji gfx 100s

#

It's gorgeous, the photos are awesome and it's got a lot of features i like

stuck furnace
#

Just looked at the price blobsweats

hushed elm
#

Hah yeah it's not cheap

restive geyser
#

share photos plz

hushed elm
#

But i love it and it was worth it

#

I will do so in 50 minutes or so, gotta get home to download them from the camera

restive geyser
#

take your time. go grab food ^^

hushed elm
#

I've also met a few photographers here in Cluj, really nice

#

๐Ÿž๐Ÿž

#

@stuck furnace you're in london right?

stuck furnace
hushed elm
#

How is it there lately?

stuck furnace
rugged root
#

Hey Gilly

restive geyser
#

howdy~

restive geyser
#

he's a hermit.

stuck furnace
#

Pretty much tbh ๐Ÿ˜„

hushed elm
#

I bet ๐Ÿ˜„

stuck furnace
#

I got vaccinated today though...

hushed elm
#

I was so too but i got over it and now i go out all the time

#

Really? Which brand?

stuck furnace
#

Erm, Pfizer

hushed elm
#

Same here

#

Any side-effects?

stuck furnace
#

Erm, just a weird urge to donate all my money to the Gates foundation.

#

Jk jk

hushed elm
#

I think it'll help him and his divorce

#

Pretty crazy that they divorced right?

#

๐Ÿฑnot good enough probably

stuck furnace
hushed elm
#

Me neither ithought they were really close

#

But apparently not

#

I hope they'll be happier after the breakup

rugged root
#

Damn it, forgot about my meeting with our MSP

hushed elm
#

Oh no u gonna get fired

#

Lols

rugged root
#

By them? No

#

This is our weekly meet up

hushed elm
#

Aa ok

#

Was just kidding

rugged root
#

No I know

#

Just out of it

restive geyser
stuck furnace
#

Erm, @icy axle there's a dataclass-like version of NamedTuple.

icy axle
#

@rugged root ```py
Location = NamedTuple("Location", x=int, y=int)
Location.str = lambda self: "hello world"

#

:)

rugged root
stuck furnace
#

An advantage of NamedTuple is that you could add vector-like methods to it.

#
class Vector(NamedTuple):
    x:  int
    y:  int
jovial plover
#

what did you make?

icy axle
#

๐Ÿ‘‹

restive geyser
# hushed elm What money?

Their money. Because they know that under the current administration in the US, they'll owe a lot in taxes if they file as married filing separate or mfj.

whole bear
#

Hi

rugged root
#

Always the case

whole bear
#

Hello!

stuck furnace
#

I see a German flag appearing ๐Ÿ‘€

whole bear
#

@uncut meteor it's a great game

#

I would rate 8/10, you can host your own, or do p2p.

#

I haven't played it in a while tho

#

@faint ermine that's cool!

#

Hi to whoever said "Hi" to me!

#

I was tabbed out coding

faint ermine
#
cv2.namedWindow("blah")

def on_trackbar(val):
    img = images[-(1+val)]
    res = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
    res = cv2.resize(res, (img.shape[1]*6, img.shape[0]*6), interpolation = cv2.INTER_NEAREST)
    cv2.imshow('blah', res)

cv2.createTrackbar("frame-back", "blah" , 0, len(images)-1, on_trackbar)

images is a numpy array made from a PIL Image object

whole bear
#

damn that's a lot simpler than I thought

#

that's hella cool lol

#

Rick is the best

#

lol

#

Only cause Joe is better

#

๐Ÿ˜

#

@faint ermine they're more "cults" or "botnets" or "drawing pools"

#

idk lol

stuck furnace
#

What does everyone think of this GvR?

#

Someone asked if the one already there was Gordon Ramsay lemon_pensive

#

Plus he probably deserves to be a bit bigger on the canvas ๐Ÿ˜„

#

Yeah, I'm maintaining that one ๐Ÿ˜„

#

It's kind of crappy.

#

Oh, they would have had a hard time tbh.

whole bear
#

hehhehe new rick img?

stuck furnace
#

Unless they were teaming up.

#

Ah right

#

I'm going to start recruiting for bigger Guido.

whole bear
#

SnekFren is part of us

#

๐Ÿ˜

#

Fair

#

I'm going to add imgs to the table

hushed dragon
#

Big sad

#

Dont have 50 messages

whole bear
#

We gave him a API token (to our api), and I think we only let one connection at a time

hushed dragon
#

I have been here for.. like over a year XD

whole bear
#

so he might be but idk

hushed dragon
#

Anyway one quick question.

severe pulsar
rugged root
#

Shoot

hushed dragon
#

What does the -U flag mean for pip install

#

user?

#

pip install -U discord-py-slash-command

#

this is what i ask

#

want to mess around with it

#

also

#

600 msgs

#

XD

uncut meteor
#

Greenlin

dense ibex
whole bear
#

@dark seal they just run it on a server

rugged root
#

Let me double check your message count for the verification

whole bear
#

No, not yet @uncut meteor

dense ibex
rugged root
#

Oh yeah, you're not far

whole bear
#

We've made it move once or twice @uncut meteor

#

we're gonna do it again in a few

#

Maybe lol

whole bear
#

We're adding stats rn

#

so like graphs, etc.

hushed dragon
#

Bots are interesting..

#

So how are you all?

dense ibex
#

Good, wbu?

hushed dragon
#

i am good!

stuck furnace
#

I drew that one ๐Ÿ˜„

hushed dragon
#

Just.... wanting to learn about discord slash commands.

stuck furnace
#

Erm, I'm not sure that was the first thing I thought to draw ๐Ÿ˜„

dense ibex
stuck furnace
#

Wait what Laundmo?

#

Oh

#

Sorry ๐Ÿ˜„

hushed dragon
stuck furnace
#

I'm not monitoring my bot closely.

whole bear
#

Who asked?

#

lol it was my botne church and I

#

๐Ÿ˜

hushed dragon
#

yeeeee

whole bear
#

What

hushed dragon
#

?

hushed elm
#

@restive geyser @stuck furnace

hushed dragon
#

wow. Those look awesome!

stuck furnace
#

Nice!

hushed elm
#

really glad you like it

stuck furnace
# hushed elm

I like the tone (is that the right word?) of this one.

hushed dragon
#

Wait.. @dense ibex You can make buttons with slash commands?

hushed elm
whole bear
#

@faint ermine Ill start up the prot

dense ibex
hushed elm
#

i found out that i need to set the white balance of my photos properly and they turn out great

hushed dragon
#

or no?

hushed elm
faint ermine
#

nice

whole bear
#

we kinda overwrote the butter heart..

#

damn it sadge

#

I cant talk yet

severe pulsar
#

The decrease in quality of Griffs pfp demonstrates the decrease in quality of Griff himself as a human being

#

DudeBro verified ๐Ÿ‘

stuck furnace
#

@faint ermine I'm using Numpy arrays for everything. Finding the incorrect pixels is something like this: ```py
correct = (canvas_view == image).all(axis=2)
local_coords = np.argwhere(~correct & alpha_mask)
global_coords = local_coords + offset

faint ermine
stuck furnace
#

np.argwhere was a nice find.

stuck furnace
#

Erm, Skyler, you just post a message in one of the three available channels to claim it.

severe pulsar
#

sad but true ๐Ÿ˜”

uncut meteor
#

This makes Griff happy'nt

severe pulsar
#

hard luck man

stuck furnace
#

Yep. We keep the dormant channels around to preserve message history.

dense ibex
hushed dragon
#

:( max servers

severe pulsar
#

more info here

hushed dragon
severe pulsar
#

How to become @ LX:

message = create_discord_message()
message = f"Erm {message_to_send}"
send_message(message)
#

Simple 3 step process

#

DudeBro verified ๐Ÿ‘

stuck furnace
uncut meteor
#

its gonna be ok LX

#

dw

severe pulsar
#

Griff consoling somebody else is kinda out of character not gonna lie

hushed dragon
#

python3 -m pip install discord-py-slash-command

stuck furnace
#

To be fair...

#

Yep

hushed dragon
stuck furnace
#

Alright ๐Ÿ˜„

whole bear
#

smh

severe pulsar
stuck furnace
whole bear
#

lol

uncut meteor
severe pulsar
uncut meteor
#

whats my most used word?

whole bear
#

pfftt only 100%, damn bro I use 500% on a average

severe pulsar
uncut meteor
severe pulsar
#

nice

uncut meteor
hushed dragon
#

Hmmm

#

Building wheels for collected packages

whole bear
#

If I turned my server off, lots of people would notice...

severe pulsar
#

;-;

faint ermine
severe pulsar
#

pip install --upgrade pip

uncut meteor
#

ugrade

severe pulsar
#

edit moment

#

;)

#

speed

uncut meteor
#

DudeBro moment

severe pulsar
#

dude this entire vc is a DudeBro moment

#

come on ๐Ÿ˜’

#

get with it

#

...and as soon as i say that you leave

#

sadnes ;-;

#

bye for now @ Griff ๐Ÿ‘‹

faint ermine
#

Image.frombytes('RGB', (width, height), content)

stuck furnace
#

Back later ๐Ÿ‘‹

whole bear
#

@hushed dragon pip freeze

#

nope

stuck furnace
#

Or pip list ๐Ÿ˜„

whole bear
#

just lists the packages installed

whole bear
#

ahhh ok

stuck furnace
#

Yep. list is a bit more readable.

whole bear
#

@dark seal Maybe

dark seal
#

nice

whole bear
#

if you want to let me know

dark seal
#

what image?

whole bear
#

doesn't matter

shell hornet
#

where can i read up on the api project?

dark seal
shell hornet
whole bear
#

Nope

#

just token, and IP (for discord ratelimit)

#

@hushed dragon

dark seal
#

soo @whole bear choose an image and starting coords

whole bear
#

uh doesn't matter where lol... the whole church will assist us

dark seal
#

oh nice

#

image?

#

can you drawsth?

hushed dragon
whole bear
#

no

#

lol

#

I just set mine to "sleep" or "Im sleep deprived" or "damn why?" for application names

faint ermine
whole bear
#

lol

#

I forgot about that

hushed dragon
whole bear
#

creating servers has the highest rate limit I swear...

#

What?

#

I think I fucked up some math..

#

...

#

300%...

#

don't think that's right

#

@hushed dragon what's you doing?

hushed dragon
#

?

whole bear
#

oops kinda tired

glad sandal
#

ill be back one sec

whole bear
#

just a bit

hushed dragon
whole bear
#

wait tf

#

WAITTT WHAT

#

WHEN

hushed dragon
whole bear
#

DAMNNNNN I MIGHT HAVE TO USE THAT @hushed dragon

#

๐Ÿ˜

#

YOO THAT LOOKS CLEAN THO