#voice-chat-text-0

1 messages ยท Page 576 of 1

onyx grotto
#

What is the best framework for making apis on python

#

drf or

#

something else

somber heath
#

I've heard FastAPI mentioned in a positive light.

onyx grotto
#

so

#

what is your stack?

#

?

#

lol

#

more understandable

#

python is super understandable

#

so your super understandable lang is just for simple scripts?

#

how did you make it?

#

rn iโ€™m just making apis on drf and some golang

#

and i want to make mobile clients

#

for ios and android

#

guys

#

do you have something in production right now or you just working in companies

#

project

#

idk

#

STARTUP๐Ÿ˜Ž

#

so do you make money on your projects or just get salary

#

in company

#

wow

#

what is your company do?

#

thats great

#

how much traffic u get?

#

like in

#

last month

#

maybe

#

idk

#

im just writing text for vc

#

for verification

somber heath
#

@frigid carbon ๐Ÿ‘‹

#

@median tree ๐Ÿ‘‹

median tree
#

Hi

#

I still can't speak in the vc lol

somber heath
onyx grotto
#

i hate voice verification

#

for real

#

itโ€™s just destroying my life

#

guys

#

lets text about something

#

please

#

i need verif

#

โ€œtyping random shitโ€

#

im OpenAI ceo

#

lol

somber heath
#

@tender cypress ๐Ÿ‘‹

rough tapir
#

Same @hexed dust

#

I'm new to programming ๐Ÿค“

onyx grotto
#

Someone turn screen sharing

#

os?

rough tapir
somber heath
#

@thorny quarry ๐Ÿ‘‹

thorny quarry
onyx grotto
#

I tried to download it to flash

thorny quarry
#

why verif? guide pls

onyx grotto
#

but itโ€™s works bad

#

and i dont think its so safety

thorny quarry
somber heath
#

@fair locust ๐Ÿ‘‹

onyx grotto
#

Sudoku game in captcha itโ€™s best idea of all time

indigo raven
#

heyyyyyyy

somber heath
#

I'm not looking to engage you in a semantic debate.

#

It has been updated with specific intent to form a component of it.

#

I am done.

#

I am done.

rough tapir
#

It's destroying planet

#

NO, privacy.

#

Information will be accessible easily.

#

@somber heath What lies ahead is more dangerous.

#

We will loose control at somepoint.

amber raptor
daring spoke
#

@potent tapir me robo el otro dia

potent tapir
shrewd warren
#
float Q_rsqrt( float number )
{
    long i;
    float x2, y;
    const float threehalfs = 1.5F;

    x2 = number * 0.5F;
    y  = number;
    i  = * ( long * ) &y;                       // evil floating point bit level hacking
    i  = 0x5f3759df - ( i >> 1 );               // what the fuck?
    y  = * ( float * ) &i;
    y  = y * ( threehalfs - ( x2 * y * y ) );   // 1st iteration
//    y  = y * ( threehalfs - ( x2 * y * y ) );   // 2nd iteration, this can be removed

    return y;
}```
somber heath
#

@exotic blaze ๐Ÿ‘‹

#

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

somber heath
#

@inner horizon @cyan gale ๐Ÿ‘‹

inner horizon
#

oh alr

somber heath
inner horizon
#

cant yet

#

since I left the server previously

inner horizon
peak depot
primal shadow
#

๐ŸŒŠ

#

They just want you to stop ad smell the ad revenues

tiny oxide
#

what?

#

open stream

#

stream code

#

shy

#

No code stream: No point staying. Next time stream

#

Stay secure. I go make my code

primal shadow
#

lol

#

โ˜ฎ๏ธ

#

Yes

#

Gotta catch the first 4 seasons

#

gore

#

graphic content

#

more graphic than the hills have eyes

primal shadow
#

woke antifa nonsense

#

Saw it

#

waiting for them to show up

#

boo meeting inc

blissful harness
#

Hello @somber heath

#

How's your day going?

#

Thats an interesting response

#

Oh

#

What happened?

#

Oh

mystic dove
#

Afternoon @inner hill

inner hill
#

It's 10 PM over here , man

Good Afternoon

mystic dove
inner hill
#

Very very good day

WHat about you

mystic dove
rough tapir
#

Yes

#

@cosmic bison

native axle
#

`import winsound

winsound.PlaySound("Legacy.wav", 0)`

woeful tulip
#

import winsound

winsound.PlaySound("./Legacy.wav", 0)

rigid brook
#

what are you building

somber heath
#

@gleaming parcel ๐Ÿ‘‹

gleaming parcel
somber heath
#

They're disabled.

#

Deliberately.

#

@patent rapids ๐Ÿ‘‹

gleaming parcel
# somber heath They're disabled.

Oh, u r right! Now I don't know where my 1st msg went to:)) Yeah, my right to speak was removed, I guess, or I never earned it in the 1st place. Anyway, thanks. I hoped to talked about codebase architecture.

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.

somber heath
#

@latent flame ๐Ÿ‘‹

latent flame
#

hi

#

its been a while since i have been active in the programming world

#

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

latent flame
#

Im taking a python class in college. So I figure i return back to the discord world.

#

I'll see you around

gleaming parcel
pale needle
#

Hello guys!

dusk pagoda
#

@cosmic bison chat bot ??

#

ohhh

#

Cool , i just start learning about those , not much clue about it

#

kinda

#

just exploring new staffs of programing

#

i should go now , i have exam tomorrow have nice day and good luck with ur work

somber heath
#

@open elk ๐Ÿ‘‹

somber heath
#

@sand quest ๐Ÿ‘‹

sand quest
#

wave

#

verrify one sec

#

im not a bot pinky promise

#

click my link

somber heath
#

@clever raven ๐Ÿ‘‹

sand quest
#

n: int)

#

def is_prime(n: int) -> bool:

#

numbers = [50_000_000, 40_000_000, 30_000_000]

somber heath
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

sand quest
#
numbers = [50_000_000, 40_000_000, 30_000_000]

def is_prime(n):
    if n < 2:
        return False
    if n == 2:
        return True
    if n % 2 == 0:
        return False

    sqrt_n = int(math.floor(math.sqrt(n)))
    for i in range(3, sqrt_n + 1, 2):
        if n % i == 0:
            return False
    return True

def total_primes():
    for is_prime() in numbers:
        if is_prime() == True:

        

def main():
    #calculate times and output stuff  
    start = time.time()
    # results = [sum_of_squares(n) for n in numbers] """sequential method no optimazation """
    with ProcessPoolExecutor() as executor:
        results = list(executor.map(sum_of_squares, numbers)) 
    end = time.time()

    print("Results:", results)
    print(f"single thread time: {end - start:.2f} seconds")
    #15.78 seconds no optimazation.
    #basic process poolExecutor gives high 9(low nine with main function optimazation) seconds lets try math for a function of Is Prime.
somber heath
#

Memoisation.

#

!e ```py
def foo(bar):
pass

foo()```

wise cargoBOT
# somber heath !e ```py def foo(bar): pass foo()```

:x: Your 3.14 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 4, in <module>
003 |     foo()
004 |     ~~~^^
005 | TypeError: foo() missing 1 required positional argument: 'bar'
sand quest
#

def is_prime(n):
    
    n == numbers
....
somber heath
#

!e ```py
def foo(bar):
print(bar)

foo("Hello, world.")```

wise cargoBOT
sand quest
#
def total_primes(value): 
    for value in numbers:
        if is_prime(value):
            total_primes += 1
somber heath
#
def total_primes(range_): 
    for value in range_ :
        if is_prime(value):
            total_primes += 1```
sand quest
somber heath
#

@ancient hedge ๐Ÿ‘‹

ancient hedge
sand quest
#

hello

somber heath
#
def total_primes(a, b): 
    for value in range(a, b):
        if is_prime(value):
            total_primes += 1```
#
  • return
sand quest
#
import math
import time 
from concurrent.futures import ProcessPoolExecutor

numbers = [50_000_000, 40_000_000, 30_000_000]


def is_prime(n):

    if n < 2:
        return False
    if n == 2:
        return True
    if n % 2 == 0:
        return False

    sqrt_n = int(math.floor(math.sqrt(n)))
    for i in range(3, sqrt_n + 1, 2):
        if n % i == 0:
            return False
    return True

def total_primes(range_): 
    for value in range_ :
        if is_prime(value):
            total_primes += 1


def main():
 
    start = time.time()
    # non optimized 
    results = total_primes(numbers) 
    end = time.time()

    print("Results:", results)
    print(f"single thread time: {end - start:.2f} seconds")
somber heath
#

!d timeit

wise cargoBOT
#

Source code: Lib/timeit.py

This module provides a simple way to time small bits of Python code. It has both a Command-Line Interface as well as a callable one. It avoids a number of common traps for measuring execution times. See also Tim Petersโ€™ introduction to the โ€œAlgorithmsโ€ chapter in the second edition of Python Cookbook, published by Oโ€™Reilly.

somber heath
#

!e ```py
def func():
pass

print(func())```

wise cargoBOT
somber heath
#

!e ```py
def func():
return 123

print(func())```

wise cargoBOT
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
#

@ancient hedge ๐Ÿ‘‹

ancient hedge
#

Hello

#

Mic permision is not granted

somber heath
sand quest
#
import math
import time 
from concurrent.futures import ProcessPoolExecutor

def is_prime(n):

    if n < 2:
        return False
    if n == 2:
        return True
    if n % 2 == 0:
        return False

    sqrt_n = int(math.floor(math.sqrt(n)))
    for i in range(3, sqrt_n + 1, 2):
        if n % i == 0:
            return False
    return True

def total_primes(numbers):
    total_primes = 0 
    for value in numbers:
        if is_prime(value):
            total_primes += 1
    return total_primes


def main():

    numbers = [50_000_000, 40_000_000, 30_000_000]

    start = time.time()
    results = total_primes(numbers)

    end = time.time()

    print("Results:", results)
    print(f"single thread time: {end - start:.2f} seconds")
#
results = str(for total_primes in numbers) -> int
rapid chasm
#
start = time.perf_counter()
end = time.perf_counter()
upper basin
#

!pypi qrisp

wise cargoBOT
#

Qrisp - A high level language for gate-based quantum computing

Released on <t:1772403077:D>.

somber heath
#

@wind herald ๐Ÿ‘‹

wind herald
#

i dont understand u speak english

somber heath
wind herald
#

I don't understand English very well.

somber heath
#

I'm sorry. It's the only language I know. ๐Ÿ™‚

wind herald
#

I'm new to Python and Visual Code.

somber heath
#

@tardy coral ๐Ÿ‘‹

wind herald
#

Where should I study?

#

chat

#

i dont understand speak

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.

wind herald
#

thanks

somber heath
wind herald
#

I want to write malware to retaliate against those who wronged me.

somber heath
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

wind herald
#

oh

somber heath
wind herald
#

oh

#

I have a question.

somber heath
#

Ask it.

wind herald
#

I'm using Windows and I want security like hackers do.

#

Which one should I use?

#

Linux?

#

I use a ThinkPad X270

#

very laggy

somber heath
#

There is no such thing as secure. There is only more secure and less secure. If you want security, discard Windows.

somber heath
#

Linux, depending on the distribution, is generally a better choice.

wind herald
#

how to download

somber heath
wind herald
#

wait me

#

I share my screen

somber heath
#

Maintain good data management practices. Data loss is a risk when installing an operating system.

tidal salmon
#

!starify 1259470947736490046

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied superstar to @wind herald until <t:1776353346:f> (1 hour).

#
Superstarified!

Your previous nickname, โƒŸ, was so bad that we have decided to change it. Your new nickname will be Nicki Minaj.

You will be unable to change your nickname until <t:1776353346:f>. If you're confused by this, please read our official nickname policy.

somber heath
#

How computer literate are you?

wind herald
#

hmm

somber heath
#

User mistakes can cause data and function loss.

wind herald
#

40%

wind herald
#

I can reload

#

@somber heath

#

where are you

#

i need you

#

hey @worldly sky

wind herald
#

@winter plinth

#

Do I need a USB drive to download Linux?

#

i dont understand

#

chat pks

#

pla

#

pls

#

yo

#

hassan

#

@hexed dust

wind herald
hexed dust
wind herald
#

Can it be used on Linux?

hexed dust
#

No. Windows and Linux have different files filesystems format

wind herald
hexed dust
#

Can you open you mic?

wind herald
#

no

hexed dust
#

Better I would speak

wind herald
#

I don't know how to speak English

#

I use translation

hexed dust
#

Ohhh

wind herald
#

I can share my screen with you.

hexed dust
#

What's your language?

wind herald
#

viet nam

hexed dust
#

Better DM me

#

I can guide Better there

wind herald
#

oke

livid niche
#

@somber heath i made a pretty cool python script but it looks a bit rough

import sys
import os
import math

file = sys.argv[1]
name = os.path.basename(file).split('/')[-1]

bmpHeader = bytearray(b'\x42\x4D\x86\x00\x00\x00\x00\x00\x00\x00\x36\x00\x00\x00\x28\x00\x00\x00')
bmpInfoHeader = b'\x01\x00\x18\x00\x00\x00\x00\x00\x50\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

if file.endswith('.raw'):
    with open(file, 'rb') as binary_file:
        source = bytearray(binary_file.read())
    rawdata = os.path.getsize(file) + 54
    bmpsize = math.floor(math.sqrt(rawdata / 3))
    bmpDimension = bytes.fromhex(bmpsize.to_bytes(4,'little').hex())
    bmpHeader.extend(bmpDimension)
    bmpHeader.extend(bmpDimension)
    bmpHeader.extend(bmpInfoHeader)
    bmpHeader.extend(source)
    nameconvert = name.removesuffix('.raw') + '.bmp'
    with open(nameconvert, "wb") as binary_file:
        binary_file.write(bmpHeader)


else:
    print("not raw")
    exit
#

converts a raw headerless file into a bmp

#

by constructing the bmp header properly

#

audio as a image

livid niche
#

its very interesting further you zoom in

paper wolf
livid niche
jaunty socket
#

cocking

livid niche
#

fair, i forgot about pep 8

#

i shoudl read pep 8 again

#

ah cool

astral raptor
#

hey gang, cant chat right now, just thought i might listen in for a bit

livid niche
#

what i did was i didnt really modify the data of the source file, i just build a bmp header from scratch

astral raptor
#

its been a while, maybe even a year

livid niche
#

i divide the file size measured in bits by 3 since rgb

#

and square root that

#

and floor it

#

and boom thats the dimensions

#

the biggest challenge was getting it in little endian format

#

a lot of languages like to write binary in big endian which is annoying

#

because in the bmp specification the data needs to be little endian for it

errant locust
#

hi @somber heath

jaunty socket
#

Fort & Manle perfumes

#

Bojnokopff

errant locust
#

that's not russian

jaunty socket
#

clion

errant locust
#

c lion

#

cologne

#

english is weerd

livid niche
#

colonoscopy

errant locust
#

colon

#

koh - lone

livid niche
#

semicolon

errant locust
#

from romantic (?) to possibly cannibalistic

jaunty socket
#

smill wear

somber heath
#

Smell good?

jaunty socket
#

smell wear

#

wear collonge

#

I wearing Cologne

paper wolf
somber heath
#

cologne

livid niche
paper wolf
#

Weird

paper wolf
#

I just say "I spray perfume"

livid niche
#

what is this

paper wolf
errant locust
#

@jaunty socket i knew someone who wore cologne after exiting a swimming pool

livid niche
#

right?

paper wolf
#

Yes

livid niche
#

ah

#

mine is a bit different, it slurps up a source file and generates a bmp header for it

#

and creates a file with that header attached

jaunty socket
#

during my course cologne

paper wolf
#

The idea was manually processing files without libraries

livid niche
#

ah ok

paper wolf
#

Ghazi's accent sounds nicer now

somber heath
#

Is there a practical purpose to wearing cologne while I study?

livid niche
paper wolf
#

Lol ๐Ÿ˜†

somber heath
livid niche
#

mosquitos and in your case, magpies

paper wolf
#

What's the difference between cologne and perfume????

somber heath
#

Well, they're on the lawn right now.

paper wolf
#

We use word "perfume" here mostly

errant locust
#

cologne is a type of perfume

paper wolf
#

Oh

errant locust
#

"english isnt a gendered language" /j

livid niche
errant locust
#

10 languages in a trench coat

paper wolf
#

We should use latin or something same as global language.....

errant locust
#

butler and housemaid

livid niche
#

you arent wearing a bicycle helmet so ig you are safe @somber heath

paper wolf
#

Yum

errant locust
#

i just realized

#

being up for something is the opposite of being down for something

#

well

#

not exact opposites

#

there's also "what's up"

errant locust
#

@paper wolf idk just playing minecraf

#

t

paper wolf
#

Oh cool

wind herald
#

.

hexed dust
paper wolf
#

I tried it with debian and fedora, both worked

hexed dust
static herald
#

@somber heath can not getting voice verification

tribal osprey
#

hi

#

I'm from Pakistan

#

wbu

#

wondering how did u ping me out of air lmao
i was never active in this thread ๐Ÿค“

#

how old are u

#

nice
are u also in web dev

tribal osprey
#

hmm fullstack web?

#

do u freelance or remote work btw

#

hmm

#

u have tech skills and major in bio
"The starc contrast amazes me" lmao ๐Ÿ˜†

#

well, you've a skill so why don't u try getting some bucks

#

Actually I'm 19 yrs old the pfp I've is like from 2016 or 2017 idr exactly
I'm new to tech learning html rn so web development i'm gonna learn finna

#

hmm if u're comfortable u should try
u certainly know about freelance stereotypes here
"dollars mei kamaana"

#

CS ๐Ÿ’€
I've just took this major cuz I had no other choice

#

BUt its interesting

strange plover
#

@tribal osprey bro

tribal osprey
#

oh alr
and my pfp was a bit uncanny thats why?

somber heath
#

@autumn heron ๐Ÿ‘‹

autumn heron
#

๐Ÿ‘‹

somber heath
#

!beginner

wise cargoBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

paper wolf
#

wait its broken

#

im asking @autumn heron is it your first time, or you have atleast expereince on programming in general

#

@somber heath pork and beans

paper wolf
somber heath
paper wolf
#

heres my attemp

somber heath
#

@balmy rain ๐Ÿ‘‹

balmy rain
#

K

somber heath
#

@fallow zealot ๐Ÿ‘‹

fallow zealot
#

it doesnt work

somber heath
#

@junior hatch ๐Ÿ‘‹

fallow zealot
#

ohh

#

ok i get it

#

ima just frien you ok

#

ohhhhhhhhh

#

ok

somber heath
#

@whole bear ๐Ÿ‘‹

whole bear
#

Hi

#

Yes

#

Ya I am new

#

Do u guys know about python

inner hill
#

Hello @final oracle

final oracle
#

How are you?

#

I am my in this srv

inner hill
#

How are you ??

#

#voice-verification

final oracle
final oracle
#

Btw which skills you have? Like programming,web dev?

#

Etc etc

opaque sparrow
#

can we build real UI's with python?

#

like i mean

#

tkinter and django are the things that come to my mind

inner hill
somber heath
#

@surreal nacelle ๐Ÿ‘‹

surreal nacelle
#

@somber heath hi ๐Ÿ‘‹

#

I'm joe and I'm begginer in python programming

somber heath
#

!beginner

wise cargoBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

surreal nacelle
#

Thanks

somber heath
#

@silent hawk ๐Ÿ‘‹

silent hawk
#

yooo

somber heath
#

@willow light

solar silo
#

Hello

#

Canโ€™t talk yet

#

@severe cobalt

wind herald
#

where the mic

inner hill
sand quest
#
def is_prime(n):
    if n < 2:
        return False
    if n == 2:
        return True
    if n % 2 == 0:
        return False

    sqrt_n = int(math.floor(math.sqrt(n)))
    for i in range(3, sqrt_n + 1, 2):
        if n % i == 0:
            return False
    return True

def main():

    numbers = [50_000_000, 10_000_000]

    true_count = sum([is_prime(n) for n in numbers])

    start = time.time()
    result = print(true_count)
    end = time.time()

    print("Results:",result)
    print(f"single thread time: {end - start:.2f} seconds")

if __name__ == "__main__":
   main()
inner hill
#

@somber heath , Hey you there

inner hill
#

Hey , If you wondering why i pinged you , it was because somebody asked for help for the above is_prime code , i thought that you can help him

somber heath
#

@hearty flame ๐Ÿ‘‹

hearty flame
#

hello @somber heath

somber heath
#

@fair badger ๐Ÿ‘‹

fair badger
#

@somber heath hello

somber heath
fair badger
#

Ok

hearty flame
#

haha not active enoguh

somber heath
#

@arctic salmon ๐Ÿ‘‹

arctic salmon
#

hiii @somber heath

hearty flame
#

1:30 hour with just 1 chat can be verified?

#

damnnn

#

bruhhh

#

๐Ÿคฃ i just active todaay it gonna be a while

arctic salmon
#

finally passed my voice verification

strong bough
#

Nice talking with you guys, I gtg

hearty flame
#

there exist such people

strong bough
#

๐Ÿ‘‹๐Ÿป

hearty flame
#

@somber heath , do you think set thoery a good thing to have for programming?

quartz beacon
#

Hii

somber heath
#

@narrow abyss ๐Ÿ‘‹

narrow abyss
#

hi

hearty flame
#

hi

quartz beacon
narrow abyss
#

i want learn python

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.

quartz beacon
#

OwO

hearty flame
quartz beacon
somber heath
#

@astral flume ๐Ÿ‘‹

astral flume
#

Hi

#

Am new here

#

Am beginner

#

@somber heath am beginner

somber heath
#

!beginner

wise cargoBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

astral flume
#

Oh

#

What is your nationality?

#

Btw

#

๐Ÿคฃ

#

Bro is judging my dp

quartz beacon
#

dp?

astral flume
#

@somber heath bro why your carring about my dp

quartz beacon
#

...

astral flume
#

?

#

I cannot hear

#

Pls chat

#

The voice quality sucks

quartz beacon
#

Chill pls

#

What I said

astral flume
#

Yep

#

Bro disabled my mic

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.

somber heath
#

@desert shard ๐Ÿ‘‹

quartz beacon
#

Automobile-dio

#

Bike-dio

somber heath
#

@velvet forge ๐Ÿ‘‹

quartz beacon
#

Is it mad as in angry or insane

#

"the mommy has gone mad"

velvet forge
#

Hello guys

#

I am having a issue in my code

#

can you guys help me

quartz beacon
#

Describe the issue

velvet forge
#

Otherwise mommy might get mad for sure

#

lemme stop my music

quartz beacon
velvet forge
#

though I cannot talk because for some reason I am not very much active in this server

#

Also can I send the screenshot of my error and code in here?

#

@somber heath @quartz beacon

somber heath
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

sturdy panther
#

I probably am over the sea.

velvet forge
#

As you can see in the code I think my looping logic is pretty much on point but when I am checking the output on terminal I can see some words getting repeated what should I do. Even in the screenshot of output you can see the word 'expenditures' is getting printed twice

somber heath
velvet forge
#

@somber heath sure I can send the code in text

#

def count_word(path):
    """Creating a list and count of unique words in the book"""
    try:   
        contents = path.read_text(encoding='utf-8').lower()
    except FileNotFoundError:
        print(f"File {path} is not avialable at given location")
    else:
        words = contents.split()
        for word in words:
            word_count = words.count(word)
            print(f"Word '{word}' is repeated {word_count} times.")

path = Path("CIA_facebook.txt")
count_word(path)
quartz beacon
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

peak depot
#
Like this
quartz beacon
#
print('Hello world!')
#

look

#

it even uses pretty colors

velvet forge
quartz beacon
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

velvet forge
#

Guys hold on tight I am trying to create the code in chat

velvet forge
#

No I haven't tried using set

#

yes 100%

#

what is regex?

#

Ohh thanks for that but can you also tell me what is the issue in this code?

#

I got to knew why it's happening

#

thanks for talking me out of it

#

really helpful guys

quartz beacon
#

so what's the issue

velvet forge
#
            word_count = words.count(word)
            print(f"Word '{word}' is repeated {word_count} times.")

Here I am using word but word can be there multiple times in the list that's why it's getting repeated

#

like "the" could be at first index or at the last index or many in between so that's why it's happening

#

so if I just take the unique word out of every list and then count it, it will work right guys?

#

How about I do the fix and get back to you @somber heath

#

If didn't came back it must have broken my computer by that time

#

hahahahaha

#

what happened to your cat

#

@peak depot Why are you getting surgery?

#

ohk my bad sorry for that

#

You will be fine I can assure that

#

too much info is pain

#

but I guess the odds of dying in surgery is less than 10%

#

how about we google it

somber heath
#

!d collections.Counter

wise cargoBOT
#

class collections.Counter(**kwargs)``````py

class collections.Counter(iterable, /, **kwargs)``````py

class collections.Counter(mapping, /, **kwargs)```
A `Counter` is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The `Counter` class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter)...
velvet forge
#

How can I also get better at oops

#

i found that topic hard

#

I am reading "Python Crash Course - Eric Matthes" the book was too good to be true

#

but sitll I know everything what you just told me deeply

#

but using Oops is getting hard

sturdy panther
#

Oh. Didn't know about Counter.

velvet forge
#

also does anyone know how long do I need to be active in the server to activate my microphone in voice chat

sturdy panther
#

Since 3.1. How did I not know about this ๐Ÿฅฒ

velvet forge
#

@peak depot are you russian? Your accent sound like that

peak depot
#

I was quoting Borat

velvet forge
#

3 days damnnnnn

#

like it is counted by hours

#

or just days

#

Does anyone know how is server was created?

#

@somber heath How old are you now it feels like my grandpa is telling me a story of how coding started

#

How old are you guys?

#

can someone ask this in server or not

#

But I will react very well

#

@somber heath your voice is so suitable to give a speech for president of USA

#

i will be back

#

you should give a speech right now

#

about how you will solve the war

#

Like you are president of usa @somber heath you should do that

inner hill
#

Current US President needs translator for english to english translation

velvet forge
#

@inner hill maybe we should send a resume of @somber heath

#

We will send USA to you @somber heath

#

If they need you they should come to you

#

why you going to them we will setup USA as your neighbour

velvet forge
#

That jealousing

sturdy panther
#
None

```python
None
```

willow light
somber heath
#

@nocturne orchid ๐Ÿ‘‹

nocturne orchid
#

How can I speak

#

I am new

somber heath
nocturne orchid
somber heath
somber heath
#

An unfortunade barrier to participation that tends to keep out the screamers while permitting the genuinely interested.

#

@snow eagle ๐Ÿ‘‹

snow eagle
#

๐Ÿ‘‹

somber heath
#

@twin bronze ๐Ÿ‘‹

#

@fallen timber ๐Ÿ‘‹

fallen timber
astral flume
#

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

astral flume
#

Oh fuck

somber heath
astral flume
#

Bro my gmail cannot be verified

astral flume
astral flume
#

Hey?

somber heath
astral flume
#

I mean it's asking to verify gmail and plus i need to be in server for atleast 3 days

somber heath
#

What's asking to verify gmail? Discord?

astral flume
#

Am giving gmail it says to change

somber heath
#

What kind of verification? That bullshit id facescan shit?

astral flume
#

Normal discord verification we do with gmail

#

Btw which country you belonged? Btw am Indian

somber heath
#

๐Ÿฆ˜

astral flume
#

Bro is again judging my dp

somber heath
#

๐Ÿ‡ฆ๐Ÿ‡บ

astral flume
#

Oh wow

#

Which City btw?

somber heath
#

If a meteor of sufficient size hit Melbourne, I'd know about it briefly.

astral flume
#

I sent a friend request join it

somber heath
#

I don't accept friend requests.

#

At least not outside of exception.

twin bronze
#

hlo

#

Myself Robin

quartz beacon
somber heath
#

I would know about it for a time, then I would not.

quartz beacon
#

This joke only works in USA because of how many places are desolate

#

Like wyoming

somber heath
#

Better desolate than desonever.

#

Desoontime being preferable.

quartz beacon
#

Desoontide is what they say in Germany when you sneeze

somber heath
#

Though when arriving at a location, I prefer to aim for five minutes early.

#

Give or take.

quartz beacon
nocturne orchid
past hinge
#

ok

round moat
#

hi

inner hill
#

Hi

inner hill
#

munroe island

@modest shale

pale needle
#

Hello guys

oak totem
#

hi

pale needle
inner hill
pale needle
#

I still dont have the requirements

inner hill
#

Ok

You have been here for more than three days

pale needle
#

Yes

#

I dont have the 1 and a half hour of text in chats

somber heath
#

@long quartz ๐Ÿ‘‹

somber heath
#

@safe hound ๐Ÿ‘‹

modest shale
#

@inner hill did u look in to it?

#

well found or right fit?

inner hill
#

No

I haven't heard that

I saw that website and it looks good and i will look into it

jaunty brook
#

@somber heath did u know where is debarshi?

elder spade
amber raptor
#

What horror show is this?

somber heath
#

@pure dew ๐Ÿ‘‹

elder spade
#

that's better

amber raptor
#

Are we just creating programming nightmares now?

elder spade
#

"ni i tok e si!
nak ni i su e nak es Kinu os!
nak si i su e ke?
si i sik e ke?"

#

"||i [v] greet [o] you!
name me [v] is [o] (Kinu)!
name you [v] is [o] what?
you [v] seek [o] what?||"

oblique raven
#

Qwhy i cant speak

long quartz
modest shale
#

@amber raptor do u use codex ?

#

he afk?

#

really?

#

even the senior use it

modest shale
#

guys @amber raptor @limber anchor @calm ginkgo @undone frost CAN u guys talk about how people get hire instead of how they get rejected........

limber anchor
#

im self employed

amber raptor
cerulean ridge
#

@amber raptor auction

somber heath
#

@mighty robin ๐Ÿ‘‹

mighty robin
#

hi

#

i dont have permision to talk

#

๐Ÿ™

#

im lazy to

#

๐Ÿ™‚

#

;-;

#

btw i dont have mic in pc, i need login in my cellphone to talk too

#

milien, you have a diferent acent

#

yes yes, but its remember some latin brazilian acent

somber heath
#

@fading spear ๐Ÿ‘‹

fading spear
somber heath
#

@cursive trout ๐Ÿ‘‹

mighty robin
#

nugget?

#

dog name is nugget?

#

is good name to dog

#

xd

#

funny i will adotpt this adjective

cursive trout
#

still can't speak, I just joined

#

yeah

#

I read it

mighty robin
#

i can get ban if i dont verificate?

cursive trout
#

guess I'll sit for a few days first

#

yeah, summer

#

I guess so, it's still kinda cold here

#

I just started getting into programming a few days ago

mighty robin
#

i wondering is cool here ๐Ÿ™

#

live near beach in tropical zone is not to cool

#

i expected more

#

;-;

cursive trout
#

welp, guess I'll go, it was nice talking(?) to you guys

#

bye bye

mighty robin
#

bye

#

have gn

#

what you do for living opalmist?

#

oh

#

like python professor?

#

xd

#

i use python for some studies or little projects

#

im trying doing a dotfile manager for linux

#

but it hardly than i expected

#

YES REQUIRE A LOT OF MENEGERING XD

#

its realy a headache

#

but im patienly building

#

its like

#

wut

#

i dont get ir

#

it*

#

its not all .files

#

some espefics

#

.configs

#

to be honest

#

idk if i understand correctly (lenguage barrier), but im doing to this to make easier to backup rices

#

its like to much manual

#

XD

#

in the worst case i just will get crazy

#

;-;

#

backrooms?

#

oh

jaunty brook
somber heath
#

@obtuse perch ๐Ÿ‘‹

obtuse perch
#

Heyy

#

Do you any one who does prompt engineering?

somber heath
#

You could try asking in one of the offtopic category channels, alternatively, you might get lucky in #data-science-and-ml.

#

What sort of prompt engineering are you aiming for?

obtuse perch
#

Image generation

#

I am in big trouble now

somber heath
#

What kind of image are you interested in generating?

obtuse perch
#

Virtual Try On

somber heath
#

@wise heron ๐Ÿ‘‹

runic nexus
#

hi

somber heath
#

So "Here's a photo of me, what do I look like in these various outfits?" kind of thing?

obtuse perch
somber heath
#

Professionalism is not neccesarily commensurate with scale. That aside, I'm not sure I understand.

obtuse perch
#

Which I placed at textiles

#

And customers come and try on dress

somber heath
#

I'm not sure what you mean by kiosk in this context. I'm also not sure what is meant by placing kiosk at textiles.

obtuse perch
#

So I need to perfect my prompt

somber heath
#

I only just now saw it.

somber heath
#

@sudden bison ๐Ÿ‘‹

sudden bison
#

ola

somber heath
boreal bison
#

Hi

wise heron
somber heath
#

@whole bear ๐Ÿ‘‹

#

@brittle rover ๐Ÿ‘‹

brittle rover
#

Hi

#

Umm can u unmute me

#

Hmm

#

Idk how to do all that stuff cause im 16

#

Soo

#

Just saying that cause i dont really wanna spend time doing that
And just wanted to say hi

#

Hi

#

How r u doing

#

?

#

Ig ur feom the uk

#

From*

#

An i right ?

#

Us ?

#

Hmm

#

Tell me bro

#

Ohh

#

Nice

#

I an from Pakistan

#

Ant tips on being mature

#

?

#

Hmm

#

Well

#

Thanks for ur time bro appreciate it

#

Hope u have a great day

#

Bye

somber heath
#

@charred silo ๐Ÿ‘‹

charred silo
#

Hi
I cant voice tho

somber heath
#

@covert river ๐Ÿ‘‹

somber heath
charred silo
#

I havent been active for long enough here

somber heath
#

You're nevertheless welcome to hang out.

#

@raw oasis ๐Ÿ‘‹

somber heath
#

@ebon patrol ๐Ÿ‘‹

ebon patrol
#

how to get permission to soeak

#

yo

somber heath
#

@weary lark @rustic olive ๐Ÿ‘‹

rustic olive
#

why i cant talk

ebon patrol
#

voice get failed

rustic olive
ebon patrol
#

to have right to speak

rustic olive
#

i need to chat to talk?

ebon patrol
#

i;m

#

engagiung

rustic olive
#

what's minmam of massage

ebon patrol
rustic olive
#

a7a

ebon patrol
#

Been consistently active for 1 hour 30 minutes in text chats.

#

@somber heath did you go to a college?

#

i have a course of computational complexity

#

did you

#

is it even useful?

#

you;re a cs bachelor ?

#

i solve every problem with log n time

somber heath
#

@dusty lava ๐Ÿ‘‹

ebon patrol
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

ebon patrol
#

i won;t leave you alone buddy

#

!voice @ebon patrol

wise cargoBOT
#
Voice verification

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

ebon patrol
#

why should i

#

i ain;t evel

#

evil

#

i'm not mean

#

why

#

i always thought it like a betrayal

#

!voice @ebon patrol

wise cargoBOT
#
Voice verification

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

ebon patrol
#

am i stupid or i do smth wrong

#

nah you good you good

#

yup

#

i think so

#

you know it's kinda sad when someone who is nice to u leave

#

@somber heath

#

lol

#

this college that you told

#

?

#

it's a goof buddy

#

chilkl

#

lol

#

less amusing ?!

#

am i a clown to you ? ><

#

to entertain you

#

mb

#

not in that way

#

but i kinda resemble

#

to what they do

#

lol

#

rami malek?

#

or

#

Elliot

#

alderson

#

indeed?

#

rami malek is legend

#

You have not been active enough on the server yet.

#

am i not active enough

#

yo

#

so meticulous

#

i am calm

#

i have patience

#

nah

#

ain't possible

#

every 20 mins

#

what an anarchy

#

sounds bloody interesting

#

@somber heath

#

i gotta go

#

i will have final tomorrow on cc

#

cya

#

mate

proud tangle
#

o/

#

lol

#

Lord save me

#

sweet fuck

#

50 fuckin dollars

#

tbh it's not like discord's ui was unique

#

yeah

#

they hired a designer

somber heath
#

@drifting fern ๐Ÿ‘‹

#

@fiery shore ๐Ÿ‘‹

fiery shore
#

hellow

cursive trout
#

yo

#

looks like I can't speak yet

#

need to be active for 1 hour and 30 minutes is

#

uhhh

#

yeah

#

3 days, need one more

#

dang

#

do you code?

#

or nah

#

nice

#

whoops

#

everyone's busy around me

#

a

#

kinda, maybe I need to do something too?

#

I'm in front of mmy laptop while everyone's preparing food

#

lol

#

alright

#

for my own satisfaction I think

#

yeah

#

our kitchen's kinda big but uhh

#

there's 4 people

#

doing stuff

#

oh well

#

they're eating

#

a

#

they're calling me out

#

"come eat"

#

lol, I'll be off for a while

#

brb, dinner time

tall shore
#

@analog bane

#

i havent been active enough

#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

tall shore
#

man

#

i wish it would show me the hours i have on this

#

i wanted to share my screen coding

#

im coding an offbrand oregon trail

somber heath
#

@dapper ingot ๐Ÿ‘‹

dapper ingot
#

no idea

#

whats happening

#

not taking my verification

#

oh

#

actually yes ig

#

i am going ig my mom wake up

#

bye

quartz beacon
#

The white-breasted woodswallow (Artamus leucorynchus) is a medium-sized passerine bird which breeds from the Andaman Islands east through Indonesia and northern Australia. The name "woodswallow" is a misnomer as they are not closely related to true swallows. Instead, they belong to the family Artamidae, which also includes butcherbirds, currawon...

timber osprey
#

hi

#

I am new here!

somber heath
#

@timber osprey ๐Ÿ‘‹

timber osprey
somber heath
#

@manic remnant ๐Ÿ‘‹

timber osprey
#

@quartz beacon ๐Ÿ‘‹

#

Why can't I speak?

somber heath
timber osprey
#

@quartz beacon are you ukranian?

quartz beacon
timber osprey
#

๐Ÿ˜†

quartz beacon
#

Orchiectomy

somber heath
#

@forest sand ๐Ÿ‘‹

#

@sacred garden ๐Ÿ‘‹

#

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

somber heath
#

@swift kayak ๐Ÿ‘‹

swift kayak
#

hi

swift kayak
#

its not letting me

somber heath
abstract peak
#

.

gusty hare
#

Idk why this doesnt work, the original frame size is still there even though it should be smaller

Hide:

self.widgets_to_hide_size_policies = []
self.widgets_to_hide_visible = []
self.widgets_to_hide_maxsize = []
for wd in self.widgets_to_hide:
    self.widgets_to_hide_size_policies.append(wd.sizePolicy())
    self.widgets_to_hide_visible.append(wd.isVisible())
    self.widgets_to_hide_maxsize.append(wd.maximumSize())
    wd.setMaximumSize(1, 1)
    wd.hide()
    wd.setFixedSize(0, 0)
    wd.setSizePolicy(QSizePolicy.Ignored, QSizePolicy.Ignored)
self.master.window.layout().update()

Show

for i in range(len(self.widgets_to_hide)):
    self.widgets_to_hide[i].setMaximumSize(self.widgets_to_hide_maxsize[i])
    self.widgets_to_hide[i].setSizePolicy(self.widgets_to_hide_size_policies[i])
    self.widgets_to_hide[i].setVisible(self.widgets_to_hide_visible[i])
self.master.window.layout().update()
magic falcon
#

hello someone use mysql here i want to ask what project i should i make for data analyst like linking it with python

cerulean sage
#

hi ben

#

hi ai

#

how are you all guys doing?

cinder mirage
#

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

sweet sorrel
#

@wind raptor fix my shiii

#

i left by mistake