#voice-chat-text-0

1 messages Β· Page 442 of 1

supple cove
#

Yeah but there's nowhere else to get any other string

vocal basin
#

if you want to print with traceback, then traceback.print_exc, if I remember correctly

ripe viper
#

so use raise or something alike?

whole bear
#

Oh No

vocal basin
#

!e

try:
    raise ValueError
except ValueError as e:
    print(e)
wise cargoBOT
vocal basin
#

here

whole bear
#

I can't breath

#

Stop the debate

supple cove
#

@vocal basin I need to take the key evaluation function as a lambda, not a code block with side effects

whole bear
#

Move on

vocal basin
#

!e

try:
    raise ValueError
except ValueError as e:
    print(f"{type(e).__name__}: {e}")
wise cargoBOT
vocal basin
wise cargoBOT
supple cove
#

!e try: print(1/0)
except: print("woot", e)

wise cargoBOT
# supple cove !e try: print(1/0) except: print("woot", e)

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

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     try: print(1/0)
004 |                ~^~
005 | ZeroDivisionError: division by zero
006 | 
007 | During handling of the above exception, another exception occurred:
008 | 
009 | Traceback (most recent call last):
010 |   File "/home/main.py", line 2, in <module>
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/VFNPZUWHVDFKELZZ6W4IAERHDY

vocal basin
#

lambdas work too, it's just regular Python

vocal basin
whole bear
vocal basin
#

you've just demonstrated one of the reasons why it's considered an anti-pattern

vocal basin
supple cove
ripe viper
#

so

try:
  print(1/0)
except ValueError as e:
  print(f"{type(e).__name__}: {e}")

is not the same as

try:
  print(1/0)
except ValueError as e:
  raise Exception(e)
vocal basin
#

no, completely different

whole bear
#

Hello yapper

Stop the yap!

vocal basin
#

it makes tracebacks quite nice and detailed

#

you get, like, error A caused by error B caused by error C ...

supple cove
#

How long must we mourn that those responsible for descending Value Errors never redirected the error text to the semantic victor?

vocal basin
#

did you mean vector?

#

or victor as in someone who wins pithink

supple cove
#

The victorious vector is the victorious vector, of course.

#

Why not both?

vocal basin
#

since you often end up moving errors across tasks and you still need to somehow piece them together

ripe viper
supple cove
#

I'm not the one trying to shake API stability out from under people

vocal basin
hoary brook
#

HI CAN SOMEONE HELP ME WITH SOME THING

#

PLSSSSS

#

πŸ˜₯πŸ˜₯πŸ˜₯πŸ˜₯πŸ˜₯🀬🀬🀬🀬🀬🀬😈😈😈😈😈😈😈😈😈

vocal basin
hoary brook
#

UMM CAN I TELL U IN PRIVIT PLLS

vocal basin
#

why?

hoary brook
#

IT IS BADD I MIGHT GET BENED

vocal basin
#

wdym?

astral coral
#

lol

hoary brook
#

RAP BUT WITH A E AT THE END

vocal basin
#

???

astral coral
#

wtf

#

errrr maybe call the police?

#

this isn't a good place for this

vocal basin
#

yes, contact your local police

keen meadow
#

yes

hoary brook
#

I HAVENO EVADIN BUT I KNOW WHO DID IT

vocal basin
#

we cannot do anything to help in this situation, sorry

#

contact the police even if you have no evidence

hoary brook
#

IDID

astral coral
#

dude, contact the authorities, this is a programming discord, we don't know how to deal with this, this isn't an appropriate place for this

hoary brook
#

BUT HE IS THE SUPERINTENDENT IN ARE SCHOOL WAIT IS IT ILLG TO RAT HIM WITH A VIRUS

keen meadow
#

our python skill cant help you

hoary brook
#

OK SORRY

vocal basin
#

first priority is your sister's safety, not revenge

hoary brook
#

IDC SHE IS 6

#

HE IS 60

#

TO HELL WITH HIM

primal shadow
#

This sounds like a topic for IRL people, not internet strangers

vocal basin
#

this is not a topic we can help with.

primal shadow
#

Like law enforcement

astral coral
#

what country are you in? I can maybe look up a number you can call?

hoary brook
#

πŸ˜ˆπŸ˜ˆπŸ˜ˆπŸ™πŸ™πŸ™

vocal basin
#

@hoary brook please discuss this somewhere else;
we're not qualified to help you, there are other communities online that might be of use

hoary brook
#

NAH IT IS ALL GOOD

#

OK

vocal basin
hoary brook
#

JUST WAIT I WILL BE ON THE NEWS

vocal basin
#

and they're gone

astral coral
#

how are you @vocal basin ??

primal shadow
#

probably ebtter that way

vocal basin
spare galleon
primal shadow
#

There was an update

#

progress

#

and now I'm stuck again, lol

wind raptor
#

!stream 1297071424992841859

wise cargoBOT
#

βœ… @humble idol can now stream until <t:1743133594:f>.

wind raptor
#

!stream 1273628780207931463

wise cargoBOT
#

βœ… @whole bear can now stream until <t:1743133622:f>.

somber heath
#

@vestal cradle πŸ‘‹

vestal cradle
#

hiiii

#

i wish i could speak pepe_sad

wise cargoBOT
#
Voice verification

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

somber heath
#

@fervent yacht πŸ‘‹

fervent yacht
somber heath
#

@pallid torrent πŸ‘‹

weak belfry
wind raptor
somber heath
#

@short mortar πŸ‘‹

short mortar
#

heloo

peak depot
#

Write: python --version

somber heath
#

@upbeat parrot πŸ‘‹

astral coral
#

/usr/local/bin/python3

#

nano ~/.zshrc

#

export PATH="/usr/local/bin:$PATH" - add the bottom

somber heath
#

@rough silo πŸ‘‹

rough silo
#

@somber heath hey!

somber heath
#

@meager apex πŸ‘‹

rough silo
#

can anyone help me with learning python, I've already watched many tutorials and done projects show in thoese easily,
but whenever i do or take a project myself, i just get stuck...

#

what should i do//

#

any suggestions

#

right

somber heath
#

!kindling

wise cargoBOT
#
Kindling Projects

The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.

rough silo
dire pebble
#

What is this out of nowhere? Look at the values

#

Learn PyTorch for deep learning in this comprehensive course for beginners. PyTorch is a machine learning framework written in Python.

✏️ Daniel Bourke developed this course. Check out his channel: https://www.youtube.com/channel/UCr8O8l5cCX85Oem1d18EezQ

πŸ”— Code: https://github.com/mrdbourke/pytorch-deep-learning
πŸ”— Ask a question: htt...

β–Ά Play video
somber heath
#

Standard form is a way of expressing numbers that are too large or too small to be conveniently written in decimal form, since to do so would require writing out an inconveniently long string of digits. It may be referred to as scientific form or standard index form, or Scientific notation in the United States. This base ten notation is commonly...

lean galleon
#

test

still tide
#

@somber heath hello

#

ghibli trend is taking over the x

#

hi @upper basin

#

@upper basin where to find new research paper in ai field ??

#

for learning purpose

still tide
#

any else ??

astral coral
#

Food coma

#

Sorry

#

Can't move

#

Urghhhhhh

#

In bed with phone

upper basin
#

For papers that is.

#

You can also just follow along github repos.

still tide
#

ok got it

#

i am finding model for medical image classification

astral coral
#

I find it interesting, the sub communities on this discord

vocal basin
#

"contextually, morning" aka afternoon

#

GitHubℒ️ Actionsℒ️

#

(just the first association when hearing "actions" nowadays)

obsidian dragon
#

executable orders

somber heath
#

@torpid bolt πŸ‘‹

#

@prisma spear πŸ‘‹

prisma spear
#

halo guys

somber heath
#

@gusty jetty πŸ‘‹

jovial iris
#

hello sir

#

how you doing ? @somber heath

somber heath
jovial iris
vocal basin
#

I'm not entirely sure how Discord's handling of AFK works

#

quite unreliable

upper basin
#

If I talk but not type anything, it doesn't move me to AFK. If I type but not talk, it doesn't move me to AFK. If I only have discord open and am in call but I'm not talking, nor listening, but am actively watching sth which merits activity, then it doesn't move me to AFK.

#

That's how I understand it.

vocal basin
upper basin
#

We can test it later. I'll join call but leave myself on mute and see if it throws me into AFK or not.

#

I'll go out so I wouldn't be doing any activity whatsoever.

astral coral
#

?

vocal basin
#

@queen vigil it was likely @haughty pier

#

@queen vigil pgadmin

#

if you want GUI specifically for postgres, it's probably the best option

#

@queen vigil did you configure shmem for the container?

#

shm_size: 128mb this part

#

being in a container shouldn't noticeably worsen the performance

#

unless you're explicitly putting resource constraints onto it

vocal basin
#

idk when but apparently the sound died

#

happy VPN times

vocal basin
primal shadow
#

Hang out in the VC and respond via text to the spoken words

#

I am curious about this something else

#

Speaking of shrubbery

#

my wife planted an evil plant in our garden

#

and now it just wants to spread

whole bear
vocal basin
#

Disallow

#

AI bros generally don't care about robots.txt

primal shadow
#

So what are we discussing?

#

Put it in TOS becuase the bots disregard both robots and TOS?

#

Use robots.txt, those who ignore it will ignore it

#

regardless of hwere you tell them to not scrape

vocal basin
#

I should look into how ZeroNet works

#

even though it looks a bit like a crypto scam

primal shadow
#

Oh, so because the AI Bros ignore robots we shoudl assume that's the new cool thing to do?

#

was that the train:?

vocal basin
#

you can't snapshot the internet, it's decentralised

#

fallacies of distributed computation are not a checklist

#

@molten pewter re-inventing caching?

primal shadow
queen vigil
primal shadow
#

the PNW is fun

vocal basin
#

I don't really think speed is a priority of an archive

primal shadow
#

right through the Amazon?

vocal basin
#

around 300M?

primal shadow
#

No

#

I don't agree at all

#

We are not in areement

vocal basin
stuck furnace
#

It's one of those countries that's bigger than it looks because of the mercator projection

primal shadow
#

What?

vocal basin
primal shadow
#

Why do you say that?

upper basin
#

@primal shadow Fixed FPS problem.

#

Wanna see?

primal shadow
#

Are oyu assuming you ask in bumblefuck America where Pakistan is just a far away land?

stuck furnace
vocal basin
somber heath
#

@keen meadow πŸ‘‹

primal shadow
#

Why are you so surprised many people live in Asia?

#

Nice patrol

vocal basin
primal shadow
#

Generally speaking

#

Interantionally

#

What canada says isn't.

#

lol

vocal basin
#

"Russian government thinks X" and "Russia thinks/Russians think X" almost never aligns

somber heath
#

@vapid walrus πŸ‘‹

primal shadow
#

grew a lot?

#

looks like steady growth since 1960...

#

Are you certain you're dropping facts and not opinions?

#

Because that line is increadibly stable

somber heath
#

Everyone always asks Canada, nobody ever asks Wouldada.

astral coral
#

nobody ever thinks of the children

vocal basin
vocal basin
somber heath
vocal basin
#

not as much when you grow up operating that way your whole life

astral coral
vocal basin
#

huh communist party of soviet union had only 19.5M members in 1989, I thought it'd be higher

#

CCP has around 100M

primal shadow
#

I bet the North Koreans are all about what Kim things

#

thinks

#

nothing to do with avoiding death camps

#

nope

#

it's 100% agremeent

#

🀣

stuck furnace
vocal basin
woeful salmon
#

Yo LX haven't seen you in a while i feel like

vocal basin
#

1990/1991 that'd be an important question

stuck furnace
stuck furnace
woeful salmon
#

Not good nor bad my gpu got fried so no gaming or 3d modelling

#

Just work and now pyweek these days

#

Cooking rn

rugged root
#

On shortly, just need coffee

vocal basin
#

@queen vigil to sell certification

#

just like Oracle

stuck furnace
woeful salmon
#

Yes i will

stuck furnace
#

πŸ‘€

rugged root
#

submit deez nutz

woeful salmon
#

Don't expect much I'm much better at making game engines then i am at making games lol

rugged root
#

What's the prompt?

primal shadow
#

Is slapping OK in Canadian business?

#

That sounds very unCanadian

#

did he apologize

#

?

#

If soemone slapped me, I'd lose my shit

#

and they'd be fuckin fired

#

Fuck that nonsense

#

asshole deserves to not be in a high paying role

#

I don't give a shit how smart you are

stuck furnace
#

Congrats on the award @woeful salmon

primal shadow
#

human fucking decency

#

You can keep dumping all people in a single bucket to validate the reasoning for hte assault

vocal basin
primal shadow
#

but most people do not assault co workers

#

"those types of guys"

#

this is such a cop out

#

Up for 36 hours? I would not want them having ANY power on production

#

that's just askign for shit to break

woeful salmon
#

Ok food is done so im gonna go eat

rugged root
#

Printer BS

#

One sec

vocal basin
whole bear
#

@queen vigil What are you talking about?

vocal basin
#

independent aka dependent on customers, supply chain, advertisement, ...

wise loom
whole bear
#

He himself is boss

stuck furnace
#

@astral coral Sorry didn't catch that?

vocal basin
#

we don't normally do that I think

stuck furnace
#

Normally they should get automatically moved πŸ€”

#

Psst @molten pewter are you there? πŸ‘€

vocal basin
#

it's problematic only when it's near the channel limit of 25,
but near the limit we can't really monitor AFKness and many people are AFKish anyway

stuck furnace
#

Hey

astral coral
#

kk

vocal basin
stuck furnace
#

Sorry for the ping πŸ˜„

stuck furnace
#

I would guess they've got discord in open in the background and have forgotten πŸ€·β€β™‚οΈ

vocal basin
#

Oxide has open source as one of its core business values

rugged root
vocal basin
#

ChatGPT won't be able to judge

vocal basin
rugged root
#

I... don't know

vocal basin
#

whatdidyoudo

rugged root
#

That's weird

peak depot
rugged root
vocal basin
#

high-frequency salary when

#

"my proper workday did not yet start
therefore wait"

#

devops nightshift

#

@queen vigil parts are in Erlang

#

and/or Elixir

molten pewter
astral coral
#

since you won't be here tomoz 😒

molten pewter
vocal basin
#

Twitter used to be Rails I think

#

or still is

vocal basin
#

GitHub is Rails

#

GitLab is Rails

astral coral
#

been watching games on it

#

it's a new game, in alpha

#

110 players split between 5 teams

#

1,000s of units

#

think it's max is 32,000 units?

#

in case you're interested

vocal basin
#

Rails being used doesn't mean all code is in Ruby

#

they almost certainly aren't using Rails' ORM

stuck furnace
#

Cya Opal

vocal basin
#

(was away so couldn't respond instantly)
no, Elon Musk isn't one of PayPal founders

rugged root
#

Was he not?

vocal basin
#

he is one of original x.com founders

rugged root
#

Was he just one of the programmers that got brought on early?

vocal basin
#

which got merged into PayPal

primal shadow
#

Starlink is terrible, astronomical disaster

rugged root
#

Huh

vocal basin
#

the payment thing

rugged root
#

Right

primal shadow
#

Right now it's bad

#

it will only get worse

rugged root
#

In fairness to Starlink, it's the only way one of my co-workers can get internet where she lives

#

But that's the only fairness I can give

primal shadow
#

🀷

#

Shame the FCC Is gutting the rural broadband fund

#

"at the moment"

rugged root
#

Everything is being gutted

#

Left and right

primal shadow
#

"for the last ... years"

#

I guess they're teh same thing

rugged root
#

Like some Jeff the Killer creepy pasta bullshit

#

Oh no wait

primal shadow
#

❀️ seeing the farmers hurt

rugged root
#

I have a more niche reference

primal shadow
#

notign makes me happier than the proper stories of face eating leopards eating faces of their voters

rugged root
#

I'll be impressed if anyone knows that reference without looking it up

primal shadow
#

Except for hte right to receive the death penalty

#

noope

#

they have more rights

#

they are unkillable by law

#

whereas us fleshy people are able to be executed

#

If I rob you of your paycheck, I go to jail.

#

When a corporation steals your wages...

#

if they are found guilty

#

they gotta return the money

#

1984?

#

more like 1939 1936

#

Straight out of Hitler's playbook

#

"Allies" is a strong word

#

We were not "allies" with Russia in WWII...

rugged root
primal shadow
#

Ooh, ❀️ Zim

rugged root
#

.wa s define propaganda

primal shadow
#

PUSTULIO

viscid lagoonBOT
#

information that is spread for the purpose of promoting some cause

rugged root
#

So a couple defs

primal shadow
#

Well

#

faith is not fact

#

so it is pretty much the original meaning

#

pushing beliefs

#

over facts

#

🀷 sounds like modern propaganda to me

#

I think religion is bad

#

so propaganda is bad

#

Not factual ones 🀷

rugged root
#

Or if you're from New England, it's how you say you're going to look closely at something. "Yeah I'm gonna give it a propah' gandah'"

primal shadow
#

There's facts, there's feels

#

sharing facts is not propaganda

#

Yes, in bad faith

astral coral
primal shadow
#

convince people to buy my crap

#

because all that matters is my bottom line

rugged root
astral coral
#

empiricaism

rugged root
#

If you're really drunk and believe in ultra conservative values, would that be the "Bar-Right"?

astral coral
#

:L

primal shadow
#

Yes

#

they admitted htey did

#

and the evidence is clear

#

yes

#

but the law doesn't fucking matter

#

welcome to America

#

The party of law and order doesn't give a fuck about either

#

Fuck the flag

#

desecrate that shit

astral coral
#

πŸ‘ πŸ‘ πŸ‘ πŸ‘ πŸ‘ πŸ‘ πŸ‘

primal shadow
#

in the name of government employees

#

but only the pigs, not the rest of the federal government

#

all government employees are bad! Except the ones with hte monopoly on violence.

#

worship them!

#

or die...

#

So he's not a canadian proper?

astral coral
#

topic we are imagined, everything we see, hear, feel and smell are illusion of perception, the brain is like a painter to a bowl of fruit

primal shadow
#

just speaks for canada?

#

lol

#

sure, we'll solve it right away

#

THose in power LOVE alternative facts

rugged root
astral coral
primal shadow
#

I do mine every February

#

Wait for documents? They should be in the mail no later than Jan 31.

#

Don't bother starting until the first week fo feb, you'll be done by the 2nd

rugged root
#

W-2's need to be

#

Others I think can have a delay

primal shadow
#

Go through ivnestments? Don't you just get a year end 1099?

vocal basin
#

"why won't anyone think of poor Intuit execs losing their business?"

primal shadow
#

I want the MGBA movement

#

Make Government Boring Again

#

there should not be 600 articles about the fuckups of the government every day

#

lol

primal shadow
#

I am amazed ANYONE likes the fuck

vocal basin
#

Onion hire me

primal shadow
#

First off, he's fucking dumber than dirt

#

holy fucking shit, how can anyone believe a word the fuck says?

rugged root
primal shadow
#

Because it has no brain

#

so it has no feels

#

so IDGAF bout it

rugged root
#

Same....

vocal basin
primal shadow
#

He called America a shithole because he's so fuckign stupid

#

I lose all respect for people that like the guy 🀷 call me a bad person, IDC

desert vector
#

he hates my existence
person of color, and trans? signal the alarms

primal shadow
#

Quite literally a modern day Hitler, studied the man, is trying to be the man

desert vector
#

the only thing worse was if i was born somewhere else and lived here as a resident

molten pewter
primal shadow
#

The ONLY thing Trump has any expertise in, being a fuckin Nazi

rugged root
#

Being I'm not so sure. Supporting them is more accurate

#

And only when it benefits him

astral coral
#

loooooooooooooool#

primal shadow
#

Brainworms!

rugged root
primal shadow
#

Fuckin Zim, comin in clutch

astral coral
rugged root
#

Carl Jung stuff is so crazy interesting

#

I love it

#

Genuinely

desert vector
#

jung was so interesting to learn about in psych

molten pewter
#

The Overton window is the range of subjects and arguments politically acceptable to the mainstream population at a given time. It is also known as the window of discourse. The key to the concept is that the window changes over time; it can shift, or shrink or expand. It exemplifies "the slow evolution of societal values and norms."
The term is n...

vocal basin
#

Trump asked Putin for a cease fire and got fuck all instead
the art of trade

astral coral
#

ahhhh I forget what that bias is called

primal shadow
#

I'm an American

rugged root
#

Which was the name of 18.04

astral coral
# molten pewter https://www.amazon.com/Clear-Present-Danger-Narcissism-Donald/dp/1630513954
primal shadow
#

Trumps polciies are hurting most americans

#

They are fucking us

#

Entirely

#

His voters are fucking idiots

#

Car pricves are bout to shoot up

#

how that helps us? fuck if I know

#

Idiots

rugged root
#

The trickle down effect /s

primal shadow
#

horse and sparrow economics

#

go eat horse shit

rugged root
#

Wait where does the sparrow come into that then

primal shadow
#

fuck calling it trickle down

#

feed all the oats to horses

#

the sparrows can eat the oats out hteir shit

#

if there horses have too many oats

rugged root
primal shadow
#

that's the origin of trickle down

#

they rebranded

rugged root
#

Ah gotcha

primal shadow
#

under Reagan I think

#

I always wondered how "trickle down" was a good thing

astral coral
#

give aned deny

primal shadow
#

but it's better than telling us to eat shit

#

so I guess that's why it won

#

Don is Kompromat

#

Don is a traitor

#

straight fucking up

rugged root
#

Probably because of the "omat" suffix

primal shadow
#

Yea, GOP senators go to Moscow on the 4th of July because they love America

#

He is a felon

#

100%

dry jasper
rugged root
#

Oh duh, I don't need to use the name

astral coral
#

doesn't he look like he's got bare red-eye :L

rugged root
#

@vocal basin When we were doing the nlvm thing yesterday, was there anything special you had to do to get it to compile on 18.04? Or did it even properly work

vocal basin
#

I did not test on 18.04, it was from the Dockerfile in the repo

rugged root
#

Copy that

#

Thanks

#

Oh wait what... I can just build from the docker file in the repo

#

The fuck, how did I miss that

#

Wow

#

Even the docker build breaks

#

Whelp, giving up on that for a while

#

Oh shit. This is cool https://testcontainers.com/

rugged root
#

A quote from the original translation in Chrono Trigger:

Am I butterfly dreaming I am a man? Or am I a bowling ball dreaming that I am a plate of sashimi? Never believe what you see and feel are real.

stuck furnace
#

It's pretty common to have visual hallucinations when your eyesight is going bad

rugged root
#

Your brain trying to interpret what you see into something comprehensible.

rugged root
#

I'm guessing someone who was talking about Nix

#

That's my best guess

molten pewter
#

NixOS it's greeeaaaaat!

rugged root
#

I'm warming up to it as a concept for servers

molten pewter
astral coral
#

just something

astral coral
#

saved

#

I'll do that eeeeeeeeeeeeeeeeasy

rugged root
#
[...]
 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.2.1)

Wait that's the ascii logo for Spring Boot? That's so hard to tell that's what it is

#

Or at least the middle of the word is

#

I really have to squint for it

molten pewter
#

alcohol dehydrogenase deficiency

astral coral
rugged root
#

A lot of these are pretty complex

#

Or maybe that's just me

#

@slim flame If you're wondering why you can't talk, check the #voice-verification channel. That'll tell you what you need to know about the voice gate

stuck furnace
#

@molten pewter I tried benadryl the other night to sleep, because I've been sick, but it just made me like delirious. Or that could have been the sickness I guess

#

Yeah

#

"Do not operate machinery"

#

Which child do you steal it from?

#

Oh, you don't mean a particular child's dose

#

/s

#

Thankfully I've now moved from the sweating and chills fire into the non-stop coughing frying pan πŸ™

#

@gritty leaf Could you give a small example?

#

πŸ‘‹

gritty leaf
stuck furnace
#

Could you sketch out what the result should look like?

gritty leaf
stuck furnace
#

Ah, so you want to do some kind of aggregation?

rugged root
#

!e

ham = {"layer1": {"layer2": {"beef": 4, "pork": 3}}}
print(ham)
layer2 = ham["layer1"]["layer2"]
print()
print(layer2)
layer2["beef"] += 1
print()
print(layer2)
print(ham)
wise cargoBOT
calm lake
#

whats the discussion abouttt

rugged root
#

Nested dicts

calm lake
calm lake
gritty leaf
spare galleon
#

my bad

stuck furnace
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rugged root
#
lectin_tertiary_dict = {
  "epithelium": {
    "follicular": {...},
  },
  "another one": {
    "follicular": {...}
  },
}
astral coral
#
if position_value%2 and position_value < 6:
     collector.appendlectin_tertiary_dict[position_value]
spare galleon
#

first time in fastapi, or a backend in python

stuck furnace
#

@gritty leaf Does your data come as a big flat table in a pandas dataframe?

#

Are you able to share a subset of the data as a csv?

#

Ah right

vocal basin
# haughty pier what was?

someone was asking who they were previously talking to about Nix, so it was probably you who they meant

stuck furnace
#

Yeah, I'm nominally a mod πŸ˜„

elder bear
#

this is chat of
vc right?

ripe viper
rugged root
#

Depends on which VC we're in

astral coral
#
size = len(lectin_tertiary_dict[str(position_value)])
counter = size/size
if position_value =< (counter*3):
     collector.appendlectin_tertiary_dict[str(position_value)]```
haughty pier
rugged root
astral coral
#
size = len(lectin_tertiary_dict[str(position_value)])
counter = int(size/100*size)
if position_value =< (counter*3):
     collector.appendlectin_tertiary_dict[str(position_value)]```
#

?

ripe viper
#
collector = []
size = len(lectin_tertiary_dict[str(position_value)])
counter = int(size/100*size)
if position_value =< (counter*3):
     collector.appendlectin_tertiary_dict[str(position_value)]

do '''py and not just ''', but replace ' with `.

stuck furnace
#

Dog definitely heard the word "chicken"

rugged root
#

HA

#

!zen

wise cargoBOT
#
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

astral coral
#

thanks

sweet lodge
#

no takebacksies

ripe viper
stuck furnace
#

@gritty leaf I was just thinking, a better way to do this might be to use the built-in aggregation function in Pandas. I'm still not clear on exactly what result you want, but you could do something like: ```py
(
df
.groupby(['epithelium_lumen', 'phase'])
.mean()
)

gilded rivet
rugged root
#

Still working on it

#

I promise

stuck furnace
#

The result would be a data-frame, I think

#

Yeah, I've been trying to learn it better lately

spare galleon
#

got there first

rugged root
#

I'm not sure how we'd handle the np.array part, actually

spare galleon
astral coral
#

if str(position_value%2): ????

rugged root
#

Because I have up to stuffing the stuff into its own dictionary to accumulate it. But I don't know if you can just add those together or something

rugged root
#

Not just the evens

astral coral
#

oh

#

for _ in range(0,len(lectin_tertiary_dict[str(position_value)]):

rugged root
#

Back in a sec, snagging some free food Friday food

spare galleon
#

working with json sucks, lol

ripe viper
astral coral
#

thanks

#

?

rugged root
#

You'd need to use .get() to prevent an error

astral coral
#

would it work then?

rugged root
#

And you can just use dict.values() or dict.items()

#

Derp, I can't stop trying to answer. I food now

gilded rivet
# gritty leaf
pos_stained_area_list = []

for value lictin_tertiary_dict["epithelium"]["follicular"].values():

   pos_stained_area_list.append(value['pos_stained_area'])
rugged root
#

Problem is that there'd be more than "epithelium"

#

DUDE

#

HEMLOCK

#

FOOD

astral coral
#

for _ in range(0,len(lectin_tertiary_dict[""][""]): ?????????????????????????

ripe viper
#

doesn't work that way.

astral coral
#

¬¬

gritty leaf
ripe viper
astral coral
#

for _ in range(0,len(lectin_tertiary_dict[][]):????????

ripe viper
#

!e

a = {"b": {}}
for _ in range(0,len(lectin_tertiary_dict[""][""])
  pass
wise cargoBOT
stuck furnace
#

So, I think this should do what you want, but I'd recommend trying the Pandas approach as it will make your life much easier. ```py
{
sample: {
phase_value: {
'pos_stained_area': np.concat([
subdict3['pos_stained_area']
for position_value, subdict3 in subdict2.items()
])
}
for phase_value, subdict2 in subdict1.items()
}
for sample, subdict1 in lectin_tertiary_dict.items()
}

ripe viper
#

what.

astral coral
#

!e a = {"b": {}} for _ in range(0,len(lectin_tertiary_dict[_][_]): pass .py

wise cargoBOT
storm jewel
#

@gritty leaf hey man, can you just summarize the problem again? it sounds interesting

#

test = {
{
{
{
}
}
}
}

ripe viper
gritty leaf
stuck furnace
#

If you could post just the column names and the first couple of rows of the data (i.e. export as csv and copy-and-paste the first like 4 lines), I could advise you on how to use Pandas to do this effectively, if you like.

storm jewel
#

t = {
'test':{
'test2':{
'2':{
"final_data":'1'
}
}
}
}

final_t = {
'test':{
'test2':[
{"final_data":'1'}
]
}
}

sweet lodge
storm jewel
stuck furnace
#

Pastebin is probably the way to go

#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

stuck furnace
#

Yup I think

whole bear
#

Hi, im new, how do i post code

gritty leaf
#

!paste

ripe viper
stuck furnace
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

stuck furnace
#

Or the pastebin linked above

spare galleon
storm jewel
#

j = t['test']['test2'].values()

t['test']['test2'] = j

stuck furnace
astral coral
#
                                            "num_1":{"1":"1","2":"2","3":"3"},
                                            "num_2":{"1":"1","2":"2","3":"3"},
                                            "num_3":{"1":"1","2":"2","3":"3"}}}}```
stuck furnace
#

Oh, could you export as CSV? It's easier to paste around as text.

#

Comma-separated variables, fyi

#

Yep

#

CSV, TSV, whatever πŸ˜„

ripe viper
#

!paste

wise cargoBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

ripe viper
#

use this

#

but it's excel, so i don't think it will work

gritty leaf
sweet lodge
wise cargoBOT
ripe viper
stuck furnace
gilded rivet
#

idealized data
{
1 : {'top_level_name' : "epithelium",
      'bottom_level_name' : follicular'
      'number_list' : [2,4,6,7,8],
      'pos_stained_area_list : [np.array_1, np_array_2..]
2 : ....
}

save_dict = {}
index = 0
for top_name, top_dict in lictin_tertiary_dict.items():

    for bot_name, bot_dict in top_dict.items():
        num_list = []
        array_list = []

        for num_name, num_dict in bot_dict.items():
            num_list.append(num_name)
            array_list.append("num_dict[pos_stained_area"]
        
        
         save_dict[index] = {"top_level_name": top_name,
                        "bottom_level_name: bot_name,
                         "number_list : num_list,
                         'pos_stained_area_list': array_list}
         index += 1




ripe viper
scarlet dust
#

@storm jewel Grats on getting voice perms

storm jewel
ripe viper
#

using !paste or !code

storm jewel
#

!code

wise cargoBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

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

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

For long code samples, you can use our pastebin.

storm jewel
#

t = {
    'test':{
        'test2':{
            '2':{
                "final_data":'1'
            }
        }
    }
}

final_t = {
    'test':{
        'test2':[
                {"final_data":'1'}
            ]
    }
}

j = t['test']['test2'].values()

t['test']['test2'] = j
print(t)

stuck furnace
#

I can grant screen-sharing permissions if you like?

storm jewel
stuck furnace
#

Yup]

#

!stream 165536887103029249 30M

wise cargoBOT
#

βœ… @gritty leaf can now stream until <t:1743184720:f>.

stuck furnace
#

Da squigles

ripe viper
#

the {} part of f"" is code alike.

stuck furnace
#

!eval ```py
import pandas as pd
import io

df = pd.read_csv(io.StringIO('''
Slide,position,phase,Culdersac,epithelium_lumen,Section (1 being closest to main lumen),Total Area,Negative Area,Positive Area,pos_stained_area
P2_16F,2,follicular,1,epithelium,1,5169.6181,2280.8264,2888.7917,55.88017614
P2_16F,2,follicular,2,epithelium,1,12315.6975,3443.4358,8872.2617,72.04026975
P2_16F,2,follicular,3,epithelium,1,3642.9443,1797.3628,1845.5815,50.66180946
P2_16F,2,follicular,4,epithelium,1,8755.6696,3540.3835,5215.2861,59.56467453
P2_7F,2,follicular,1,epithelium,1,7971.6675,6370.4966,1601.1709,20.08577126
P2_7F,2,follicular,2,epithelium,1,7122.6079,3805.2043,3317.4036,46.57568754
P2_7F,2,follicular,3,epithelium,1,5718.1391,4363.9302,1354.2089,23.68268551
P2_7F,2,follicular,4,epithelium,1,7654.2907,5385.9653,2268.3254,29.63469104
P2_7F,2,follicular,5,epithelium,1,18659.9165,11983.0137,6676.9028,35.78206151
P2_8F,2,follicular,1,epithelium,1,32393.3486,32236.7012,156.6474,0.483578904
P2_8F,2,follicular,2,epithelium,1,16978.1251,16552.8301,425.295,2.504958572
P2_8F,2,follicular,3,epithelium,1,8634.2294,8606.6758,27.5536,0.319120546
'''))

aggregates = (
df
.groupby(['epithelium_lumen', 'phase'])
['pos_stained_area']
.agg(['mean', 'sem'])
)

print(aggregates)

wise cargoBOT
stuck furnace
#

Then to select a particular entry from the table of aggregates, you can do this: ```py
aggregates.loc[('epithelium', 'follicular'), 'sem']

#

Gone to get something to drink, back in a bit

stuck furnace
#

Yep

#

Thirst quenched

#

Oh so that's just because pd.read_csv will only read from files, not strings.

#

So I had to do that to include the csv as a string in the code.

#

io.StringIO emulates a file

#

Don't worry about it

#

Yeah so it groups the rows of the table based on the values of one or more columns

#

So if two rows have all the same values in those columns, they get put into the same group

#

You can then aggregate over each group (e.g. taking the mean or standard deviation).

#

Right

#

Pandas, although it's built on top of Numpy

#

It's the same maths either way I think

#

I was wondering if you might like to try doing this on the full data? Just to try it out

#

Alright

#

Yeah I wasn't really following along πŸ˜„

#

Yeah you can

#

I used read_csv so I could copy and paste the data into the code.

#

The outermost parentheses are just so that I could split the expression over multiple lines

#

I never really got the hang of using debuggers effectively. I still tend to use either print debugging or assert statements

#

I honestly find some IDEs a bit overwhelming lemon_sweat @spare galleon

#

Too many buttons

storm jewel
stuck furnace
spare galleon
storm jewel
#

and kickstart

spare galleon
gritty leaf
stuck furnace
#

The connection's been a bit weird today

spare galleon
stuck furnace
# gritty leaf

Hold on, there might be a simple way to produce plots like this in Pandas, but I need to look up the details, one sec

#

Yeah it's intentional

#

I'm not sure why we did it that way, but yeah

spare galleon
#

"Combat Assists": combat_data.get("CombatAssists", {}).get("val", 0),
"Combat Best EliminationStreak": combat_data.get("CombatBestEliminationStreak", {}).get("val", 0),
"Combat Damage": combat_data.get("CombatDamage", {}).get("val", 0),
```  why did i put spaces in these values
#

combat."CombatAssists"
combat["Combat Assists"]

stuck furnace
# gritty leaf

You could produce a boxplot (I'm not sure exactly how to make a bar-plot with error bars) like this: ```py
import pandas as pd
import matplotlib.pyplot as plt

df = ... # import the data

df.boxplot('pos_stained_area', by='position')
plt.show()

stuck furnace
#

Be right back

spare galleon
#
match answer:
    case "field1":
        pass
 
    case "field2":
        pass
    
    case "field3":
        pass

```i use this more then if/else, well when its possible
stuck furnace
#

@humble pumice Were you asking about streaming permissions?

#

Oh right

#

Yeah

#

!stream 323926281416736791 30M

wise cargoBOT
#

βœ… @humble pumice can now stream until <t:1743192184:f>.

stuck furnace
spare galleon
#

!voice_verification

wise cargoBOT
#
Voice verification

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

spare galleon
#

@gloomy crest^

stuck furnace
#

Ooh tiling window manager, nice

#

Yeah I love sourdough

#

But only occasionally

#

That's what bread does Β―_(ツ)_/Β―

#

Make croutons

spare galleon
#

me toooooo

stuck furnace
#

I'm a bit microphone shy

spare galleon
#

my mom makes the greatest sourdough

#

i get fresh sour dough like 4 times a week

#

okay ima go, goodluck to yall

stuck furnace
stuck furnace
#

I heard my name

#

A ago while I think

#

It might be more obvious with the new interface

primal shadow
#

has this always been a thing?

stuck furnace
primal shadow
#

I guess I never noticed

stuck furnace
#

Β―_(ツ)_/Β―

primal shadow
#

Yea

#

I got the UI update and then stumbled upon this finally

stuck furnace
#

Hello

#

You can, but you usually don't want to

#

I mean iterate the rows, what you originally asked

upbeat bobcat
#

Hey everyone.

primal shadow
#

howdy

stuck furnace
#

The names of the columns are given by df.columns

upbeat bobcat
stuck furnace
#

Ok, that sounds like a group-by operation

upbeat bobcat
primal shadow
#

I think I right clicked the other stream

#

there was an option to watch additionally or some kind of words

#

and I clicked that, and had 2 streams going

#

No more having to choose!

stuck furnace
upbeat bobcat
# stuck furnace

I clicked that but I can only see the screen full that I clicked on not both

stuck furnace
#

Then under ... de-select "show non-video participants"

upbeat bobcat
stuck furnace
#

@gritty leaf When you're doing data-analysis with Python, you might find it more convenient to use an interactive environment, like IPython or a Jupyter Notebook.

#

Yeah

#

Jupyter notebooks take that a step further in letting you intersperse formatted text, code, and images.

#

Yeah

#

Yep, it's free

#

It's well worth learning Pandas if you're doing data-analysis fairly often

#

@gritty leaf Do you want to try Jupyter?

whole bear
#

What you all are discussing right now?

#

So many curse word and laughs!

stuck furnace
#

Erm, I am but I need to go soon

#

Alright cya πŸ‘‹

mystic river
#

once a wise PM once said "it needs more A.I"

wise loom
#

hello

jovial iris
#

bye sir

dusky comet
#

hello @astral coral

astral coral
#

hey

dusky comet
#

how does it

#

goes***

astral coral
#

yeah not bad, you?

dusky comet
#

relaxing after work before i start my pet project

astral coral
#

nice

#

whats your pet project?

dusky comet
#

been learning to use tkinter, and I've been making a calculator

astral coral
#

ahhhh nice man ahahahhaha

dusky comet
#

?

astral coral
#

huh?

dusky comet
#

i was questioning the ahahahahahha

#

brb

whole bear
#

@astral coral hello

astral coral
#

hey sorry

#

brb

whole bear
#

alright

toxic viper
#

yo

#

bro's famous

#

brb

somber heath
#

@whole bear πŸ‘‹

whole bear
whole bear
#

i need to tell a mod to give me access?

somber heath
#

Screen sharing permissions are available upon request of voice-regular moderator-level-and-above users at their discretion.

whole bear
#

ah breh

somber heath
whole bear
whole bear
vocal basin
#

the glowing thing no longer lags as catastrophically

#

well in firmware terms it is reset

#

stuff doesn't really shutdown/restart the way it's viewed on a higher level

#

@somber heath you've seen that Android is being reproprietarized, right?

#

becoming closed source

#

last chance to buy google pixel before it went from the most open to the most closed

#

if it's closed source, people will reverse engineer it anyway

#

(as in closed source does not increase security when you're not hosting something as a service)

#

EU laws explicitly allow not only reverse-engineering but also altering the software

#

when the reason for that is quality or security concerns

vocal basin
#

allegedly Pixel 9 still allows loading a different OS

#

but too expensive here

vocal basin
#

it I get a proper Linux on a phone with mobile internet working, that'd be optimal

#

one of the most important apps on a phone for me is obviously termux

#

even though it's limited, it's still, at least, the best SSH software

#

that sounds like a Onion article

#

(COBOL -> Java thing)

#

if they can't write good code in COBOL, they can't write good code in Java

#

@somber heath JITted well enough

#

JVM is very performant

#

for non-AOT one of the best options

vocal basin
#

and introduce proper engineering practices

#

big rewrite is not a viable thing most of the time

#

there are JVM implementations of COBOL

#

hopefully they at least first port to that

#

tbf that assumes existence of any goals of the rewrite

#

I don't think these guesses are moving in the right direction

real valve
#

what is that

#

not in a mean way

#

curious

#

what type of game

real valve
#

minesweeper

#

cool

#

oh

#

same thing

#

wallah bro i can make that within 5 minutes

#

on everybodys soul

#

on everyone bro

vocal basin
#

there are some non-trivial parts of implementing minesweeper

real valve
#

i have so much motivation and i have watched alpha andrew tate video and i am moving to dubai

vocal basin
#

cascading opening of 0s, chording

real valve
#

habibi come to dubai

#

habibi come to dubai

#

leave dubai and come back

#

GET OUT

#

omg u no in dubai

#

no sigma

#

no alpha

#

no man

#

on my soul dubai is not a tourist cty its a really good city with very good weather rich history and kind people

#

and only workers have built the city

#

absolutely insane

vocal basin
#

for me, as a Russian woman, the probability of being in Dubai for purposes not related to human trafficking is very low

real valve
#

as a russian women?

#

habiib come to dubai

#

everyone come to dubai

real valve
#

bro what

#

i read the last part

#

dude geniuely what the sigma

vocal basin
#

did Durov come back to Dubai already I wonder pithink

real valve
#

i didnt know people in russia had internet bro

#

do you guys have bluetooth

#

???

#

microwaves

#

functioning electricity

#

bro habibi come to dubai bro we have everything

#

forget russia

vocal basin
real valve
#

habibi come to dubai

#

bro i thought u guys had that bald guy thats obsessed with ukraine brp

#

what more

#

do you need

#

???

#

HABIBI COME TO DUBAI

#

even i a german sociologist prefere dubai

#

the west has fallen

#

hell no you guys have spiders

#

koalas

#

snakes

#

by life yes animals no

#

why would you even be in australia???????

#

do you ride kangaroos or do you guys have cars???

#

habibi come to dubai

#

forget australia

#

kangaroos stepping in your yard??+?

#

so what you go to work and when you step out you see kangaro infront of you?

#

come to dubai

#

we have andrew tate alpha sigma

#

bro

#

you missing out

#

dubai dubai dubai

vocal basin
real valve
#

it means that i, the alpha, am living a successfull life.

#

pol pot?

#

are you two connected

vocal basin
#

I'm too boomer brained for whatever kids these days invent/talk about, I just cannot adapt this word set in any way

real valve
#

you seem to know about him alot opal

#

a little too much.

real valve
#

on everybodies soul

#

everyones

vocal basin
real valve
#

i dont even got money

#

haha

#

get noobed

#

anyone wanna play chess

#

i am proffesional

vocal basin
real valve
#

opal mist hop on chess.

#

ggs

#

i have never played bullet before

#

but it was fun

#

thanks

vocal basin
#

I used to play it a ~year ago I think

real valve
#

i did ton of mistakes meanwhile you were more accurate than me by a landslide

vocal basin
real valve
#

if we played like 3 min games you would won

#

win

#

my bad

vocal basin
#

@somber heath transcription:

America
aaaaaaaaaaaaaaaaaaaaa

#

!rule 4 @real valve

wise cargoBOT
#

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

real valve
#

had to go

#

bye bye

somber heath
#

@surreal stream πŸ‘‹

surreal stream
#

Hey

vocal basin
#

okay, I get a potential excuse to end the game early

#

nvm I guess it right

vocal basin
#

the gambling approach did not pay off

scarlet halo
#

lmao

vocal basin
somber heath
#

@vale nacelle πŸ‘‹

scarlet halo
vocal basin
#

first click is non-mine, therefore guaranteed win

#

I wonder if there are stats of how many 8s I opened

#

each opening gives me somewhere between 1 and 3 tickets

#
  • some number of 8s opened not when logged in
obsidian dragon
#

seems a bit L8

dreamy totem
vocal basin