#voice-chat-text-0

1 messages Β· Page 85 of 1

rugged root
#

Pointless operation

amber raptor
#

it also doesn't matter

stuck furnace
#

Draft dodger lol

amber raptor
# stuck furnace Draft dodger lol

I asked during manager interview what interview was and languages acceptable, they said it was some leetcode and whatever language I wanted

stuck furnace
#

Nah πŸ˜„ But it's a thing people say.

amber raptor
#

Told the manager "Nope, this interview process is over now"

stuck furnace
#

Fair enough

rugged root
#

I'd just want practical code interview questions.

#

Like related to what I'd actually be doing

amber raptor
#
servername:{OS: 'Windows', SoftwareInstalled: ['Adobe', Office']}```
rugged root
#

Gotta love that

#

Wait, Lance is still doing that?

#

Thought the event was over

#

The heart thingy

sweet lodge
rugged root
#

Goooootcha

sweet lodge
#

So always the entire month

rugged root
#

Forgot

stuck furnace
#

We need a month of hate, to balance things.

sweet lodge
#

What should the reaction be?
πŸ–• ?

rugged root
#

I think we get that enough during gay pride

stuck furnace
#

Yeah fair enough

rugged root
#

God I love Nutella

#

So good

somber heath
#

@rich dockπŸ‘‹

#

Ah, yes. The delicious, chocolaty taste of hazelnoots.

#

Noothing like it.

rugged root
#

Love me some hazelnuts

somber heath
#

There's an Italian product. Nuttino. It's also very good.

rugged root
#

Same idea?

somber heath
#

Yes.

rich dock
#

Hi

rugged root
#

Yo

#

How's it going

rugged root
somber heath
#

Even though pretty much everyone says "Nut-ella"

rugged root
#

I say Noo

#

Actually

#

I alternate

rich dock
#

I'm from Russia, but I love Nutella>)

sharp urchin
#

for me

rugged root
#

So what're folks up to

rich dock
rugged root
#

Well shit, now I'm second guessing myself

#

There's a part of me that really REALLY wants to do TypeScript using Sublime

#

But I know the tooling for it is so good in VSC

amber raptor
#

VSC and devcontainers. Thought over

rugged root
#

Yeah still need to try those

#

Reading up on how to make one now

#

@molten pewter What up home slice

#

I don't think we've really asked ourselves.... What IS "up dog"?

rugged root
#

Is it a state of mind, a state of home boyedness...

#

The philosophical possibilities are endless

#

Nice

sharp urchin
#

thts amazing

#

!

somber heath
#

It'll be the url.

rugged root
#

As we do

#

@amber raptor Do I set it up inside an existing project folder or do I make the container and then clone/add the stuff there

sharp urchin
rugged root
#

Or does it matter

sharp urchin
rugged root
#

Wait

#

That's a button?

sharp urchin
#

which then confused me

#

and i had to copy link

rugged root
#

@molten pewter Whatcha watching?

sharp urchin
#

in order to find out

sharp urchin
rugged root
#

Eh

#

Like

sharp urchin
#

have you guys seen, "Platform"?

rugged root
#

It just sounds like someone talking far away in a different room but also muffled

#

And it's occasional

#

Haven't heard of it, no

sharp urchin
#

hmm

rugged root
#

Huh, also didn't know this was a thing

sharp urchin
#

also the fact that netflix servers and so are its contents dofferent

sharp urchin
#

in every single country

#

as far as ik

whole bear
#

help

#

pleez

#

ERROR: Could not find a version that satisfies the requirement discord_components (from versions: none)
ERROR: No matching distribution found for discord_components

rugged root
#

What version of Python are you using?

#

You might need to downgrade to 3.10 or something

whole bear
#

3.10.0

rugged root
#

Oh hmm

#

What operating system?

whole bear
#

ok

#

windows

rugged root
#

Do py It says you're on 3.10.0, right?

whole bear
#

yes

rugged root
#

Although honestly.... I think discord.py's latest has component support

#

I think?

#

I'd have to look

#

@willow light Hey buuuuuuuuuddy

willow light
#

oh hai

#

just figured i'd jump in while waiting on a build

rugged root
#

Sure sure

#

You been well?

willow light
#

I'm increasingly convinced that the UDeploy team at IBM comprises entirely of sadists.

rugged root
#

Sounds right

willow light
#

Possibly one of the slowest and buggiest build systems I have ever had the displeasure of using.

Makes me wish I was using Jenkins.

rugged root
#

"You said IBM? Oh dude, me too!"

sweet lodge
#

Dear Dog

willow light
#

woof

#

also i notice ot0 has the best name yet

somber heath
#

@regal boltπŸ‘‹

rugged root
#

PFF

#

Yeah just saw that

#

@slim edge Yo

#

@zenith radish Yoooo

#

Hello

somber heath
#

@zenith radishπŸ‘‹

rugged root
#

Hemalloc

zenith radish
lavish rover
#

hemset

rugged root
#

You're welcome

#

Nerdy

#

Learning about dev containers

#

Yeah

#

That's my brain

#

Keeps everything isolated and consistent

sweet lodge
#

Rabbit would be proud

rugged root
#

Wait, do I make it from Docker Desktop or through VSC itself

#

I'm confuzzled

willow light
#

nah man, run everything on the same machine in the same virtual environment. screw namespaces, import everything as `*

rugged root
#

I ask because that's apparently a new thing on there

#

On Docker Desktop

sweet lodge
rugged root
#

Right

#

It was fun back then

#

It's tedious now

#

Was that Uru?

#

There's a reason it failed

#

Eh... They had that in some of the very very old shooters

#

Think it was an option in Doom

#

Unless your midi driver was bad

#

In which case it'd be the only thing saving your ears

#

I have those from time to time

#

Kinky

#

What're you up to LP?

#

Are you currently playing RS or...

#

@zenith radish Notice me LPai

#

Scratches an itch

#

It's not bad

rugged root
#

No no

#

Scratching an itch of like... seeing numbers go up and slightly mindless

#

Also yes

#

As a former incremental gameaholic

#

I get it

#

I have an incremental game in mind

#

That I've been wanting to make

#

I just never knew how to do the cost scaling

#

I'm not

#

I legit have had an idea kicking around my head for about 3 or 4 years

#

It's dumb and simple

#

Overall concept is a dog digging in a backyard to find bones. Then he gets a shovel. Then a bigger shovel. Then a backhoe. Etc.

#

Then hires other dogs to get more bones in other yards

somber heath
#

@zenith radish What would be nostalgia scratching for you?

#

What were your childhood gaming jams?

rugged root
#

Strawberry?

#

I'm not sorry

#

I take that as a compliment

#

@sweet lodge Do I have to make this in a new project folder or can I plop it into an existing one?

#

Poor guy

rugged root
#

The dev container

#

@somber heath It's probably one of the weaker trolling strats

sweet lodge
#

Code has to go inside the container

rugged root
#

Okies

sweet lodge
#

You can't folders on your computer

#

Am I understanding the question correctly?

rugged root
#

I am the understandings now

#

Yes

#

Hey sky

sweet lodge
#

πŸ‘

rugged root
#

Hey Mosa

somber heath
#

@rain moon πŸ‘‹

sweet lodge
#

Jesus hecking Dog in the park

#

I just wanted a πŸ‘

rain moon
#

Hi

#

does anyone know some regex ?

sweet lodge
#

How much of it?

rain moon
#

very little

sweet lodge
#

What is the question?

rugged root
#

Oh I can open folder in container

rain moon
#

@somber heath Wait i didnt hear you if you were talking i just put my heasphones and apperently its broken

rugged root
#

He was saying hi

rain moon
sweet lodge
rain moon
#

i did a post about it but i dont remember how to send you the channel

rugged root
#

Should be able to right click and then Copy Link I think

#

On the channel list on the right

#

Left

#

Left Hemlock

#

Get your shit together

rain moon
#

Oh , thanks

#

they dont want uppercase letters

#

no the Falses and Trues after the commas in the function call are representing the answer I should have

#
  • dont mind me if i dont understand you my English suck a little but
rugged root
#

No worries

rugged root
#

So I don't think it defeats the purpose at all

sweet lodge
rugged root
#

Welcome back

#

You could just... turn off the monitor by hand

#

How far away is it

#

Skill issue

#

I say it with love

#

Hey finesse

#

What's new with you

#

We had a pipe burst near the end of December, and my regular office got thrashed

#

It's what we call the small conference room

#

And it's in the middle of the business services area

#

Eh

#

It's fine

#

I'm patient

#

Nice

#

Jesus how

#

I mean how do you even manage that

#

That's cray cray

lucid blade
#

is there an off topic chan ?

#

hey btw πŸ™‚

rugged root
#

!ot

wise cargoBOT
rugged root
#

Yeah, we've got a category of 3

lucid blade
#

cool

#

mind if i share a link here ?

rugged root
#

You can do it here too. What's the link? Server appropriate right?

lucid blade
#

yeh

rugged root
#

Oooo nifty

lucid blade
#

its very heavy though lol

#

not for the feint hearted lololol

#

ill stick it in the ot channel too

#

but i hope you enjoy it if you have chance to give it a listen πŸ˜‰

rugged root
#

For sure

lucid blade
#

wicked πŸ™‚

sweet lodge
#

@rugged root is voicefullock back yet?

rugged root
#

Not for a little while still

slim edge
hoary olive
#

hi guys i had a question

#

why is O(n+q) simplified to O(n)

rugged root
#

What does q represent?

#

Makes sense

slim edge
#

Because q is a constant, it's only n that is going higher

hoary olive
#

how is it a constant ?

#

OK let me make a better example

slim edge
#

Because the assignment says so πŸ˜›

somber heath
#

quonstant.

rugged root
#

But it's a pun

#

Love the pun

hoary olive
#
print()
for x in nums:
  print(x)
``` so this is O(n+1) which is simplified to O(n) bc constant doesnt really do that much , i get this
#
for x in fruits:
  print(x)
for x in nums:
  print(x)
``` this is O(n+m) which is simplified to O(n)
#

why

rain moon
#

@slim edgethank you !

hoary olive
#

ye but this is two linear loops

rugged root
#

So the assumption is that there's only one variable that will change?

#

This all breaks my head

rain moon
#

@slim edgecan i massage you in dms ?

hoary olive
#

Ye but then O(n+n^2) => O(n^2)

#

why

slim edge
rugged root
#

That doesn't feel right

#

Because that extra n would still impact performance

hoary olive
#

but then O(2n) is O(n) this is literally the exact opposite

tepid edge
#

O(1+n+n^2+5^n)

hoary olive
#

its O(5^n)?

tepid edge
#

lim(f1 -f2) -> infinity

slim edge
#

O(n) is just a way to say the function is constant, they are not trying to say 0(1n)

ancient lily
#

which linux distro should I use for WSL?

rugged root
#

Ubuntu

#

It seems to have the most support out there for it

ancient lily
#

just the ubuntu or the lts

hoary olive
#

ya literally understood nothing lol

rugged root
#

I think that's preference

ancient lily
#

alright immaa go with the lts

hoary olive
#

no

#

ok so i get how you do bigger

#

then why is O(n+m) O(n)

#

why not O(m)

#

yes

rugged root
#

With these, the implication is that there's only one input that changes?

hoary olive
#

MHM

#

but what if n is an array and m is a array list

#

m should be larger

#

even a queue

rugged root
#

Then m becomes n and vice versa?

slim edge
#

The question is by convention: "What happens if the value N goes up"

If the assignment asks for M instead then sure

rugged root
#

It does

#

!e

import matplotlib
wise cargoBOT
#

@rugged root :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 |   File "/snekbox/user_base/lib/python3.11/site-packages/matplotlib/__init__.py", line 900, in <module>
004 |     dict.update(rcParams, _rc_params_in_file(matplotlib_fname()))
005 |                                              ^^^^^^^^^^^^^^^^^^
006 |   File "/snekbox/user_base/lib/python3.11/site-packages/matplotlib/__init__.py", line 583, in matplotlib_fname
007 |     for fname in gen_candidates():
008 |   File "/snekbox/user_base/lib/python3.11/site-packages/matplotlib/__init__.py", line 580, in gen_candidates
009 |     yield os.path.join(get_configdir(), 'matplotlibrc')
010 |                        ^^^^^^^^^^^^^^^
011 |   File "/snekbox/user_base/lib/python3.11/site-packages/matplotlib/__init__.py", line 279, in wrapper
... (truncated - too many lines)

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

rugged root
#

Ah no wait

#

Was thinking numpy

#

My b

#

I can grant stream if you'd prefer for this

hoary olive
#

what happens if its async then

#

as in m is async and n is sync

rugged root
#

It'd still be the number of times the operation happens

#

The time is based on the operations taken or needed (I think that's right anyway....)

#

So the delays due to async wouldn't matter

hoary olive
#

so O(n) each way

tepid edge
rugged root
#

Unless it has to do more things based on increased inputs

somber heath
tepid edge
somber heath
#

Real math has curves.

rugged root
#

Right

#

You'd be consistent at the amount of time you take per plate

#

You don't end up getting slower per plate or faster per plate

slim edge
rugged root
#

thicc maths

tepid edge
somber heath
#

If you have a wide variety of herbs in your garden, would that be thyme complexity?

hoary olive
#

x^2 and 2^x are the same? wtf

rugged root
#

HA

#

They're very not

#

The latter will shoot through the fucking roof

somber heath
#

Like Superman in a hurry.

rugged root
#

"I left the oven on!" -bam-

tepid edge
rugged root
#

Daww

hoary olive
#

ah makes sense now

rugged root
#

We do our best to keep it a friendly place

slim edge
rugged root
#

❀️

#

Just eyeball it

rugged root
#

@tepid edge Do you just want to stream it?

#

!stream @tepid edge

wise cargoBOT
#

βœ… @tepid edge can now stream until <t:1676661454:f>.

somber heath
#

@glass vigil πŸ‘‹

hoary olive
#

ye exponential is the opposite of logarithmic

somber heath
#

@whole bear πŸ‘‹

sharp urchin
#

hello

whole bear
#

hello

sharp urchin
#

what's happening exactly in stream?

hoary olive
#

and whats the usecase of exponential

whole bear
#

How much?

sharp urchin
#

time complexity -topic?

whole bear
#

kill @slim edge

rugged root
#

Oddly and instantly harsh

slim edge
#

The usecase is mostly just for exams, but when you deal with big user-bases this theory will tell you if your function will not work

#

Hey why me

rugged root
#

Yeah if you could not randomly threaten our users that'd be great, @whole bear

hoary olive
#

so also O(2n + m) space should be O(n) space i presume?

sharp urchin
#

yes

slim edge
slim edge
whole bear
#

@slim edge You are foor loop or while loop?

hoary olive
#

How tf can O(n^2) space exist....

slim edge
whole bear
rugged root
#

@strong arch Sup

whole bear
#

robb

slim edge
whole bear
#

you are not funny

slim edge
rugged root
#

Ah yeah

#

Can you screenshot?

whole bear
#

Certainly more than yours

rugged root
#

What

#

What'd I do now

#

I'm not following

#

@quaint oyster I mean the polite thing is to not bullrush in

hoary olive
#

ok thnx moritz still have no clue how O(2n) is O(n) but the rest got more clear atleast

slim edge
#

They are not the same, but these assignments are asking if both are linear, and they are

rugged root
#

Yeah, no worries

#

@strong arch We knew that but we love you anyway

verbal zenith
onyx geode
#

I think I don't have the permission to open mic.

#

Yeah, I understand

#

Cool

#

Where are you from?

#

I guess, I am gonna talk like this for now πŸ˜‚

#

I'm from India.

#

What do you do?

#

Backend

#

Webdev

#

Any framework in specific?

#

That you have used

#

Okay

#

Golang is cool

#

Do you like python?

#

That's cool

#

Me

#

I worked on PHP earlier

#

Mainly on a framework named Drupal

#

Yup

#

Currently, I'm working on django

sharp urchin
#

HELLO people!

#

yeh

#

lmao

glad sandal
sharp urchin
#

make and train models

#

in short

#

:}

#

rust

somber heath
naive cloak
#

Hello how can I enable my voice chat

sharp urchin
#

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

jagged trench
#

bruh

#

I'm not able to hear anything while using discord on browser, how can I fix my browser settings?

vocal basin
#

some browsers (e.g. tor) may have it blocked by default

#

shift+enter?

sharp urchin
#

hello
world

vocal basin
verbal zenith
vocal basin
#

a lot of them seem symmetric along the diagonal

#

I haven't made anything new since this

verbal zenith
vocal basin
#

these three were quite early (even before bug fixes)

naive cloak
#

any1 familiar with abstract factory pattern?

vocal basin
naive cloak
#

You'd be great help than @vocal basin

vocal basin
#

what's the question?

vocal basin
naive cloak
#

its a whole prompt

vocal basin
# vocal basin ordering instead of shuffling the direction
self.offsets = [
    (-1, 0),
    (-1, 1),
    (0, 1),
    (1, 1),
    (1, 0),
    (1, -1),
    (0, -1),
    (-1, -1),
]
# in another method
a = self.angle + np.random.uniform(-np.pi / 8, np.pi / 8)
self.offsets.sort(
    key=lambda t: (np.cos(a) - t[0] / np.hypot(*t)) ** 2 + (np.sin(a) - t[1] / np.hypot(*t)) ** 2
)
#

should have probably used np.sort instead

verbal zenith
vocal basin
#

it's not very plausible to use numpy for stacks
not much gain

#

writing C extensions can help

#

(or Rust)

#

or anything that can interact with Python

#

fork numpy

vocal basin
#

some python libraries use it inside

#

very old language

verbal zenith
naive cloak
#

Does any1 in this discord offer tutoring by any chance, I would actually pay because these university professors are not the best at teaching sometimes

wise cargoBOT
#

9. Do not offer or ask for paid work of any kind.

sharp urchin
#

read documentations

#

and see yt tutorials:}

#

i agree uni prof are not the way

#

at least for me too

vocal basin
naive cloak
#

yea that's true

sharp urchin
#

didnt look good

#

and then i thought to not waste time anymore

vocal basin
#

less circular

jagged trench
#

😭

vocal basin
sharp urchin
#

or they are randomly generated?

#

just curious:-

vocal basin
#

by default it's pi/8

#

although I'm not sure if it should be pi/8

jagged trench
#

what should I do now?

sharp urchin
#

so i can make the exact same one if i wanted to

#

hmm

verbal zenith
vocal basin
#

I've changed the ordering algorithm from distance to dot product
(although, I think, it shouldn't change the result)

vocal basin
verbal zenith
vocal basin
#

four colour arrays generated separately
then merged based on when the pixel was filled

#

just # in dockerfile

#

there are things like RUN where # can be a part of the command

#

like

#

(shell thingy)

#

I'll turn off all logic and measure the time

#

I know I can't optimise merging reasonably

#

like
black video: 40s
merging: 50s

somber heath
vocal basin
vocal basin
#

-> 4s

#

it's more true for C

#

whereas python with its dictionary lookup on each variable access... idk

#

hash tables do help though for branch-less (compared to trees)

vocal basin
vagrant hollow
#

Hellooooo!

#

I am a beginner at python and I was having trouble downloading a ai software. Is there anyone here I can speak to about it?

vocal basin
vagrant hollow
#

Do you mind if we hop in a call? I have been asking chat gpt to help me this whole time and now my fingers are tired of typing lol. If not I can type it out here.

#

I am very much a beginner so I don't know how to put it all in words

vocal basin
#

I don't do DM calls but I can attempt helping in text form

vagrant hollow
#

okie dokie I understand

#

give me a sec to type it

vocal basin
#

@verbal zenith
how to do angles? or something else?

vagrant hollow
#

I am trying to download AI stable fusion. I followed all the steos correctly putting everything into GIThub but when I went to download python I got the wrong version which was the newest one. After I uninstalled the old one I deleted the old path in my environment and downloaded the version I needed. But now the directory is still going to the newest version in python and its giving me a error now

vocal basin
verbal zenith
#

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

vocal basin
#

reshape: performs in place
resize: returns a new array

verbal zenith
#

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

vocal basin
#

or...

#

I don't actually remember

jagged trench
#

lesgoo

#

I finally fixed it

vocal basin
vagrant hollow
#

Ill be here whenever youre ready, thank u

vocal basin
#

use venv to avoid breaking everything

vocal basin
#

for playing around there's colab

vocal basin
vagrant hollow
#

The pathway looks correct on the environment variable. But whenever I hit the webui file it opens up python with the wrong one. If that makes sense

#

The previous version still shows up on the ui which I dont understand how to change

#

I apologize I am very new trying to figure it out

vocal basin
vagrant hollow
#

venv "C:\AI-Stable Diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
No Python at '"C:\Users\Owner\AppData\Local\Programs\Python\Python311\python.exe'
Press any key to continue . . .
is what it says when I open the web ui. My variable says C:\Users\Owner\AppData\Local\Programs\Python\Python310\Scripts\

vocal basin
vocal basin
vagrant hollow
#

how do I change that?

vocal basin
#

you can't change it
you need to repeat the process that created the venv

vagrant hollow
#

nooooooooooo

#

so does that mean deleting it all and starting over?

vocal basin
#

to some extent

vagrant hollow
#

Do you think it was a problem with how I did the git hub code?

vocal basin
#

venv gets created with the default python

#

activate, then install

#

@verbal zenith
pip install from an activated venv

#

PyCharm activates by default

#

there are activation scripts

vagrant hollow
#

im so lost lol

vocal basin
#

venv\Scripts\Activate.ps1

#

for windows

#

I didn't know .\venv\Scripts\activate_this.py existed

#

PyCharm does it best to make you use venvs

vagrant hollow
#

Owner@DESKTOP-55AVG4I MINGW64 /c/AI-Stable Diffusion
$ cd C:\AI-Stable Diffusion\stable-diffusion-webui/webui-user
bash: cd: too many arguments

I put this into github when I had the wrong version then I put two files into folders I had downloaded. I believe I cloned it already in github

vocal basin
#

also, in mingw it's /c/ not C:

vocal basin
#

files in .\venv\Scripts

vagrant hollow
#

how do create a new venv for that path

vocal basin
#
python -m venv /path/to/your/venv/
#

it's for creating

vagrant hollow
vocal basin
#

maybe pipenv has different

#

or something

#

just use WolframScript instead

vocal basin
#

civ, yes

verbal zenith
vocal basin
#

I'm applying some OOP abstractions to my code

somber heath
#

!e py import numpy as np arr = np.array([0, 255], dtype = np.uint8) arr[0] -= 1 arr[1] += 1 print(arr)

wise cargoBOT
#

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

[255   0]
vocal basin
#

np.uint8

#

(dtype=np.uint8 or .astype(np.uint8) specifically)

#

conceptually, bytearray is not an array of uint8

#

you can get segfault

#

by breaking things in sys or something

vocal basin
#

raise recursion limit

verbal zenith
#

!e

from __future__ import braces
wise cargoBOT
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 |   File "<string>", line 1
002 | SyntaxError: not a chance
somber heath
#

!e py def func(): try: func() except RecursionError: func() func()

wise cargoBOT
#

@somber heath :warning: Your 3.11 eval job timed out or ran out of memory.

[No output]
vocal basin
#

there are different contexts

#

for StopIteration

#

in a generator, raising StopIteration causes RuntimeError

#

to cause StopIteration in the outside code, you need to return not raise

#

just don't do it in Ruby

vocal basin
verbal zenith
#

!e

def test():
  try:
    return True
  except StopIteration:
    return False

print(test())
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
vocal basin
vocal basin
verbal zenith
#

!e

def test():
  try:
    return True
  except StopIteration:
    return False
  finally:
    return 0

print(test())
wise cargoBOT
#

@verbal zenith :white_check_mark: Your 3.11 eval job has completed with return code 0.

0
vocal basin
#

return doesn't raise StopIteration inside the function

#

it raises it when next is called on the generator

#

!e

def test():
  yield
  return
gen = test()
next(gen)
try:
  next(gen)
except StopIteration:
  print('caught')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

caught
vocal basin
#

!e

# with less next() calls
def test():
  return
  yield
gen = test()
try:
  next(gen)
except StopIteration:
  print('caught')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

caught
vocal basin
#

(swapped return and yield)

verbal zenith
#

!e

def test():
  yield
  return
def annoy():
  try:
    next(gen)
  except StopIteration:
    print('caught')

gen = test()
while True:
  annoy()
wise cargoBOT
#

@verbal zenith :x: Your 3.10 eval job has completed with return code 143 (SIGTERM).

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

Full output: too long to upload

vocal basin
#

venv not VM

#

I think

#

?

verbal zenith
#

!e

import ctypes

i = ctypes.c_char('a')
j = ctypes.pointer(i)
c = 0
while True:
  j[c] = 'a'
  c += 1
  j
wise cargoBOT
#

@verbal zenith :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | TypeError: one character bytes, bytearray or integer expected
vocal basin
#

I've changed how colours mutate

#

now there's a (global) parameter COPY: bool

#

I can make it non-global, tbf

#

copying makes it darker

somber heath
#

@eternal anvil πŸ‘‹

eternal anvil
#

how to speak

wise cargoBOT
#

Voice verification

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

eternal anvil
#

!voice

vocal basin
eternal anvil
#

idk what to do

#

i have sent less than 50 messages

vocal basin
#

seems like for shuffle, it mutates twice slower

somber heath
#

πŸ‘‹ @slow ruin

slow ruin
#

Hello πŸ‘‹

vocal basin
#

I know why it has this colour bias (generating close to r, g, and b separately)

#

I incorrectly increase the contrast

sharp urchin
#

hello

eternal anvil
#

@willow lynx hi

#

namaste

vocal basin
#

copying does help to deal with noise somewhat

sharp urchin
#

these abstract pictures have taken over the whole voice text

#

it is

#

i meant it in a good way

#

😊.

vocal basin
vocal basin
sharp urchin
slow ruin
#

I have like 0 idea what's going on, does anyone mind telling me?

vocal basin
#

copying combined with directional

sharp urchin
#

aight imma come back laterr

#

later guys

wise cargoBOT
#

Voice verification

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

slow ruin
#

Are you intending to say something or just speaking to yourself, cuz all I can hear is noise :D

vocal basin
#

I realised why it loops correctly
overflow happens

#

or no...

#

no, not that

#

weird anyway

#

can't overflow
because addition instead of subtraction
(and uint32 should be enough to fit everything)
although there are negative values

vocal basin
vocal basin
#

just remembered:
if I generate 5D space, I can make an image with uniform luminosity

#

oh, not with uniform
with limited

#

for, uniform 3D is enough

#

(just normalisation)

thin drift
#

hey i need help

somber heath
#

What's up?

thin drift
#

so i want the turtle to half fill the circle

vocal basin
#

@somber heath
they aren't here

thin drift
#

here is code

#

import turtle
t = turtle.Turtle()
t.circle(100)
t.color("green")
t.circle(-100)
t.

vocal basin
#

isn't there arc instead of circle?

#

I may be confusing turtle with canvas

somber heath
thin drift
#

thanks @somber heath

vocal basin
#

something that may take up all my RAM

#

bots aren't magic
ML isn't magic
stocks aren't magic

#

there also exist people banned from trading

vocal basin
#

6D space

#

each colour rotates through its own 2D space

vocal basin
#

I tried to do the 5D->3D projection

#

(with normalisation somewhere in between)

#

it took 32 dimensions to make me realise I can't raise contrast by adding dimensions
(only can make the image weirdly darker)

#

I know that it should get darker

#

but I forgot how the distribution is expected to behave

somber heath
#

@analog stoneπŸ‘‹

vocal basin
#
ffmpeg -y -i .\out.mp4 reencoded.mp4
#

out.mp4 is always broken

#

-vf scale=1920:1080

#

for rescaling

#

usually it will change pixels to non-square to preserve the aspect ratio

#

If one and only one of the values is -n with n >= 1, the scale filter will use a value that maintains the aspect ratio of the input image, calculated from the other specified dimension. After that it will, however, make sure that the calculated dimension is divisible by n and adjust the value if necessary.

#
-vf scale=-2:1080
#

idk what to pick for -N

somber heath
#

🧀 <- Handbrakes.

vocal basin
vocal basin
vocal basin
somber heath
#

@weary gustπŸ‘‹

weary gust
#

hello

vocal basin
#

something might have went wrong with the colours

#

copy + no random swaps

somber heath
#

@gritty sapphire πŸ‘‹

vocal basin
somber heath
#

@slow ventureπŸ‘‹

slow venture
#

hi

vocal basin
#

or not "lightning"

#

idk how to call it

vocal basin
somber heath
#

@ebon willowπŸ‘‹

ebon willow
vocal basin
#

if you want some actual server-side rendering, use JS not Python

#

Python may be okay for APIs

vocal basin
vocal basin
#

Django and Flask are built on some faulty basis

#

WSGI, in particular

#

iirc, Flask uses global variables for request parameters
not even context variables
just globals

#

if you don't know the law well enough, don't risk it

#

if you threaten YouTube's profits in any way, then don't do it
another party that gets angry is Spotify which has an official integration with Discord

#

as in, wherever you play the music from, Spotify will be unhappy

vocal basin
#

the pixel weirdness is what I'm trying to achieve right now

#

like this

somber heath
# vocal basin like this
Warhammer 40k Wiki

"The Warp is a strange and terrible place. You might as well throw a traveller into a sea of sharks and tell him to swim home as send him through the Warp unprotected. Better it is not to let common man travel through the stars. Better still, let him not know such a thing is feasible." β€”Fra Safrane, 5th Aide to Navigator De'el The Immaterium, al...

vocal basin
#

although some remotely similar things do appear

vocal basin
#

testing random parameters (no video)

#

oh, I forgot, there is video, but no merging

#

easier to see here that I forgot about that full rotation fill result in colours repeating

#

half-rotation is enough because (-r, -g, -b) is equivalent to (r, g, b) there

#

seems like, those patterns are just rare
(there is not guarantee they will occur; it may depend on the per-image parameters like angle deviation)

#

there isn't a goal or the goal but there are multiple small goals like:
implementing colour rotation
implementing colour projection
implementing support for multiprocessing
optimisation

#

I had a visualisation thing for projections but I kind of lost it

#

I might have found images of that
so this is matplotlib.pyplot.scatter of 3D sphere projected into 2D space

#

4D -> 2D vs 3D -> 2D

somber heath
#

@whole bearπŸ‘‹

whole bear
#

.

vocal basin
#

projection from two dimensions up makes the distribution uniform

whole bear
#

I need help opal :(

#

command not found:python

#

in vs code

#

how tf

vocal basin
#

command?

#

enable the environment setting thing if you haven't

whole bear
#

this is a possible solve to set it to the right path

#

but It s in the default one

#

usr/bin

#

that one

vocal basin
whole bear
#

still not working

#

I think it s because of the path

#

/usr/local/bin/python3

vocal basin
whole bear
#

this is the defualt one

vocal basin
whole bear
#

It's prob a symbolic link,

#

it might be this

vocal basin
whole bear
#

usr/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3

#

yes

vocal basin
whole bear
#

it was already applied but still doesn t work

vocal basin
somber heath
#

@pseudo crescentπŸ‘‹

pseudo crescent
#

Hello there

#

whats up

#

could you help me with python im kinda stuck

#

basically its just a simple input so if somebody wants a translation of a word

#

so for example from english to dutch

#

teacher told me i just needed a few words only and this is what i got so far

#

i just realized i deleted almost everything after i saw almost everything i did was wrong 🀣

#

sorry ill elaborate

#

this is what i did

#

OH

#

aha ok i get that

#

so instead i should put n = str because its a variable? or did i misunderstood

somber heath
#

!e py dictionary = {"apple": "red", "banana": "yellow"} key = "apple" #key = input("Type a fruit") result = dictionary[key] print(result)

wise cargoBOT
#

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

red
pseudo crescent
#

okok wait let me try it out

#

so what if i were to do

#

input and then a direct translation to the word

somber heath
#

!e py d = {"apple": "red"} print(d) d["banana"] = "yellow" print(d)

wise cargoBOT
#

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

001 | {'apple': 'red'}
002 | {'apple': 'red', 'banana': 'yellow'}
pseudo crescent
#

ok lemme try that πŸ˜„

#

sec

somber heath
#

!e py d = {"apple": "red"} d["banana"]

wise cargoBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 2, in <module>
003 | KeyError: 'banana'
somber heath
#

!e py d = {"apple": "red"} a = d.get("apple", "!@#$") b = d.get("banana", "!@#$") print(a) print(b)

wise cargoBOT
#

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

001 | red
002 | !@#$
pseudo crescent
#

oh yh makes sense

#

oh really?

somber heath
#

!e py d = {"apple": "red", "apple": "green"} print(d)

wise cargoBOT
#

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

{'apple': 'green'}
pseudo crescent
#

oh wth i didnt know that

#

how can i talk in vc?

#

i got no perms to unmute

wise cargoBOT
#

Voice verification

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

pseudo crescent
#

thanks a lot for the help im heading off

#

bye bye

somber heath
#

@whole bearπŸ‘‹

whole bear
somber heath
#

!rule 5

wise cargoBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

somber heath
#
 content="spam_mes"```😏
#

@strange tapirπŸ‘‹

whole bear
#

sorry

strange tapir
undone idol
#

πŸ‘‹πŸΌ

somber heath
#

@oblique gardenπŸ‘‹

oblique garden
#

am new to the server how do i gain permission to speak

wise cargoBOT
#

Voice verification

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

oblique garden
#

ahhh ok rightio thank you πŸ˜ƒ

odd lynx
#

@somber heath why?

somber heath
# odd lynx <@317279909112446976> why?

If someone with a neutral to favourable display picture of Hitler came in, I would behave exactly the same way. I choose to avoid you because you have a photograph of a mass murderer in your display picture. Do not speak to me further.

odd lynx
#

okay lol it's sad you don't get the satire

hoary olive
#

πŸ‘‹ maro

pseudo crescent
#

hey

whole bear
#

eat it

lofty crater
#

whoah yall left me here

sweet pine
#

hi

lofty crater
#

hi

sweet pine
#

i cant speak

lofty crater
#

I guess you are new

sweet pine
#

correct

lofty crater
#

read pinned text, you basically have to spend some time b4 you can

sweet pine
#

yes i can

sweet pine
#

@lofty crater whats your occupation btw

lofty crater
#

sfdc dev

sweet pine
#

salesforce?

lofty crater
#

yup

sweet pine
#

cool, webdev? front?

lofty crater
#

both

sweet pine
#

react?

lofty crater
#

lwc a lesser known framework

sweet pine
#

interesting, i learning data science btw

lofty crater
#

very intgeresting

#

do you have some work lined up about data science

sweet pine
#

ive got good mentor so i decided to learn

lofty crater
#

whoah

#

how do I get in touch with this mentor

sweet pine
#

πŸ˜‚

#

@somber heath im too

sweet pine
somber heath
#

I was asking if you'd found your way to the #voice-verification channel.

sweet pine
somber heath
hoary olive
#

be careful not to spam or you'll get banned πŸ˜…

sweet pine
sweet pine
#

@somber heath i think ive seen you there before

hoary olive
#

Hello maro πŸ‘‹

somber heath
#

@tawdry trench πŸ‘‹

sweet pine
#

davinki?

#

marolokio?

#

oh ok

#

πŸ˜‚

#

mr banaccio

#

banani

#

bananini

#

maronaΓ±o

#

thats sick

pliant atlas
#

unlucky bro

#

LMFAO

sweet pine
#

rip py launcher

pliant atlas
#

try checking in control panel if you still have python

reef thistle
#

hey

#

how can i talk

pliant atlas
reef thistle
#

i speek german to

sweet pine
#

@midnight agate woah your too smart

sweet pine
#

πŸ˜‚

pliant atlas
#

yes?

sweet pine
#

shutup n take my money

reef thistle
#

help me

pliant atlas
#

no clue

sweet pine
#

@midnight agate so casa is house in italian?

reef thistle
#

casinha

sweet pine
#

casa nostra?

reef thistle
#

casΓ£o

pliant atlas
#

i think it transferred into my pc

#

:D

somber heath
#

@wispy forge πŸ‘‹

stuck furnace
#

P(no German-speaking person) = (1 - P(any individual speaks German)) ^ number_of_people

#

Assuming independence.

#

Now what's the probability that any two people in voice-chat share a birthday? πŸ˜„

#

Fair enough

#

Err, sorry I didn't catch the question?

#

Oh right yeah πŸ˜„

#

My favourite question like that is: You flip a fair coin 10 times, and the first 9 times it comes up heads. Is it more likely to come up heads or tails on the 10th flip?

#

In reality, yes lol

#

But given the assumption of "fair coin".

#

That was a very Bayesian answer Maro.

#

You're treating the probability of heads as a random variable.

#

Yeah. I mean eventually you have to make assumptions. Even assuming the flips are completely independent might not be entirely valid!

somber heath
#

Just think of all the questions that arise when a seemingly-healthy baby dies. Was there an illness that went undetected? Was there a rare genetic defect that couldn’t possibly have been known? Are any signs of physical trauma related to the resuscitation efforts of a fragile infant, or something more sinister? Every time a baby dies, police inv...

β–Ά Play video
stuck furnace
#

Here's an interesting one: I just flipped a coin. What's the probability that it's heads?

#

For you, but not for me, right?

#

Because I can see what it is.

#

It must be either 100% or 0% for me.

#

But for you it's 50%

#

So probability is subjective.

hoary olive
#

yoo wazzup LX

#

how was your coffee

stuck furnace
#

I didn't have any coffee today, which might be why I feel pretty tired now that I think about it lol pithink

hoary olive
#

sad

somber heath
#

@whole bear πŸ‘‹

stuck furnace
#

Err, I didn't follow sorry.

#

Sorry, I'm just not sure what you're asking.

#

I'm completely blind when it comes to this kind of thing lol.

#

Oh you keep adding to PATH?

#

Ah right.

#

Errm, I probably missed that sorry.

#

Where above?

#

Pinging modmail won't actually ping the mods sorry.

#

You need to either DM @rapid crown or ping @moderators.

#

Yeah sorry about that, I don't think any mod would have seen that.

#

Erm, I'll make a note or something.

#

Doesn't affect me much seeing as I don't have a job lol

#

Working the remote

stuck furnace
#

Imagine we put last week's lottery winner on trial, accused of fraud (cheating).

#

As the only evidence, we present the fact that they won the lottery.

#

The probability of winning the lottery is 1 in 1 million (or whatever).

#

So there's a 999,999 in a million chance they cheated, right?

#

I think the issue is essentially double-spending information. We're using the same information to both identify a suspect and verify their guilt.

#

Anyway, gtg, cya πŸ‘‹

hoary olive
#

that was an interesting story

tidal salmon
#

@cursive sundial if you want help, see #β“ο½œhow-to-get-help. don't ask people to DM you. and don't spam a bunch of channels with the same message

#

!unmute 1040377694673711155

wise cargoBOT
#

:incoming_envelope: :ok_hand: pardoned infraction mute for @cursive sundial.

cursive sundial
#

ok

somber heath
#

Whoever it was that just joined and left, I was occupied in that moment by something else. Sorry I didn't say hi. πŸ™‚

somber heath
vocal basin
#

important thing that tutor is expected to provide is oversight

#

ChatGPT can't

#

it itself needs a lot of oversight

#

@lucid blade
steganography

somber heath
vocal basin
#

and about injecting things to detect text being AI-generated
https://www.youtube.com/watch?v=XZJc1p6RE78

Mike explains a paper from the University of Maryland, proposing a neat trick to 'watermark' the output of large language models such as ChatGPT. Dr Mike Pound is an image analyst at the University of Nottingham.

The University of Maryland paper: https://arxiv.org/pdf/2301.10226.pdf

https://www.facebook.com/computerphile
https://twitter.com...

β–Ά Play video
sharp urchin
#

you there @lofty crater ?

lofty crater
sharp urchin
#

Here's a program in Python that finds an element in an array that is smaller than all elements to its right and greater than all elements to its left:

vocal basin
#

dynamic programming

#

two arrays (with cumulative minimum and maximum)

sharp urchin
#

L = [3,1,2,5,7,6,9]

vocal basin
#

output all such elements or one/zero?

sharp urchin
vocal basin
#

write the naive solution first

sharp urchin
#
L = [2,1,3,5,8,7,9]

for i in range(1 ,len(L)-1):
    if max(L[:i]) < L[i] < min(L[i+1:]):
        print(L[i])```
vocal basin
sharp urchin
#
L = [3,1,2,5,8,7,9]

max_arr = []
min_arr = []

max_val = L[0]
min_val = L[-1]

for i in L:
  if i>max_val:
    max_val = i
  max_arr.append(max_val)

for i in range(len(L)-1,-1,-1):
  if L[i] < min_val:
    min_val = L[i]
  
  min_arr.insert(0,min_val)


for i in range(1,len(L)-1):
  if max_arr[i-1] < L[i] < min_arr[i+1]:
    print(L[i]) ```
vocal basin
#

yes, that's what's expected

#

roughly

sharp urchin
#

all i need is an alternative way

#

if any

#

otherwise i will take it :]

#

@devout mica lil bit of disturbance from your end is audible

#

if you could fix it ...:}ty

sharp urchin
#

hello @willow lynx

willow lynx
vocal basin
#

I'm sure dynamic programming is the only viable solution

#

depends

#

for competitive/industrial usecases you'd usually need O(N) not O(N^2)

#

if you can do O(N) and it doesn't produce too much issues, use O(N)

#

for this problem O(N) solution uses three times more memory

#

or two times if you write it differently

#

depends

#

depends on the requirements

sharp urchin
#

ohk understood