#voice-chat-text-0

1 messages ยท Page 742 of 1

shut goblet
#

here is what i made @cyan quartz

#

caan u add modulo and paste here?

tidal salmon
#
while big >= 0 and goal >= 0:
    goal -= 5
    big -= 1

I think this is

goal, big = divmod(goal, 5)
#

let's see

hushed elm
#

found a cutiepie

tidal salmon
#

!e

big, goal = 45, 56
while big >= 0 and goal >= 0:
    goal -= 5
    big -= 1
print(big, goal)

big, goal = 45, 56
print(divmod(goal, 5))
wise cargoBOT
#

@tidal salmon :white_check_mark: Your eval job has completed with return code 0.

001 | 33 -4
002 | (11, 1)
tidal salmon
hushed elm
hushed elm
shut goblet
#

what is wrong with this syntax?

cyan quartz
#

@shut goblet do you have to use exactly goal bricks?

rugged root
#

You're doing assignment = instead of comparison ==

cyan quartz
#

i mean do you have to use exactly the # of bricks to make the goal?

shut goblet
#

no

cyan quartz
#

or just less than or equal to that number of bricks

shut goblet
#

it can be less

#

<=

somber heath
hushed elm
rugged root
rich cloud
#

kinesys keyboards are cool

#

kinesis*

hushed elm
cyan quartz
#

@shut goblet

def make_bricks(small, big , goal):

    return goal % 5 <= small and goal-(big*5) <= small

assert make_bricks(3,1,8) == True
assert make_bricks(3,1,9) == False
assert make_bricks(3,2,10) == True```
rugged root
cyan quartz
#

!e

def make_bricks(small, big , goal):

    return goal % 5 <= small and goal-(big*5) <= small

assert make_bricks(3,1,8) == True
assert make_bricks(3,1,9) == False
assert make_bricks(3,2,10) == True```
wise cargoBOT
#

@cyan quartz :warning: Your eval job has completed with return code 0.

[No output]
paper forge
#

I do clean it every 2 days haha

#

(removing keys and doing a bath)

cyan quartz
rugged root
halcyon flare
paper forge
#

Got 450 dpi

#
  • 1.00 sensitivity in CSGO
#

Need to do almost 45-50 cm to do a 220ยฐ

#

so yeah

#

Low sensitivity is the key haha

limber blaze
#

why in the world would someone when told to group agents in a dictionary create an array of dictionaries with the attribute to group by as an element

#

i just don't understand the thought process

uncut meteor
#

i have 0 sense

hushed elm
paper forge
#

So then, you just have to put a tutorial, to explain how to use import, to actually read the code of conduct

#

It's THAT simple

limber blaze
#

is being powerful communist in china a reason to befriend someone

#

?

limber blaze
#

okay

#

cool i will be friend this man

uncut meteor
#

Salubriousness

paper forge
#

Turn a people into an illiterate

#

(magic harry potter spell)

#

(i honestly don't know what that means)

rugged root
#

!otn a cheese-infused-europeans

wise cargoBOT
#

:ok_hand: Added cheese-infused-europeans to the names list.

paper forge
#

Isnt that the game about programming in assembler ?

#

For a factory in China ?

shut goblet
#
def round_sum(a, b, c):
  a1 = round10(a)
  b1 = round10(b)
  c1 = round10(c)
  return a1+b1+c1

def round10(num):
  if num[-1] >= 5:
    num += 10 - num[-1]
    return num
  elif num[-1] == 0:
    num -= num[-1]
    return num
  else:
    return num
#

anyone know why this isnt working?

uncut meteor
#

what is the type of the parameter num for round10

shut goblet
#

wym?

uncut meteor
#

can you show me an example of you using the methods

shut goblet
uncut meteor
#

!e

my_num = 16
print(my_num[-1])
wise cargoBOT
#

@uncut meteor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | TypeError: 'int' object is not subscriptable
uncut meteor
#

i'm unsure what you are tryna do with [-1] but its not proper syntax

#

can you tell me what you are tryna do with that code

shut goblet
#

make it round up

#

get the units

uncut meteor
#

ah

#

so you are tryna acess that last digit

shut goblet
#

yyeee

#

to see how to round it

#

0-4 = 0

#

5-9 = 10

uncut meteor
#

you could just make it a string and pull the last character and convert back to it, although I'm sure there is a better way to do it using modulus

#

!e

my_int = 57

temp_str = str(my_int)
if int(temp_str[-1]) >= 5:
  print("Round up")
else:
  print("Round down")
wise cargoBOT
#

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

Round up
amber raptor
#

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

amber raptor
jade stream
#

I just wish that companies worth millions or billions of dollars would invest in platform specific applications.

#

Yeah

#

Just not Electron apps

strange plank
#

someone mentioned a lightwight windows maybe OS? i didnt quite catch all of it but theres "Windows 10X" or windows 10 10 which is windows for lightweight mobile devices (its basically a skin for windows 10)

amber raptor
#

Windows 10 IoT

uncut meteor
jade stream
#

use arch linux so you can say that you use arch to people

uncut meteor
#

ty

paper forge
#

Well, i'll leave you here. Sorry for not talking that much with a microphone, still impressed by you guys xD

#

Cya

olive echo
#

where did the off topic vc go?

honest pier
#

vanished

olive echo
#

damn.

#

it was good to us

#

had to go get milk I guess

somber heath
#

The whiter, the cheesier.

#

A ring of cheese around the world.

#

Equatorial correlation.

#

The whiter you are, the more likely you are to be lactose tolerant, iirc.

#

I'm not sure of the mechanism.

young tundra
#

hey

zealous wave
narrow mango
#

i need help ! i'm a beginner and i want to know how we can find the position of a word but we have two of this word like 'hello and welcome and good to see you' we have two of the word 'and' can you tell me what we use to know the position of the second 'and' not for only this text for any other text please and thank you

somber heath
#

@tidal salmon Was it Borat?

tidal salmon
honest pier
#

regex can probably do that

somber heath
#

@narrow mango You can use python to do this, howev...that.

honest pier
#

although, it's not necessary

#

!d str.find

wise cargoBOT
#
str.find(sub[, start[, end]])```
Return the lowest index in the string where substring *sub* is found within the slice `s[start:end]`. Optional arguments *start* and *end* are interpreted as in slice notation. Return `-1` if *sub* is not found.

Note

The [`find()`](#str.find "str.find") method should be used only if you need to know the position of *sub*. To check if *sub* is a substring or not, use the [`in`](../reference/expressions.html#in) operator:

```py
>>> 'Py' in 'Python'
True
narrow mango
#

but how

honest pier
#

that's how

narrow mango
#

yes thank you

young tundra
#

oof i don't think i could function if i couldn't lean back a bit

honest pier
#

i'm sure you can figure that out

whole bear
#

rabbit

zealous wave
#

ayo REJ

#

get in here

olive hedge
#

๐Ÿ™

amber raptor
zealous wave
gentle flint
#

you know all the best memes

zealous wave
#

true

olive hedge
wise cargoBOT
#

6. No spamming or unapproved advertising, including requests for paid work. Open-source projects can be shared with others in #python-general and code reviews can be asked for in a help channel.

olive hedge
#

@icy axle why are you lurking here

icy axle
#

Well howdy

zealous wave
#

vester get in here

icy axle
#

Hahah, itโ€™s 10 pm and Iโ€™m gonna get my sleep schedule back on track

gentle flint
#

sleep schedule?

#

what's that

zealous wave
gentle flint
#

never heard of it

icy axle
#

I think Iโ€™ll stay in text for a minute or two

zealous wave
#
Your hosting provider has made server changes to their Railgun settings which resulted in Error 524. Go to the Cloudflare dashboard, select Speed, Railgun and either disable Railgun if it is no longer supported by the provider or test & select a working connection from the list of options
``` @olive hedge
icy axle
#

My logo is officially still again. Those squares arenโ€™t separating

olive hedge
#

haha, sad

zealous wave
icy axle
#

Yeahhh hahah

#

It was fun while it lasted

olive hedge
icy axle
#

What is that site even about? Is it meant for potential employers?

zealous wave
young tundra
#

i'm on ff with ublock origin and it looks fine

amber raptor
olive hedge
#

it is not finished at all, barely started really

icy axle
#

Ah, nice

outer sable
#

Isolation... is not good for me

gentle flint
#

Isolation, I don't want to
Sit on a lemon tree

#

you hear that, lemon?

whole bear
#
import subprocess
import os


time.sleep(1)
User =  os.getlogin()


one = 'icacls "C:/Program Files" /setowner "'
two = '" /t /c '

cacls = one + User + two

#First 
subprocess.call(cacls)


#Second
subprocess.call('wmic process where name="cacls.exe" CALL setpriority 32768')

#how do i run this codes at the same time?
#I need to first run the first to open the exe then run the second command to make it work```
young tundra
#

well that's terrifying...

gentle flint
#

most people I know couldn't smell for months afterwards

#

including myself

young tundra
#

isn't there a new strain that's more deadly now?

gentle flint
#

which was kinda problematic

#

Yeah, I was hearing that

#

mutation which originated in the UK iirc

young tundra
#

yeah the new strains are kinda creeping me out

pure path
#

its 4 in the morning and i still havn't slept

rugged root
#

Dude

#

Sleep

stuck furnace
#

Spaceship McSpaceshipface

jade stream
#

I haven't slept in 29 hours.

#

@rugged root What were you delivering?

rugged root
#

Tax documents and payroll

jade stream
#

ah

#

I was wondering what a programmer could be delivering lol

gentle flint
#

programs

#

wild guess

jade stream
#

I'll bet you a dollar he wasn't delivering programs. ๐Ÿ˜‰

gentle flint
#

weed?

jade stream
#

oh I wasn't implying that

gentle flint
#

me: asks git question
hemlock: immediately leaves

jade stream
#

maybe the winky face was too implicative of unsavory deliveries

olive siren
#

hi @ all

jade stream
#

hello

stuck furnace
#

You should check out http://pyro.ai. Looks interesting.

#

It's built on top of pytorch I think

olive siren
#

does anyone know what a ObiWan Error is?

stuck furnace
#

Off-by-one ๐Ÿ˜„

#

Like doing xs[1] to get the first element of a python array, when you meant to do xs[0].

gentle flint
#

example, I wanna print the numbers 1 through 5 and do
!e

for i in range(5):
    print(i)
stuck furnace
#

Not sure ๐Ÿค”

#

Ah, has to be at the beginning of the comment.

gentle flint
#

but that will print

0
1
2
3
4
#

so it's off by one

stuck furnace
#

I mean !e has to be at the beginning.

gentle flint
#

o

#

aha

olive siren
#

hahaha

gentle flint
#

!e

for i in range(5):
    print(i)
wise cargoBOT
#

@gentle flint :white_check_mark: Your eval job has completed with return code 0.

001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
olive siren
#

๐Ÿ˜†

stuck furnace
#

!eval
You can do this```python
print('hello')

wise cargoBOT
#

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

hello
olive siren
#

ok i get it

gentle flint
#

ah, OK

stuck furnace
#

But not this
!eval ```python
print('hello')

gentle flint
#

I'll do that next time then

gentle flint
#

an obi-wan error is a loop of some sort where the index is off by one

#

it is a type of off-by-one error, which is what your problem was an example of

olive siren
#

you mean if i use i>=5 instead of i>5

gentle flint
#

that would be an off-by-one error

#

but not an obi-wan error

#

an obi-wan error explicitly is about a loop where the index is off by one

stuck furnace
#

Have you heard of a Yoda condition?

#

It's where you do python if 1 == x: ... instead of ```python
if x == 1:
...

olive siren
#

not realy

gentle flint
#

yeah

olive siren
#

๐Ÿ˜†

gentle flint
#

a good name it is

#

use it I shall not

stuck furnace
#

Alright, I'm going to follow everyone else and go ๐Ÿ˜„

#

Might go for a walk actually. See ya ๐Ÿ‘‹

olive siren
#

See ya

vivid sapphire
#

Just joined the server today. Is the VC typically inactive like it is now?

undone idol
#

No

#

it's not

#

@vivid sapphire

faint ermine
#

its most active during ~4pm - ~8pm UTC @vivid sapphire

amber raptor
#

Euros get off School and work and there is fair amount of Americans at work

vivid sapphire
#

@hallow warren Hi

fiery hearth
#

subnetting

hallow warren
somber heath
#

Give me time to respond. I'm on ptt and on my phone and not always with it open.

#

I didn't even see who was talking.

whole bear
#

Ok

#

Hey anyone there?

somber heath
#

@whole bear Yahoy.

flat sentinel
#

yes

#

ok

#

how are you

#

today

#

yea

#

its bad

#

here also

#

good thing it started snowing

#

here

#

ye

#

im in north Macedonia

#

its a country in the Balkans

#

you sound brithish where are you from

#

so it summer for you

#

oh i wish it was summer here

#

what do you mean
we are all in a box

south lynx
#

yeah

#

I am from Bangladesh....

flat sentinel
#

well it cant be worse than last year

#

what time is for you

#

ok

#

for me its 11:27am

south lynx
#

Can you tell me what the path of full stack developer as a python based programming language...!

#

Yes

#

Web development

somber heath
#

Django, Flask

flat sentinel
#

yes they are good for lern

#

but not good

somber heath
#

Twisted

flat sentinel
#

for performance

south lynx
#

Front end - Html, CSS, JS and Backend Python as web Framwork Django, flask?

flat sentinel
#

yea

#

start with css and html

#

then js

south lynx
#

ok, can you give me some resources?

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.

south lynx
#

for learning.. HTML and CSS

flat sentinel
#

i can send a vid

south lynx
#

ok, Thanks for your advice

flat sentinel
#

here is a list

somber heath
#

Here's another.

#

[]

#

It's a little empty, though.

short canopy
#

Yoo Broh

#

XD

#

Idk Broh i like it

#

BTW how can i verify my voice!

#

Aaaah i get thanx brooh

#

Anyways m working on a desktop app

#

With a DB

#

But i have

#

A question

#

Aaah Okey xD sorry

#

DB Imran Database

#

Anyways

#

Wait

#

When I'll finish the project

#

And I'll give it to people to try it

#

How the app

#

Will be able to access

#

To the database!

#

Aaah soo i need to make a web server and connect it with the database and the app!

#

Broh m not asking about the frameworks or Librarys m asking how the app will be able to access the same database from a lot of Hardwares

stuck furnace
#

I would start there.

polar wharf
whole bear
#

yeah

#

i mean

#

to a certain extent

#

haha

frozen oasis
#

sry im having connection issues

#

ill just brb

whole bear
#

np

scenic geyser
#

Gyroscope adds more info to accelerometer

whole bear
#

in fact

#

brb

#

bagels r so cheap here

#

i have an entire pack rn

#

hey guys i cant talk?

#

is that weird?

rugged root
whole bear
#

it is covered red

rugged root
#

That'll tell you what's up

whole bear
#

oh okay

#

ty

#

could i make a suggestion for the verification system to become easier? @rugged root

rugged root
#

I'm always happy to hear suggestions!

whole bear
#

ty ๐Ÿ™‚

severe pulsar
#

what do you guys think of this situation?

#

both seem like the bad guy

#

but aws seems especially cruel

rugged root
polar wharf
#

In this video I explained how pedometer sensor works in iPhone. As you know iPone have Motion Coprocessor exist to detect various motion related data. Motion coprocessor collect data from Accelerometer, Gyroscope and Other sensor and
analyse it and decide pattern either user is walking, running or jumping etc. Apple native application like Heal...

โ–ถ Play video
austere linden
#

Hallo @rugged root @eternal bough

eternal bough
#

๐Ÿ™‚ I just learned to do this!
!e

print(dict(zip(string.ascii_lowercase, range(1,27))))
#

!e

import string
print(dict(zip(string.ascii_lowercase, range(1,27))))
wise cargoBOT
#

@eternal bough :white_check_mark: Your eval job has completed with return code 0.

{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 'l': 12, 'm': 13, 'n': 14, 'o': 15, 'p': 16, 'q': 17, 'r': 18, 's': 19, 't': 20, 'u': 21, 'v': 22, 'w': 23, 'x': 24, 'y': 25, 'z': 26}
frozen oasis
#

ah

#

wow

#

lol

eternal bough
#

Spreadsheets often use this alphabetical encoding for its columns: "A", "B", "C", ..., "AA", "AB", "AC", ..., "ZZ", "AAA", "AAB", "AAC", ....

Given a string s representing an alphabetical column id, return its column number. For example, given "A", return 1. Given "AA", return 27.

#

"RM" = 481

austere linden
#

Beautiful!

eternal bough
#

481 - 13 = 468 / 18 = 26

rugged root
faint ermine
bronze silo
#

hello

young tundra
#

im trying to wrap my head around it

plain dagger
#

i think you made it too complex

faint ermine
#
def copy_over_dict(the_dict, ____original):
    d = {}
    for key, val in the_dict.items():
        if isinstance(val, Callable):
            val = copy_func(val)
            val.__kwdefaults__["____ins"] = ____original
        d[key] = val
    return d
#
        def wrapper(*args, ____func=func, _____original=original, **kwargs):
            ____original = copy_func(_____original)
            _____original.____instances.append(____original)
            #print(____original.__dict__.keys())
            ____original.__dict__ = copy_over_dict(_____original.____instances[0].__dict__, ____original)
            ____func(____original, *args, **kwargs)
somber heath
#

I mean..I'm impressed.

#

Don't get me wrong.

faint ermine
rugged root
young tundra
#

lol is it the server version or sth?

#

ah

plain dagger
#

solved it with this:

class Solution:
    def solve(self, s):
        mapping = ' ' + string.ascii_uppercase
        column_number = 0
        for index, value in enumerate(s[::-1]):
            column_number += (26 ** index) * mapping.find(value)
        return column_number
rugged root
#
Official Factorio Wiki

The spidertron is a versatile lategame vehicle capable of traversing rough terrain. It, along with the car and tank, is one of three non-rail vehicles in Factorio. It's equipped with four fast-firing rocket launchers capable of manual or automatic targeting. It can be driven manually or remotely controlled using the spidertron remote. Furthermor...

young tundra
#

just stuff some fish in the gas tank

#

don't question it

#

i remember that...

#

the red eye thing really reminds me of the terminator

#

ooh ye that was a scary one

#

the second movie could get really creepy at times

faint ermine
rugged root
plain dagger
versed island
#

the entry barrier to hard tech products is just so much high

#

its like hyperloop

#

yeah

#

something thats really needs lots of investment for shipping a prototype

#

only a few organisations can venture into these areas

plain dagger
#

long live to holdings

versed island
#

its like monopolies that we can just see coming ... but cant do anything about it

plain dagger
#

oligo*

#

not mono

#

few

versed island
#

so like you cant really do anything by developing a better google earth frontend ... cauz you dont have any satellites

plain dagger
#

there are options

#

open source indeed

versed island
#

of if you use commercial platforms ... there is a high API price

#

like planetlabs

plain dagger
versed island
plain dagger
#

you dont need satellites for that

young tundra
#

how does a crowdfunded satellite work?

#

ive never heard of that

#

ohh that makes more sense

stoic ore
#

HEY

versed island
#

is there some website/group that maintains the Portable Document Format standard

#

not private

#

i mean some org

#

like ANSI

#

ISO

#

may be never i guess

#

pardon

#

if possible

#

yeah

#

haha

#

hmm

normal hinge
#

Guys, what is static binary?

#

yes

#

we do get python exe

plain dagger
normal hinge
#

watch this

#

4:33

#

i didn't understand what he is saying

#

so thought to ask u guys

whole bear
#

thats interesting

somber heath
#

๐ŸŽต If I could put Python in a bottle, the first thing that I think I'd do, would be to send my program to all my dear friends for them to run it the same as I do...

scenic geyser
#

You can run .exe in Mac with Wine or something

somber heath
#

Numba.

scenic geyser
#

What's statically typed?

amber raptor
#

!e python a = 0 print(type(a)) a = "string" print(type(a))

wise cargoBOT
#

@amber raptor :white_check_mark: Your eval job has completed with return code 0.

001 | <class 'int'>
002 | <class 'str'>
normal hinge
#

i do know what is typing mean

#

u said static typing does make any difference

amber raptor
#
PS C:\Users\rabbi\Python Projects> [int]$a = 1
PS C:\Users\rabbi\Python Projects> $a = "hello"
Cannot convert value "hello" to type "System.Int32". Error: "Input string was not in a correct format."
At line:1 char:1
+ $a = "hello"```
crystal briar
#

in a statically typed language you need to say what the type of a variable is at compile time

amber raptor
#

not always

somber heath
#

Indra, Rabbit and floydnfish are typing...

crystal briar
#

idk then

amber raptor
#

in many languages, typing can be inferred

honest pier
#

rabbit is a robot

#

robbot

amber raptor
#
var a = "string" #This will be a string by default```
scenic geyser
#

I think it is statically typed language when the varible type is known at compile time instead of runtime

honest pier
#

something like that

amber raptor
#

mypy

normal hinge
#

Julia features optional typing, multiple dispatch, and good performance, achieved using type inference and just-in-time (JIT) compilation, implemented using LLVM. It is multi-paradigm, combining features of imperative, functional, and object-oriented programming. Julia provides ease and expressiveness for high-level numerical computing, in the same way as languages such as R, MATLAB, and Python, but also supports general programming. To achieve this, Julia builds upon the lineage of mathematical programming languages, but also borrows much from popular dynamic languages, including Lisp, Perl, Python, Lua, and Ruby.

somber heath
#

The math module has a dist function for measuring distances between two points in space. It gives the python equivalent code in its help entry. Stress test the runtime of that code vs dist and dist will beat the pants off it, because dist runs compiled c.

#

Or something vaguely along those lines.

#

Some python modules aren't native python code. Some are an interface to c.

#

Numpy is another that has a lot of that, too.

normal hinge
somber heath
#

Which is why people like it, because it's efficient and zoomy.

normal hinge
#

Deno

#

for typescript

young tundra
normal hinge
#

laundmo why are u rapping?

honest pier
faint ermine
normal hinge
#

๐Ÿ˜†

storm notch
#

!e py print("".join([x for x in list("hey it is me obama here to answer your questions")]))

wise cargoBOT
#

@storm notch :white_check_mark: Your eval job has completed with return code 0.

hey it is me obama here to answer your questions
alpine path
#
Running on http://127.0.0.1:5050
Event { token: Token(0), readable: true, writable: false, error: false, read_closed: false, write_closed: false, priority: false, aio: false, lio: false }
Took 104micros overall
Event { token: Token(1), readable: true, writable: false, error: false, read_closed: false, write_closed: false, priority: false, aio: false, lio: false }
Took 5micros overall
Event { token: Token(3), readable: true, writable: false, error: false, read_closed: false, write_closed: false, priority: false, aio: false, lio: false }
b"GET / HTTP/1.1\r\nHost: 127.0.0.1:5050\r\nUser-Agent: curl/7.73.0\r\nAccept: */*\r\n\r\n"
Took 232micros overall
Event { token: Token(1), readable: true, writable: false, error: false, read_closed: false, write_closed: false, priority: false, aio: false, lio: false }
Took 3micros overall```
young tundra
#

hello

#

see you

neon sleet
#

8 people but still so silent?

young tundra
#

yeah kinda quiet lately

whole bear
#

yeah quite silent

amber raptor
#

many of Americans are busy

whole bear
#

office hours right

storm notch
#

you think the girls will dig?

zealous wave
storm notch
#

yes

#

this is really good blur hiding my identity

#

but what do you think abt the shirts

#

and disregard my hair i am ripping it out due to an error

uncut meteor
#

is that the real Obama?

storm notch
#

yes

uncut meteor
storm notch
#

whatโ€™s my last name

uncut meteor
#

Amabo

olive hedge
# storm notch

we prefer to keep things at least somewhat topical here. This chat is specifically for voice chat users, so we would appreciate if random images were not posted here.

If you would like to start a conversation about something off-topic, I would recommend one of the OT channels

storm notch
#

im sorry

#

i canโ€™t send pictures in general or off topic

#

im also not voice verified yet

olive hedge
#

ah yes, that is mostly to prevent spam, haha.

No worries, this is just not a great channel for random conversations (unless they are related to voice chat)

storm notch
#

okay sorry about that, wonโ€™t do it again, thanks for the warning

olive hedge
#

I do like the euler's one though lol

storm notch
#

thank you i bought it im excited

olive hedge
#

GHOST PING!!! lemonshake

zealous wave
#

Wanna know what I said?

hushed elm
#

@olive hedge ๐Ÿ˜— luv u

olive hedge
#

!warn 233481908342882304 using voice chat without being in voice channel

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied warning to @olive hedge.

zealous wave
#

Lol

hushed elm
#

love me some fondue boyy

uncut meteor
#

woofer is good soul

zealous wave
#

Lol

hushed elm
#

yeah that's me

zealous wave
#

Only 128? Week.

uncut meteor
#

182*

#

weak*

storm notch
#

can i please talk in this channel i like the vc people more

uncut meteor
#

just join a vc

#

gg wp

storm notch
#

ok i win

#

bet

#

griff u see dm

uncut meteor
#

no

#

i have them hidden

#

send here your msg

storm notch
#

no canโ€™t

uncut meteor
#

why not?

storm notch
#

i canโ€™t

#

explain

#

im not bigbow

#

lol

young tundra
#

who's bigbow?

storm notch
#

that is bigbow

zealous wave
#

I am bigbow

#

jk

young tundra
#

will the real bigbow please stand up

olive hedge
storm notch
#

yeah i joined the call

#

iโ€™m on topic with the conversation

olive hedge
storm notch
#

ik bigbow ik how he got banned i wasnโ€™t there tho

#

he told me it was pretty bad

#

@faint ermine i am getting close to understanding fourier transforms

olive hedge
#

ok not bigbow ๐Ÿ˜‰

#

ok sorry, i am just messing around, I shall depart now

storm notch
#

ok i am actually not bigbow lol

#

laundmo can possibly deduce who i am via my statement regarding fourier transforms and attempting to learn it

#

donโ€™t use python use scratch

faint ermine
#

Investigator/Prince?

storm notch
#

wait laundmo ur a helper now?

faint ermine
#

aye

storm notch
#

congrats

#

i donโ€™t make goals so i never can fail

#

they will ban you for anything

zealous wave
#

!otn a we-are-all-ai

balmy nymph
#

Shush, it is supposed to be a secret

zealous wave
balmy nymph
storm notch
#

hi hemmy

dire yacht
#

grr

#

grr

#

gr

stuck furnace
#

Yo

honest pier
#
from collections import deque


def factor(n):
    res = []
    for i in range(1, int(n ** .5) + 1):
        if n % i == 0:
            t = (i, n // i)
            res.append(t)
            res.append((t[1], t[0]))
    return res

def solve(grid):
    start = (1, 1)
    vis = set()

    Q = deque()
    Q.append(start)

    while Q:
        v = Q.popleft()
        if v in vis:
            continue
        vis.add(v)
        if v == (X, Y):
            return True
        try:
            x, y = v
            nodes = factor(grid[x - 1][y - 1])
        except IndexError:
            continue
        for n in nodes:
            Q.append(n)
    return False

X, Y = [int(input()) for _ in range(2)]
grid = []
for row in range(X):
    grid.append([int(x) for x in input().split()])

print(grid)
print(solve(grid))
#

@near niche try this ?

amber raptor
#

Sus

alpine path
alpine path
#
from time import perf_counter


def factor(n):
    res = []
    for i in range(1, int(n ** .5) + 1):
        if n % i == 0:
            t = (i, n // i)
            res.append(t)
            res.append((t[1], t[0]))
    return res


def solve(grid):
    start = (1, 1)

    Q = set()
    Q.add(start)

    while Q:
        v = Q.pop()

        if v == (X, Y):
            return True

        try:
            x, y = v
            nodes = factor(grid[x - 1][y - 1])
        except IndexError:
            continue

        for n in nodes:
            Q.add(n)
    return False


X, Y = [int(input("> ")) for _ in range(2)]
grid = []
for row in range(X):
    grid.append([int(x) for x in input("> ").split()])

print(grid)
start = perf_counter()
for _ in range(3):
    print(solve(grid))
stop = perf_counter() - start
print((stop / 3) * 1000)
#
from time import perf_counter
from functools import lru_cache


@lru_cache()
def factor(n):
    res = []
    for i in range(1, int(n ** .5) + 1):
        if n % i == 0:
            t = (i, n // i)
            res.append(t)
            res.append((t[1], t[0]))
    return res


def solve(grid):
    start = (1, 1)

    Q = set()
    Q.add(start)

    factors = []
    for i in range(len(grid)):
        for x in range(len(grid[i])):
            try:
                factors[i][x] = factor(grid[i][x])
            except IndexError:
                continue

    while Q:
        v = Q.pop()

        if v == (X, Y):
            return True

        try:
            x, y = v
            nodes = factors[x - 1][y - 1]
        except IndexError:
            continue

        for n in nodes:
            Q.add(n)
    return False```
faint ermine
#

!range-len

wise cargoBOT
#

Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.

for i in range(len(my_list)):
    do_something(my_list[i])

The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:

for item in my_list:
    do_something(item)

Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.

near niche
#
def factorPairs(value):
    factors = []
    for i in range(1, int(value ** 0.5) + 1):
        if value % i == 0:
            ans = (i, value // i)
            factors.append(ans)
            factors.append(ans[::-1])
    return factors
allFactors = []
for i in range(1000000):
    allFactors.append(factorPairs(i))
with open("factors.txt", 'w') as factorsFile:
    factorsFile.write(str(allFactors))
faint ermine
#
factors = {(x,y): factor(v) for y, e in enumerate(grid) for x, v in enumerate(e)}
#

print(one-hundred & three.seven) ->103.7

alpine path
faint ermine
alpine path
#

Eris, JDA

whole bear
#

Hey guys

pseudo marlin
#

@pastel mesa any chance you could share it when you're done?

plain dagger
#

pycharm for big projects

#

vscode for the rest

plain dagger
#
def find_sum(n):
   actual_value = n
   actual_sub = 0
   result = []
   while actual_value:
      result.append([actual_value, actual_sub])
      actual_sub += 1
      actual_value -= 1
   return result
undone idol
#

hi

#

@somber heath

#

@random rivet

#

DO you speak hindi?

#

lol

#

I am indian

random rivet
#

hi!

undone idol
#

I speak hindi as well

random rivet
#

no i don't know hindi

undone idol
#

as english

random rivet
#

i am just from india

undone idol
#

Oh

#

@past pawn

#

mice

random rivet
#

but i can recognize it

undone idol
#

is weird

#

hmm?

#

yes

#

@random rivet

#

I do have

#

experience with flask

#

your voice isn't clear

somber heath
#

@random rivet Your audio is entirely unintelligible.

undone idol
#

Yes

silver pivot
#

hello

#

i amnew

undone idol
#

am i audible?

somber heath
#

@undone idol Yours isn't much better.

undone idol
#

Oh hello

silver pivot
#

i am a beginner

undone idol
silver pivot
#

so nervous

undone idol
#

lol

#

np

somber heath
#

@undone idol That is the question.

undone idol
#

am i audible?

#

so what to do?

random rivet
#

it is better if i use chat

undone idol
#

ask

#

I might help you

random rivet
#

umm sorry to waste your time but i have to go

#

sorry

whole bear
#

@whole bear !subscribe announcements in #bot-commands

solar oxide
#

i cannot speak opaimist

#

but hello to you

#

where are you from

#

hmm

#

really

whole bear
#

yea

solar oxide
#

ya i just like to gather information

#

opaimist how old are you?

#

oh man!!!!!!!!

#

i am 15

whole bear
#

I(i) l(L)

solar oxide
#

so you guys are doing something subjected to something particular or just doing your own work and talking

#

i guessed so

#

what is your typing speed opaimist

#

you are on pc?

#

hm

#

mine is 50

#

opaimist can i increase or decrease master volume that is on the taskbar using python code

#

have you ever tried?

#

bye

#

i am making a voice assistant

#

so i will just ask him and he will do it

#

i have made it

#

i am just advancing it

#

coding more commands

#

thankyou

#

how can i speak unmute my self

#

ok

#

bye guy

#

s

somber heath
#

titer(?)

#

@flat sentinel Your audio is heavily fragmented. I can't hear you.

flat sentinel
whole bear
#

same here

somber heath
#

That'll do it.

whole bear
somber heath
#

I sit around 370ms.

flat sentinel
#

now im in connecting

#

im gona restart discord

somber heath
#

kk

whole bear
#

ya

#

discord is fucking with me

#

what the python discord

flat sentinel
#

you are in it

#

now

whole bear
somber heath
#

Latest heartbeat 421ms.

solar oxide
#

i also only use pycharm

ocean sail
# whole bear

lucky bastard, my ping goes to like 5000 and stays for a few minutes before slowly starting to decrease until it reaches normal ping for me which is about 150-300... yh FML๐Ÿ˜‚

ocean sail
reef vapor
#

i did not understand shit

#

and everyone has no verification

solar oxide
#

opai you are here till now

reef vapor
#

why does the world have to be so cruel

solar oxide
#

it's been 2 hours maybe

#

bro you can subscribe to my channel

#

youtube

reef vapor
#

makes sense

solar oxide
#

hmm

reef vapor
#

a small price to pay for salvation

#

well yes i do have a few questions

#

ah wi le francais

#

what are virtual enviorments good for

#

and do i always have to make one and enable it on the terminal

#

im on mac

#

@somber heath

#

after u help him pls help me ๐Ÿ™‚

#

like a safety meajurement?

#

ah got it

#

living life on the edge

#

funny thing is Im still trying to figure out how to setup vs

#

for python

#

been on it for like 2h now

#

i see

#

wait so is it an extention

#

or ediotr

#

ah ok

#

confusion 100

#

then where do you start?

#

im doing that rn

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.

reef vapor
#

In this Python Programming Tutorial, we will be learning how to set up a Python development environment in VSCode on MacOS. VSCode is a very nice free editor for writing Python applications and many developers are now switching over to this editor. In this video, we will learn how to install VSCode, get the Python extension installed, how to cha...

โ–ถ Play video
#

iv been following this

#

yknow it ,$

#

?

#

lmao

#

so u on mac

#

thats cool

cursive minnow
#

I am not able to speak in the voice, I still need messages^^

reef vapor
#

never met a linux pythoneer

cursive minnow
#

It's a crime to use apple

#

in my opinion

reef vapor
#

bruh

#

the keyboard is a delight to use

#

and its fast

#

i think most devs are on mac

#

html css?

cursive minnow
#

I do Blender.

reef vapor
#

why

#

"quircky"

cursive minnow
#

I heard linux is pretty good if you host a server.

reef vapor
#

and its close to an oil factory

#

ill be continuing with the configuration shenanigans for a while

cursive minnow
#

Currently scripting a Python Bot for Discord.
Discord.py is a bit ... strange

#

sry

reef vapor
#

brb

cursive minnow
#

bb

zealous wave
versed island
#

โ€œDonโ€™t document the problem, fix it.โ€ โ€“ Atli Bjรถrgvin Oddsson

#

hi @somber heath

turbid oriole
#

@cursive minnow I've reset your nickname for now but feel free to change it, in the future please set it to something more visible, as our rules say, 'No blank or "invisible" names'

versed island
#

what

#

yeah

#

haha

#

just read it on twitter

#

may be its about getting things done

#

hmm

#

yeah

#

true

#

hmm

somber heath
#

Shelter...

#

I didn't hear that included.

#

Europe would be larger market.

#

I mean...you've got a tiny little island...vs a whole continent.

vivid gull
somber heath
#

Rome did figure into my thoughts.

swift breach
#

@vivid gull I'm taking a fin math course right now

somber heath
#

The strength of a nation rises with the strength of its citizens.

#

Not some of them. All of them.

#

Enrich a people and the country is enriched along with them. The people are the country. The country is the people.

hushed elm
#

compare yourself to past self. i find that's a good way to look at it

#

for example in the past i had nothing to do with cheese, but i found the one and only cheese, and it's so good

#

10/10

somber heath
#

You need 25?

#

"Today, on Apocalypse Watch..."

hushed elm
#

DDOOOOMMM

#

BLOOD RAINING FROM THE SKY

#

70 years since god is dead

rugged root
#

MORE BLOOD FOR THE BLOOD TODD

hushed elm
#

all hail His Muskyness Elon Musk

lunar pendant
#

In india some startup offer more money than big MNC

#

Yesterday i missed my codenation hiring contest

somber heath
#

Adverse possession.

#

Gifting.

#

Inheritance.

lunar pendant
#

lol

rugged root
somber heath
#

I see what you did there.

rugged root
#

It was super not clever

somber heath
#

Ha

hushed elm
#

@bleak current indiehackers.com might help you, it's a community of people who started their own independent businesses

lunar pendant
#

Anyone wants to try the hiring contest questions?

swift breach
#

Honestly, how could I get into a start-up as a university student. I'm tryna get some ideas but don't even know where to start

undone idol
lunar pendant
undone idol
#

@bleak current You accent seems that you are indian? are you?

undone idol
bleak current
#

@hushed elm thank you , will check it out !

lunar pendant
hushed elm
#

sure!

bleak current
#

@undone idol Yes , I'm indian

undone idol
undone idol
lunar pendant
undone idol
#

haha

lunar pendant
#

@honest pier did you guys managed to solve that problem?

honest pier
#

ยฏ_(ใƒ„)_/ยฏ

cursive minnow
#

(โ•ฏยฐโ–กยฐ๏ผ‰โ•ฏ๏ธต โ”ปโ”โ”ป

undone idol
#

where's the problem?

lunar pendant
#

The one on voice chat -1

lunar pendant
honest pier
#

it wasn't my problem

lunar pendant
#

oh does the guy solved that?

honest pier
#

how would i know

lunar pendant
rugged root
#

!e

import logging
logging.warning("OH DEAR GOD IT'S ALL ON FIRE!!!")
logging.info("Won't show by default")
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

WARNING:root:OH DEAR GOD IT'S ALL ON FIRE!!!
honest pier
#

rofl

lunar pendant
honest pier
#

probably

swift valley
#

I always confuse logging levels in Python

honest pier
#

wouldn't be surprised

#

python is too slow for many of those problems

lunar pendant
#

but in general python is too slow

honest pier
#

i wouldn't say in general

#

but specifically for cp

undone idol
#

what does it mean ? Chakha seki? lol

lunar pendant
undone idol
#

I am not aware of that

rugged root
#

!e

import logging
logging.basicConfig(level=logging.DEBUG)
logging.debug("I will now show")
logging.info("And my bow")
logging.warning("AND MY AXE")
honest pier
#

๐Ÿ˜”

wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

001 | DEBUG:root:I will now show
002 | INFO:root:And my bow
003 | WARNING:root:AND MY AXE
lunar pendant
#

@honest pier I think it could be easily solved using bfs

honest pier
#

i used bfs and it was apparently too slow

lunar pendant
somber heath
honest pier
#

he said it timed out

lunar pendant
#

@honest pier so how you generating the pairs to be traversed on

honest pier
#

my sol probably colud be faster if i cached the factors

undone idol
#

I am freezing at 10 degree celsius

lunar pendant
honest pier
#

ยฏ_(ใƒ„)_/ยฏ

#

maybe

swift valley
#

I can live fine in > 35 C weather but not less than 18 C

lunar pendant
somber heath
#

'Roo bars.

swift valley
undone idol
#

lol

honest pier
#

tropical?

#

must be china

hushed elm
#

i shhut down

undone idol
#

lol

honest pier
#

wait

#

you're just an explosion?

hushed elm
#

proud rock

undone idol
#

Hmm

#

?

honest pier
#

your profile picture

undone idol
#

are you from china? @swift valley

honest pier
#

you're an explosion

undone idol
#

haha

hushed elm
undone idol
#

ohk

rugged root
undone idol
#

lol

#

cool

swift valley
#

Finally finished the auth for my site

zealous wave
#

wanna link it?

undone idol
#

lol

#

good

swift valley
#

Haven't deployed quite yet

undone idol
#

15/20 ooooo/

swift valley
#

I've yet to figure out how to do the login page, which is a struggle

undone idol
#

many are chilling including me

zealous wave
#

its rare, but sometimes the vc is full

undone idol
swift valley
#

I'm thinking of rate-limiting my endpoints for precaution

undone idol
#

same lol

hushed elm
rugged root
#

@fleet lake If you're wondering why you can't talk, check out #voice-verification. That'll tell you what you need to know

hushed elm
#

phat32

swift valley
#

Equality for OrderedDict is also order-sensitive

honest pier
#

Equality tests between OrderedDict objects are order-sensitive and are implemented as list(od1.items())==list(od2.items()). Equality tests between OrderedDict objects and other Mapping objects are order-insensitive like regular dictionaries. This allows OrderedDict objects to be substituted anywhere a regular dictionary is used.

#

so yeah

swift valley
#

So it's more like List[Tuple[K, V]]

honest pier
#

oh

swift valley
#

I'm not a DS&A person but a really like finger trees

alpine path
hollow haven
#

hi hi @rugged root

honest pier
#

:O

#

the real kutiekat?

hollow haven
#

It is true!

#

Awesome, not moved in yet, but Soon!

#

Right now we're painting and replacing the doors to something less 80s

#

they're just flat white slabs

#

blegh

#

I'd be down for that

#

fiance less so

#

Doors are so expensive ;_;

#

Even hollow core ones are like $40 per door

honest pier
#

i mean, 40 dollars a door isn't that expensive

#

since it's a door

hollow haven
#

god forbid you want an actual wood door, that's like $200 a door

honest pier
#

smh

#

wood

#

save the trees

#

use metal straws instead

rugged root
hollow haven
#

I wonder if I can convince the power company when they pull down the trees leaning over our property to just... give me the old trees...

honest pier
#

rofl

hollow haven
#

Everytime I see bag and collections I get flashbacks to AoC

honest pier
#

rofl

#

shiny gold bag

hollow haven
#

fucking shiny gold bag -_-

honest pier
#

fuck a gold bag

#

advent of regex ๐Ÿ˜”

hollow haven
#

It did force me to learn regex!

honest pier
#

yeah actually

#

i got ok at it

somber heath
#

Probably.

hollow haven
#

yeah probably...

somber heath
#

The only way you'd get your hands on them would be by prior arrangement with your local municipal government if the trees aren't on your land.

hollow haven
#

well they're on land owned by the power company (right of way for powerlines)

somber heath
#

If they cut it and it falls on your land...maybe.

hollow haven
#

hmmmm...

rugged root
zealous wave
#

the twitter API looks really powerful

somber heath
#

It'd be a little bit of legal finagling. They might be all "Oh no no no, we get the wood" but there might be some section of city code you can point to. At the end of the day though, if the council is involved, they can be a law unto themselves. "What re you going to do? Quote laws at us? Haha. Fuck you. We're taking the wood."

honest pier
#

rofl

whole bear
#

lol

swift valley
#

i m m e r s i o n

somber heath
#

You could maybe ask permission to have someone cut it down, making it easier to claim it, yourself.

hollow haven
#

maybe, but the power company will do it for free and the one tree is practically a death trap

somber heath
#

They don't get the profit from the wood, but then they're not paying a crew to do the job.

#

and they get free work done for them

honest pier
#

int[] nums ๐Ÿ˜”

somber heath
#

Living in a bushy area as we do, I could...literally...throw a stone and have it land on a professional treelopper's property.

lusty marsh
#
[% %]
wise glade
#

can anyone tell me a little bit about Database Migration with flask-migrate?
all I know, its something like a version control system but for databases.
we start it with flask db init, which create a dir migrations in the same folder, but what does it do actually?
then comes flask db migrate (after creating a database model in the flask application, I think)

#

ping me if someone knows something

wise cargoBOT
#

Hey @desert cliff!

It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .3gp, .3g2, .avi, .bmp, .gif, .h264, .jpg, .jpeg, .mkv, .mov, .mp4, .mpeg, .mpg, .png, .tiff, .wmv, .psd, .ai, .aep, .xcf, .mp3, .wav, .ogg, .webm, .webp, .flac, .afdesign, .m4a, .csv.

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

whole bear
#

this course literally covers the missing parts like git

kindred sable
#
BleepingComputer

This month a researcher was awarded a bug bounty award of an undisclosed amount after he broke into the official GitHub repository of Microsoft Visual Studio Code.
A vulnerability in VS Code's issue management function andย a lack of authentication checks enabled the researcher toย obtain push access, and write to the repository.

granite olive
#

hey coders

restive plank
#

hey noob coder

granite olive
#

hey at least im employed

restive plank
#

no one cares

kindred sable
granite olive
#

idk

restive plank
#

go and review your shit

granite olive
#

vishal nobody cares about your baseless claims of me being a noob

#

i donโ€™t review stuff i make stuff im not a noob

restive plank
#

and then go and make shit

astral loom
#

why so toxic bruh calm down

granite olive
#

python is just well supported, R is amazing julia is great

kindred sable
#

Python is ||s||hit

granite olive
#

i feel ignored

astral loom
granite olive
#

like a lot of keras is in C

whole bear
granite olive
#

yes numpy is

#

a lot

whole bear
#

and many other libs

granite olive
#

np arrays

#

are soo nice

whole bear
vague wing
#

Teach me anything me broken programmer
Me iz big nub

kindred sable
#

men dont need libraries

granite olive
#

yeah i can teach you aryan

#

i donโ€™t use libraries except for numpy

whole bear
vague wing
granite olive
#

what do u want to learn

#

iโ€™m an ML engineer so that is my area of expertise

astral loom
#

woah

vague wing
#

I just learn basics all basics (not so much advanced)

#

@granite olive

whole bear
granite olive
#

yes I said i am an ML engineer

vague wing
#

Wait let me tell u what what i learned all what i learned @granite olive

granite olive
#

and sure

#

okay

vague wing
#

Me iz kid 15 yrs old nub

whole bear
granite olive
#

yeah thatโ€™s true but optimization does matter so youโ€™re not wasting your bosses money

whole bear
vague wing
#

@whole bear so pro at 16 age wow

#

Me iz broken

#

Me iz noob

#

I iz trash

rugged root
#

Why is it updating 2.7 this late in the game?

#

Jesus

granite olive
#

hem

rugged root
#

Sup

granite olive
#

howโ€™re you sire

rugged root
#

Alright thus far

granite olive
#

iโ€™m glad to hear that