#voice-chat-text-0

1 messages · Page 157 of 1

lost gorge
#

maybe it sounds funny in my native language. I did not think about the difference in perceptions

wind patio
#

it was funny to me

lost gorge
#

happy to hear

fossil void
#

guys i dunno why people think and say that is better programing in iOS than Win

#

im so blinded about what you can do in iOS and dont Win or Linux

#

lmao

#

on this TOPIC

wind patio
#

@slender sierra

fossil void
#

iOS for macbooks

#

bro

#

"Here we go"

#

fuck

#

i forgot it

whole bear
#

🙂

#

hi

fossil void
#

hiiii

whole bear
#

sup

fossil void
#

hallo na wie i dunno

whole bear
#

i didnt know

fossil void
#

i saw her

whole bear
#

i could send gifs

#

wth

#

..

fossil void
#

or him

#

nothing

#

just enjoy

wind patio
#

just enjoy dont send

fossil void
#

pepe

#

uwu

whole bear
#

i can make sense of that

#

..

fossil void
#

nein

#

Learn the basics of computer science from Harvard University. This is CS50, an introduction to the intellectual enterprises of computer science and the art of programming.

💻 Slides, source code, and more at https://cs50.harvard.edu/x.

⭐️ Course Contents ⭐️
⌨️ (00:00:00) Lecture 0 - Scratch
⌨️ (01:45:08) Lecture 1 - C
⌨️ (04:13:23) Lecture 2 -...

▶ Play video
#

o yeah you got me here coding

#

im havard student from now

#

i ll do my best

#

you got cats ?

#

cat==love

#

my cat also loves programing

#

he knows the keyboard

lost gorge
#

bye guys have to go!

fossil void
#

bye have a good night

#

or day

#

also i have to go, have a good night, it was a great chat and remember guys "ON THIS TOPIC" see ya

lost gorge
#

@wind patio What is your python level?

obsidian dragon
#

translating to jquery

function loop() {
  let x = $("details>summary>span:nth-child(5)");
  $(x).each(function(index) {
    i = index;
    y = $(this).text();
    c = colours[$(this).text()]
    recolor(y,i,c)
  })
}

lol let x equal what ...?

obsidian dragon
#

like 8am ish

indigo lion
#

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

warped raft
#

hello @indigo lionhow is your day going

indigo lion
#

good

#

I'm gonna go outside soon

warped raft
#

ok

#

just for a local tour

#

or a special trip

indigo lion
#

nah just to touch some grass

warped raft
#

nice

warped raft
#

hello @rocky yew how are you doing

#

how is your day going

#

i am just a 15y/o student

#

just trying to learn some programming languages

#

did the basics of java and python

#

and now learning advanced java

#

India

#

ok

robust bone
#

hey

obsidian dragon
#
const colours = {
  "Project": "#DDDDDD",
  "Vanity": "#DD7034",
  "Discord": "#7289DA",
  "Logbook": "#888888",
  "Star Drive": "#FFE417",
  "PC FIxIT": "#9A698C",
  "Quicklinks": "#7A958E",
  "Youtube": "#E31937",
  "Book": "#D6BB87"
};

function loop() {
  let x = $("details>summary>span:nth-child(5)");
  $(x).each(function(index) {
    color = colours[$(this).text()];
    
    $(this).closest("details")
      .css("border-color", color);
    
    $(this).parent()
      .css("background", color);
    
    console.log(index + " " + 
      $(this).text() + 
      " gets colored " + color);
  })
}

function setpost() {
 // const obj = JSON.parse(database);
}

//setpost();
loop();

I'm done for today

surreal cape
#

General Kenobi

#

the parrots crew

#

prrr

whole bear
#

bro

#

ım muted

#

:D

#

where are you from

#

@lunar haven

#

bro ım muted

#

bro ım from turkey

#

please talk slowly

#

ı dont understand

#

:D

#

:f

#

press f to pay respect

#

BRO what do you say

surreal cape
#

f

whole bear
#

please talk slowly

#

:)

surreal cape
#

where are you from?

whole bear
#

turkey

#

ım bored

#

:D

#

bro you are racıst?

#

:D

#

are you greek?

#

BRO TALK SLOWLY

#

ı dont understand

whole bear
#

bro

#

koksal is turk

#

:D

surreal cape
#

YES

whole bear
#

you send koksal gif

#

and koksal from is turkey

#

hıs name köksal baba

surreal cape
#

koksal is GOD

whole bear
#

what

#

talk slowly

#

or write

#

agaın

#

f

#

07 ATATURK

whole bear
#

1922

#

:D

amber maple
#

hello

#

how do I get mic permission

#

I had 2 tabs open

#

I think sth weird

#

buggy

#

but rn no permission 😄

#

ok i asked

#

I have typing privilege good

#

Sow what happened, did you give me mic rights for a moment or what

#

cause I did see my icon going green

#

ok

#

ye im waiting

#

ye

#

""

#

yea

#

I am just a little gnome

#

ok I did

#

hello super </dev>

#

ok my friend is ready now

#

I gotta go haha

#

but I willbe back

whole bear
#

what

#

?

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied timeout to @whole bear until <t:1688244084:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

gritty garnet
#

@whole bear were you trying to get voice verified? If so, please don't spam in order to do so, otherwise you'll end up getting voice banned - engage meaningfully. I'm going to let the mute stand.

#

hey 👋

#

nah, not today :p

#

!ban 1110651950854324346 not appropriate for this server

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied ban to @cerulean cave permanently.

whole bear
#

ow

#

Me when dealing with 2 hours software

#

:)

#

:D

#

:-)

#

:))

#

is name ascıı art

#

:D

surreal cape
#
      "|          _     _            |",
      "|        ,':`._.':`.          |",
      "|    ..-':::::::'   `--..     |",
      "|   \\:::::::::          /    |",
      "|   _`.::::::          `._    |",
      "| .':::_.`--'.  ,'--'._   `,  |",
      "|  `.:::  o   ::  o   :  ,'   |",
      "|   ,':`.____.;:.____.' `.    |",
      "-------------------------------",
#

@snow oasis BR?

snow oasis
#

yes

surreal cape
#

me too

snow oasis
#

nice

toxic arch
#

fr

silk jewel
#

hello

#

you made the right choice

ionic dove
#

hello

#

do i need to leave the vc

#

sorry

ionic dove
#

bagel

ionic dove
#

no voice verification 💀 i didnt send enough messages

#

what?

#

nooo my brethren

pseudo umbra
#

oh is sooooooooooooooooo loooooooooooooooooong

surreal cape
#

thats what she said

pseudo umbra
#

this pdf🤣🤣

#

so tell what are you programing now

#

ok

surreal cape
#

Im collecting some data from an ETL API I have developed at my job to build a dashboard

#

not so interesting

pseudo umbra
#

bye guys

#

sorry i back tomorrow

fossil void
#

hellothere

#

what

#

?

#

ok perfect

#

enyjoy it

#

yeah there a episodes

#

do you know why that i cant use the microphone

#

?

#

max

#

im going to be get mad with this

#

does anyone want to study aerospace engineering too ?

delicate veldt
#

Hi @lunar haven

#

Could you elaborate a bit what you're working on for the late joiners?

#

Is this specific voice channel only to be used for the MIT course?

#

Awesome thanks!

#

I've been hacking away at a stock market low-frequency trading benchmarking system, low frequency in the sense that portfolios are re-balanced once every quarter. I'm trying to make different strategies "compete" against each other using different search algorithm. One interesting finding is that it seems that a random monte carlo style search is better at finding good strategies than using approximate search algorithms such as Simulated Annealing or Genetic Algorithms.... Of course all (most of it) in Python, the rest in in SQL!

#

Just wanting to share what I'm working on, no worries.

#

Im sharing what I am working on currently.

#

Using python to analyze what stock market strategies perform best by ranking stocks.

#

Millions of possible combinations so reducing search space is key.

#

72 quintillion to be precise 😄

dense hemlock
#

?

delicate veldt
#

Not parameters, possible solutions!

#

Assuming that we have 8 sectors and 4 indicators the total number of possible configurations are going to be: 72,969,250,332,651,749,376

#

The math is a bit extensive to share here, but yeah large search space !

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

2,000,000,000,000
delicate veldt
#

If interesting sharing a snippet of how I got to that number

#

How can I just share markdown formatted text?

#

@whole bear I'm from Argentina.

frail void
#

cant unmute myself :/

#

sup

delicate veldt
# delicate veldt If interesting sharing a snippet of how I got to that number
## Quantifying the search space

Suppose we have a ranking system that uses 4 variables and associates a specific weight to a variable.
The sum of weights must equal to one.

Now suppose we want to discretize our search space into increments of 0.01.
We can express this using the following relationships.


```py
x = 0.01*a
y = 0.01*b
z = 0.01*c
w = 0.01*d

0.01 * (a + b + c + d) = 100

C(n, r) = n!  / [(r!)*(n-r)!]

C(100, 4) = 3,921,225

If we are to search different stock rankings, different sector weightings, and a stop loss tolerance as we do in version 0.01 of mercury then the size of our parameter space is going to be a very large number.

Assuming that we have 8 sectors and 4 indicators the total number of possible configurations are going to be: 72,969,250,332,651,749,376

72 Quintillion possibilities.

frail void
#

I've been in this server for a good year now lol but no I haven't send 50 messages

#

im good how about yourself

#

lol yea I've been in other serves besides this

delicate veldt
#

Where are you from @lunar haven

frail void
#

oh sht

#

how about that

#

lol

vocal basin
#

depends on rounding

frail void
#

I saw is past tense

hearty wind
#

hi

frail void
#

you giving a lecture?

delicate veldt
#

You'll get smart really soon!

frail void
#

learn by mistakes is what I do... ;/

delicate veldt
#

They say fish is better for the brain, omega3 you know

hearty wind
#

I gave a lecture to a u10s rugby team the other day about their attacking structure

frail void
#

oof

#

;/

delicate veldt
#

We rolling they hating'

hearty wind
#

rugby is such a good sport

#

argentina u20s are doing well in the world cup

frail void
#

SUIIIIIII - Ronaldo is all I know

hearty wind
#

my friend knows a few of the irish players

#

hes mma

#

johnny sexton is my favourite player of all time

#

my dad went to school with him

#

like 38 i think

#

37

frail void
#

this a MIT course lec?

#

u at MIT?

#

ah I gotchu (means I understand)

#

lol

#

no I don't have cable

#

no it runs local

hearty wind
#

are the tkinter docs any goo

#

good

frail void
#

my goto response when someone asks me if I got something - I don't have cable

#

have fun learning

hearty wind
#

wait nvm im just gonna use customtkinter

#

its newer and is more powerful

#

NOW WAY THERES A GIRL IN HERE

#

I HAVENT TALKED TO A GIRL IN 14 YEARS

#

@fallow musk ARE YOU A GIRL?????

#

UMMMM

#

he must be young as hell

#

nah he js sounds rlly young

vocal basin
hearty wind
vocal basin
#

@midnight agate more code evolution plots

#

(I'm a little bit surprised that matplotlib was even able to handle this)

west epoch
#

@vocal basin These plots look interesting. Is it possible to refer to the jupyter NB/python code for this?

vocal basin
#

starts to look like geology or something

#

though more so in the first one

vocal basin
fallow musk
wind raptor
#

@terse drift in here

terse drift
#

voice-veryify

wind raptor
#

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

terse drift
somber heath
#

@neon agate 👋

zinc dagger
#

heyy

#

still not elegible to talk yet 😭

#

anyone of u guys good at debugging?

#

yeah, thats what i am talking abt

#

ah

#

i use pycharm

#

OOP

#

uhh, its a lot of files

#

prob like 8 files

#

and they are classes that depend on each other

#

yeah, exactly

#

nah, this is an assignment, so its starter code that i was given, so these imports are correct

#

yeah, makes sense

#

but the imports are right

#

yeah

#

exactly

#

yeah, ik

#

thats the problem

#

idk what the problem is 😭

#

so i wanted to use the debugger to see what exactly is happening

#

oh 😂

#

yeah

#

ah ok 😭

#

but i mean if i dont pass their tests, i wont pass the actual tests they run on it

#

so i wont get the grade i would like to achieve

#

yeah, makes sense

#

i wish i could stream

#

wdym by that

#

well anyways, u guys have a good night!

wind raptor
zinc dagger
#

hope i am close enought to having privs 😭

lavish rover
#

@wind raptor why have .len() when there's already .size?

wind raptor
lavish rover
#

ah fair

vocal basin
#

in some sense, visualisation came before the code to generate it

#

i.e. I was trying to make this exact thing, and writing the code was quite simple

minor raft
#

search flying spagety monster

#

what?

#

which one?

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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

minor raft
#

yeah, she dumb af

woeful hatch
#

@whole bear If youre gonna sit in here and complain and tell us to shut up, why are you even here in the first place?

woeful hatch
#

@whole bear "Stop talking about programming it's so boring" You must've forgot this server is for Python

whole bear
whole bear
woeful hatch
dry jasper
#

todayisnew

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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

minor raft
#

thats not python

cosmic lark
#

i can

#

but how does that matter?

#

the name of the algorithm or the ways to counter it?

vocal basin
turbid sandal
#

wohoooooooooo

minor raft
#

wohoooooooooo

cosmic lark
#

oh

#

so for what i think it mostly looks like aes

turbid sandal
#

hmm

#

facts

cosmic lark
#

depends on the 128 or 256 version

vocal basin
#

128/192/256, standard

cosmic lark
#

yep

vocal basin
#

I think Rijndael defines larger possible keys, but those didn't make it into the standard

cosmic lark
#

ok

vocal basin
#

> Related-key attacks can break AES-256 and AES-192 with complexities 2^99.5 and 2^176 in both time and data, respectively.
wait what, why is 256 with lower complexity

cosmic lark
#

ok so what algo is it?

vocal basin
#

!e

KEY = bytes.fromhex('DC CD A2 67 D5 2A 0F 10 11 5A 9B 58 CA 05 06 77 B8 6D 92 81 03 9D C8 66 88 94 83 6D 06 FF 96 BD 6D 0B A5 9F DC D9 10 21 99 E6 19 0E B6 0A 9C 16 3D C5 8A 89 BB F0 5A E7 8B 09 4B 0B 8E 6B 15 D0 B7 08 EE 6E B1 D2 B5 BE 45 3F 09 2F 2F EC 85 18 B1 F8 65 86 86 35 D0 6E 30 F9 11 EC 05 62 5E DB 71 81 0F DE 06 DA 5B D0 F4 ED BC 91 6A D3 8C 37 2B 5D 3B 50 37 CD B5 E8 B6 CC C1 82 35 9B 4F 37 84 D6 3C D3 77 5B 54 0E F2 37 E7 41 9E 3E 30 A6 DE 8E E9 D6 1C 90 8E B8 81 01 74 6A 83 57 8E B5 80 BC D3 87 F3 8D 68 DD 85 6C B3 4F 6C 09 D7 E7 09 93 1D EA C2 1E 67 6E 9D 91 FA D2 02 56 FA DF C7 96 04 78 73 31 BB 5A 76 E1 DB 92 E9 65 64 A8 75 EC 60 1A CB 8D 7A 84 5F 8F 9D BC 9F C7 00 0D A3 FF 85 16 0D 0F 01 8D F9 1C 66 FE 50 2C 57 B5')
print(len(KEY))
wise cargoBOT
#

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

240
vocal basin
#

weird

cosmic lark
#

it clearly seems aes tbh, just see if u can find the box

cosmic lark
#

pretty sure

#

yep

vocal basin
#

ah

cosmic lark
#

if u can stream the debugging process that is

#

or the static analysis part

#

also try to see if u have the box

#

or u can just send me the binary and gimme a few mins

#

to analyse it for ya

#

havent done any re for long

#

yep sure

#

no worries, lol time to brush up my rusted skills

#

ghidra probs tbh, gotta modify the sleigh definitions if i have some free time to waste on the awful dev process of ghidra

#

yep

cinder dawn
#

hello

vocal basin
#

one of them

vocal basin
#

or you can write your own

#

as in SP network?

#

this doesn't look like AES

vocal basin
#

ah

#

just not in the code you sent

#

then, yes, given that, it does look close enough to AES

#

!rule 5 <-- just remember this

wise cargoBOT
#

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

vocal basin
#

if ToS says it's not fine, it's not fine
but idk what ToS says

cosmic lark
#

did u decrypt the eboot.bin?

#

prxtool?

#

yep

#

i gotta download ghidra

#

i wish there was an idc or pyida plugin

#

for that

#

hmmm

#

lemme update my ghidra

#

2 min

#

australia

#

aes

#

256

#

lmao updated ghidra only to know the plugin supports upto ghidra 10.2.3

#

very sad

#

i can mute myself still speak

#

discord websockets sucks

#

very bad

#

ik

dense ibex
#

voice is like the one thing discord is good at

cosmic lark
#

yep

#

ik

dense ibex
#

also the gateway is fairly accurate from my expirence

cosmic lark
#

yk what @whole bear cant download ghidra rn ;-;

#

u r on ur own

#

just put the enc data and the key together and try python aes module to decrypt maybe?

#

use pycryptodomex or something

#

to test

#

also there is cipheyy online

#

to test ur data encryption

cinder dawn
#

@dense ibex whats the job

#

we had somethinf extremely similar in my last job

#

i was Partner of the quarter twice in a row

#

and barista champion a week later hyperlemon

#

@dense ibex our partner of the quarter wsa picked by our district manager

hollow oriole
#

unmute me pls

vocal basin
#

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

cinder dawn
#

is it a drive thru starbs

dense ibex
#

yes

hollow oriole
#

gg

cinder dawn
#

i fucking hate that

#

@somber heath i did hyperlemon

#

i got partner of the quarter twice ina row

#

no no it was favouritism

#

i applied myself the msot

#

and invested the most

#

i ws doing 40 hours while in school

vocal basin
#

might contain extra information

#

including MAC

dense ibex
#

hi @uncut meteor

uncut meteor
#

Je ne parle Anglais

dense ibex
#

I don't speak whatever the fuck that is

uncut meteor
#

*Francais

dense ibex
#

yeah that's what I thought

vocal basin
#

@midnight agate
no loops
||```py
from collections import Counter
from operator import itemgetter

class Solution:
def smallerNumbersThanCurrent(self, nums: List[int]) -> List[int]:
ix = sorted(Counter(nums).items())
indices = dict(map(reversed, enumerate(map(itemgetter(0), ix))))
accumulated = list(accumulate((map(itemgetter(1), ix)), initial=0))
return map(accumulated.getitem, map(indices.getitem, nums))

#

"what do you mean weird singleton?
all singletons are weird"

#

not severe enough

#

(at least for pinging the role)

somber heath
#

Chessssh, or chessossh?

vocal basin
#

chessh
chesš

#

yes, that's the context from VC

#

chesʃ

uncut meteor
#

what is ʃ

#

function?

vocal basin
#

sh

uncut meteor
#

ah

#

sh

gentle flint
dense ibex
west epoch
#

Jansenn pharmaceutical is part of Johnson and Johnson (baby products company), that could be one of the reasons why it was widely addressed as Johnson and Johnson vaccine across USA

cinder dawn
#

anyone else get this? lol

vocal basin
#

traits in Rust -- classes in Haskell

#

@uncut meteor "just use function pointers"

#

(that's basically how OOP works in C)

#

void* -> void*

#

though void* -> void is good enough

dense ibex
wind raptor
#

!voice @molten widget

wise cargoBOT
#
Voice verification

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

wind raptor
#

@whole bear 👋

whole bear
#

Hey

#

Sorry for joining and leaving constantly

#

Ah I see now

whole bear
wind raptor
#

No worries. It happens a lot when people don't know why they can't unmute

whole bear
#

Thanks

#

I will be back another time

#

gtg now

wind raptor
#

Have a good one

vocal basin
#

pyright is going insane again

#

given that I can now aggregate on less than len(commits) colours, I may try to run this visualisation on some bigger project, I guess

#

(it's no longer quadratic in space usage with respect to commit count)

#

it might be a good idea to start compressing the thing horizontally too

#

I'm still not sure what happened to rustup;
I might be ordering commits incorrectly (and there may even be no correct way to order them at all)

gentle flint
west epoch
#

@vocal basin I am new to programming, learning OOP. Could you please let me know how classes are related to "function pointers".

vocal basin
#

!e

def print_once(value):
    print(value["name"])

def print_twice(value):
    print(value["name"], value["name"])

apple = {"name": "apple", "print_function": print_once}
banana = {"name": "banana", "print_function": print_twice}

def print_value(value):
    value["print_function"](value)

print_value(apple)
print_value(banana)
wise cargoBOT
#

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

001 | apple
002 | banana banana
vocal basin
#

in C that would be a struct instead of a dictionary

#

with .name and .print_function syntax

#

.print_function would probably take in a pointer

#

and, depending on what version of C you're using, that pointer might have to be void * as to avoid recursive definition

#

another thing using a lot of function-pointer-based methods

#

one of the core ideas of OOP is to be able to have arbitrary behaviour for an object
usually that involves some sort of dynamic dispatch
for that dynamic dispatch to be possible, the program needs to know what code to execute
and function pointers point to that code

west epoch
vocal basin
#

value["print_function"] is known to be a function that takes value-like object as its input

#

actually, it can be simplified as to avoid recursion

#

(recursion in definition)

#

!e

def print_once(name):
    print(name)

def print_twice(name):
    print(name, name)

apple = {"name": "apple", "print_function": print_once}
banana = {"name": "banana", "print_function": print_twice}

def print_name(value):
    value["print_function"](value["name"])

print_name(apple)
print_name(banana)
wise cargoBOT
#

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

001 | apple
002 | banana banana
vocal basin
#

this one only passes in the name

vocal basin
vocal basin
#

print_function acts like a normal function even though we don't know which one it is exactly

pseudo crescent
#

Kiinda off topic question does anyone here understand java?

vocal basin
#

!e

def print_name_once(value):
    print(value["name"])

def print_colour_twice(value):
    print(value["colour"], value["colour"])

apple = {"name": "apple", "print_function": print_name_once}
banana = {"colour": "yellow", "print_function": print_colour_twice}

def print_value(value):
    value["print_function"](value)

print_value(apple)
print_value(banana)
wise cargoBOT
#

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

001 | apple
002 | yellow yellow
vocal basin
#

(I have some experience writing C#, so shouldn't be much different)

pseudo crescent
#

Ok so I made a chat filter for an assignment but it says n line 6 that "sc was never closed" but im confused because I don't know how to close that

vocal basin
#

isn't there something like try-with?

pseudo crescent
#

Let me check it out

vocal basin
west epoch
vocal basin
#

how it gets "resolved", step by step:

print_value(apple)
apple["print_function"](apple)
print_name_once(apple)
print(apple["name"])
print("apple")

print_value(banana)
banana["print_function"](banana)
print_colour_twice(banana)
print(banana["colour"], banana["colour"])
print("yellow", "yellow")
#

["print_function"] allows abstracting away many things; for example, that one object only has "name" and another only has "colour"

pseudo crescent
#

I don't think I see it :/ should i try askiinig gpt?

vocal basin
pseudo crescent
#

sure.

#
import java.util.ArrayList;

public class Uitvoerchatfilter {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("Voer wat in: ");
        String input = sc.nextLine();

        ChatFilter filter = new ChatFilter();
        String output = filter.filter(input);

        System.out.println("Je hebt ingevoerd: " + output);
    }
}

class ChatFilter {
    ArrayList<String> bannedWords;

    public ChatFilter() {
        bannedWords = new ArrayList<String>();
        bannedWords.add("Kut");
        bannedWords.add("Fuck");
        bannedWords.add("Hoer");
        bannedWords.add("Dog");
        bannedWords.add("ongesteld");
    }

    public String filter(String input) {
        for (String word : bannedWords) {
            input = input.replaceAll("(?i)" + word, "removed");
        }
        return input;
    }
}```
vocal basin
#
public class Uitvoerchatfilter {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            System.out.print("Voer wat in: ");
            String input = sc.nextLine();
    
            ChatFilter filter = new ChatFilter();
            String output = filter.filter(input);
    
            System.out.println("Je hebt ingevoerd: " + output);
        }
    }
}
#

does this work?

pseudo crescent
#

OH

#

that makes a lot more sense

#

let me try that

vocal basin
#

it's basically the same as with in Python

#

short-hand for try-finally-close

pseudo crescent
#

ok it works now

#

ty

vocal basin
#

@wind raptor logarithm of N! is equivalent to NlogN, iirc

#

which is used to prove that sorting algorithms are optimal

#

python very aggresively serialising data into json

rugged tundra
vocal basin
#

another function defined elsewhere?

#

' is mostly either derivative or just a different thing

#

I've seen a lot of maths notation when I was more properly taught algorithms;
but that's because of the places were maths-heavy

#

without h

#

I think

#

that is more applicable for continuous

#

I though about this too

#

but

#

n is confusing

#

n is usually for integers

#

!d heapq

wise cargoBOT
#

Source code: Lib/heapq.py

This module provides an implementation of the heap queue algorithm, also known as the priority queue algorithm.

Heaps are binary trees for which every parent node has a value less than or equal to any of its children. This implementation uses arrays for which heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] for all k, counting elements from zero. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that its smallest element is always the root, heap[0].

vocal basin
#

one of the implementations of priority queue structure, yes

#

@wind raptor there actually are some priority queue structures with better amortised asymptotics, compared to heaps
but they have a large constant factor which negates the advantages somewhat

#

insertion can be reduced to O(1) average

#

it's a forest

#

not just a tree

#

so, like, list of trees

vocal basin
#

provably

#

because heapsort

vocal basin
#

so I ran the code on cargo repository and this is the result

#

I definitely should fix sorting somehow

#

that gap is totally not fine

wind raptor
vocal basin
#

okay, commit responsible for the drop was found

#

@wind raptor I should've guesses by how descriptive the name is that it's the commit in question

#

@wind raptor do higher-order templates still work?

#

not functions

#

in (wrong) Rust syntax:

struct Example<T> {
    field: T<i32>,
}
#

it did work in Aecor

#

at some point

#

@wind raptor can you show again what you wrote there?

#

it shouldn't be Foo<i32>

#

Foo<Bar> with Bar being a generic itself

#
struct Bar<T> {
    x: T,
}
#

like this

#

and then

Foo<Bar>
#

@wind raptor just changing i32 to Bar should be okay

#

@minor raft
depends on what you learn the language for
if you want to do web+python, look into ASGI frameworks

#

Django, FastAPI, etc.

minor raft
#

i would want to do data analysis, pentesting, working with data

vocal basin
#

@wind raptor does it compile in this form?

#

okay, so it no longer works

#

oh, C++ seems to support something alike

wind raptor
#
ashen plinth
wind raptor
#

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

vocal basin
#

@minor raft it can be used for unethical stuff easily, that's why restricted

vocal basin
lavish rover
#

the "oddities" are because we removed the original compiler in favour of self hosted

lavish rover
#

wait that's the one that deleted the code?

vocal basin
#

yes, this drop

#

!e

f = print
f(1, 2, 3)
wise cargoBOT
#

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

1 2 3
vocal basin
lavish rover
#

gotta make chris make his commits less meme-y

minor raft
#

`

vocal basin
#

!e
```py
code
```

#

backtick

#

!charinfo `

wise cargoBOT
lavish rover
#

no oddities, seems like
Weird, there was a point there when i removed old C++ compiler in favour of new one too

rocky yew
#
x = function
y = function()
vocal basin
#

will fix

lavish rover
#

ah, it seems the bootstrap files almost exactly counter-balanced original code

shut garden
minor raft
#

!e

def function():
    return 'hi'
x = function
print(x())
wise cargoBOT
#

@minor raft :white_check_mark: Your 3.11 eval job has completed with return code 0.

hi
vocal basin
#

where colours are kind of just shifted

wise cargoBOT
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     help(type(print))
004 |     ^^^^
005 | NameError: name 'help' is not defined
vocal basin
#

@rocky yew same in this case

lavish rover
#

what does the color represent?

vocal basin
#

added lines are put on top with the next colour

lavish rover
#

hmm

minor raft
#

`

#

py

rocky yew
vocal basin
#

python doesn't have a C-like notion of a function

#

closer to how function pointers work in C

#

I'd say closer to how it is in JavaScript

#

Java doesn't really have functions

#

and it's notion of methods as objects is weird

ashen plinth
vocal basin
#

how many interfaces does Java have for functions? 43?

#

yes, 43

#

last time I counted

ashen plinth
#

SOrry, I am not familiar with interfaces still. JUst trying to figure out functions mainly nad then understand deeper about classes/objects. I do know there is an entity called 'interface' in Python but not used it yet

rocky yew
vocal basin
#

even in C you can just "assign a function to a variable"

#

but that variable needs to have a function pointer type

rocky yew
#

ooh understandable

#

what would you say is a purer (for a lack of better word) programing language, c or c++?

vocal basin
#

C, in all the ways
at least, because it's smaller

rocky yew
#

noted!!

vocal basin
#

C++ may be not as broken as it might sound if you just start listing all the orthogonal features it has
but it's still a mess

west epoch
vivid jacinth
rocky yew
#

and what are your thoughts on c#?

vocal basin
lavish rover
rocky yew
#

lol

desert wolf
#

lmao @ Gi's github & youtube. Wtf?🤣

vocal basin
#

because elements in the product are mostly less

#

(except for the last one)

vocal basin
#

("for legal reasons", better than it itself used to be, not necessarily better than Java)

#

"Simple Managed C"

whole bear
#

hi

ashen plinth
vocal basin
#

same number of elements

#

but almost all of them (except last one) are smaller in the first one

ashen plinth
#

Agreed! Thanks

vivid jacinth
vocal basin
#

sent that earlier

#

interesting in the sense that logarithms are close enough despite the functions themselves diverging

#

because that O(ln n) bit in the logarith becomes significant

#

(as it turns into *O(n))

ashen plinth
#

Alisa, I follow the N! graph in the Stirling approx that you had shared, but still figuring out the other two graphs relation in the diagram

vocal basin
#

factorial
gamma function
Stirling's approximation

#

can't write

#

gamma function is like a generalisation of the factorial

#

!d math.gamma

wise cargoBOT
#

math.gamma(x)```
Return the [Gamma function](https://en.wikipedia.org/wiki/Gamma_function) at *x*.

New in version 3.2.
west epoch
vocal basin
#

!e

from math import gamma, factorial
print(factorial(10))
print(gamma(11))
from datetime import timedelta
print(timedelta(weeks=6).total_seconds())
wise cargoBOT
#

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

001 | 3628800
002 | 3628800.0
003 | 3628800.0
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

1.0000934600830078
vocal basin
#

asymptotic similarity is important for proving the lower bound of time complexity for sorting algorithms

ashen plinth
vocal basin
ashen plinth
vocal basin
#
1 2 3 4 5 6 7 8  9    10
  2 3 4 5 6 7 8  3 3  10

3 4 5  2 3 10  3 8  7  6
60     60      24   7  6
ashen plinth
west epoch
vocal basin
#

yes, 9 needs to be split

ashen plinth
#

Thank you! I will refer to these links

vocal basin
#

those are quite in-depth, especially ones about Python

ashen plinth
#

I have noticed, the python.org specs are in detail. In your opinion, for grasping what goes on behind functions in Python (& to a little extent in C): Do you recommend going through these links in detail first or is there any other resource you found helpful that could be referred to initially?

vocal basin
#

python doesn't differentiate between functions and non-functions in terms of what gets called, until actually gets called
same is true for many other interpreted/dynamic languages

(something_callable)(argument)
#

!e

(1)(2)
wise cargoBOT
#

@vocal basin :x: Your 3.11 eval job has completed with return code 1.

001 | /home/main.py:1: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
002 |   (1)(2)
003 | Traceback (most recent call last):
004 |   File "/home/main.py", line 1, in <module>
005 |     (1)(2)
006 | TypeError: 'int' object is not callable
vocal basin
#

notice how it's not a syntax/compilation/etc. error

vocal basin
#

!e

number = 1
print(number.bit_length())
print(number.bit_length)
wise cargoBOT
#

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

001 | 1
002 | <built-in method bit_length of int object at 0x7fd778fea2a8>
hallow pond
#

hello

whole bear
#

yooo

hallow pond
#

for n in range(51):

#

print("hello")

whole bear
#

!e
for i in range(50):
print("message number:", i)

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | message number: 0
002 | message number: 1
003 | message number: 2
004 | message number: 3
005 | message number: 4
006 | message number: 5
007 | message number: 6
008 | message number: 7
009 | message number: 8
010 | message number: 9
011 | message number: 10
... (truncated - too many lines)

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

ashen plinth
vivid jacinth
#

!e

1.bit_length()
wise cargoBOT
#

@vivid jacinth :x: Your 3.11 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     1.bit_length()
003 |      ^
004 | SyntaxError: invalid decimal literal
vocal basin
#

!e

1 .bit_length()
(1).bit_length()
wise cargoBOT
#

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

[No output]
vocal basin
vivid jacinth
#

ok

vocal basin
#
fn test() {
    let a = 1.clone();
}
#

whereas this errors

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

28
ashen plinth
vocal basin
ashen plinth
#

okay

vocal basin
#

JS would probably say undefined is not callable

#

or this

wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

28
vocal basin
#

JS same as Python in this context

west epoch
wise cargoBOT
#

@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.

49
hallow pond
#

!e
import pyfiglet

print(pyfiglet.figlet_format("H e l l o"))

wise cargoBOT
#

@hallow pond :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     import pyfiglet
004 | ModuleNotFoundError: No module named 'pyfiglet'
#

@whole bear :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     import pip
004 | ModuleNotFoundError: No module named 'pip'
vocal basin
#

!e

from subprocess import check_output
from sys import executable
print(check_output([executable, "-m", "pip", "list"], text=True))
wise cargoBOT
#

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

001 | Package           Version
002 | ----------------- ------------
003 | anyio             3.7.0
004 | arrow             1.2.3
005 | async-generator   1.10
006 | attrs             22.2.0
007 | beautifulsoup4    4.12.2
008 | contourpy         1.0.7
009 | cycler            0.11.0
010 | einspect          0.5.16
011 | fishhook          0.2.8.post10
... (truncated - too many lines)

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

full salmon
#

@vocal basin for the sorting algorithm implementation that you are working on, is it possible to follow it on your GitHub repo or something?

vocal basin
#

what sorting algorithm?

#

that's way too many people with same colour pfps

lavish rover
#

!e

from subprocess import check_output
from sys import executable
print(check_output(["cat", "/etc/passwd"], text=True))
wise cargoBOT
#

@lavish rover :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     print(check_output(["cat", "/etc/passwd"], text=True))
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/usr/local/lib/python3.11/subprocess.py", line 466, in check_output
006 |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
007 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
008 |   File "/usr/local/lib/python3.11/subprocess.py", line 548, in run
009 |     with Popen(*popenargs, **kwargs) as process:
010 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
011 |   File "/usr/local/lib/python3.11/subprocess.py", line 1026, in __init__
... (truncated - too many lines)

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

dry jasper
#

he did not chose gang life, gang life choose him @gentle flint 😛

vocal basin
#

cat not available I'd guess

#

time to check

#

yes

#

the thing I checked with last time?

#

touch, I think

full salmon
#

Not sure for which sorting type you had shared it for but since yesterday there have been few sorting plots that you have shared. I am referring to those

vocal basin
lavish rover
#

!e

print(open("/etc/passwd").read())
wise cargoBOT
#

@lavish rover :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(open("/etc/passwd").read())
004 |           ^^^^^^^^^^^^^^^^^^^
005 | FileNotFoundError: [Errno 2] No such file or directory: '/etc/passwd'
lavish rover
#

sadge

vocal basin
thin drift
lavish rover
#

is the code for the repo-plot online somewhere?

vocal basin
#

the "sorting" in question is rather commit ordering

hallow pond
#

any one knows a good problems website for beginners?

zenith radish
full salmon
# vocal basin this?

Yes, I am referring to these plots, ordering as you mentioned. Rather than sorting.

vivid jacinth
#

!e

from subprocess import check_output
from sys import executable
print(check_output(["/bin/cat", "/etc/passwd"], text=True))
wise cargoBOT
#

@vivid jacinth :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 3, in <module>
003 |     print(check_output(["/bin/cat", "/etc/passwd"], text=True))
004 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/usr/local/lib/python3.11/subprocess.py", line 466, in check_output
006 |     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
007 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
008 |   File "/usr/local/lib/python3.11/subprocess.py", line 548, in run
009 |     with Popen(*popenargs, **kwargs) as process:
010 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
011 |   File "/usr/local/lib/python3.11/subprocess.py", line 1026, in __init__
... (truncated - too many lines)

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

vivid jacinth
#

!e

import os
os.system('/bin/cat /etc/passwd')
wise cargoBOT
#

@vivid jacinth :warning: Your 3.11 eval job has completed with return code 0.

[No output]
vivid jacinth
#

!e

import os
print(os.system('/bin/cat /etc/passwd'))
wise cargoBOT
#

@vivid jacinth :white_check_mark: Your 3.11 eval job has completed with return code 0.

32512
lavish rover
#

go to #bot-commands please if you want to try more stuff

honest vortex
#

do u guys have a project i can provide assistance on?

lavish rover
#

what sort of project are you looking for?

honest vortex
#

i need something for my resume

#

"contributions"

#

i would love to learn new stuff in the process too!!

cinder dawn
#

what conversation did i walk into

lavish rover
#

why not just use a repository?

vocal basin
full salmon
vocal basin
#

and I'm too lazy to fork/create new repo/etc.

delicate veldt
#

I think there is an overall polraization going on around the world pushing people twords more extremes.

thin drift
#

I am orthodox and i didnt knew that

lavish rover
ashen plinth
hallow pond
vocal basin
#

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

thin drift
#

@lavish rover what happend to your pfp you used to have like llama plushie

vocal basin
honest vortex
thin drift
#

nope

delicate veldt
#

I can't talk yet 🤷‍♂️

honest vortex
#

get to the chopper

vocal basin
#

I'm actually not using GitHub private repos actively

lavish rover
vocal basin
#

I use self-hosted Gitea instead

lavish rover
#

makes sense

ashen plinth
vocal basin
#

one of GitHub "clones"

honest vortex
#

so i would need a good understanding of c and rust to contribute ? @lavish rover

delicate veldt
#

I used gittea for a while back in 2017 in a company that did not allow us to use github, it was a very pleasant experience.

#

We used the dockerized version and backed up the volumes for any disaster!

vocal basin
#

I think I've only interacted with two GitHub-like systems that can be self-hosted for free,
GitLab and Gitea

#

GitLab has CI/CD stuff

#

buzzword/buzzword

delicate veldt
#

Gitlab is great but can be "bloated" if you just to KISS

vocal basin
#

Gitea had integration with systems like Drone before that even

lavish rover
delicate veldt
#

That's amazing!

vocal basin
#

"rewrite Rust compiler in Ocen"
"or, at least, rewrite x.py from Rust compiler"

lavish rover
#

writing a compiler for subset of rust would be fun, especially when someone tells me to RIIR

#

"why rewrite it in rust when i can rewrite rust in it"

ashen plinth
#

for beginners like myself , would you all suggest using Gitea, gitlab or any other? As all are new to m e, I have to start somewhere

vocal basin
#

RIIR -> RRII

lavish rover
#

someone should make a rust compiler in pure python just to fuck with the rust folks

delicate veldt
#

For those working on OCEN, What's the best book/resource you recomend to read before starting to dive into developing your own language. If you had to pick only one what would it be?

west epoch
#

I must say I don't follow some of the short forms used in this group 😭 riir rrii ?

lavish rover
#

lol idk I haven't read any books i kinda just started and figured stuff out

vocal basin
delicate veldt
vocal basin
#

it's like those memes about the whole system working only because of a single Perl script

lavish rover
#

I'm not using any tools, everything is done myself

#

except like GCC I guess, but I already knew C

#

the whole compiler is written in ocen

cinder dawn
#

i love gofek

#

i used to put a sock over my mic when i made music, saved me loads of pop filters

delicate veldt
#

@lavish rover where did you learn about parser and lexers for example? CompuSci background?

lavish rover
#

I did CS but didn't do any courses for them

delicate veldt
#

I must say impressive!

lavish rover
#

it's just an input->output problem, started simple and just worked up

vocal basin
#

compušci sounds like some village name lol

lavish rover
#

lexing is basically just taking def foo(a,b): and converting it to ['def', 'foo', '(', 'a', ',', 'b', ')', ':']

#

parsing is a fancy way of saying store the info you care about into some data structure

#

when i first started i literally just set the goal for myself to be able to lex+parse+codegen for 1+1

#

then you say "okay how do i add multiplication", "other operations", "okay how would variables work?"

#

each step is not too bad

vocal basin
#

no programming language named "cen", can't make "objective cen" joke this time

but there's "Sen", sounds the same

lavish rover
#

close enough

gentle flint
#

@somber heath

vocal basin
#

enums in python have their own convention for special methods

#

_method_

#

!e

from enum import Enum, auto

class Aaa(str, Enum):
    AAA = auto()

print([s for s in dir(Aaa.AAA) if s.startswith("_") and s.endswith("_")])
wise cargoBOT
#

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

['__add__', '__class__', '__contains__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__module__', '__mul__', '__ne__', '__new__', '__objclass__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_generate_next_value_', '_member_map_', '_member_names_', '_member_type_', '_missing_', '_name_', '_new_member_', '_sort_order_', '_unhashable_values_', '_use_args_', '_value2member_map_', '_value_', '_value_repr_']
vocal basin
#

_value2member_map_

vocal basin
#

@trail tusk you can add time out for JWT, for example

#

you can't really reverse-engineer JWT, iirc

#

you can't change it

#

at least

#

that's the whole point

#

it's signed

#

the server verifies the signature of JWT each time it receives it

trail tusk
#

Yes I did, I usually store id and timestamp

vocal basin
#

that's structure of JWT itself, not payload

#

generally, you would probably use a library for that

vocal basin
#

sometimes session id may be preferred

#

so you can invalidate sessions

#

for example, if user loses access to the account

trail tusk
#

Somehow I leak this id, is there any way to reverse engineer and find the salt or whatever and guess this JWT for other "id"s

vocal basin
#

it's cryptographically secure

#

you'd have to spend way too much time

trail tusk
#

hmm I see

vocal basin
#

yeah, rather something in-between

#

it needs to something that can be invalidated

trail tusk
#

I meant private key

vocal basin
#

so, like, for example
if the user resets the password, that thing changes

#

yeah, seems like salt doesn't make much sense in this setting

#

though...

#

you can just have fields in the payload which are unique each time, and that already removes the need for salt

#

for example, timeout timestamp

trail tusk
vocal basin
#

salt also can exist as a part of the signing protocol/algorithm/etc.

trail tusk
#

That was helpful, thanks @vocal basin @whole bear @midnight agate

vocal basin
#

I'd say inserting it manually is over-engineering, mostly

trail tusk
vocal basin
#

I'd rather choose the JWT payload in such a way that even if user reads it, there's no security breach

vocal basin
#

user not adversary

trail tusk
#

I am just storing id, that is my database's primary key

west epoch
vocal basin
#

"Aaa.AAA" in the example

#

and Aaa.AAA._name_ returns just "AAA"

somber field
#
from elevenlabs import generate, play, set_api_key

set_api_key(********) 

audio = generate(
    text="Im your assistent",
    voice="Bella"
)

play(audio, notebook=True)

raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

For further information visit https://errors.pydantic.dev/2.0/u/root-validator-pre-skip

vocal basin
#

sounds like outdated API binding, tbh

#

and that binding probably has incorrectly specified dependency

#

unless you manually updated pydantic

somber field
#

no

#

i dont

somber field
vocal basin
#

uninstall pydantic

#

install pydantic 1.10

#

or just 1.whatever

wise cargoBOT
#

setup.py line 13

"pydantic>=1.10",```
vocal basin
#

congratulations on being early with this error
pydantic 2.0 released only two days ago

somber field
#

omg

#

really?

#

lmao

#

how do I install an older version though?

vocal basin
#

iirc, this

pip uninstall pydantic
pip install pydantic==1.10
somber field
#

omg

#
python -u "e:\Use\files\programing\Python projects\11labs.py"
<IPython.lib.display.Audio object>
#

worked

#

tysm

vocal basin
somber field
#

ily

vocal basin
#

^ imo, doing something like this is a little bit cleaner, if the language allows it

#

@midnight agate how often do you encounter O(min(MlogN, M+N, NlogM)) time asymptotic?

#

merging two heaps/bsts/etc.

#

also saw that in leetcode (one of easy ones, iirc)

vocal basin
#

I've read no books on algorithms so far

#

might've only read individual chapters from some (mostly conference-associated ones)

#

((that's closer to journals in terms of how it's published, I guess?))

#

yes
for example, one containing original AVL publication

#

or no

#

not sure about the term

zinc dagger
#

good afternoon

wind raptor
#

!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 floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

zinc dagger
#

are u guys talking?

#

or is it just quiet

vocal basin
zinc dagger
#

oh

#

why cant i hear u guys

wind raptor
#

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

last thistle
#
# Step 1: Import libraries
import pandas as pd
import numpy as np
import yfinance as yf
import matplotlib.pyplot as plt

# Step 2: Import the data

AAPL_data = yf.download(
    "AAPL", start="2023-06-19", end="2023-06-23", interval="1m"
)

# Step 3: Convert data to a data frame
df = pd.DataFrame(AAPL_data)

# Step 4: Export the data frame to a CSV file
df.to_csv("AAPL_data2.csv", index=True)
vocal basin
#

comments seem off

last thistle
#

New to this, my bad

#

I'm trying to get it to go by one minute rather than make it go all the way to the end of the market

#

If you look at the results, they show it goes to 4 oclock everytime

pine terrace
#

Can anyone help

vocal basin
#

you can use JetBrains Toolbox for easier installation

vocal basin
west epoch
#

@lavish rover can you please repeat the point about tuples, did you say pedantic or something as it was not audible correctly

#

Oh okay. Got it

pine terrace
#

thanks

wind raptor
#

!stream 191793436976873473

wise cargoBOT
#

✅ @whole bear can now stream until <t:1688337402:f>.

lavish rover
#

@wind raptor in ::resolve_scoped_identifier

#

in NSLookup case, if the lhs is a struct and is templated, we throw an error

#

actually, maybe we can put it in lookup _in_symbol

lavish rover
#

!resources

wise cargoBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

full salmon
#

@lavish rover would my understanding be correct that for language development project you are currently working on, it is completely backend oriented, but no frontend component?

lavish rover
#

it's not really either backend or frontend

#

"backend" usually refers specifically to working on backend of web services

full salmon
vocal basin
#

"is IndexedDB frontend or backend?"

#

I'm running the plot thing on Rust repo

#

2 years of commits left to index

ashen plinth
vocal basin
#

I'm only including ~2% of all commits

lavish rover
#

rewrite it on ocen

#

is zoom zoom fast

vocal basin
#

matplotlib.ocplot

#

I'd have to rewrite git checkout too

ashen plinth
vocal basin
#

python code is only around 8% of all compute time

ashen plinth
wind raptor
#

Hey! I'm back for a few

vocal basin
#

"even if you turn on the power, it doesn't work"

#

⬆️ rust-analyzer

#

finite-field DH or elliptic curve DH?

#

@whole bear pow not xor

#

@whole bear it's not xor

#

there

#

in DH

#

DH uses power not xor

#

modulo some number

#

!e

a_secret = 3
b_secret = 5
g = 7
m = 13
a_public = pow(g, a_secret, m)
b_public = pow(g, b_secret, m)
ab = pow(a_public, b_secret, m)
ba = pow(b_public, a_secret, m)
print(ab)
print(ba)
wise cargoBOT
#

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

001 | 5
002 | 5
vocal basin
#

!e

a_secret = 31
b_secret = 37
g = 13
m = 71
a_public = pow(g, a_secret, m)
b_public = pow(g, b_secret, m)
ab = pow(a_public, b_secret, m)
ba = pow(b_public, a_secret, m)
print(ab)
print(ba)
wise cargoBOT
#

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

001 | 59
002 | 59
vocal basin
#

pydantic

vocal basin
#

pow short-cuts and has non-constant time, as there's no way to specify what size numbers are limited to

#

also, this type of DH is inefficient, compared to ECDH

#

ECDH isn't really something that can be primitively demonstrated using !e

#

you pay for not having to learn Haskell be in cabal hell

#

I don't remember what Haskell compile times are, for smaller projects

#

I have experienced myself trying to compile something in purescript, it was extremely slow for whatever reason