#voice-chat-text-0

1 messages · Page 775 of 1

mossy iron
#

its like github, if its public it can be seen

hoary inlet
#
data['Close'] /= data['Close'][0]

data['Close'] = (data['Close']/(data['Close'][0])) - 1```How do I condense the lower code into the first line ?
wise glade
#

does it really matter? you really want you code to be that much "pythonic"?

#

just use the second line

hoary inlet
#

I know, I just want to know that I can do it

wise glade
#

Opal, it really hurts to not have video permission at these times

uncut meteor
#
data['Close'] /= data['Close'][0]
data['Close'] -= 1

data['Close'] = (data['Close']/(data['Close'][0])) - 1
#

this?

hoary inlet
#

it has to be in two lines ?

#

I tried using brackets

uncut meteor
#

well you can do it in one

#

but there is no reason to

wise glade
#

ok, if I have some .env files, containing secrets
I can't put it on github ( i understand )
but then where do I put em for safe keeping?

hoary inlet
#

let's say I wanted to do it in one line, what would be the command

data['Close'] /= (data['Close'][0]) - 1```
#

doesn't work

somber heath
wise glade
#

you can do it in one line using ; 😂

hoary inlet
#

where ?

wise glade
#

just put ; after the first line, then put the second line just after that

#

"python community" absolutely hate this practice

hoary inlet
mossy iron
#

@somber heath @gusty hatch some isps block internet traffic

#

"buy static IP"

#

that's the name of the scam here in my country

#

"static IP to unblock traffic"

wise glade
#

which's good to start with? beginner
gcp, aws, azure

#

then I'll go with this one

mossy iron
#

i tried all of them, the one I found easiest to start an app with one server/instance was gcp, but aws for doing complete pipelines was easieer

#

auto scalling auto deploy etc

wise glade
#

they're not free to use, right? like free to use with some limitations?

mossy iron
#

there is a free tier in all, gcp limited to 3 months

#

aws limited to shit metal

#

haven't tried azure free tier

hoary inlet
#

what happened to Ivar ?

#

I haven't seen it, yeah go ahead

#

If he dies, then I won't watch it

#

fxxx this

#

I know, I will watch anyway

#

just some characters whose worldview I understand and appericate

#

I agree

#

a code I posted yesterday here got mocked the shit out of it, so I was just trying to make it a bit respectable

#

ep 10

#

I will have to binge it

#

okay wait

#

The fight in kattegat, where Ivar beat Bjorn, I guess I can't remember his name

#

ironside, yeah

wise glade
#

brb

hoary inlet
#

It's been a journey, from ragnar to ivar, and ragnar's wife and others

#

I dropped it in the middle

#

the first one ofc

#

oh, it was great and the storyline b/w her and ragnar

#

and then came the queen/princess

#

same

#

nah

#

yeah, had a one night stand with some deity as well

#

That character was uncomfortably relaxed

lunar pendant
#

I heard "somebody gonna get hurt real bad" in the background

lunar pendant
hoary inlet
#

I just force myself to understand the villain's POV

lunar pendant
#

Sometimes I feel that opalmist is talking to himself😅

#

haha

hoary inlet
#

today he soldiering on alone in place of mr.hemlock

lunar pendant
#

I'm missing Mr. Hemlock

#

I just came to this server to listen opalmist and hemlock

#

when they leave i leave

hoary inlet
#

It's fun to listen to something in background

lunar pendant
#

😂

hoary inlet
#

@vivid palm Finally !!

wise glade
#

is no one's talking?

lunar pendant
#

😅

#

we just want to hear opalmist

#

only

wise glade
#

opal's voice is like wisdom speaking itself

vivid palm
#

dah-tah~

tall latch
#

hey guys i have no idea why my database not working

lunar pendant
hoary inlet
tall latch
wise glade
#

ooh.. web sockets, I wanna learn those soon

#

I'll start with flask-socket-io , probably

#

would be able to use in my project

lunar pendant
hoary inlet
#

couple of languages mixed in there

lunar pendant
#

just choked

hoary inlet
#

I just now got the refrence. lol

#

nope

#

you finished the scrum class yesterday, no ?

wise glade
#

ok, now I'll finish these videos quickly

boreal drift
#

welcome

#

me too

uncut meteor
wise glade
#

PAAS ( platform as a service )

#

I think a version of it is,
i've seen videos on youtube people using it to make stuff

#

Joma (Joma Tech) made a player to sync his video play with his girlfriend (imaginary)
so they can watch videos in sync

analog barn
#

stop

#

stop

pine ledge
#

What do I code today

analog barn
#

if u have the app then why u asking for mine

#

nah bro u bluffin

pine ledge
#

Really but you'll need user ID password

analog barn
#

okay

vivid palm
hoary inlet
#

that was quite graphic

flint ravine
#

Hello

analog barn
#

lol

runic forum
#

no

analog barn
#

hey

#

what

#

u have to verify voice

whole rover
#

!tempmute 704514100746518691 2d spamming to get voice verification

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @honest zenith until 2021-03-08 17:02 (1 day and 23 hours).

whole rover
#

!tvban 704514100746518691 2w spamming to get voice verification

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice ban to @honest zenith until 2021-03-20 17:02 (13 days and 23 hours).

flint ravine
#

Thanks

pine ledge
#

No snow here

green path
#

hey anybody uses plist here

#

like does anybody writes in plist

#

has anybody here made an app using xcode

hoary inlet
#

we are never going to hear the end of this

analog barn
#

what does this mean

runic forum
#

what language is that?

analog barn
analog barn
runic forum
#

ok

analog barn
uncut meteor
runic forum
analog barn
#

does anyone know about this error

#

can't seem to find a solution for it

uncut meteor
#

call CoInitalize before?

#

that is what is implied from the last line

#

!e

t = [1,2,3,4,5,6]

for i1, i2 in zip(t[0::2], t[1::2]):
  print(i1, i2)
wise cargoBOT
#

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

001 | 1 2
002 | 3 4
003 | 5 6
uncut meteor
#

@faint ermine

runic forum
#

@faint ermine what are you coding currently?

tall latch
#

i fixed my database issue by resetting the db

analog barn
uncut meteor
#

idk

#

it just implies it

versed island
#

What was being streamed ?

#

Ok

#

Jumanji is mah fav movie

uncut meteor
#

Welcome to Jamrock awesomeDance

versed island
#

noice

#

who is blabbering

uncut meteor
#

idk

hardy wharf
#

im trying to speak

uncut meteor
hoary inlet
#

Griff, I have a code sample, I would like your comment on this, like what should I learn to be able to do this

#

I know c++

#

there are so many files and they are so interconnected

#

I can't even figure out what most of them are supposed to do

#

okay, so it is a program which mainly enters a position or exits them

#

based on a technical signal

golden hearth
#

oh wassssup people

#

anyone here lel

#

me?

hoary inlet
#

I just found it surfing online

golden hearth
#

im doing python at school, but the python in school is really basic

hoary inlet
#

Nope, I think this has something to do with quant

#

financial/trading

#

The main reason I learned whatever basic programming I know

uncut meteor
golden hearth
#

do you consider vs code or pycharm ?

#

as a good ide

#

i find pycharm annoying >_>

#

the warning things never dissapear

#

ok

#

does somebody know how to add the python extension on vs code?

#

i installed it

#

but its not coming up as interpreter

#

oof

uncut meteor
golden hearth
#

what is github?

hoary inlet
#

changing the data of graph, it has to be coded or it just takes the input and finds the data itself ?

golden hearth
#

ooh

#

collab thing for programmers?

#

noice

hoary inlet
#

like in the gif, the recorder is accessing various columns in the data, right ?

golden hearth
#

why do you guys say my name weirdly lel

#

yeah

#

but

hoary inlet
#

but to plot graphs using seaborn or matplotlib, you have to filter out the data for them ?

golden hearth
#

you put a sort of emphasis

#

nice now lel?

#

wait

#

i changed it

#

SOMEONE TALK

#

ye

uncut meteor
#

yik

golden hearth
#

i didnt

#

talk again

#

oh wait nvm

hardy wharf
#

what kinda music do u guys listen to?

golden hearth
#

doing cls when the command line is messy is like snapping your finger as thanos

#

its satisfying

#

:)

golden hearth
#

people would like that

#

wasssup

hardy wharf
#

ooo nice

golden hearth
#

lol

tall latch
#

any good designers here

#

i need a bit of a help

#

???????

random ridge
#

Hello guys

#

😄

hardy wharf
#

hi!

vivid palm
#

hihi

tall latch
golden hearth
#

whats the operator which return the remainder?

#

i forgot

#

is it %?

golden hearth
hardy wharf
#

ahh i wanna talk soo bad

#

i have to wait 2 more days

golden hearth
#

whats the operator?

hardy wharf
#

i have no idea

golden hearth
#

ok

#

its fine

#

trial and error i guess lel

hardy wharf
#

ye lmao

eternal bough
golden hearth
#

i got pranked by my own program

#

oof ;(

uncut meteor
#

oof

runic forum
#

Cranked Up

golden hearth
#

ok someone tell me

#

i want my prgram to end when i press a

#

how do i do that?

hoary inlet
#

I have always scene that happen in movies only

tall latch
golden hearth
#

yes

#

hmm

#

its just clickng stuff

vivid palm
golden hearth
#

and print statements

#

a while loop

#

ye

hoary inlet
#
if (input == 'a'):
break```
golden hearth
uncut meteor
hoary inlet
#

🤣

uncut meteor
golden hearth
#

me who is underage >_>

uncut meteor
#

its like the wine glass is wearing Doc Martins

hoary inlet
#

lol

random ridge
#

Hey Guys

#

I'm trying to make a text red here but the terminal doesn't show it

uncut meteor
#

colourama?

random ridge
#

It simply shows the code : /

#

Nah

hoary inlet
random ridge
#

"\033[91m {}\033[00m"

#

Like this basically

#

No changing color of TEXT not the whole bash

tall latch
#

how is my cmd theme

random ridge
#

I use powershell right now

#

I get this output : You chose the ←[91mWarrior←[0m

#

Exactly

#

def prRed(skk): print("\033[91m {}\033[00m" .format(skk))

print "You chose the ",
prRed("Warrior "),
print "!"

#

Yes it's python 2.7

hoary inlet
random ridge
#

And for hells sake I don't know why I still have this output

#

I heard of colorama

uncut meteor
#

pip install colorama

hoary inlet
random ridge
#

Alright thanks a lot !!

hoary inlet
#

it has support since 2

uncut meteor
#
On Windows, calling init() will filter ANSI escape sequences out of any text sent to stdout or stderr, and replace them with equivalent Win32 calls.
hoary inlet
#

data structures ?

golden hearth
#

YOU GUYS TALKING ABOUT TWT?

uncut meteor
#

yeh

golden hearth
#

HES MY FAV YOUTUTBE

#

you in his server?

somber heath
#

TWT looks like a crying face.

golden hearth
#

ye

#

i was thinking about participating in his timathon

#

but there are godly people there

#

but you need to make revneue tho

#

idm

#

i was trigerred on his setup video tho...

#

man has 3 pcs

#

;/

#

YE

#

i am trigerred by every oc building vid tbh

hoary inlet
#

why are people triggered about this, he does whatever, who gives a fxxx?

golden hearth
#

the gpu market is clapped

#

cuz of gpu miners

#

gonna boom more

hoary inlet
#

15

golden hearth
#

just wait until ethereum goes from proof to stake

runic forum
#

you're smart kid @meager crow

uncut meteor
golden hearth
#

i have not

meager crow
gentle flint
golden hearth
#

i dont have nitro ;/

hoary inlet
golden hearth
#

animated pfp

#

ye

#

i am gonna get nitro just for :partyblob:

#

i say it as geeeeeeeeeeeeeeeeeeef

random ridge
#

Ooooh I have a friend named Guilherme

random ridge
#

XD

golden hearth
#

thats a cool ass name

#

lel

vivid palm
#

giraffe

uncut meteor
#

Rules...

gentle flint
#

garage

uncut meteor
#

Rules are made to be broken

random ridge
#

Rules are made.

meager crow
random ridge
#

You do say GIGLE

#

JIGLE

vivid palm
#

gibberish

meager crow
#

no

#

stop

golden hearth
#

it depends from word to word

random ridge
#

Giga Giraffe

meager crow
#

no

#

no

vivid palm
#

giblet

#

i can keep going

random ridge
#

XDDDDDDD

gentle flint
#

goblet

#

gallows

random ridge
#

And have you tried Alt + f4

golden hearth
#

joblet

gentle flint
#

gauge

#

engage

vivid palm
#

yeah examples can be provided for both

golden hearth
#

enjaje

#

jiffy

#

lel

vivid palm
golden hearth
#

biased?

#

how is it biased?

vivid palm
#

president obama uses hard "g"

#

we lose

uncut meteor
#

"The creators of the format pronounced the word as "jif" with a soft "G" /dʒɪf/ as in "gym". Steve Wilhite says that the intended pronunciation deliberately echoes the American peanut butter brand Jif, and CompuServe employees would often say "Choosy developers choose GIF", spoofing this brand's television commercials." - http://www.olsenhome.com/gif/

golden hearth
#

lol

hoary inlet
#

I can get behind that

pine ledge
#

Jif

golden hearth
#

evloution doesnt always win tho

hoary inlet
#

yeah, that's how humans survived

golden hearth
#

evolution doesnt matter now cuz there genetically modified shit everywhere

uncut meteor
#

@somber heath CMD

hoary inlet
golden hearth
#

xD

hoary inlet
#

knowing the name, you still went for the book

#

no one can know all the things

golden hearth
#

my dad asked me why there is people talking

#

i said im in a python webinar

#

he said ok and left

#

lel

uncut meteor
golden hearth
#

bruh

meager crow
#

the topic is dead

uncut meteor
#

I just saw it on my screen

golden hearth
#

how do you say your name @uncut meteor

#

jriff

#

lel

#

im gonna be afk for a while i gotta make some garlic bread for my dad

hoary inlet
#

it's better to visit the saudi consulate

vivid palm
somber heath
#

@random ridge You're quiet.

uncut meteor
tall latch
#

lol

#

smokin burger

uncut meteor
#

oh lord

golden hearth
#

ok me back

uncut meteor
#

hi back

golden hearth
#

_>

uncut meteor
#

nah

#

r/ATBGE

gentle flint
#

tf is that

tall latch
golden hearth
uncut meteor
#

my fav thing is they are foot-cuffed together

#

this is actually amazing

tall latch
golden hearth
#

oh it isnt

sick cloud
#

lol

golden hearth
#

lel

hoary inlet
sick cloud
golden hearth
#

plus its not made of stornges metal on earth

#

if it was a carbon fibre fork

#

i would by that

gentle flint
#

if two arguments can't be passed at the same time in a function; it has to be one or the other, and someone passes both anyway, what exception should I raise?

hoary inlet
sick cloud
gentle flint
#

K, thx

uncut meteor
uncut meteor
vivid palm
#

hmmmmmmm i want sushi

uncut meteor
#

same, I haven't had it in time

hoary inlet
golden hearth
#

how do you get colour to change in cmd

#

how do i write a print statement in python which changes colour when in cmd

#

too much banana is bad tho

#

my max is like 3

#

etcomorph body type

#

im jealous

#

those are three body types >_>

whole bear
golden hearth
#

tysm

whole bear
#

np

tall latch
#

caps

#

im 15

golden hearth
#

age doesnt matter

#

its more like shape

whole bear
golden hearth
#

xD

whole bear
#

lol jk

golden hearth
#

ye ectomorph get fatter when older

#

of you dont get active it will decrease

tall latch
golden hearth
#

thats pretty accurate ngl

#

i would scream at pycharm if i lived alone

#

vs code is clean

#

IDLE?

#

brUH

#

MS WORD IS BETTER THAN IDLE xD

whole bear
#

no one can beat this

tall latch
#

best code editor in the world

golden hearth
#

can you guys help me?

#

i have laptop

whole bear
#

dm me

hoary inlet
golden hearth
#

IT WORKS

gentle flint
#

yay

golden hearth
#

IT FUCKING WORKSSSSSS

#

i mean my program ive been working on

#

im gonna go now oof

#

dinner time

#

and then my mum turns off wifi ;/

gentle flint
#
    def __call__(self, method: str, path, ignore_statuses=[], *args, **kwargs):
        resp = requests.request(
            method,
            urljoin(self.url_base, path),
            auth=HTTPBasicAuth(self.key, None),
            *args, **kwargs)
        if resp.status_code not in ignore_statuses:
            resp.raise_for_status()
        self._header = resp.headers
        return resp.json()
faint ermine
#

!e ```py
class A:
def call(self, *args, **kwargs):
print(args, kwargs)

a = A()
a.get("b")

wise cargoBOT
#

@faint ermine :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 6, in <module>
003 | AttributeError: 'A' object has no attribute 'get'
gentle flint
somber heath
#

JavaScrypyt

uncut meteor
#

@scenic wind be careful, ||it's sharp||

gentle flint
scenic wind
runic forum
#

Java Script kiddie

#

who in the FUCK was that??

faint ermine
#

.topic

viscid lagoonBOT
#
**If you could be anyone else for one day, who would it be?**

Suggest more topics here!

uncut meteor
#

.topic

viscid lagoonBOT
#
**What's your favourite kind of soup?**

Suggest more topics here!

gentle flint
#

melon soup

#

on hot days

#

in the winter, onion soup

scenic wind
#

soup of the day

faint ermine
#

a/(b+c) + b/(a+c) + c/(a+b) = 4

runic forum
uncut meteor
#

!e

a = 4
b = -1
c = 11
print(a/(b+c) + b/(a+c) + c/(a+b))
wise cargoBOT
#

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

4.0
faint ermine
#

.wa a/(b+c) + b/(a+c) + c/(a+b) = 4

viscid lagoonBOT
uncut meteor
#

Oof

uncut meteor
#

.wa

viscid lagoonBOT
#
Do you mind?

Your input was invalid: query is a required argument that is missing.

Usage:
.wolfram <query>

uncut meteor
#

look at the solution

#

.wa T = 2π√L/g

viscid lagoonBOT
uncut meteor
eternal bough
faint ermine
runic forum
#

@faint ermine damn bro you speak so fast

honest pier
#

damn bro

gentle flint
#

I'm off

#

bye

scenic wind
#

bye

snow sail
#

Good Night Guy’s

scenic wind
eternal bough
#

unicode

somber heath
#

Chess symbols are part of Unicode. Instead of using images, one can represent chess pieces by symbols that are defined in the Unicode character set. This makes it possible to:

Use figurine algebraic notation, which replaces the letter that stands for a piece by its symbol, e.g. ♘c6 instead of Nc6. This enables the moves to be read independent ...

#

ANSI control codes for the tiles/background/highlighting

#

Maybe.

gentle flint
amber raptor
gentle flint
#

yeah

somber heath
gentle flint
#

it reminds me of a triskelion

eternal bough
#

reminds me of a starfish

uncut meteor
#

looks like a fleshy fidget spinner

stuck furnace
#

Hey guys 😄

#

How goes?

#

Ah, shame. Looks cool

#

Looks kind of otherworldly tbh.

#

Anyone want to do BinarySearch?

honest pier
#

👀

#

maybe later

stuck furnace
#

Alright 😄

#

Easy, or easy and medium?

#

I'm not sure how they grade the problems on this site...

#

Ah right, I see

#

Might ask in general if anyone else wants to join in....

honest pier
#

hmm

#

seems like it's later

stuck furnace
#

Ah, it's started! 😄

cerulean moth
#

Stream on discord too, don’t have a account there and not feeling like making one

stuck furnace
#

Oh, didn't realise it says O(1) space...

honest pier
#

wait what

stuck furnace
#

Yeah, it would be difficult to check I suppose

#

Luckily for me 😄

#

Wait, does it say the round ends in 46 minutes. Must have misunderstood the settings lemon_pensive

honest pier
#

😔

stuck furnace
#

Oh, it's 4 problems per round

honest pier
#

😔

stuck furnace
#

I thought each question was going to be 50 minutes 😄

#

Ah, I just figured out the O(1) memory solution.

#

It's the XOR thing I was talking about the other day 😄

#

Or, maybe not...

honest pier
#

lul

stuck furnace
#

Hey Griff

#

I didn't realise you could move to the next question 🤦

#

I was trying to figure out the O(1) solution.

#

I'm an idiot

#

collections.Counter would be O(n) space

uncut meteor
#

return all(nums.count(num) % 2 == 0 for num in set(nums))

stuck furnace
#

Erm, pretty much the same.

#

I guess you could sort it, then compare adjacent elements...

eternal bough
#
class Solution:
    def solve(self, nums):
        cd = Counter(nums)
        for i in cd.values():
            if i % 2 != 0:
                return False
        return True```
stuck furnace
#

Well sort is O(n log n) time.

#

So It might be reasonable for n < 100,000

eternal bough
stuck furnace
#

I think the idea is that if they share any email, then they are the same person.

#

Barely an acceptable solution tbh 😄

honest pier
#

lmfao

stuck furnace
#

IRC was a thing when I was growing up, but never really used it.

#

I think Discord has kind of filled that niche now.

#

Yeah, not sure about that 😅

#

Wait, how did I win?

#

I thought you'd already finished Pasta?

honest pier
#

¯_(ツ)_/¯

#

i'm bad at coding 😔

stuck furnace
#

Btw, for the island problem, neighbouring cells in the grid are cardinal directions (N, S, E, W) not ordinal (NE, SE, etc.). They don't state this in the question...

#

I think I'll change it to 1 question per round next time.

honest pier
#

😔

stuck furnace
#

I still don't get how to solve the first problem in O(1) space 😄

honest pier
#

me neither lol

stuck furnace
#

Other than to sort.

#

MacOS gang

#

I also use a tiling window manager, so I'm clearly confused about what I want 😄

#

I just really can't be assed to configure Linux.

honest pier
#

😔

stuck furnace
#

Me? @whole bear

#

Sure, can you not see it?

#

Ah right

uncut meteor
#

nah, I was talking about LX

stuck furnace
#

Oh sorry Griff

honest pier
#

@stuck furnace

stuck furnace
#

Yeah, I hate how they make you put everything in a class.

honest pier
#

i kinda forgot about ||S = [n]|| lol

#

ooh i kinda like those font ligatures

#

on the <=

real ivy
#

if u aint talking leave the call

honest pier
#

ok, time for dinner

real ivy
#

my b thought my headphones for my phone were in

stuck furnace
stuck furnace
real ivy
#

look at my team

real ivy
stuck furnace
# real ivy how

Assuming that means the same thing where you live as it does in the UK 😄

smoky burrow
#

!mute 757587813461000265 Take a break

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @real ivy until 2021-03-07 01:04 (59 minutes and 59 seconds).

stuck furnace
#

Minor drama

#

Yeah, not sure what that other guy meant though 😄

#

Round is starting.

#

Yeah, it's a weird question tbh.

#

You have to add up the total for each show first.

#

Not sure what you mean 😄

#

Ahh right.

#

||Probably need a dict...||

#

||...or a defaultdict||

#

I've actually had a few beers 😄

#

Definitely exceeded my units this week.

honest pier
#

😔

#

came too late

#

🤔 🤔 🤔

stuck furnace
#

Yeah, I take it back sorry 😄

#

👉 ||groupby strikes again|| 👈

honest pier
#

😔

stuck furnace
#

Griff... what were we talking about yesterday?

#

Ah

#

You could do it with regex...

#

Yep, something in the itertools module...

#

Sorry, that was mean 😄

honest pier
#

😔

stuck furnace
#

Tbf, it's hard programming when there are other people watching.

honest pier
#

i'm not watching ¯_(ツ)_/¯

stuck furnace
#

Yep

#

Sorry, didn't catch that?

#

!docs itertools.groupby

wise cargoBOT
#
itertools.groupby(iterable, key=None)```
Make an iterator that returns consecutive keys and groups from the *iterable*. The *key* is a function computing a key value for each element. If not specified or is `None`, *key* defaults to an identity function and returns the element unchanged. Generally, the iterable needs to already be sorted on the same key function.

The operation of [`groupby()`](#itertools.groupby "itertools.groupby") is similar to the `uniq` filter in Unix. It generates a break or new group every time the value of the key function changes (which is why it is usually necessary to have sorted the data using the same key function). That behavior differs from SQL’s GROUP BY which aggregates common elements regardless of their input order.... [read more](https://docs.python.org/3/library/itertools.html#itertools.groupby)
stuck furnace
#

Gotcha: it returns key, group pairs. The groups are iterators not lists.

#

So to get the length, you need to convert the group to a list, or use sum or something.

#

🤔

#

Weird.

#

Oh, nice touch 😄

#

It's alright Griff.

#

I would send a headpat emoji, but I don't have Nitro

uncut meteor
#

sennaHeadpat @uncut meteor

  • from @stuck furnace
stuck furnace
#

Anyone listen to Jessie Ware? I'm loving this album 😄

#

Her, yes 😄

#

Ahh

#

Might be random error?

#

Or function name lookup.

#

Actually, it only needs to look the name up once.

uncut meteor
#

!docs str.count

wise cargoBOT
#
str.count(sub[, start[, end]])```
Return the number of non-overlapping occurrences of substring *sub* in the range [*start*, *end*]. Optional arguments *start* and *end* are interpreted as in slice notation.
stuck furnace
#

Needs to be sorted by number of 1s, then numerical value as the tie breaker.

#

You can convert int to a binary string with the bin function.

#

Then how would you count the number of 1s?

#

Also, bin returns a string.

#

You can include the tie breaker in the key function, using a tuple.

#

Yeah, any orderable value.

#

First element first, then second... like alphabetical sorting.

uncut meteor
stuck furnace
#

Next problem starting!

honest pier
#

😔

stuck furnace
#

Trying to think of a good lower-bound

#

Brain has stopped working

honest pier
#

just, 0?

stuck furnace
#

Tried that and got tle 🤔

honest pier
#

🤔

#

ah, right

#

you need a better upper bound :P

stuck furnace
#

I'm dying here

uncut meteor
#

||squroot||

stuck furnace
#

I give up tbh

honest pier
#

n ln n - n = ln n!

stuck furnace
#

Is it cheating to use math.gamma?

#

But I can never remember if its (n+1)! or (n-1)!

#

Ohhhh

#

Yeah, I should have done it your way.

honest pier
#

math.gamma is funne ¯_(ツ)_/¯

#

wait isn't math.gamma just math.factorial but for floats also?

stuck furnace
#

Yep

#

How is this easy?

#

Isn't n-queens like np-complete

honest pier
#

idfk

stuck furnace
#

Ohh, rooks

#

For some reason I was thinking of knights

honest pier
#

😔

stuck furnace
#

1ms 😄

#

Hey @frozen jacinth 👋

frozen jacinth
#

hola

stuck furnace
#

I know of Ubuntu

frozen jacinth
stuck furnace
#

Yep, a pretty simple one, if you think about it.

#

Actually, probably depends on whether you already know it.

#

How many places are there to put the rook in the first column, then the second column, etc.

#

Yeah

honest pier
#

😔 that's a bit embarassing 😔

stuck furnace
#

That could help

#

But there's actually a really simple solution.

#

Yeah, same tbh Griff 😄

uncut meteor
stuck furnace
#

||Think about the binary representation.||

uncut meteor
#

ps aux | grep config.dat

stuck furnace
# uncut meteor it is pain

My school was pretty rough, but somehow was still ranked "outstanding" by Ofsted. I couldn't imagine what a school ranked "poor" would be like 😄

frozen jacinth
#

jacoby 3656066 0.0 0.0 9044 2648 pts/0 S+ 19:14 0:00 grep --color=auto config.dat

stuck furnace
#

yeah exactly 😄

uncut meteor
#

ps aux

#

lsof | grep config.dat

honest pier
#

😔

uncut meteor
#

lsof

honest pier
#

i learned this algo when i used langs that didn't have bin

dire oriole
#

i'll join once you're done this round 👀

stuck furnace
#

||How many 1s?||

honest pier
#

!e

print(" ".join(str((n, bin(n))) for n in range(100)))
wise cargoBOT
#

@honest pier :white_check_mark: Your eval job has completed with return code 0.

(0, '0b0') (1, '0b1') (2, '0b10') (3, '0b11') (4, '0b100') (5, '0b101') (6, '0b110') (7, '0b111') (8, '0b1000') (9, '0b1001') (10, '0b1010') (11, '0b1011') (12, '0b1100') (13, '0b1101') (14, '0b1110') (15, '0b1111') (16, '0b10000') (17, '0b10001') (18, '0b10010') (19, '0b10011') (20, '0b10100') (21, '0b10101') (22, '0b10110') (23, '0b10111') (24, '0b11000') (25, '0b11001') (26, '0b11010') (27, '0b11011') (28, '0b11100') (29, '0b11101') (30, '0b11110') (31, '0b11111') (32, '0b100000') (33, '0b100001') (34, '0b100010') (35, '0b100011') (36, '0b100100') (37, '0b100101') (38, '0b100110') (39, '0b100111') (40, '0b101000') (41, '0b101001') (42, '0b101010') (43, '0b101011') (44, '0b101100') (45, '0b101101') (46, '0b101110') (47, '0b101111') (48, '0b110000') (49, '0b110001') (50, '0b110010') (51, '0b110011') (52, '0b110100') (53, '0b110101') (54, '0b110110') (55, '0b110111') (56, '0b111000') (57, '0b111001') (58, '0b111010') (59, '0b111011') (60, '0b111100') (61, '0b111101') (62, '0b111110') (
... (truncated - too long)

Full output: https://paste.pythondiscord.com/gucigisupi.txt

stuck furnace
#

Oh, you also do something like ||n & (n-1)||

honest pier
#

yeah, i did that

#

@dire oriole round over if you wanna join

stuck furnace
honest pier
#

😔

dire oriole
#

is this all easy questions?

stuck furnace
#

Don't ask too many questions 😄

#

It's a bad username for multiple reasons.

uncut meteor
#

sry

#

:c

#

I stop ask

stuck furnace
#

Hello @wicked sundial 👋

wicked sundial
stuck furnace
#

Ah right ok 👍

honest pier
dire oriole
#

one question per round?

honest pier
#

yes

dire oriole
#

cool

honest pier
#

ooh intersection was a nice touch

stuck furnace
#

Thanks lemon_pleased

#

Intersection between to sets is the set that contains all objects that are in both sets.

#

!eval ```py
xs = set('abcde')
ys = set('cdefg')
print(xs & ys) # intersection
print(xs | ys) # union

wise cargoBOT
#

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

001 | {'e', 'd', 'c'}
002 | {'c', 'e', 'b', 'f', 'a', 'd', 'g'}
stuck furnace
#

Starting!

honest pier
#

@stuck furnace ||i didn't expect a simple test to work||

stuck furnace
stuck furnace
honest pier
#

oop

stuck furnace
honest pier
#

yeah, didn't expect it to be so fast

#

i'm guessing they didn't actually test n=MAXN

stuck furnace
#

Might have been those optimisations. Going to make a few changes to mine now 😄

honest pier
#

huh, 100k isn't even that bad

stuck furnace
#

I mean, 100,000 isn't all that large anyway.

#

Jinx 😄

honest pier
#

i would've been confident in a faster lang but i had some doubts with python ¯_(ツ)_/¯

stuck furnace
#

Check out Sieve of Eratosthenes if you have the time.

#

Literally an ancient algorithm 😄

#

I'm not familiar with 'sieve' outside of this algorithm.

thin breach
#

my data is this (209236.43631378212, -4922.464295096201, -599339.2900889512) (210798.5646790759, -5095.09755163024, -598379.1943603134) (212167.78835370587, -5249.762483773174, -597398.3471446899) (212564.75949264746, -5295.237132226962, -597087.9369477513) (212922.321415558, -5336.452777283411, -596797.671745098)

#

can I somehow remove the ( and )?

uncut meteor
#

!docs str.replace

wise cargoBOT
#
str.replace(old, new[, count])```
Return a copy of the string with all occurrences of substring *old* replaced by *new*. If the optional argument *count* is given, only the first *count* occurrences are replaced.
stuck furnace
#

Hello @noble copper 👋

uncut meteor
#

!e

x = """
(209236.43631378212, -4922.464295096201, -599339.2900889512)
(210798.5646790759, -5095.09755163024, -598379.1943603134)
(212167.78835370587, -5249.762483773174, -597398.3471446899)
(212564.75949264746, -5295.237132226962, -597087.9369477513)
(212922.321415558, -5336.452777283411, -596797.671745098)
"""
x = x.replace(")","")
x = x.replace("(","")
print(x)
wise cargoBOT
#

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

001 | 
002 | 209236.43631378212, -4922.464295096201, -599339.2900889512
003 | 210798.5646790759, -5095.09755163024, -598379.1943603134
004 | 212167.78835370587, -5249.762483773174, -597398.3471446899
005 | 212564.75949264746, -5295.237132226962, -597087.9369477513
006 | 212922.321415558, -5336.452777283411, -596797.671745098
uncut meteor
#

if it is a iterable

#

use

#

''.join

#

@noble copper can you repeat

#

what are the entities

#

how much data transfer would the chases require?

#

if it is small

#

go for it

#

if not, split them

stuck furnace
#

You could make a decorator to count the number of times any function is run.

thin breach
#

now it does ['184461.7555061611,', '-2543.148952307994,', '-600221.5256528192'] ['185092.01487300097,', '-2598.2400189750015,', '-600426.6554807136'] ['185671.26865263944,', '-2648.9332728401896,', '-600607.736067098'] ['186246.48933695946,', '-2699.3504768093567,', '-600780.3518364455'] ['186806.30339703805,', '-2748.4771924740126,', '-600941.2743878695'] ['187383.9142503482,', '-2799.277939840758,', '-601099.9320797671']

#

cause I am doing ```python
for line in input:

x,y,z = line.split()

print(x,y,z)
stuck furnace
#

Did anyone manage to get the O(log n) solution?

honest pier
#

yeah, petri dish and i

stuck furnace
#

Ah right. I figured out the idea, but not the details.

thin breach
#

yay 202599.7132532507 -4227.101161375229 -601863.5303955283 204313.8977579791 -4401.434067076382 -601424.2580397886 206042.38583603536 -4580.742212419328 -600840.0528324466 207682.13939383504 -4754.39181544232 -600142.3004928054 209236.43631378212 -4922.464295096201 -599339.2900889512 210798.5646790759 -5095.09755163024 -598379.1943603134 212167.78835370587 -5249.762483773174 -597398.3471446899 212564.75949264746 -5295.237132226962 -597087.9369477513 212922.321415558 -5336.452777283411 -596797.671745098

honest pier
#

@stuck furnace that's so clever wtf

#

hmmm

stuck furnace
#

Really?

honest pier
#

actually wait

#

i thought you were doing something cooler

#

😔

stuck furnace
#

Ah lemon_pensive

honest pier
#

it is pretty cool though

stuck furnace
#

I can't see yours...

honest pier
#

o

stuck furnace
#

I actually know another way to do it, but need to get the math right.

#

Oh yeah

#

That's it 😄

honest pier
#

your way is very neat though

#

very pythonic

stuck furnace
#

Thanks. Wasn't sure if it would be fast enough.

honest pier
#

yeah, they didn't give a bound on n...

#

L = [] @thin breach

stuck furnace
#

Oh, paste the error message

thin breach
#

TypeError: can only concatenate list (not "float") to list

stuck furnace
#

Yeah, mylist.append(1.23) or mylist += [1.23] but not mylist += 1.23

#

Have you seen Coding Train on youtube? 😄 He does cool things with processing.js

#

He's like the embodiment of caffeine.

thin breach
stuck furnace
#

Yeah, don't be discouraging please.

#

Not the kind of culture we want on this server.

potent torrent
#

turn it on/off

#

isnt it f12?

thin breach
#
  File "D:/0PhysicsCode/pmoczPic/KerbalSpace/ploting.py", line 37, in <module>
    ax.plot_wireframe(xaxis, yaxis, zaxis)
  File "D:\0PhysicsCode\pmoczPic\venv\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line 1793, in plot_wireframe
    if Z.ndim != 2:
AttributeError: 'list' object has no attribute 'ndim'``` wtf??
potent torrent
#

@frozen jacinth try f12

thin breach
#

added 3d

#

x = float(x)

stuck furnace
#

Yeah, me too tbh

#

See ya Griff

#

3am here

uncut meteor
uncut meteor
honest pier
#

😔

#

👋

uncut meteor
#

two bottles of wine be like that

stuck furnace
#

Sorry Pasta 😄 See ya

uncut meteor
#

t'was fun

stuck furnace
thin breach
#

this is the right one

lethal thunder
#

nice

whole bear
#

Is there a known way to get answers in google forms?

whole bear
#

What is the method?

atomic willow
tall latch
#

but you can figure it out

whole bear
#

It's not inspect element right?

tall latch
#

wait is it a form you made

#

or

#

sus

whole bear
#

Hahahaha

#

It's not a form I made😁

tall latch
#

then you cant know answers

#

unless

#

the author of the form give you permission to do so

atomic willow
#
Wikiwand

H.264/MPEG-4 AVC ist ein H.-Standard zur Videokompression. Nachfolger sind H.265, VP9 und Daala. Er wurde zunächst von der ITU unter dem Namen H.26L entwickelt. Im Jahr 2001 schloss sich die ITU-Gruppe mit MPEG-Visual zusammen und führte die Entwicklung gemeinschaftlich im Joint Video Team fort. Ziel des Projektes war es, ein Kompressionsverfahr...

somber heath
#

Bro Ken comes with Bro Ken phone. From Mattel.

gentle flint
#

Vexillology ()

#

not to be confused with Vexillology

#

or vexillology

atomic willow
gentle flint
atomic willow
#

Verkehrswegeplanungsbeschleunigungsgesetz

runic forum
#

damnn

gentle flint
runic forum
gentle flint
#

aansprakelijkheidswaardevaststellingsveranderingen

runic forum
#

suurtehokolmivaihekilowattituntimittari

#

Teeskentelemättömyydellisyydelläänsäkäänköhänköhän

gentle flint
#

arbeidsongeschiktheidsverzekeringsmaatschappij
labour-incapacity-insurance-company
insurance company for incapacity for labour

runic forum
#

Tomaattisipulimajoneesiavokadoretiisikurkkupekonisalamikamarasinihomejuustovoileipä

gentle flint
#

uit de roulatie

runic forum
#

what does that mean?

pine ledge
#

That's very big word

runic forum
#

not compared to mine

pine ledge
#

I can't read it

#

Any of these

gentle flint
#

learn any germanic language

#

it'll be a lot easier

#

except the iron biscuits ones

#

his are a nightmarish jumble of alien sounds in finnish

pine ledge
#

It's very difficult to pronounce German

gentle flint
#

nein

pine ledge
#

For mw

#

Me

runic forum
#

ei ole vittu

pine ledge
#

What does it mean :)

runic forum
#

mite niin?

#

etkö osaa?

gentle flint
#

matplotlib

pine ledge
#

Excel

candid venture
#

Deutschland

pine ledge
#

How do you read an image

runic forum
#

Mini Chin

crystal fox
gentle flint
#

this is with noise cancellation

#

on the other end of the house

#

my room door was open

#

it went on for about 2 months

#

including, occasionally, at 10 pm

runic forum
gentle flint
#

farts do not make my room vibrate

golden hearth
#

with the right frequency and volume, they can

gentle flint
#

you should come demonstrate one day

#

Actually, don't

golden hearth
#

if its humanly possible or not is a mystery

runic forum
#

well if you ate much beans and took laxative after, youd have the largest fart (and diarrhea)

pine ledge
#

I can't hear anything

gentle flint
cyan dragon
#

i can't speak

#

can't even verify

gentle flint
#

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

cyan dragon
#

that's for ssrf initally

#

i am just confused about last 2 cve's they were both same

#

why microsoft would have differentiated those

#

both include unauthorized file writing

#

in django do we have to use collectstatic again and again to include css and js

gentle flint
crystal fox
gentle flint
#

very suburban

crystal fox
gentle flint
crystal fox
runic forum
gentle flint
#

it's a district of london

faint ermine
#

@abstract whale some example highlighting config that i have for python:

 "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "string.regexp",
                "settings": {
                    "foreground":"#ff8888"
                }
            },
            {
                "scope": "meta.class.python",
                "settings": {
                    "foreground":"#50f0a0"
                }
            },
            {
                "scope": "meta.function-call.generic.python, support.function.builtin.python",
                "settings": {
                    "foreground":"#e6ffb4"
                }
            },
        ]
    },
gentle flint
#

reminds me of telegram themes

faint ermine
#

eh its just TextMate which is used in many editors

gentle flint
#

o

faint ermine
#

i would wager every major IDE uses TextMate

#

hm, i may have been wrong

gentle flint
#

@faint ermine can I call you laundchen

#

meine lieber kleine laundchen

crystal fox
gentle flint
#

I'll brb

uncut meteor
#

Do you have any AI-lings?

gentle flint
#

I'm gonna actually send this headset back for repair

runic forum
#

savage AI

versed island
#

ask her ... whats the best way to find a job

#

thanks

crystal fox
#

that AI bit was excellent. thanks @faint ermine

clear shadow
#

I didn't understand

#

its a json file or what

runic forum
#

it's his config file for python

faint ermine
golden hearth
#

you people like my new username?

#

xD

abstract whale
#

@faint ermine I was just reading up and experimenting with that feature. Since that theme doesn't change $var = "example" from white. What a coincidence.

faint ermine
#

i mean, i sent the example there specifically for you. or did i misunderstand what you're referring to?

abstract whale
#

oh/ HAHA. Context from my side. Sorry. Ill go look at it more closely

#

oh I see , i think. That's why it doesn't understand me.

#

Gotta specifically tell it what scope to hit.

#

Thanks!

abstract whale
whole bear
#

principals bro

#

not policies

#

How do I get voice perms?

faint ermine
#

!voice @whole bear

wise cargoBOT
#

Voice verification

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

dense ibex
remote kettle
#

!e

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

remote kettle
#

!e
import time, numpy

n = 999999

def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)

var = 0

def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) (-2)
var += sol

pi = (var * 6)  .5
return pi

t = measure_time(calculate_pi)

print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")

wise cargoBOT
#

@remote kettle :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 21
002 |     pi = (var * 6)  .5
003 |                     ^
004 | SyntaxError: invalid syntax
remote kettle
#

!e

import time, numpy

n = 999999

def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)

var = 0

def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) ** (-2)
var += sol

pi = (var * 6) ** .5
return pi

t = measure_time(calculate_pi)

print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")

wise cargoBOT
#

@remote kettle :white_check_mark: Your eval job has completed with return code 0.

001 | Calculated PI: 3.141591698659554
002 | Actual PI: 3.141592653589793
003 | Difference between both: 9.549302393274672e-07
004 | Computing time: 0.4498860836029053
remote kettle
#

!e

import time, numpy

n = 99999999

def measure_time(funktion):
t0 = time.time()
funktion()
t1 = time.time()
return float(t1 - t0)

var = 0

def calculate_pi():
global var, pi
for i in range(n):
sol = (i + 1) ** (-2)
var += sol

pi = (var * 6) ** .5
return pi

t = measure_time(calculate_pi)

print(f"Calculated PI: {pi}")
print(f"Actual PI: {numpy.pi}")
print(f"Difference between both: {abs(numpy.pi - pi)}")
print(f"Computing time: {t}")

wise cargoBOT
#

@remote kettle :warning: Your eval job timed out or ran out of memory.

[No output]