#off-topic-lounge-text

1 messages · Page 36 of 1

icy raven
#

@fresh sail

leaden drift
#

want to move to chapter 7 on regex

solemn marsh
#

Mr.Hemlock is turning everyone to Mr.Hemlock.

#

Yeah, I'm trig 🙂

icy raven
upbeat mirage
solemn marsh
icy raven
#

Mr Hemlock will

solemn marsh
#

Remove the space between the period.

upbeat mirage
#

Mr. Hemlock and Mr.Hemlock are typing

solemn marsh
#

And Mr.Hemlock.

icy raven
#

who will read = random.random(["Mr. Hemlock"])

solemn marsh
#

And, don't forget me 🙂

#

And, me!

upbeat mirage
#

and me

leaden drift
#

!e

from random import choice
hemlocks = ["Mr. Hemlock" for i in range(11)]
print(choice(hemlocks))
timid fjordBOT
#

@leaden drift :white_check_mark: Your eval job has completed with return code 0.

Mr. Hemlock
upbeat mirage
#

Hemlocks, let's hear your callsigns

icy raven
#

you are missing space between mr and hemlock

icy raven
shut flint
#

hello

solemn marsh
#

Seems liek you didn't see it.

shut flint
#

hello @agile portal

solemn marsh
#

Hello.

upbeat mirage
#

Hello.

solemn marsh
#

@solemn marsh

upbeat mirage
#

@solemn marsh

icy raven
upbeat mirage
#

Questions, Mr. Hemlocks?

shut flint
#

Miss Hemlock where

solemn marsh
#

You sound like Mr. Hemlock.

#

🤣

shut flint
#

Because I am

leaden drift
solemn marsh
#

I'm immune to the plague.

shut flint
#

U are an outsider and disgrace to the society

solemn marsh
#

Says Mr. Hemlock

#

🤣

leaden drift
#

me

shut flint
#

me too

icy raven
#

Mr. Hemlocks are

shut flint
#

@upbeat mirage hello sir

shut flint
leaden drift
#

yep!

shut flint
#

Mr.Hemlock did

upbeat mirage
#

Which one though?

leaden drift
#

now get a sentence and search it

shut flint
#

That one

upbeat mirage
#

I'm just imagining if eivl joins and asks "WTF is going on?"

shut flint
#

Mr.Hemlock is just doing his thing

fresh sail
#

@solemn marsh your mike is open 😛

leaden drift
icy raven
#

from next time type with ALL_CAPS

solemn marsh
#

Oh shit, me unmuted !

#

Unmute me, I'll make sure I'm muted on myself.

leaden drift
#

oh no

upbeat mirage
#

Also, Rule 4

solemn marsh
#

I've no girlfriend, nor do I want any.

leaden drift
#

!rule 4

timid fjordBOT
#

4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.

solemn marsh
#

Now, may I get permissions?

buoyant kestrel
#

!tvmute 936268272746250250 2w Please make sure that your mic is muted when you are not speaking or you are able to control the background noise. If this happens again after the mute expires, you will permanently lose voice speaking permissions.

timid fjordBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @solemn marsh until <t:1654188521:f> (13 days and 23 hours).

solemn marsh
#

Hemlock.

#

@buoyant kestrel

upbeat mirage
#

Which hemlock?

buoyant kestrel
#

You had multiple chances to fix it,

solemn marsh
#

Please.

upbeat mirage
#

Begging will get you nowhere

buoyant kestrel
#

You're still able to participate here

solemn marsh
upbeat mirage
#

It takes half a second to press the mute button

solemn marsh
#

May I read?

leaden drift
#

yes you can

#

now put a phone number at the bottom

upbeat mirage
#

clearly you can if you are typing

shut flint
#

or just some other stuff

shut flint
solemn marsh
#

Now, that's just rude.

#

What?

shut flint
solemn marsh
shut flint
#

I am sorry to call tha person an egg

solemn marsh
#

I think you failed to realize it.

shut flint
#

what?

solemn marsh
#

Well, don't use it so much.

shut flint
#

ok but i wont call anyone an egg

solemn marsh
#

Yeah, right.

shut flint
#

except my brother

solemn marsh
#

What a convincing statement.

shut flint
#

whose name is literally egg

#

?

shut flint
#

but my brothers name is guddu

#

which literally means egg

solemn marsh
#

I'm Indian and it's a pet name.

shut flint
solemn marsh
#

I think you failed to realize it, that I was speaking Hindi when I was unmuted.

solemn marsh
leaden drift
#

first put () around the re.compile(r'(\d\d\d-\d\d\d-\d\d\d\d)')

shut flint
#

in telugu it means guddu

icy raven
#

Hey, it'su me Helium

shut flint
#

his name is Itsumi

#

in japanese

solemn marsh
#

And, he's in this server?

shut flint
#

I agree

#

trig is indeed cool

shut flint
#

I am just bad at it

leaden drift
#

!e

import re

a = re.compile(r'(\d{3})-(\d{3}-\d{4})')
mo = a.search('My number is 415-555-4242.')
for i in mo.groups():
  print(i)
timid fjordBOT
#

@leaden drift :white_check_mark: Your eval job has completed with return code 0.

001 | 415
002 | 555-4242
shut flint
#

!e

timid fjordBOT
#
Missing required argument

code

#
Command Help

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

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

solemn marsh
#

Now, I'll be beware of @buoyant kestrel when he's in a call.

icy raven
#

if you don't have anything to say

solemn marsh
icy raven
icy raven
agile portal
#

you could just turn on push to talk

obtuse nebula
#

Beware of almost every person, people who can’t control their mic will get crapped on, too many people to have screw ups.

upbeat mirage
#

Use Krisp if you have it, if not, then use push to talk

leaden drift
#

regex is great with web scraping

obtuse nebula
#

@agile portal you wish you were this awesome.

icy raven
teal flare
#

i want to unmute in the live coding put it says i don't have permison

upbeat mirage
#

!voiceverify

#

Oh, I'm not the real hemlock

#

!voice

timid fjordBOT
#

Voice verification

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

agile portal
obtuse nebula
#

I saw what you did.

leaden drift
#

and you can have multiple optional

upbeat mirage
icy raven
#

brb

upbeat mirage
#

Using these instead of chiles

agile portal
#

sounds like just more stress

upbeat mirage
#

brb

agile portal
#

@fresh sailpassword validation to make sure password has a number, has special characters and is long enough

solemn marsh
#

@buoyant kestrel Can you ask to zoom in?

leaden drift
#

btw regex is in your vscode you can do alt + r

fresh sail
leaden drift
#

too many ha

solemn marsh
#

Can ya zoom in?

#

Not code, the text.

icy raven
#

re.complie() complies reg exp to what?

solemn marsh
#

The Text

leaden drift
#

ctrl +

solemn marsh
#

Oh, thanks 🙂

icy raven
calm bay
#

I would assume some sort of internal DFSA structure

#

that can match strings in linear time.

solemn marsh
#

Can you link me with the site?

#

It's nice...

calm bay
#

site?

icy raven
solemn marsh
#

Thanks 🙂

icy raven
calm bay
#

you can be a bit smarter with some optimizations

#

but ideally, if you're doing a bunch of matches with a regex, you can just preprocess the regex to a DFSA

icy raven
#

let me look up... I heard something like that in formal langs class

calm bay
#

which takes some work, but once you have it

#

you can match a string in one pass

solemn marsh
#

Non-greedy prints out the lowest value?

leaden drift
#
r'\d{3}-\d{3}-\d{4}'
icy raven
solemn marsh
#

What's the function of - re.compile() ?

icy raven
calm bay
#

regular expressions are equivalent to finite state automata

#

a finite state automata can't do the actual matching

icy raven
#

in finite time

wary lance
#

It feels like we are learning a second language.

calm bay
#

depends on what you mean by "finite automata"

icy raven
#

Deterministic time

#

NDFA by definition Non-Deterministic

calm bay
#

every DFSA has an equivalent regex

leaden drift
#

any character but numbers

calm bay
#

that's like saying a regex can recognize a regex

icy raven
#

equivalent doesn't mean efficient...

calm bay
#

non-deterministic and deterministic automata are both equivalent

icy raven
#

I know they are equivalent... we are taking about time

calm bay
#

efficiency in terms of what? number of steps to match? that's fixed, it's the number of characters in the string

agile portal
calm bay
#

you take one transition for every character in your string, and then you stop. the final state tells you accept/reject

#

why would there be a time complexity difference?

icy raven
#

in NDFA you say try all decisions ...

solemn marsh
#

@buoyant kestrel Please give an example of \w

calm bay
#

an NDFA has an equivalent determinista FA

solemn marsh
#

Anyone?

leaden drift
#

you should use regex101 with that and see realtime search

icy raven
#

Game of Life is equivalent to Turing Machine... it doesn't mean it can do it efficiently

calm bay
#

yes, but that's a false equivalence

#

for any finite automate the maximum number of steps is bounded by the size of the input string

icy raven
#

Our definition of equivalence is both can recognize regex

#

it doesn't say anything about efficiency...

agile portal
#

read about it a long time ago

calm bay
#

turing machines are different because they have separate state. Length of input does not directly correlate with number of steps.

icy raven
#

wait a sec

leaden drift
#

put ^ in front of the regex

calm bay
#

I have implemented it

#

With | it can get a little more complicated

#

and in any case

icy raven
#

NTM = DTM... but we can't build NTMs

calm bay
#

even if matching a regex can be exponential

icy raven
#

it's like that...

calm bay
#

the time complexity is the same

#

DTM usually just have more states

icy raven
#

NDFA = DFA in the sense... we can simulate NDFA with DFA

calm bay
#

because you don't have the flexibility of non-deterministic transitions

icy raven
#

2^n steps

#

transitions

calm bay
#

that's... not how they work.

#

DFAs are not "smart" enough to "simulate" things

icy raven
#

nvm latex not workign here..

#

read one with 5 votes

#

sure mr hemlock

calm bay
#

the accepted answer is quite literally what I am saying LOL

icy raven
#

read computation part

agile portal
#

@buoyant kestrel end of line*

#

cuz you can match multiple line endings too

#

with search

calm bay
#

that's talking about the conversion process from NFA to DFA

#

which is slow

icy raven
#

representation size is same...

calm bay
#

it is not

icy raven
#

but computation is 2^n

calm bay
#

DFAs are significantly bigger.

#

but faster.

icy raven
#

I'm saying about string length

#

not states

calm bay
#

You have a fundamental misunderstanding of how DFAs work, this argument is not worth it

icy raven
calm bay
#

this isn't about these definitions anymore.

#

do you know how a DFSA matches a string?

icy raven
#

states

#

transition func

calm bay
#

yes

#

you take one transition per character

#

correct?

icy raven
#

yep...

calm bay
#

and when the characters are over, you stop, correct?

icy raven
#

no...

#

wait

calm bay
#

you do.

icy raven
#

(aa|aa)*

#

try matching this...

calm bay
#

as soon as the string is done, the final state is accept or reject

#

that is a regex

#

not a DFSA

#

the DFSA would have 2 branches from the start node

icy raven
#

let's go to vc 1

#

chat

calm bay
#

You need to review how DFSAs work.

icy raven
#

I know... how they work...

calm bay
#

I've taught a theory of computation course for 2 years.

#

this is very much my wheelhouse.

icy raven
#

non determinstic by definition does stuff non-deterministically...

#

which is expoential...

#

in states

calm bay
#

but you can't actually have non-deterministic FSAs, those get converted to deterministic ones

icy raven
#

yeah...that what I'm saying...

#

you need exp time to simulate NDFA with DFA...

calm bay
#

you can do that conversion once, without any input string

#

that's what re.compile() does, in essence

#

when you actually match

#

that's against a deterministed FA

icy raven
calm bay
#

which is linear time

#

bruh

#

you keep giving me these links

#

I am asking you a simple quesion

#

we have a determinstic FA

#

and a string

icy raven
#

yeah...

calm bay
#

how many steps does it take

#

that is bounded by the length of the string

#

always.

#

you cannot take more transitions than characters

upbeat mirage
#

\t

#

Wait, what if I use ^M for newline instead?

agile portal
#

need to go for now 🙂 cya guys later

upbeat mirage
#

And yes, I have seen ^M for newline in the wild in the past month

icy raven
#

1 thing I have to make sure... in your defintion (N) represents regex or length of input string

calm bay
#

we're talking about DFSAs, not the regex

dreamy sable
#

can a regex be abused for code execution

icy raven
#

length of the pattern

calm bay
#

n is the length of the input string

dreamy sable
icy raven
#

okay

dreamy sable
#

but not have yk, HAVE PEOPLE TAKE OVER MY BOT

icy raven
#

our definitions differ here... I'm taking about pattern... I realized when you said "it stops when it at the end of the string"

#

to evaluate a pattern... NDFA need order of N states to size of pattern and 2^N states for size to pattern

solemn marsh
#

Mustafa and Helium are having their own session over her.

calm bay
#

Sure, DFAs require significantly more states than an equivalent NFA. But you specifically said runtime

icy raven
icy raven
calm bay
#

size of original pattern is irrelevant to matching once you have converted it to the DFSA

icy raven
calm bay
#

it will be slower to convert to the DFSA, but I'm explicitly not talking about the conversion process

icy raven
#

to recognize a string first you need to convert

dreamy sable
#

@icy raven why u got no profile pic

calm bay
#

yes, but that's a one-time thing

upbeat mirage
calm bay
#

you can do re.compile() once

icy raven
#

if it take exp time to build your data structure... it is still exp time

calm bay
#

and then match 100 billion strings

dreamy sable
buoyant kestrel
#

My voice is shot too

icy raven
#

100 billion is still a constant... no matter how big it is... exp always crushes it...

dreamy sable
buoyant kestrel
#

You were deafened, but I was reading the book out loud

#

So I'm going to need a bit to rest my voice

icy raven
#

Okay... let's talk tommorow ...

#

I'll read

dreamy sable
dreamy sable
#

also use the appropriate channels

#

!ot its better suited here

timid fjordBOT
dreamy sable
#

@upbeat mirage

#

also please don't send the minimod memes

icy raven
#

if it take exp time to build your data structure... it is still exp time my arugument is this

#

amortization to linear requires... exp runs

#

n^100 is still polynomial...

#

that's what I'm saying...

#

you can

#

amortization exp to linear = requires exp number of inputs

#

amortization doesn't work like that i'm saying.. sure in practice... n^100 is exp in real world...

#

let's have this decision tomorrow...

#

I'll write down the proper proof and send you..

buoyant kestrel
icy raven
#

wiki defintion?

buoyant kestrel
icy raven
#

okay nvm

#

Okay... I'm complete sure about this... even running takes exp time

when we convert NDFA to DFA each state is not a alphabet... rather element of Power Set of alphabet... so trasitions go from one subset of alphabets to another...

#

and there are 2^n subsets of alphabet

primal bison
icy raven
#

input is a sequence of subsets....

icy raven
#

I'm sorry I'm too confused till now...

calm bay
#

No, and I'm done with this.

icy raven
#

okay... look it up

#

would you mind looking it up

#

how to convert DFA to NDFA

#

what is the input to it

#

check again

#

what is the input for that converted dfa

#

input is sequence of subsets

#

of alphabets

#

okay...

#

I'll do that...

primal bison
#

i need help me

#

i just run as adminstrator

#

but\

#

again i have same error

icy raven
#

okay input is still string... my bad input is still same... I read that wrong...

#

but the problem occurs going from one state to another... that is where it is exp...

#

i gotta go talk to you tomorrow... with PROOF!

icy raven
icy raven
#

I'll do little amortization to prove it to you! it's been a while...

#

@calm bay

calm bay
#

the amortization is on different axes. Number of runs is independent of size of regex

#

you can't do regular amortized analysis

icy raven
#

We agree bulding takes 2^n right...

#

and recognizing takes n

calm bay
#

the n is not the same

icy raven
#

lengh of the string

calm bay
#

~2^m to build, where m is the length of the regex (in reality much less, but some esoteric worst cases)

icy raven
#

2^ states

calm bay
#

you do not need an input string to build the dfsa

buoyant kestrel
#

@jagged granite y u leave, I was going to ask a question

icy raven
#

hmm... I see what you saying.... n is arbitary...

#

and independent of m

calm bay
#

exactly

jagged granite
#

Was just seeing what was going on

jagged granite
buoyant kestrel
#

Bah, it can wait

icy raven
jagged granite
#

👍
If you feel like it you can type it, and I can read it while I'm working

#

I just can't have headphones in, etc, while I'm around the machinery

timid fjordBOT
#

bot/exts/moderation/voice_gate.py line 244

async def on_voice_state_update(self, member: Member, before: VoiceState, after: VoiceState) -> None:```
icy raven
# calm bay exactly

I was little rusty and got confused between state and input string... I was wrong about my definitions... I gotta look back.. I thought I masted this stuff...

#

I completely agree your argument... but people say regex is exp to evaluate by dfa it involves "*" operation in a branching way... we measure with that because.. we don't know the size of the input, it is a arbitrary long... you see my argument now?

measuring constructing dfa makes more sense...

calm bay
calm bay
#

matching a string with size n=10 is very different from matching with n=10000

#

you would expect the latter to be significantly slower

#

regardless of the input regex

#

and again

#

if you have a DFA

#

it takes exactly n steps

upbeat mirage
#

Hemlock, this is what you got going on

icy raven
calm bay
#

it is exactly the length of the input string

#

regardless of the input regex / conversion time

#

so really, talking about the size of dfsa when matching is really irrelevant

icy raven
#

okay would you agree with this... it might take exp time to find a substring that matches with the pattern?

calm bay
#

why?

#

n^2 substrings, each substring can be checked in linear time

#

worst case n^3

calm bay
#

that's assuming no optimizations or any sort of partial memoing

calm bay
icy raven
calm bay
#

i don't know why you want it to be exponential time so bad lol

icy raven
#

this is a nice experience though... nice to break down internal inconsistencies

buoyant kestrel
icy raven
calm bay
#

if you're matching from an NFA, then yes

#

because you need to backtrack

#

if you're matching from a DFSA then it's linear

#

you don't have options

buoyant kestrel
#

@calm bay Go to sleep

calm bay
#

there's always just exactly one transition to take

buoyant kestrel
#

Sleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeep

icy raven
#

NFA is definitely exp because decisions...

calm bay
#

yes

#

less space, more time

#

dfsa more space, very fast

icy raven
#

yeah...

#

space vs time thing...

calm bay
#

yes, but you were insisting they have about the same space

icy raven
#

I don't recall saying same space...

#

it takes 2^n states

calm bay
icy raven
calm bay
icy raven
#

I stated correct... exp states... but made some incorrect defintions... thought about what they were impling... and went with it...

#

my bad

#

Bartnand Russell once said something like "Assume 4 = 5, I can prove your are the pope"

#

@calm bay thank you for being patient with me....

#

I was too annoying...

shadow acorn
#

@buoyant kestrel you'd have to update all "bacon" dicts in the list before the "ham" update

#
egg = {}
for b in bacon:
    egg.update(b)
ham.update(egg)

or something... @buoyant kestrel

#

keeping it simple

#

¯_(ツ)_/¯

#

kek

upbeat mirage
#
<python-version>3.8</python-version>
<dependencies>
  <dependency>flask</dependency>
  <dependency>requests</dependency>
  <dependency>jinja</dependency>
</dependencies>
#

This could possibly be the best way to approach pip lol

shadow acorn
#

did you just wrap Python in maven??

upbeat mirage
#

Now do a helm chart in XML

shadow acorn
#

I'm used to looking up in-line documentation in PyCharm with Ctrl+Q

#

imagine me* using PyCharm on Mac

#

..........................................................................................

upbeat mirage
#

imagine using PyCharm when you can use nano

shadow acorn
#

rip

upbeat mirage
#

Notepad.exe

shadow acorn
#

vim > nano

upbeat mirage
#

nvim >>>>> vim

#

emacs <?> vim

shadow acorn
#

emacs is the language of the ancient wizards

upbeat mirage
#

I have tried emacs, and I didn't like it. I do know there are people who like it, and I respect that.

shadow acorn
#

Why are you torturing yourself by making your own Discord API Python wrapper btw?

#

👀

#

aha

#

Generics fingerguns

#

Imagine:

T = typevar('T', 'Generic')

class MyFooList<T>:
    def add(ele: T):
        pass
#

or whatever

upbeat mirage
#

laughs in typescript

jagged granite
#

@buoyant kestrel

dict(
name = config["name"],
)
lunar skiff
#
return dict(name=..., channel_id=...)

@buoyant kestrel

upbeat mirage
#

I wish we could do

x = {a: 1, b: 2, c: 3}
y = x.a
print(y) # 1
upbeat mirage
#

Yeah, in javascript

shadow acorn
buoyant kestrel
#

!stream 658593980803448852

timid fjordBOT
#

✅ @lunar skiff can now stream until <t:1652989035:f>.

upbeat mirage
#

99% of the time I have no idea what the structure is going in

#

working with REST APIs

shadow acorn
#

-ish

#

ok the import is screwed... where's this from again missing an s 😂

#

there we go.. 🙃

#

!e

from collections import namedtuple

foo = namedtuple('my_foo', ['cake', 'luls'])
bar = foo(42, 'baz')

print(bar.cake)  # 42
timid fjordBOT
#

@shadow acorn :white_check_mark: Your eval job has completed with return code 0.

42
lunar skiff
upbeat mirage
lunar skiff
#

@upbeat mirage Wanna go to V1?

upbeat mirage
lyric phoenix
upbeat mirage
lyric phoenix
#

wut

#

you coding clock?

primal bison
#

good

wary lance
#

One month later... you become a teacher and go back to school.

buoyant kestrel
solemn marsh
#

No session today for Python?

#

Plus, I'm not listening to meet, so you can message me here.

solemn marsh
fresh sail
#

@wise lake

honest pasture
buoyant kestrel
honest pasture
#

suggested in 2019, never added

inland hearth
#

@buoyant kestrel can you help me again?

buoyant kestrel
#

Shoot

inland hearth
buoyant kestrel
#

You forgot the input

inland hearth
#

oh yeah

buoyant kestrel
#

Currently you're just trying to turn a string into an integer

inland hearth
#

thanks I'm brain afk lmao

proper cobalt
honest pasture
buoyant kestrel
#

I will return, just have to take care of a tech thing

solemn marsh
#

Oh boys, @buoyant kestrel is there. Better get out before he gives me permanent mute 🙂

buoyant kestrel
#

Good to know there's no hard feelings about that

solemn marsh
#

Haha.

#

I'm starting to like you to a great degree, @buoyant kestrel .

agile portal
#

too lazy to do it

buoyant kestrel
#

@calm bay Question for you: I've readjusted the argument options when running the script. Now, either a server name or guild template must be provided

#

Currently I have them as two separate optional arguments.

#

I just have the program error out if neither are provided

#

Is that the way to do it or is there another way to do a required either or situation?

#

Huh, newlines are stripped

#

Interesting

honest pasture
buoyant kestrel
#

@honest pasture Just want to say again how appreciative I am about finding that. Makes my life quite a bit easier

honest pasture
#

no problem - glad I could help

buoyant kestrel
#

My brain has shut down

buoyant kestrel
#

Not much else to stream

#

Appreciate everyone who tolerated my coding

jaunty meadow
#

lol

wind ingot
#

Learning process:

data = download(material)

notes = []

for functionality in data:
    chunk = functionality.decompose_activity_flow()
    extraction = chunk.extract_relationships()
    notes.append(extraction)
primal bison
#

.

primal bison
#

Hello i need someone who can remote my laptop and learn me how to submit my submissions (Cs50 web)[paid]

icy raven
#

what up

#

cool

#

what's jakt

calm bay
icy raven
#

cool... what makes it special...

#

cool...

#

you contributing to it?

#

nice

#

btw, both Turing Halting Problem, Godel's First Incompleteness Theorem, they all use cantor's Diagonalization argument... I couldn't find right words that day...

#

I asked people who understand it..

#

I still don't understand some part of godel's proof... but I do understand the general idea..

#

cardinality of set of all provable statements from axoims of our formal system is countable... and but there are uncountably statements that are unprovable are from axioms...

similarly... in halting problem... there are countably many algorithms to solve problems but uncountably many problems to solve...

calm bay
#

!code

timid fjordBOT
#

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.

cunning quarry
#
# Database,py Module  
  def getNames(self,name,gender):
        myConnection = pyodbc.connect(
        
)
        cursor = myConnection.cursor()
        cursor.execute("SELECT * FROM all_data WHERE Name=? AND Gender=?",(name,gender))
        rows = cursor.fetchall()
        for row in rows:
            print(row)

        myConnection.close()
# Main.py Module
def main():
    theName = input("Enter a stupid name->")
    theGender = input('Enter Gender -->')
    lstName = Name.getNamesByNameGender(theName,theGender)
    for n in lstName:
        print(n.name,n.Gender)
main()

# Names.py module 
class Name():

    def __init__(self, name, gender, year, count):
        self.__name = name
        self.__gender = gender
        self.__year = year
        self.__count = count

    @property
    def Name(self):
        return self.__name

    @property
    def Year(self):
        return self.__year

    @property
    def Gender(self):
        return self.__gender

    @property
    def Births(self):
        return self.__count
    @classmethod
    def getNamesByNameGender(cls,theName,theGender):
        thing = Database.getNames(theName,theGender)
        for i in thing:
            print(i)
calm bay
cunning quarry
mild goblet
#
.schema```
patent hearth
#

Hello! Please i need you to understand this course Image processing with numpy and pillow

lofty crescent
#
print('Hello world!')
terse ledge
#

py print('Hello world!')

primal bison
#

print('Hello world!')

#

print('Hello world!')

#

pip install discord

#

pip install httpx

astral shale
#

Hellooo there Ive got some question of visual studio

#

how do I install numpy in visual studio don't know where to download 😢

toxic moth
#

@astral shale in the terminal pip install numpy or pip3 install numpy

winter prawn
#

Hello

#

Hello?

#

ahhh

unreal prairie
#

@astral shalefor installing stuff, there are these things you can make, they're called 'virtual environments', when you make them, they are placed in whichever directory you're in, and most likely, you can write to them...

#

while it's active, pip will install stuff into that virtual environment

#

(note, it's not really a good idea to install things with pip as Administrator, or as root)

#

@astral shalewhich operating system are you running?

#

hi... I'm not voice vverified... will be a couple days probably

#

who's that?

#

my second day here. let me try to find that. are you on channel zero?

worthy peak
#

Hi there

marsh haven
magic heart
#

@sick gate I can't speak man

#

have to verify

unborn sorrel
#

!voice

timid fjordBOT
#

Voice verification

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

magic heart
#

yeah i guess have to chat to do that

#

I am good what about you

#

that's not python i guess

#

js i see

#

yeah python cool stuff

#

hahah

#

yeah I have 2-3, but currently I have my exams so had to stop for a while

#

so you work somewhere ?

#

yeah it is

#

that's cool that you do as hobby

magic heart
#

I am in college

#

fresher

#

opt for computer science

#

no option

#

it's a degree

#

include everything related to cs

#

yeah 1st year started

#

java and c++

#

i already did that in high school

#

@lapis turret hey buddy

lapis turret
#

what you doing?

magic heart
#

i learned python form w3 school. It's good

lapis turret
#

im from brazil

magic heart
lapis turret
magic heart
#

yeah mostly 1st

#

yeah he will sleep

#

where are you from

#

I am from India

#

wow Canada have to go there.

#

yeah

#

8:30

#

I have to go cause that's where my university is

#

in Canada

#

yeah I am back now for a month

#

it's online so

#

dosen't matter

#

*doesn't

#

hey, I'll have my breakfast and will be back 30 minutes.

#

all the best with your project

#

will be right back

#

bye !

hoary trail
#

Yes I will totally memorise you while I cry trying to learn python

unborn sorrel
#

@rancid cloak please don't troll the voice chats

hoary trail
#

No good

#

Making a list

#

hahaha it sounds so tragic

#

I got this assignment and it's where I need to input a bunch of domain names and make them into a list where I will select to find the IPV4 of it

#

but yk it's difficult

#

yeah storing them into the list

#

yes

rapid zephyr
#

sup sorry i cant speak but i would like to so i can ask some stuff

hoary trail
#

ty!

rapid zephyr
#

i am trying to get into coding and i don't know where to start you have any things for me to do

hoary trail
#

somewhat

rapid zephyr
#

my dad has a masters in computer science and says i should try to ask some people

hoary trail
#

ooo

#

so append will move it to the lists

rapid zephyr
#

oh and i use pycharm for your information

#

should i use something different

#

my dad uses java but i dont know what to start out with

#

and he also uses c++

#

and that is none

#

i know nothing about this and i mean nothing

#

what about ruby hehhe

#

well i want to start coding but i have no base line in this

hoary trail
#

hello world?

rapid zephyr
#

i should start out with hello world?

#

ohh my god i love you thank you

#

my dad wants me to make the computer say 1-10 in three lines of codes

#

thank you

#

thank you i do understand thank you

#

my dad wants me to make the computer say 1-10 in three lines of codes

#

how may i do that

#

not doing print

#

thank you i am going to show ma dad this

#

he has a masters in computer science

#

he is in cyber security

#

ok

#

i can understand that but why is this so hard

#

oh

#

oh ok

#

thanks for helping me

#

hope you have a good day

#

i took so many screen shots i have no more space lol

#

so i need to know that any thing is possible

#

holy crap

#

thats a lot of stuff

#

pretty

#

thank you

#

good day

unreal prairie
#

@astral shaleok, I can't say much about windows requirements, it's been probably a decade since I ran windows... my last use of windows was to run some video game that needed a more expensive video card... it was then, that I gave up on games that need that kind of hardware, and with that went my need to run windows... linux only ever since, and it's been pretty good 🙂

unreal prairie
#

the way python does this "unpacking" is pretty efficient, in that you don't have to write much to make it happen...

#

the term "unpacking" is a term that means the same thing... anywhere you would take all the pieces of an object and split them into separate variables, that's unpackaing

#

hi

#

thought I'd come check it out... looks like tomorrow is when I would get voice verified

unreal prairie
#

would it be better if you had some sort of collection of players, but not keyed by name? (that way you could have two players of the same name, without overwriting?

#

(I know it took a lot of work to get it to where it is, I'm not suggesting you change it)

#

I guess the way they'd do the same thing in a database, is you'd have a numeric integer primary key

rapid zephyr
#

sup everyone

#

what are you doing

unreal prairie
#

maybe see you all tomorrow... I fell asleep in chair two different times; I'm tired 🙂 nite all

rapid zephyr
#

its ten for me

unreal prairie
#

they're making a dungeons n dragons thing, where they're making characters out of classes,, and storing them in one way or another

rapid zephyr
#

ohh cool

unreal prairie
#

mindful dev is sharing his screen where he's doing the coding

rapid zephyr
#

ok

#

thanks

unreal prairie
#

welcome 🙂

rapid zephyr
#

i am trying to talk a lot so i can be voice verified

#

hehe

#

not that i am texting only for that though

unreal prairie
#

yeah, I'm here 3 days tomorrow or the next day

#

I got my 50 lines, but still commenting and such

rapid zephyr
#

i got it

unreal prairie
#

anyway have fun, in doing all this, they're showing different ways and tricks for classes and probably other things

astral shale
unreal prairie
#

@astral shaleabout"I see, so wanna buy a new computer" well I dunno, that's up to you... maybe you can upgrade the one you have

buoyant kestrel
#

@glass smelt Welcome

glass smelt
#

@buoyant kestrel hello

fresh sail
#

@onyx trench over here!

buoyant kestrel
#
[project]
name = "auto_guild"
version = "1.0.1"
description = "Creates a Discord server based on a template you layout, making it an easy and quick way to flesh out a server to fit your needs."
authors = [
    { name = "Daniel J Brown", email = "browndj3@gmail.com" },
]
license-expression = "MIT"
dependencies = [
    "requests>=2.27.1",
    "pyyaml>=6.0",
    "python-dotenv>=0.20.0"]
requires-python = ">=3.7"
readme = "README.md"

[project.urls]
Homepage = "https://github.com/MrHemlock/auto_guild"
Repository = "https://github.com/MrHemlock/auto_guild"

[project.scripts]
auto-guild = "auto_guild.__main__:run"

[tool]
[tool.pdm]

[build-system]
requires = ["pdm-pep517>=0.12.0"]
build-backend = "pdm.pep517.api"
fresh sail
#

@sand yew over here!

sand yew
#

Hi. I'm suppressed so I can't enable my microphone

fresh sail
#

it's ok, you can type here if you need to ask questions.

#

Do you have a python environment set up?

sand yew
fresh sail
#

np

buoyant kestrel
sand yew
primal bison
solemn marsh
#

@buoyant kestrel Hello!

#

Hello! (Everyone)

#

No yays for me?

cold lintel
#

Well a sub-pattern could be any substring of the regex pattern that happens to also be a valid regex pattern.

solemn marsh
#

😭

cold lintel
#

👋 Hemlock

solemn marsh
#

Hi Magical Girl!

#

I'm fine, how are you?

#

Nice 🙂

buoyant kestrel
#

@leaden drift You're missing all the fun

harsh lake
#

regex is truly amazing

#

I am also following this book

#

but I am at chp 9

buoyant kestrel
fresh sail
harsh lake
#

I think to master regex read regex python documentation

primal bison
#

yo

#

can someone help with a error

primal bison
#

its a moudle that aint excist

buoyant kestrel
#
except ValueError:
primal bison
#

can i put ?

#

like large number

#

to do a simple "dos"

buoyant kestrel
#

@lime granite

lime granite
#

Im trying to see

#

lol

fresh sail
unreal prairie
#

I do remem,ber phish, I never really followed their music

lime granite
#

@fresh sail I do not know that song.

#

Popped my Cherry on that 1 lol

#

How old is old?

#

i need moeny

#

money*

primal bison
#

i have to go bye

buoyant kestrel
unreal prairie
#

hi

#

not voice verified yet

#

umm

#

I have a few projects I did

#

sure

weak socket
#

What is this assignment about?

unreal prairie
#

hmm, do I have a copy of that

#

contrats to youir wife

weak socket
#

Pyip library handles all the possible from user input validations?

unreal prairie
#

let's see if I have that

unreal prairie
#

I don't think I have that, but I do have django design patterns and best practices

primal bison
#
from flask import Flask, redirect


app = Flask(__name__)
new_url = 'http://amir.rachum.com'


@app.route('/')
def root():
    return redirect(new_url, code=301)


@app.route('/index.html')
def anypage(page):
    return redirect('{new_url}/{page}'.format(page=page, new_url=new_url), 
                    code=301)

if __name__ == '__main__':
    app.run(host='10.0.1.10', port=5000)```
 so i have this code i would like o use redirect with virtual host so it redirects me to the main index.html
cunning portal
#

hello can some one show me how to do

#

pls

lament rampart
fresh sail
#

@primal bison Over here!

#

@lone bronze over here!

lone bronze
#

hello

#

sorry i don't have a microphone

fresh sail
#

it is ok.

lone bronze
#

yes

#

Can I watch you

unreal prairie
#

@lone bronzecan you hear us?

lone bronze
#

Can I watch you

fresh sail
#

yes

lone bronze
#

I have work

fresh sail
#

@empty wadi over here

#

py -m pip install pyinputplus

agile portal
#

!code

timid fjordBOT
#

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.

agile portal
#

@unreal prairie try sudo apt install python3-pip

#

debian by default doesn't come with pip installed

fresh sail
#

4pm utc - 6pm utc

unreal prairie
agile portal
#

this should reinstall pip properly for you then try installing pip3 install pyinputplus again

fresh sail
#

@sullen blaze Over here!

unreal prairie
lime granite
#
import pyinputplus as pyip

while True:
    print("Enter your age: ")
    age = input()
    try:
        age = int(age)
    except:
        print("Please use numeric digits. ")
        continue
    if age < 1:
        print("Please use numeric digits.")
        continue
    break

print(f"Your age is {age}.")

Output should be
Enter your age:
37
Your age is 37.

Process finished with exit code 0

sullen blaze
#

my internet sucks and i cant hear anything

#

couldn't*

agile portal
#

@unreal prairie

fresh sail
#

@smoky basin and @elfin aspen ask questions here...

agile portal
#

@mellow epoch django has validators built in but there's also just simply taking in passwords, usernames, emails in user registration at all

#

like that's how websites show you how weak your password is

primal bison
#

ok

humble hinge
#
import re
string = "Some text loren i do not know at 12:00 AM you shall know, at 01:00 PM you'll know next year shall be 1960"

timepattern = "\d+:\d+ [a-zA-Z]+"
time = re.findall(timepattern, string)
print(time)

#

result ['12:00 AM', '01:00 PM']

#
import re
string = "Some text loren i do not know at 12:00 AM you shall know, at 01:00 PM you'll know next year shall be 1960"

timepattern = "\d+:\d+ [a-zA-Z]+"
time = re.findall(timepattern, string)
yearpattern = "\d{4}"
year = re.findall(yearpattern, string)
print(year)
print(time)
#

Returns

#

['1960']
['12:00 AM', '01:00 PM']

random mason
potent crow
#

12

#

13*

ornate scroll
#

Hlo

#

Bros

#

What's going on

#

Is there anyone from india

primal bison
#

like majority of the user base

warm hedge
#

!help stream

timid fjordBOT
#
Command Help

!stream <member> [duration]
Can also use: streaming

*Temporarily grant streaming permissions to a member for a given duration.

A unit of time should be appended to the duration. Units (∗case-sensitive):
y - years
m - months∗
w - weeks
d - days
h - hours
M - minutes∗
s - seconds

Alternatively, an ISO 8601 timestamp can be provided for the duration.*

warm hedge
#

!stream 455720889196216331 15M

timid fjordBOT
#

✅ @trim pelican can now stream until <t:1653661130:f>.

warm hedge
#

!stream 713431503610183760 15y

timid fjordBOT
#

✅ @primal bison can now stream until <t:2127045850:f>.

potent crow
#

simp

hexed onyx
#

Anyone up for codingame?

primal bison
#

me

#

ofc

potent crow
#

simp huge simp

hexed onyx
potent crow
#

and?

warm hedge
primal bison
#

🙂

random furnace
#

Yo!

calm bolt
#

Wat

#

kalm down

#

guys can you please tag me or smth

#

imma work first

#

you did @primal bison

#

o/

calm musk
#

@primal bison isn't Aftab a Persian word?

#

though Aftab mean's Sun

calm bolt
#

lmao

calm bolt
#

trudat

#

hahahah

#

cancelledt

#

but we don't follow the same amendments tho

#

we are not from the same country.

#

obseeneetey

hexed onyx
#

👋

calm bolt
#

freedom of speech is not absolute.

#

but you can actually call someone stupid

#

that's basically an opinion

hexed onyx
#

!unstream 713431503610183760

timid fjordBOT
#

❌ This member doesn't have video permissions to remove!

#

@primal bison's stream has been suspended!

calm bolt
#

hahahaha

#

@rocky charm super secure

#

lmao

#

can someone refresh me what do you call this code x[:-1]

#

@coarse hollow you wrote this

coarse hollow
#

the beginning of the string to one before the end

#

/array

calm bolt
#

It's return the array except n

#

Im workin

#

maybe next time?

#

lol

#

@coarse hollow a[start:end]

#

python is weird. but syntactically functional

#

nah

steel flume
#

Hi

#

Just checking things out

unreal prairie
#

this

#

@steel flumehi

#

libera.chat

silent spade
#

does someone know how to custom a function

clear narwhal
#

.help

primal bison
#

Hey

primal bison
#

hey

shrewd raft
#

H

#

HI

#

HAY

#

hay

#

hi

sleek trench
#

Hi

random furnace
#

Hello

fresh sail
#

"Spam" is a Monty Python sketch, first televised in 1970 and written by Terry Jones and Michael Palin. In the sketch, two customers are lowered by wires into a greasy spoon café and try to order a breakfast from a menu that includes Spam in almost every dish, much to the consternation of one of the customers. As the waitress recites the Spam-fil...

#

@worthy shore you can talk to us here.

worthy shore
#

the problem is @open groveGirl, i cant use my microphone

#

my mic dont work

buoyant kestrel
#

That'll tell you what you need to know

worthy shore
#

i mean my mic dont work on my coputor

buoyant kestrel
#

Apologies

stark sigil
#

wait the browser can be heard while sharing whole screen?
I wanna be able to do that kekw

#

ohh Stereo Mix?

#

Issue with Stereo Mix was that even Discord voices are relayed back

rigid bluff
#

for mixing input devices

stark sigil
#

like chmod +x ./script.py would make it executable

shell hull
#

Seems like the voice verification bot is outputting nothingness .-.

stark sigil
#

it prolly only checks the files and not the dirs

buoyant kestrel
#

Carry on

#
with open("file") as file:
  dump = file.read()
#
file = open("file")
dump = file.read()
file.close()
agile portal
agile portal
potent ridge
#

How to use DU command in python?

agile portal
rustic crown
#

I think he means by using subprocesses or os.popen

potent ridge
#

Yes

#
server@server-VirtualBox:~/Desktop/backupdestination/2022/05/30$ du 
204    ./client1
4    ./client2
212    .

size = subprocess.check_output(['du', path]).split()[0].decode('utf-8')
      print("Directory size: ",size )

The output i am getting for this is 212

How can i loop and print 204,4,212?
timid fjordBOT
#

shutil.disk_usage(path)```
Return disk usage statistics about the given path as a [named tuple](https://docs.python.org/3/glossary.html#term-named-tuple) with the attributes *total*, *used* and *free*, which are the amount of total, used and free space, in bytes. *path* may be a file or a directory.

New in version 3.3.

Changed in version 3.8: On Windows, *path* can now be a file or directory.

[Availability](https://docs.python.org/3/library/intro.html#availability): Unix, Windows.
agile portal
#

look if you can use this instead ^

#

this would work on both windows and mac and won't require starting a shell session for it

rustic crown
#

Theoretical ecology is the scientific discipline devoted to the study of ecological systems using theoretical methods such as simple conceptual models, mathematical models, computational simulations, and advanced data analysis. Effective models improve understanding of the natural world by revealing how the dynamics of species populations are of...

#

The Flynn effect is the substantial and long-sustained increase in both fluid and crystallized intelligence test scores that were measured in many parts of the world over the 20th century. When intelligence quotient (IQ) tests are initially standardized using a sample of test-takers, by convention the average of the test results is set to 100 an...

primal bison
limpid coral
#

one sec

odd basin
jolly flame
#

plz unmute me

#

plzzzzzzzzzzzzzzzzzz unmute me

#

you fuckeres

#

fuck you

#

unmute me

#

UNMUTE

toxic shore
pure herald
#

👍

icy ruin
urban spire
#

uh hi?

buoyant kestrel
#

I'm wrong, I don't think there is a repo

jagged granite
#

cargo fmt

buoyant kestrel
rustic crown
buoyant kestrel
agile portal
#

I've found a really cool way to make pure python executables (.exe) for windows!

playlist: https://www.youtube.com/playlist?list=PLWBKAf81pmOaP9naRiNAqug6EBnkPakvY

==========

twitch: https://twitch.tv/anthonywritescode
dicsord: https...

▶ Play video
buoyant kestrel
#

He's so stoked to help you make a native application

agile portal
void torrent
agile portal
#

the think i linked is going to be super inconvenient

#

its just an interested hack i wanted to share

rustic crown
#

Russell Keith-Magee

http://2017.pycon-au.org/schedule/presentation/45/

#pyconau

This talk was given at PyCon Australia 2017 which was held from 3-8 August, 2017 in Melbourne, Victoria.

PyCon Australia is the national conference for users of the Python Programming Language. In August 2017, we're returning to Melbourne, bringing together stude...

▶ Play video
#

You can use their cookie cutter to start, watch the video for more information.

void torrent
#

By this will I be enable to to share with others like a application

rustic crown
#

yes

void torrent
#

and if python or that modules not installed in his system will it work?

rustic crown
#

yes, that's the whole point.

void torrent
#

ohk thnks for this