#voice-chat-text-0

1 messages ยท Page 52 of 1

gentle flint
rugged root
#

They do like a good bitching

#

But can you play the radio

elfin fractal
#

everybody talking about verboof

#

but wat about dichtbijboof

gentle flint
#

groat

rugged root
#

They're both Dutchies

elfin fractal
rugged root
#

Same

#

Wait, who are you?

#

Any or all

#

Specifically to cook

#

Also it'd rust otherwise

#

China has claimed to

#

Oh right that's what it was

stray niche
#

hemlock you had food sir?

rugged root
#

Some crackers. I have had no time

stray niche
#

have some more?

#

do you usually have lunch?

rugged root
#

No

stray niche
#

what is low whistle

rugged root
#

Spinning rims, under glow

stray niche
gentle flint
stray niche
gentle flint
#

I'll post a video

stray niche
#

yes please

#

I think you are our very own influencer

rugged root
#

Eugenics

#

OH boy

#

That didn't go poorly last time

#

Fashion designers

stray niche
#

byeee

rugged root
#

Hey Rab

amber raptor
#

Hi.

gentle flint
#

the sort of flute thing

stray niche
#

oh its your twin

stray niche
elfin fractal
stray niche
#

I was looking forward to seeing you play

gentle flint
stray niche
rugged root
#

Secretions out

elfin fractal
#

that's just a recorder

rugged root
#

Recorders don't have to be plastic

stray niche
winged hinge
#

heyluu hoomaaans

stray niche
#

Hii diam

winged hinge
#

heyiiii Sam

#

how are you

stray niche
#

im okay

winged hinge
#

@rugged root can I have streaming permission again? :(

rugged root
#

Maybe later, I'm swamped with work right now

winged hinge
#

are you mentioning me @stray niche by any chance? didnt really hear yout then

#

@rugged root okhaay No issues

rugged root
#

Mod+ can but it's at their discretion

#

We're not obligated to do so

elfin fractal
#

Hurdy Gurdy is a cool instrument

rugged root
#

That's the one with the crank, right?

elfin fractal
rugged root
#

It's also what you would say if you're making fun of how Swedish people speak

winged hinge
rugged root
#

I am a terrible person, I apologize

winged hinge
#

good people tend to apologize by the way

rugged root
#

It gets compressed, it gets high pitched, please don't oof

#

It gets sharp through the mic

rugged root
#

Piercing would be a better word, I suppose

gentle flint
#

back in a bit

stray niche
rugged root
#

Projects

#

Contributing to open source, that kind of stuff

#

But yeah, it's really up in the air

#

#career-advice can give you a better idea of what might help in your given region, @acoustic sable

winged hinge
#

Its so funny Orpheus is literally sitting infront of the speakers and listening to yall's conversation

#

seems like she enjoys

rugged root
#

Back in a sec, have to call the psyche

winged hinge
#

often time she sits infront of the speaker and listens to whatever crap I play

#

I guess she likes sound.....

#

yes diameter always feeds her good food

#

these days she mostly eats beans

winged hinge
#

sometimes she sleeps while standing and yk the funny part

she slips and falls like a slide and then she again fixes her posture and sleeps XDDD

#

I just watch and laugh in my head ๐Ÿ˜‚

elfin fractal
winged hinge
#

it melts my heart always

#

If someone restores the gun will it work ? I guess it should

rugged root
#

Unless they blocked up the barrel it should fire

winged hinge
winged hinge
zenith radish
#

@quasi condor @mild quartz brawlhalla?

mild quartz
#

yes give me 5

junior current
#

guh

rugged root
#

Might be for like pedigree animals or something

#

Seriously, less than 10 minutes

#

SO tired

#

You're also sleep deprived, @stray niche

#

DOWN WITH THE BOURGEOISIE

junior current
#

nice cat

rugged root
#

Back later

winged hinge
#

bye

stray niche
elfin fractal
harsh tulip
#

๐Ÿ‘€

#

Could someone indicate a JavaScript server?

elfin fractal
rugged root
#

Yas queen

#

@zenith radish I've never been more proud of you for that joke

zenith radish
#

I KNOW RIGHT

#

THAT WAS GOOD

#

I AM SO PROUD

rugged root
#

So solid

#

I was all like "no whey!"

#

Wait, you have to pasteurize your own milk?

stray niche
rugged root
#

Neat

#

Just a cow in the vending machine

#

The teats sticking out

gentle flint
rugged root
#

Da fuq is that

gentle flint
#

a phone exploder

rugged root
#

Powerline adapter?

#

Ah

#

Spite

#

45

#

Ethernet is RJ-45

#

-sighs-

#

CAT 6 and lower is an RJ-45 plug

#

Dude have you seen the new CAT plug?

#

It's so friggin' weird

amber raptor
#

There is a new plug?

rugged root
#

Shit, hold on

#

I could swear there was...

#

But now I can't find it

#

Well shit, I can't find it

#

Oh well

whole bear
#

?

#

bro

#

yo

#

so

#

cool

#

bro

#

wow

rugged root
#

O....kay?

whole bear
rugged root
#

@zenith radish JS or TS

carmine ginkgo
#

Hello ๐Ÿ™‚

rugged root
#

I cannot for the life of me find it. I could swear I was reading about a different plug head other than the regular RJ-45

carmine ginkgo
#

What is the best channel to ask smth about selenium

elfin fractal
rugged root
#

I might be thinking of a fiber connection

#

Yeah, that's looking like what I'm remembering

#

Yeah, it was these weird bastards

#

My B

#

Depends how large the cat is

#

When Lucky was a bit chunkier, it was like being stomped on

ashen wave
#

I have mental issues because of sockets

rugged root
#

Quite

elfin fractal
#

Looks like there are quite a few different connectors used for fiber :/

rugged root
rugged root
#

Saves me the effort of using my vocal cords

#

The demons

#

When cats just stare off into space at what appears to be nothing

#

It's the demons

ashen wave
#

Does somebody know why the client disconnects after connecting in python?

rugged root
#

Might need more details than that

ashen wave
#

Whats details do you need?

rugged root
#

What client, what connection, what's the code

wise cargoBOT
#

Hey @ashen wave!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

ashen wave
#

the code is tooooo long

rugged root
#

Is it on a repo or something?

#

What all is it doing

#

Like what's the overall project

ashen wave
#

a client connection after login but if you want to run a function on the server or get information from the server it checks if you are logged in

rugged root
#

Does the program connect and then end? Is there anything keeping the program open? Event loop or something?

ashen wave
#

a while true loop and a try

rugged root
#

Are you using a with?

ashen wave
#

for opening files to let the server write down the active users so yes

rugged root
#

Gotcha. Hard to know without seeing the code

#

@elfin fractal Guinea pigs

ashen wave
#

So can i have permission for streaming?

rugged root
#

I don't think hamsters give a shit

#

It's better to have the code where we can look through it ourselves. Streaming doesn't really help much. Also I don't have a lot of time, sorry

ashen wave
#

what about i send it in your dms?

rugged root
#

Or just upload it to a repo or use a pastebin

ashen wave
#

i hate skids

#

if nobody knows this code or skids it until i am finished with this project i get 80$

stray niche
rugged root
#

What is the project

#

It's fine

ashen wave
#

A test botnet not for bad things

rugged root
#

!tvmute 719972719336226897 1d Do not unmute just to make obnoxious noises. Be respectful of other users in the call.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @whole bear until <t:1673040590:f> (1 day).

whole bear
rugged root
#

See you, Grote

#

Actually given your infraction history, I'm changing it to a permanent one

ashen wave
#

poor guy

rugged root
#

Odds are very likely you're just going to troll again, and I just don't have the patience

whole bear
#

k

ashen wave
#

ok i go now

rugged root
#

There we go, now it's kicked in

rugged root
#

For testing purposes or otherwise

#

Hey xv

#

Does the job

gentle flint
#

!pypi aiosqlite

wise cargoBOT
rugged root
#

However the writes are very quick

#

@vast fog When you catch the events and what not you'll get the context. Server ID, user ID, etc.

#

@whole bear Yo

gentle flint
#

bye again

rugged root
#

@midnight agate Yo

stray niche
#

wait you are speaking

#

you said bye

rugged root
#

Can you show that block of code?

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the 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.

gentle flint
#

@vast fog

rugged root
#

@high acorn You'd be posting in here rather than in the built in voice/text channel thing

#

You'd be pooping a whole chia pet

winged hinge
#

I want to stream @rugged root ๐Ÿฅบ

rugged root
#

I'm about to leave work

winged hinge
#

I did alot of progress on that script ๐Ÿฅบ

#

helu Hemlock ๐Ÿฅบ

stray niche
high acorn
#

sir im new to this discord thing .. sorry if my conduct was out of place

stray niche
#

Welcome to discord

high acorn
#

i will share the code snippet .

stray niche
#

Heyy @molten pewter

high acorn
#

# Encode rest of features

for name in train_with_labels.columns:
    if name.startswith('x'): # only selecting features, not labels
        # Find the dominant data type in a column
        column_type, _ = max(Counter(map(lambda x: str(type(x)), train_with_labels[name])).items(), key = lambda x:x[1])
        
        if column_type == str(str):
            train_with_labels[name] = train_with_labels[name].astype(str)
            #test[name] = map(str, test[name])
            
            names_categorical.append(name)
            
            #extra
            #print name, len(np.unique(train_with_labels[name]))
        
        #elif column_type == float:
            #mn = train_with_labels[name].median()
            #X_numerical.append(train_with_labels[name].fillna(mn))
            #X_test_numerical.append(test[name].fillna(-999))
            
        else:
            X_numerical.append(train_with_labels[name].fillna(-999))
            # X_test_numerical.append(test[name].fillna(-999))
#

this code was essentially written in py 2.7 , i am tryna modify it into py3.10

#

india its 3.39

#

i am from india

#

๐Ÿ™‚

#

my name is shan

#

shan kuriakose

peak juniper
#

Cheers, everyone! Hey, Mr Please! You talking to yourself again?

high acorn
#

i am from kerala

#

india has 28 states

peak juniper
#

Hello from the states.

high acorn
#

hello ๐Ÿ™‚

peak juniper
#

So, I have a question MagicalGirl...?

high acorn
#

my name is so so obious , one can guess my state , my religion and if that person is more intellegent , may be which part of kerala

#

india is a beautiful place , every hour by the train , you will be in a new place , new culture and even better a new different brand new language

peak juniper
#

So, I have watch a decent amount of Gravitas, is that a legitmate Indian news outlet, or is it just a part of the U.S propaganda machine?

high acorn
#

southern karnataka

#

i dont think bjp has that agenda,

#

mr please , yeah ,,news is always rigged

#

sam , did you try for upsc , just as i did

#

hahaha

peak juniper
#

I haven't. What is upsc?

high acorn
#

upper limit is 32

#

mr i was talking to sam .. upsc , is supposed to be toughest exam in the plannet

peak juniper
#

Sorry

high acorn
#

np ๐Ÿ™‚

#

you know i came here , hoping to find a legacy codder who worked with machine learning in python 2.0 ๐Ÿ™‚

peak juniper
#

2.0 is legacy

high acorn
#

yeah ๐Ÿ™‚

#

some people say that it stands for i grow weed

#

๐Ÿ™‚

peak juniper
#

Here in the states many place you cannot grow anything larger than 12' x 12'.

high acorn
#

just kidding

#

yeah ๐Ÿ™‚ i dont do cannabies

#

i am the son of a farmer , i carry that legacy

#

๐Ÿ™‚

peak juniper
#

nearing 430

high acorn
#

evenin ?

peak juniper
#

There?

#

yeah

high acorn
#

its 4 am morning

peak juniper
#

Water

#

I eat poop

#

Bye

stray niche
#

@winged hinge byeee. You also go sleeeep it's 4

peak juniper
#

meow!

stray niche
#

@high acorn you also sleeep

peak juniper
#

I was gonna say, you up early or late?

high acorn
#

i am so invested in this code , i think i will stay up for a bit more time

peak juniper
#

What are you writing?

high acorn
#

this is for a personal project, years ago , kaggle hosted a multi label , multi class problem , the solutioins was obiously written using python 2.x .. now world is using python 3.x .. so i am in the process of updating

#

i think the competition was in 2011

civic zephyr
high acorn
#

javascript

civic zephyr
high acorn
#

i love python , recently i picked up javascript .. especially , that node and react

peak juniper
#

What is a good second language to pick up after Python? I'm in the middle of a career change.

civic zephyr
#

Imma learn JavaScript after python

high acorn
high acorn
peak juniper
#

I was thinking about JavaScript afterwords to.

#

@high acorn How so?

high acorn
#

i didnot understand you mate

#

okay .. i will try

#

yeah .. thats true

#

javascript has a limitation like that , its not a true object oriented language if you ask me

#

im not an expert ..

peak juniper
#

How powerful is Python for building GUIs without import libraries?

gentle flint
#

to build a gui in almost any language you need to use a library

peak juniper
#

like TKinter

gentle flint
#

C, C++, Java, you name it

high acorn
#

there is a difference between object based (js) and object oriented languages

#

py is an object oriented language, where as js is object based

rugged root
high acorn
gentle flint
rugged root
#
class Address:
  def __init__(self, street: str):
    self.street = street

class Person:
  def __init__(self, name: str, age: int, address: Address):
    self.name = name
    self.age = age
    self.address = address
high acorn
#

i was actually saying that js is not rue object oriented

rugged root
#
home = Address("Ham")
peak juniper
# high acorn tkinder is good

So, I'm just starting out with Python after a significant amt. of research and no action other than getting caught up in the proverbial "tutorial cycle" and learning nothing because I wasn't actively applying it. I'm studying cisco and python atm are there any good books you'd suggest that would teach the syntax of javascript so thqat I don't get overwhelmed?

rugged root
#
dave = Person("Dave", 24, home)
peak juniper
high acorn
#

js is simple

#

you will love it

peak juniper
#

I did quit C++ a long time ago

high acorn
#

languages change so as syntax but the logic , that is more important

#

did any of you try advent of code this year

#

heyy can you guys help me understand why i got slowed (MUTED ) in the general chat

rugged root
#

General is always slowed

high acorn
#

@rugged root

#

even now i cant i say hello in there ๐Ÿ™‚ , i thought i broke some rules

#

happy to meet you all

somber heath
#

@peak juniper This one for this vc.

peak juniper
#

ok.

#

hey, @somber heath so do the requirements for voice start over since I left the server yesterday?

#

*last night

#

I assumed they would, by default. I meant to merely logout.

#

whoopsies

#

bummer

#

my voice sux anyways

#

I do believe I'm "tone deaf"

#

Hey, man, I'll tell you what tho I appreciate you being so amicable. I'll be honest part of the reason I haven't participated in forums since like 97 is because of how harsh I was at such a young age and how I know others can be to nubes

#

I didn't know how.

#

I thought leaving the server was but a temporary thing

#

^

#

I didn't know that "logging out" was but an option

#

I have never accesssed a gear for logging out

#

I noticed.

#

I noticed earlier that a burst was stopped at like 6 or 7

#

unlike the days of old where we could just flood the server in icm

#

So where are you from?

#

Ahhh cheers mate!

#

I have a good friend that attended Uni in Austraila

#

Albeit I call it college here in the states.

#

Pretty sure it was in Melbourne.

#

So, are you a master dev? Either, or.... I've decided to go face first into python as of late.

#

And I appreciate your shivalry.

#

Modesty?

#

I like it.

#

There are others!?

#

lol

#

I speak this to lehmans alike.

stray niche
#

@somber heath morning! Have a nice day

peak juniper
#

mastery is a mindset

stray niche
peak juniper
#

I suppose then.

#

In order to be a good leader must be a good follower, in essence...

#

I am about to leave a job right now due to the supposed facts we are discussing, which only reiderates my disposition for being in this chat in the first place.

#

peopl?

#

sad

#

What's the solution?

sweet lodge
#

Hi Sam

#

Oh
Bye Sam

peak juniper
#

Such is the case where I work.

#

Fakeness

#

'tis

vestal mason
#

Chris Lattner is a world-class software & hardware engineer, leading projects at Apple, Tesla, Google, and SiFive. Please support this podcast by checking out our sponsors:

โ–ถ Play video
peak juniper
#

Jave > Python?

#

I got stuck in the loop with no application.

#

In terms of overall?

#

lemme redifine? In terms of developing GUIs?

#

Ahhh yes, that Is indeed what I have come to appreciate about it.

austere lava
#
for i in range("hello"):
    print(i)
#
for(let i=0; i<standard_data; i++){ // compute colours
                if(query_final.includes(standard_data[i]['name'])){
                    deck_colours += standard_data[i]['colors']
                }
            }
#

vs

#
for(let i=0; i<standard_data.length; i++){ // compute colours
                if(query_final.includes(standard_data[i]['name'])){
                    deck_colours += standard_data[i]['colors']
                }
            }
onyx glen
#

could i get some help with node.js coding?

austere lava
#

@onyx glen you're better of checking out one of the js servers

somber heath
onyx glen
#

does anyone here know node.js

#

@somber heath do you know any other programming languages other than this? ( python )

#

oh

#

i currently only know a decent amount of node.js, but my goal is to learn either python or java

#

I'm going to get off for dinner, bye

#

@austere lava let me know when you find a node.js server.

peak juniper
#

Almost bedtime. Goodnight everyone.

onyx glen
#

gn

#

i'm going to hop off for dinner bye

austere lava
#

later

onyx glen
#

late

#

r*

lavish rover
#

Hello Opal

#

HellOpal

#

HellO pal

somber heath
lavish rover
#

Hell, Opal

whole bear
#

@somber heath are you allergic to frogs?

peak juniper
#

Hello, @somber heath

somber heath
#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

peak juniper
#

I agree.

#

Eggs before chickens.

#

Were dinosaurs even real?

#

I'm not being facetious.

#

Manufactured?

#

But what does a theory need to be to be considered theory?

#

80 percent fact?

#

Correlation does not imply causation.

#

Hence a bag of skittles.

#

So let fear dictate?

#

Rubbish

#

I wouldn't either.

#

How big is the bag of skittles?

#

But isn't there a 1 percent chance it's possible?

#

God is in the rain.

#

I was quoting V for Vendetta.

#

I feel as if AI has "God-like" principles. Laws by which it must be governed by.

#

Freewill isn't finite.

#

Freewill is and it isn't. Hence its essense.

#

Every action.

#

To deep to type from a phones keyboard.

#

Seems that all to often we are bound by relativism.

somber heath
#

@topaz beacon ๐Ÿ‘‹

topaz beacon
#

hey

#

i need helo

#

help

#

I am noob in python and I want to use pandas for analysing a excel sheet

somber heath
#

!voice @whole bear

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

@topaz beacon

topaz beacon
#

thanks

#

can you suggest any good source material for beginner in python

#

@somber heath

somber heath
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

somber heath
#

Also Corey Schafer's YouTube playlist for Python beginners.

whole egret
#

@somber heath i love Ukraine

peak juniper
#

Beware the tutorial loop.

whole egret
peak juniper
#

I'm taking the cs50p on edx. I like it.

#

Check it out.

whole egret
#

like never ending tutorial reading

peak juniper
#

I also like Corwy Scahefers channel.

#

Yes @whole egret

whole egret
#

like always reading introductory stuff

peak juniper
#

Indeed.

molten bronze
#

so i have that cow logo i want to increase the size but...

#

and adjust the padding but in djgango but at the end is html

#

but i dont know where to modifiy the css

#

``css`@font-face {
font-family: 'icomoon';
src: url('fonts/icomoon.eot?xqakzy');
src: url('fonts/icomoon.eot?xqakzy#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?xqakzy') format('truetype'),
url('fonts/icomoon.woff?xqakzy') format('woff'),
url('fonts/icomoon.svg?xqakzy#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-happycow:before {
content: "\e900";
color: #ffffff;
}
.icon-pencil:before {
content: "\e905";
}

#

damm

#

๐Ÿ˜’

#
@font-face {
  font-family: 'icomoon';
  src:  url('fonts/icomoon.eot?xqakzy');
  src:  url('fonts/icomoon.eot?xqakzy#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?xqakzy') format('truetype'),
    url('fonts/icomoon.woff?xqakzy') format('woff'),
    url('fonts/icomoon.svg?xqakzy#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-happycow:before {
  content: "\e900";
  color: #ffffff;
}
.icon-pencil:before {
  content: "\e905";
}
somber heath
#

@livid loom ๐Ÿ‘‹

livid loom
#

hallo

#

well, seems that i cannot be verified

#

yes its bc i just entered

#

yes, do make sense

#

but i was just going to ask a question tbh

peak juniper
#

I'm okay with it. Sucks I left the server tho

#

I'm sure many filter themselves

#

do you remember who was asking about Python books?

#

nm I think it was Rock

livid loom
#

The thing is that Im using a site API to extract data but I needed to filter specific datas from all of the ones im receiving

somber heath
#

@fast spade ๐Ÿ‘‹

fast spade
#

hello!

wise cargoBOT
#

Hey @livid loom!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

peak juniper
somber heath
#

!code

wise cargoBOT
#

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.

livid loom
#

{
"code": "0",
"msg": "success",
"data": [
{
"symbol": "BTC",
"openInterest": 9093130130.827152,
"h4OIChangePercent": -0.29,
"openInterestAmount": 540285.233173092,
"oIChangePercent": -2.83,
"rate": 100,
"volUsd": 8658638005.588413,
"exchangeName": "All",
"h1OIChangePercent": -0.15,
"exchangeLogo": "https://cdn.sampyun.com/static/blank.png",
"h24Change": -2.83,
"volChangePercent": -46.14,
"avgFundingRate": 0.004658527532169472
},

#

do you know how can I get just like the symbol?

#

"symbol", i mean

#

yes

somber heath
#
for d in obj['data']:
    d['symbol']```
livid loom
#

oh ok

#

with a function

#

i ll try

#

its saying obj is not defined

#

ohhhhhh my god sorry

#

im dumb

somber heath
#

@cosmic swallow ๐Ÿ‘‹

peak juniper
#

Many people will handle it based on the pretense that you will take further action, becuase they don't want to expend the energy on it.

#

I beleive that may be what @somber heath is implying.

livid loom
#

i tried and its showing that string indices must be integers

somber heath
#

!e py "abc"["a"]

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | <string>:1: SyntaxWarning: str indices must be integers or slices, not str; perhaps you missed a comma?
002 | Traceback (most recent call last):
003 |   File "<string>", line 1, in <module>
004 | TypeError: string indices must be integers, not 'str'
#

@ripe lantern :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | KeyError: 0
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'symbol': 'Hello World'}
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

{'symbol': 'BTC', 'openInterest': 9093130130.827152, 'h4OIChangePercent': -0.29, 'openInterestAmount': 540285.233173092, 'oIChangePercent': -2.83, 'rate': 100, 'volUsd': 8658638005.588413, 'exchangeName': 'All', 'h1OIChangePercent': -0.15, 'exchangeLogo': 'https://cdn.sampyun.com/static/blank.png', 'h24Change': -2.83, 'volChangePercent': -46.14, 'avgFundingRate': 0.004658527532169472}
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

BTC
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

BTC
livid loom
#

wait

#

what is the 0 in this case?

wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello
002 | Hello
003 | Hello
004 | Hello
005 | Hello
006 | Hello
007 | Hello
008 | Hello
009 | Hello
010 | Hello
011 | Hello
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/oqiginolaz.txt?noredirect

peak juniper
#

off topic, but can you pass a parameter as an actual argument?

wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | {'code': '0', 'msg': 'success', 'data': [{'symbol': 'BTC', 'openInterest': 9093130130.827152, 'h4OIChangePercent': -0.29, 'openInterestAmount': 540285.233173092, 'oIChangePercent': -2.83, 'rate': 100, 'volUsd': 8658638005.588413, 'exchangeName': 'All', 'h1OIChangePercent': -0.15, 'exchangeLogo': 'https://cdn.sampyun.com/static/blank.png', 'h24Change': -2.83, 'volChangePercent': -46.14, 'avgFundingRate': 0.004658527532169472}]}
002 | {'code': '0', 'msg': 'success', 'data': [{'symbol': 'BTC', 'openInterest': 9093130130.827152, 'h4OIChangePercent': -0.29, 'openInterestAmount': 540285.233173092, 'oIChangePercent': -2.83, 'rate': 100, 'volUsd': 8658638005.588413, 'exchangeName': 'All', 'h1OIChangePercent': -0.15, 'exchangeLogo': 'https://cdn.sampyun.com/static/blank.png', 'h24Change': -2.83, 'volChangePercent': -46.14, 'avgFundingRate': 0.004658527532169472}]}
003 | {'code': '0', 'msg': 'success', 'data': [{'symbol': 'BTC', 'openInterest': 9093130130.827152, 'h4OIChangePercent': -0.29
... (truncated - too long, too many lines)

Full output: too long to upload

peak juniper
#

def wrapper(*args, **kwargs):

somber heath
#

@tribal cargo ๐Ÿ‘‹

tribal cargo
#

hello!

wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | work took 2.7150148525834084e-05 seconds, averaging 2.715014852583408e-07 seconds per iteration.
002 | work2 took 2.9919901862740517e-05 seconds, averaging 2.9919901862740516e-07 seconds per iteration.
tribal cargo
#

anyone got experience with beautifulsoup?

#

webscraping library

somber heath
#
def callable(parameter): #parameter = argument
    ... #Do what you want with the parameter (a variable, a reference to an object) here

argument = "abc"
callable(argument) #argument becomes an argument here. argument is a variable, a reference to an object```
tribal cargo
#

thanks for the suggestions @somber heath !

somber heath
#

!e py print("abc"[0]) print("abc"[1]) print("abc"[2]) print("abc"[-1]) print("abc"[-2]) print("abc"[-3])

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | a
002 | b
003 | c
004 | c
005 | b
006 | a
somber heath
#

@tight dagger ๐Ÿ‘‹

somber heath
#

a appears at index positions 0 and -3

peak juniper
#

Thanks @somber heath

somber heath
#

b at index 1 and -2

#

c at index position 2 and -1

wise cargoBOT
#

@ripe lantern :white_check_mark: Your 3.11 eval job has completed with return code 0.

a
somber heath
#

Positive indexes reference from the left. Negatives from the right.

#

-1 is "The last thing in the sequence"

peak juniper
#

What would be the most prominent use case in which we reference dictionaries? Other than things like NLP?

somber heath
#

Indexing is specifically for ordered sequences. Subscription by key is something different.

#

Dictionaries are subscriptable by key.

#

Not by index.

peak juniper
#

could we then make it a callable oject to trigger an event?

somber heath
#

@strong thunder ๐Ÿ‘‹

strong thunder
#

hi

livid loom
#

bet. But what if for example I want to print all of the times that symbol = btc??

#

It wouldnโ€™t work simply taking the [0] off right??

somber heath
#

!e py d = {'apple': 'fruit', 7: 'number', 2: 5} print(d['apple']) print(d[7]) #7 here is a key, not an index. print(d[2]) #as is 2 here

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | fruit
002 | number
003 | 5
peak juniper
#

Thanks @somber heath

whole bear
peak juniper
#

bye

limber iron
#

damn it!

#

i still can't speak

#

hello @somber heath

#

wait voice verification room? I thought it just involved sending messages

#

hold on

sharp urchin
#

wish to visit there too!

#

m sorry what pays the most? @limber iron

#

didnt get you

worthy token
#

hello\

#

hello human

#

lol

subtle stone
#

hello opal

worthy token
#

which document are you guys talking about

#

is it here

foggy plover
#

hello opal

somber heath
crisp raven
#

@vocal basin hey what happened

thin drift
#

!e

wise cargoBOT
#
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 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 codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

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

whole bear
#

!e print("Hello World")

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello World
whole bear
#

!e import turtle [turtle.right(i) turtle.forward(i) i in range(100)]

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     import turtle [turtle.right(i) turtle.forward(i) i in range(100)]
003 |                   ^
004 | SyntaxError: invalid syntax
whole bear
#

!ie

#

!e

wise cargoBOT
#
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 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 codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.

By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.

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

whole bear
#

!e import turtle \n print("hello world")

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     import turtle \n print("hello world")
003 |                    ^
004 | SyntaxError: unexpected character after line continuation character
onyx glen
#

!e print ('python python is cool')

wise cargoBOT
#

@onyx glen :white_check_mark: Your 3.10 eval job has completed with return code 0.

python python is cool
whole bear
#

!e print([i and i+1 for i in range(10)])

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 2, 3, 4, 5, 6, 7, 8, 9, 10]
whole bear
#

!e print([i and i for i in range(10)])

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
whole bear
#

!e print([i*2 and i+2 for i in range(10)])

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 3, 4, 5, 6, 7, 8, 9, 10, 11]
thin drift
#

I made so @rugged root is FIFA icon card .

rugged root
#

HA

#

That's amazing

thin drift
#

Thanks

fickle plaza
#

@somber heath could you help me out?

somber heath
fickle plaza
#

i was just asking if like your available for me to ask

#

also could we go to a diff vc?, dont wanna disrupt these guy's game

winged hinge
#

brb

somber heath
#

!e py import numpy as np p = 5, 6 q = 9, 20 steps = 10 arr = np.linspace(p, q, steps) print(arr)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | [[ 5.          6.        ]
002 |  [ 5.44444444  7.55555556]
003 |  [ 5.88888889  9.11111111]
004 |  [ 6.33333333 10.66666667]
005 |  [ 6.77777778 12.22222222]
006 |  [ 7.22222222 13.77777778]
007 |  [ 7.66666667 15.33333333]
008 |  [ 8.11111111 16.88888889]
009 |  [ 8.55555556 18.44444444]
010 |  [ 9.         20.        ]]
somber heath
#

!d math.dist

wise cargoBOT
#

math.dist(p, q)```
Return the Euclidean distance between two points *p* and *q*, each given as a sequence (or iterable) of coordinates. The two points must have the same dimension.

Roughly equivalent to:

```py
sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))
```   New in version 3.8.
somber heath
#

!e py import math p = 5, 6 q = 9, 20 dist = math.dist(p, q) print(dist)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

14.560219778561036
somber heath
#

!d math.ceil

wise cargoBOT
#

math.ceil(x)```
Return the ceiling of *x*, the smallest integer greater than or equal to *x*. If *x* is not a float, delegates to [`x.__ceil__`](https://docs.python.org/3/reference/datamodel.html#object.__ceil__ "object.__ceil__"), which should return an [`Integral`](https://docs.python.org/3/library/numbers.html#numbers.Integral "numbers.Integral") value.
fickle plaza
#

win32api.mouse_event(win32con.MOUSEEVENTF_MOVE, MouseMovementX, MouseMovementY)

worthy token
#

!d os

wise cargoBOT
#
os

Source code: Lib/os.py

This module provides a portable way of using operating system dependent functionality. If you just want to read or write a file see open(), if you want to manipulate paths, see the os.path module, and if you want to read all the lines in all the files on the command line see the fileinput module. For creating temporary files and directories see the tempfile module, and for high-level file and directory handling see the shutil module.

Notes on the availability of these functions:

worthy token
#

!d pathlib

wise cargoBOT
#

New in version 3.4.

Source code: Lib/pathlib.py

This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which provide purely computational operations without I/O, and concrete paths, which inherit from pure paths but also provide I/O operations.

../_images/pathlib-inheritance.png If youโ€™ve never used this module before or just arenโ€™t sure which class is right for your task, Path is most likely what you need. It instantiates a concrete path for the platform the code is running on.

Pure paths are useful in some special cases; for example:

winged hinge
winged hinge
silk grove
#

not an expert but we had fpga course in college last semester

#

we emulated a mips32 processor

#

@somber smelt

#

we "coded" it in fpga

#

fpga is basicly hardware but in software

#

field programmable gate array

#

it was in the course to learn about using verilog

#

it was an example

#

fpga "compiles" to gate and wire and connections

#

i think what you were thinking about emulation and my emulation is a bit different

#

there is some nes emulator out there, which matches to the original logic gate to logic gate

ornate ore
#

yeah

stray niche
ashen wave
#

!e print([i and i for i in range(5000)])

wise cargoBOT
#

@ashen wave :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
... (truncated - too long)

Full output: too long to upload

ashen wave
#

!e print([i and i for i in range(300)])

wise cargoBOT
#

@ashen wave :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
... (truncated - too long)

Full output: https://paste.pythondiscord.com/ceqehohesi.txt?noredirect

ashen wave
#

!e if 2 < 3:
print("Hello i am from Microsoft support how can i help you?")

wise cargoBOT
#

@ashen wave :white_check_mark: Your 3.11 eval job has completed with return code 0.

Hello i am from Microsoft support how can i help you?
ashen wave
#

!e import os

wise cargoBOT
#

@ashen wave :warning: Your 3.11 eval job has completed with return code 0.

[No output]
ashen wave
#

!e import sys

wise cargoBOT
#

@ashen wave :warning: Your 3.11 eval job has completed with return code 0.

[No output]
ashen wave
#

!e import sys
import time

time.sleep(3)

wise cargoBOT
#

@ashen wave :warning: Your 3.11 eval job has completed with return code 0.

[No output]
ashen wave
#

!e import sys
import time

print("exiting")
time.sleep(3)
sys.exit()

wise cargoBOT
#

@ashen wave :white_check_mark: Your 3.11 eval job has completed with return code 0.

exiting
crisp raven
#

wassup

#
import speech_recognition as sr
import pysrt

def generate_subtitles(audio_path, output_path):
    # Print the audio path to make sure it is correct
    print(f"Audio path: {audio_path}")

    # Load the audio file
    audio = sr.AudioFile(audio_path)
    r = sr.Recognizer()

    # Create an empty SubRip file
    subtitles = pysrt.SubRipFile()

    # Iterate through the audio by segments
    with audio as source:
        source = 0
        for segment in r.recognize_google(source, language="en-US"):
            # Get the start and end times of the segment
            start_time = segment.start_time
            end_time = segment.end_time

            # Create a new subtitle with the recognized text and the start and end times
            subtitle = pysrt.SubRipItem(index=i, start=start_time, end=end_time, text=segment.text)

            # Add the subtitle to the SubRip file
            subtitles.append(subtitle)
            i += 1

    # Save the SubRip file to the output path
    subtitles.save(output_path, encoding='utf-8')
# Example usage
generate_subtitles("subtitles.wav", "subtitles.srt")
#

my main goal with this is to make a tool using open ai's whisper to make subtitles for me with perfect timing and export it as a srt file

#

i am in no way qualified to be a coder and this is most likely a 1 time thing, i am mainly just doing youtube

#

and not code

#

i am having some problems with the code

#

installs:
pip install SpeechRecognition
pip install pysrt

whole bear
#

does anyone use AWS

somber heath
#

@candid herald ๐Ÿ‘‹

fickle plaza
#

@somber heath cant talk rn but i got something you could help me with

#

you see the white box, how could i literally just create a white box like that to always stay ontop of my screen

#

like not a window just a white outline of 320x320

#

and it has to be in the middle of the screen

#

@somber heath any ideas?

somber heath
lucid blade
wise cargoBOT
#

Hey @fickle plaza!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

lucid blade
wise cargoBOT
#

Hey @fickle plaza!

It looks like you tried to attach file type(s) that we do not allow (.bat). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

somber heath
#
You: "Why can't I share my screen?"
Me: Okay, so the reason you can't-
You: *leaves*
Me: ...
You: *Rejoins*
Me: "Okay, so the reason you can't-
You: Blah blah blah.
Me: *Okay, so the reason you can'-
You: Blah blah blah
Me: ...
You: Okay, sorry, go on, you can talk.
Me: Okay, so the reason you can't-
You: Blah blah blah.```
somber heath
#

@timber lake ๐Ÿ‘‹

timber lake
#

Hi

somber heath
#

"Guys in the pub"

fickle plaza
lucid blade
fickle plaza
#

my current screen

whole bear
#

hey

whole bear
#

@austere lava can you help me?

#

i am learning python

#

I can not download the pip

somber heath
whole bear
#

google

#

I had gone to the python site and downloaded the exe file

#

I should download with the pip "discord :) requests"

#

I do not know

#

No I also tried to delete it and download it seeing that there was a check but nothing changed

#

I did not understand

#

WORK
YESS

#

the command "pip" work

#

tysm!

sick cargo
#

hello

#

Hi

#

how are you?

#

why anxious?

#

oh okay

#

im still having some trouble with my code

#

can i stream?

#

ohhhh okay

#

its just u need to see the code to try and help me ig

somber heath
#

!code

wise cargoBOT
#

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.

somber heath
#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the 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.

sick cargo
#

wait i don't get it

#

couldn't i just copy paste it here?

somber heath
#
print("Hello, world.")
print("Goodbye.")```
sick cargo
#

there u have it

#

so what i need there is to run through all the sequences and search for the inputed motif

#

yes but now its mostly done

#

sequence name the length of said sequence and the times it apears

#

the name is there

#

its the output required to pass the assignment

#

do you think you can do it pls?

#

i can't use functions or classes

#

what?

#

yes it has to be linear

#

yeah

#

and I don't know how

#

most of it is from chatgpt

somber heath
#

!e py from string import ascii_lowercase as alphabet for i, _ in enumerate(alphabet): print(alphabet[i: i + 7])

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | abcdefg
002 | bcdefgh
003 | cdefghi
004 | defghij
005 | efghijk
006 | fghijkl
007 | ghijklm
008 | hijklmn
009 | ijklmno
010 | jklmnop
011 | klmnopq
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/sahedanoso.txt?noredirect

somber heath
#

!d slice

wise cargoBOT
#

class slice(stop)``````py

class slice(start, stop, step=1)```
Return a [slice](https://docs.python.org/3/glossary.html#term-slice) object representing the set of indices specified by `range(start, stop, step)`. The *start* and *step* arguments default to `None`. Slice objects have read-only data attributes `start`, `stop`, and `step` which merely return the argument values (or their default). They have no other explicit functionality; however, they are used by NumPy and other third-party packages. Slice objects are also generated when extended indexing syntax is used. For example: `a[start:stop:step]` or `a[start:stop, i]`. See [`itertools.islice()`](https://docs.python.org/3/library/itertools.html#itertools.islice "itertools.islice") for an alternate version that returns an iterator.
sick cargo
#

hello!

somber heath
#

!e py print("abcdefghij"[3:7])

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

defg
sick cargo
#

okay ill try to figure it out

#

thank you!

#

im going to go hahaha

somber heath
#

@unborn scaffold ๐Ÿ‘‹

unborn scaffold
#

hi

somber heath
#

@frosty star

#

"Push the button...push the button...don't push the button...push the button..."

#

@spiral pebble ๐Ÿ‘‹

somber heath
#

@shy field๐Ÿ‘‹

#

@latent flax ๐Ÿ‘‹

shy field
#

Hii

#

Not allowed in voice

unborn scaffold
#

You are very lonely aren't you ,because no one is talking

somber heath
wise cargoBOT
#

Voice verification

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

unborn scaffold
#

Where are you from?
@somber heath

#

Awww nice

#

you sound swedish

#

I'm from Israel

#

I'm a beginner in Python so my biggest project is rock paper scissors ๐Ÿ˜“

stray niche
#

Hii ๐Ÿ‘‹

unborn scaffold
#

Hi

winged hinge
unborn scaffold
#

looks tasty

#

You are using ChatGPT?

unborn scaffold
#

yes

winged hinge
#

Bye @stray niche

unborn scaffold
wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @unborn scaffold until <t:1673099886:f> (10 minutes) (reason: newlines rule: sent 102 newlines in 10s).

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

grand zodiac
#

!unmute 559730966571253760

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @unborn scaffold.

grand zodiac
#

please use a paste service for longer code snippets

somber heath
#

@naive dew

naive dew
#

I need help understanding object oriented programming

sour willow
pallid hazel
#

today i learned: I hate* data analysis.. the amount cleaning data work is getting out of hand, but processes to streamline it are developing.. just dealing with "business types" of people how they want fancy data is so aggrevating to undo it back and forth from raw data.

somber heath
#

@naive dew Corey Schafer, YouTuber, playlists.

#

@cunning storm ๐Ÿ‘‹

cunning storm
#

hi

quasi condor
#

@naive dew do u like Jordan Peterson

wind raptor
#

Hello hello

zenith radish
#

Incel hours in pydis

#

Lets gooo

naive dew
#

hes a beast#

somber heath
#

@vapid cedar ๐Ÿ‘‹

vapid cedar
somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

vapid cedar
#

!voice

#

I'm just coming to the salon i don't have 50message so can e go in another salon i would like to aske you something ? (i'm frznch so my english is bad)

somber heath
#

Ask. ๐Ÿ™‚

#

I will try to answer.

vapid cedar
#

i have work (for school) and i must send en python program so i train in a file that teacher send but i can't realise something..

#

it's hard to explain..

somber heath
#

Show the code.

vapid cedar
whole bear
#

Itโ€™s okay, we support all beginners

vapid cedar
#

instructions are french sorry

somber heath
# vapid cedar

Hypothetical: What is the fourth thing in a list of three things?

#

!e py print("abc"[0]) print("abc"[1]) print("abc"[2])

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | a
002 | b
003 | c
somber heath
#

!e py print("abc"[3])

vapid cedar
#

i have a question but to explain you need to understand instructions, it's good ?

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | IndexError: string index out of range
somber heath
#

!e py d = ["AAA", "BBB", "CCC"] print(d[0]) print(d[1]) print(d[2]) print(d[3])

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | AAA
002 | BBB
003 | CCC
004 | Traceback (most recent call last):
005 |   File "<string>", line 5, in <module>
006 | IndexError: list index out of range
vapid cedar
#

I don't understand what you just did?

somber heath
#

What is the fourth thing in a sequence of three things?

#

It can't be answered.

#

Have an IndexError.

#

There is no element at index position 3 (fourth position).

vapid cedar
#

I need to create a new list from an old list. I have to sort the basic list to keep only the "metal" bands but in my program (line 16) I put "== Metal" it doesn't work

somber heath
#

It's very late. I am tired.

vapid cedar
#

ok no problem

somber heath
#

๐Ÿ™‚

vapid cedar
#

thanks

pallid hazel
#

== "Metal"

empty gorge
#

what's up

#

what are you coding?

crisp raven
#

if you dont mind

#

can i get some help?

winged hinge
#

Heyo

elfin wigeon
#

how to rest setting to default

fickle plaza
#

tkinker

peak juniper
#

!voiceverify

somber heath
peak juniper
#

Hey there. Yeah, I'd wondered why it returned nothing, then I headed there.

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
echo torrent
#

!code

wise cargoBOT
#

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.

somber heath
#

@crystal flare ๐Ÿ‘‹

frosty star
#

@somber heath

#

Opal do u know what bird this is

somber heath
#

I....do not.

#

It looks South American.

frosty star
#

It keeps visiting a friend of mine in his backyard

#

Weโ€™re in Malaysia :0

#

It even lets him pet it

somber heath
#

Awh.

frosty star
#

Any chance itโ€™s not wild and someone lost it

#

Ive never seen it in my area

somber heath
#

The green-billed malkoha (Phaenicophaeus tristis) is a species of non-parasitic cuckoo found throughout Indian Subcontinent and Southeast Asia. The birds are waxy bluish black with a long graduated tail with white tips to the tail feathers. The bill is prominent and curved. These birds are found in dry scrub and thin forests.

frosty star
#

Thankss! I knew it. I knew if anyone, YOU would have the answer

#

๐Ÿฅน

somber heath
#

Thank Google lens.

frosty star
#

Ah so it is found in the wild

#

Good to know

lucid blade
#

@somber heath 2min mic is not connected

#

@ruby cypress welcome ๐Ÿ™‚

ruby cypress
#

@lucid blade cant talk fs

#

how do I get the ability to talk mate

lucid blade
#

its ok u can get voice ops pretty quick

ruby cypress
#

what I gotta do man?

lucid blade
#

u just have to chat a bit in text ๐Ÿ™‚

ruby cypress
#

Yeah thats calm mate haha

#

Ive been in here for a bit

somber heath
#

!voice

ruby cypress
#

just havent joined vc

wise cargoBOT
#

Voice verification

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

ruby cypress
#

I hate it im not a typer

#

Aye jack black

#

hahaha

#

I remember that

#

It was mental the screaming

#

@lucid blade fellas i dont want to be a pain but would youns be able to help me out a second?

#

I was probs one of the people in it screaming im ngl

#

So basically Im trying to webscrape this website but Im having an issue lol so theres a script on the website that holds a youtube url i dont know how to target it

#

Automate getting work

#

its for youtube editing

#

nope ahha

#

aight bet g

#

Alright Ill get a translator

#

See Im trying to learn python because Im trying to like figure out how to get youtube editing work better because I edit for people lol

#

@lucid blade what IDE do I use for it?

#

Im using pycharms

#

pip install regex?

somber heath
#

re

#

It's standard library.

#

So no need to pip.

ruby cypress
#

see I was using BS4

#

Thats actually ticket very new to this was looking at BS4 todo this

#

Beautiful Soup

somber heath
#

@lavish rover Apparently, Aecor needs a regex library to be considered a proper programming language.

#

@little jay ๐Ÿ‘‹

ruby cypress
#

I did that

#

ill show you

#

So like that was my manual approach lol

#

Again not a coder

#

hmmm

#

didnt think of that

#

Aight let me write that into my notes

lucid blade
#

CURL

ruby cypress
#

Requests

lucid blade
#

requests

ruby cypress
#

pip install requests

lucid blade
#

yeh

#

yup

ruby cypress
#

yeah see I think ive just been doing it all wrong but thats the learning process

#

Yeah like I try todo alot of the stuff manually but like I see where thats going to be the issue

#

If I did all of that manually id be sitting for hours sorting through

#

openxyl

#

is what I was using

#

openxyl and then I can save it and drag it into google sheets

somber heath
#

!d sqlite3

wise cargoBOT
#

Source code: Lib/sqlite3/

SQLite is a C library that provides a lightweight disk-based database that doesnโ€™t require a separate server process and allows accessing the database using a nonstandard variant of the SQL query language. Some applications can use SQLite for internal data storage. Itโ€™s also possible to prototype an application using SQLite and then port the code to a larger database such as PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Hรคring. It provides an SQL interface compliant with the DB-API 2.0 specification described by PEP 249, and requires SQLite 3.7.15 or newer.

This document includes four main sections:

ruby cypress
#

mad how youns know all this im a video editor so i know that like the back of my hand haha but coding is like a whole different world

#

ive heard of it

#

most amount of expressions i use day to day is inside of after effects

somber heath
#

@livid oxide ๐Ÿ‘‹

ruby cypress
#

yeah defo productive

#

helping me out

#

good shit

livid oxide
ruby cypress
#

where r u from lads

somber heath
#

!voice

wise cargoBOT
#

Voice verification

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

livid oxide
#

its written i have less than 50 messages its written that

ruby cypress
#

i just moved to manchester there for uni lol

livid oxide
#

incident_actioned okey

lucid blade
#

ah cool do you watch Charles Veitch on YT ๐Ÿ˜„

#
ruby cypress
#

ive seen his videos

#

where he kicks the guy in town

#

supposedly hes massive

#

fk off

#

i wouldnt go no where near him

#

wait how tf do I use curl in pycharms?

#

yeah

livid oxide
#

You guys are expert in python?

ruby cypress
#

what

#

how

somber heath
#

Let's say experienced.

ruby cypress
#

etemology

#

i havent heard that word in years

#

hhaha

#

the route of a word

livid oxide
#

.....ok. Like i am well versed in java so it would be easy for me to learn python what you guys think?

ruby cypress
#

nope

livid oxide
ruby cypress
#

wait

#

dont liste to me

#

im typing to these guys

livid oxide
#

oh

ruby cypress
#

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

ruby cypress
#

!voiceverify

livid oxide
#

๐Ÿ˜‚ this voice verify thing is bit weird

somber heath
#

Better than the alternative of not having it.

#

@sterile edge ๐Ÿ‘‹

sterile edge
#

hey!

#

what are we talking about here?

somber heath
#

The subject shifts.

somber heath
#

Sometimes we talk about Python. Sometimes we talk about other things.

sterile edge
#

makes sense ig

winged hinge
#

Heylooooooooooooooooooo biutiphul hooomaaan @somber heath

lucid blade
#

@ruby cypress its not the right tut

#

i watched it

#

its close to what u need but the other way round

#

it interacts with the dom

#

but u need something to read + interact the dom

winged hinge
somber heath
#

I feel as though holographic universe theory is the flat earth of astrophysics.

lucid blade
#
#

At MIT's Center for Bits and Atoms, Adam gets a glimpse into the future of making. He starts out his tour with some amazing nano-technologies, including a machine that can see the hairs on the hairs of a baby spider. Welcome to your new robot overlords!

This series and tour is made possible by The Fab Foundation
(http://www.fabfoundation.org/)...

โ–ถ Play video
#

In the second part of his tour of MIT's Center for Bits and Atoms, Adam learns about multiple micron tools and meets BILL-E (Bipedal Isotropic Lattice Locomoting Explorer), an incredible robotic assembler that you're going to have to see to believe.

This series and tour is made possible by The Fab Foundation
(http://www.fabfoundation.org/) and...

โ–ถ Play video
#

The next stage of machines making machines isn't rapid prototyping, it's rapid prototyping of rapid prototyping. In this third part of his tour of MIT's Center for Bits and Atoms, Adam delves into some mind-bending meso technologies.

This series and tour is made possible by The Fab Foundation
(http://www.fabfoundation.org/) and Chevron (https:...

โ–ถ Play video
wet token
#

x(nb)= nb^1/2 if nb = float ;nb = 0

#

@somber heath

#

x(25)=5

#

x(100)=10

#

x(36)=6

#

x(5)=0

somber heath
#

!e py import math print(math.sqrt(25)) print(25 ** .5)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 5.0
002 | 5.0
somber heath
#

!e py print(1.5 % 1) print(7 % 1)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 0.5
002 | 0
somber heath
#

!e py print(not True) print(not False)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | False
002 | True
somber heath
somber heath
#

!e py if -1: print("A") if 0: print("B") if 1: print("C")

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | A
002 | C
somber heath
#

Zero is falsy. Nonzero is truthy.

somber heath
#

!code

wise cargoBOT
#

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.

wet token
#
def SquareRootFloor(beg, end, n):
    ans_sqrt = n

    while (beg <= end):
        mid = int(beg + (end - beg) / 2)
        print(f"beg : {beg} end : {end} mid : {mid}")

        if (mid * mid == n):
            return mid
        elif (mid * mid > n):
            end = mid - 1
        else:
            print(f"Store square root as mid ({mid}) ")
            ans_sqrt = mid
            beg = mid + 1
    return ans_sqrt

def ft_sqrt(nb):
    print(f"Finding square root of : {nb}")
    sqrt_n = SquareRootFloor(1, nb, nb)
    print("Output : " + str(sqrt_n) + "\n")


ft_sqrt(100)
ft_sqrt(36)
ft_sqrt(25)
ft_sqrt(5)
ft_sqrt(3)
somber heath
#

!e py print(9 / 4) print(9 // 4)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2.25
002 | 2
somber heath
#

Floor division rounds down.

#

int rounds toward zero.

#

!e py name = "Peter" age = 25 print("Hello, " + name + ". You are " + str(age) + " years old.") print(f"Hello, {name}. You are {age} years old.")

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | Hello, Peter. You are 25 years old.
002 | Hello, Peter. You are 25 years old.
somber heath
#

!f-string

wise cargoBOT
#

Creating a Python string with your variables using the + operator can be difficult to write and read. F-strings (format-strings) make it easy to insert values into a string. If you put an f in front of the first quote, you can then put Python expressions between curly braces in the string.

>>> snake = "pythons"
>>> number = 21
>>> f"There are {number * 2} {snake} on the plane."
"There are 42 pythons on the plane."

Note that even when you include an expression that isn't a string, like number * 2, Python will convert it to a string for you.