#voice-chat-text-0

1 messages · Page 153 of 1

vocal basin
#

where I live, battery lasting for a second is good enough

#

so here it's power surge rather than power cut, I guess?

vocal basin
#

I almost understand why this columns are picked

#

the list doesn't include many cloud platforms that don't operate in US

#

I think Locations means data center locations

gentle flint
#

I like hetzner

#

personally

vocal basin
#

"List of [known ]bugs[ so far]"

#

I think the only two options I have for cloud are Yandex and Mail.ru

#

first being slowly consumed by the second

#

(and the second one being state-affiliated)

vocal basin
vivid jacinth
#

or gcp

vocal basin
vivid jacinth
#

ah ok

vocal basin
#

AWS is probably the only one outside the country I have any chance of using

vivid jacinth
#

vpn will work?

vocal basin
vivid jacinth
#

and paypal

vocal basin
#

just as every other situation

vivid jacinth
#

okk

vocal basin
#

services that provide virtual cards are region-restricted to US, mostly

#

(requires providing actual proof to those services)

vivid jacinth
#

ok :/

turbid sandal
vocal basin
vivid jacinth
#

How about Alibaba cloud?

vocal basin
#

maybe I should read this first

#

very fun when ToS starts with "you actually agree to follow a dozen of other agreements which we won't specify here"

turbid sandal
#

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

vocal basin
#

if Alibaba leaks your password, you're responsible

#

2.4 Alibaba Cloud may suspend or terminate all or part of the free Alibaba Cloud Services at any time in its sole discretion. Alibaba Cloud reserves the right to charge for any and all Alibaba Cloud Services or any feature or functionality of the Alibaba Cloud Services at any time in its sole discretion.

#

The availability to you of any service level credits under any SLAs is conditional upon your full and timely compliance with the Terms. If in our discretion we pay to you any service level credits under any SLA, no further or other claims shall lie against us in respect of any claims or matters arising under any such SLA.
them refunding you a minimal amount is enough to silence you from complaining about anything

#

be responsible for your End Users use

#

thankfully, it's checked by default

vivid jacinth
vocal basin
#

they're not a government, they're a private corporation

#

private corporation owned by a government

vivid jacinth
#

yes, but they're required to obey local laws

vocal basin
vivid jacinth
#

haha

echo garden
#

that means the card number was used already or used in a transaction involving their company that did not go through

vocal basin
vivid jacinth
#

or just the region

echo garden
#

owwww

vocal basin
#

and they don't support whatever the hell the china-russia new payment system is

echo garden
#

russia getting sanctioned?

vocal basin
#

the list provided there isn't the complete, I think

#

though, anyway SWIFT ban isn't the only restriction

#

many payment processors stopped transactions even before that

#

didn't do anything but it's already complaining

#

(I managed to skip adding a card for now)

#

this one might actually be worth something

#

"most of the time spent walking"
sounds like ArmA

#

million

#

well, yes, the CCP will have access to everything, but still

turbid sandal
vocal basin
#

time successfully wasted manually colouring this thing

high wren
#

i am back

vocal basin
#

I don't remember doing it before
but I might've just forgotten

high wren
#

@vocal basin discode link

#

give me

vocal basin
#

link for what?

high wren
vocal basin
#

well, for 4.5 years most of my interactions with automatic code testing/checking tools (contest-style) were with ejudge (as part of the education process)

fast gyro
#

hi

#

why doesnt it work

vocal basin
#

from ejudge GitHub repository

vocal basin
#

that's a first one

fast gyro
#

but

vocal basin
#

but

fast gyro
#

doesnt I first put

vocal basin
#

idk why it's false, yes

fast gyro
#

every letter in the hashmap?

vocal basin
fast gyro
#

so even if the word was aaa

vocal basin
#

you diiscard it

fast gyro
#

i will put aaa in hashmap

fast gyro
vocal basin
#

how does your algorithm work with s="aa", t="aa"?

fast gyro
#

it will put aa in hashmap

#

and then when it gets to the 2nd loop

high wren
#

@vocal basin give me brother

vocal basin
fast gyro
#

why is that?

vocal basin
vocal basin
fast gyro
#

ohh

vocal basin
#

!e

s = set()
s.add(1)
s.add(1)
print(s)
wise cargoBOT
#

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

{1}
fast gyro
#

i dont usually work with python so I dont really now how hasmaps work

vocal basin
#

what you're probably looking for is Counter

fast gyro
#

ohh okk

vocal basin
#

!d collections.Counter

fast gyro
#

so whats the alternative?

wise cargoBOT
#

class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.

Elements are counted from an *iterable* or initialized from another *mapping* (or counter):

```py
>>> c = Counter()                           # a new, empty counter
>>> c = Counter('gallahad')                 # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2})      # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8)             # a new counter from keyword args
high wren
#

@vocal basin i just want same voice chat

fast gyro
#

does like python have

#

stack ?

#

or like an array where I can insert elements dynamically

#

and remove them whenever I want to ?

vocal basin
fast gyro
#
class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        hashmap = list()
        counter = 0
        if len(s) != len(t):
            return False
        for n in s:
            hashmap.add(n)
        for j in t:
            if j in hashmap:
                hashmap.pop(j)
            else:
                return False
        return True
vocal basin
#

!e

example_list = []
example_list.append(1)
example_list.append(1)
example_list.append(2)
example_list.append(1)
print(example_list)
fast gyro
#

this will work?

wise cargoBOT
#

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

[1, 1, 2, 1]
fast gyro
#

and how do I remove an elemt?

#

pop?

vocal basin
#

pop for lists does something different compared to sets

fast gyro
#

@vocal basin brilliant ❤️

#

thanks

vocal basin
#

!e

fruits = ["apple", "banana", "cherry"]
fruits.pop(1)
print(fruits)
fruits = ["apple", "banana", "cherry"]
fruits.remove("banana")
print(fruits)
wise cargoBOT
#

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

001 | ['apple', 'cherry']
002 | ['apple', 'cherry']
fast gyro
#

yup yup got it

#

do you recommend

#

I learn like this?

#

trail and error?

#

or do I watch like a

#

course or something to learn python syntax first ?

fast gyro
#

pretty cool

vocal basin
#

leetcode isn't exactly the best thing to learn from if it's the only thing you use;
same for almost any approach;
I think it's more efficient to both do trial-end-error learning and systematic learning

high wren
vocal basin
#

something closer to systematic learning would be this
https://docs.python.org/3/tutorial/

fast gyro
#

okkk thansk ❤️

terse needle
#

@vocal basin wtf

#include <stdio.h>// Usage: find k (<=n) roots of polynomial f such that deg f=n; Input: n c_0 c_1 ... c_n | c_i: double
#include <math.h>//  Output: roots:k x:x_1 f:f(x_1) x:x_2 f:f(x_2) ... x:x_k f:f(x_k) | x, f: double | roots are ordered
#include <float.h>// non-descenging. Note that roots can be repeated due to divisibility of f by (x-root)^k where k > 1!
#define P(o)if(B o T){for(u i=2048;i;--i){d m=(b+t)/2;*((d*[]){&b,&t})[0 o a(n,c,m)]=m;}return b;}// (c) timotheyca 2020
typedef double d;typedef unsigned short u;d a(u n,d*c,d x){d r=0;for(u i=n;i;--i)r=(r+c[i])*x;return r+c[0];}d s(u n,d*c
,d b,d t){d B=a(n,c,b);d T=a(n,c,t);P(<=)P(>=)return NAN;}u h(u n,d*c,d*g,u*r){while(n&&!c[n])g[--n]=NAN;if(n==0)return-
0;for(u i=1;i<=n;++i)c[i]*=i;h(n-1,c+1,g+1,r);for(u i=1;i<=n;++i)c[i]/=i;g[0]=-DBL_MAX;u j=0;for(u i=0;i<*r+1;++i){d t=i
<*r?g[i+1]:DBL_MAX;d B=a(n,c,g[i]);d T=a(n,c,t);if(B<=0&&0<=T||B>=0&&0>=T)g[j++]=s(n,c,g[i],t);}for(u i=j;i<n;++i)g[i]=-
NAN;*r=j;return 0;}int main(){u n;scanf("%hd",&n);d c[n+1];for(u i=0;i<n+1;++i)scanf("%lf",c+i);d g[n];u r;h(n,c// stuff
,g,&r);printf("roots:%d\n",r);for(u i=0;i<r;++i){printf("x:%f\nf:%f\n",g[i],a(n,c,g[i]));}return 0;}// cmake C 99 x86_64```
vocal basin
vocal basin
#

I may try to run it now

vocal basin
#

Clion expired

#

and I don't remember how to buiild it because I'm dumb

terse needle
#

just use gcc

#

it built for me but idk what input it's expecting

vocal basin
terse needle
high wren
#

@vocal basinplease accept my friend request

vocal basin
vocal basin
terse needle
vocal basin
#

x^2-5x+6
roots: 2, 3

high wren
terse needle
vocal basin
#

I might

terse needle
high wren
#

@vocal basin friend request failed

terse needle
#

-0 != 0 🤢

high wren
vocal basin
vocal basin
#

not really

#

the more adequate solution is closer to gradient descent, I think

#

(the one that uses fundamental theorem of algebra)

#

but that requires complex maths

terse needle
#

oh yeah

high wren
#

@vocal basin timotheyca

vocal basin
terse needle
vocal basin
#

I roughly remember the constructive proof but couldn't be bothered actually translating into code

high wren
#

@vocal basin brother add me on your discord friend list

vocal basin
#

oh, wait, it's not a constructive proof

#

like, there is too much layers of abstraction to make it into one

#

used the fact absolute value of a polynomial can always be reduced if it's not 0
(when dealing with complex values)

terse needle
#

I'm so glad i'm not taking maths further than highschool level

vocal basin
high wren
#

@vocal basinmy English is weakitz_Shotti

cinder dawn
#

@lunar haven have u finished the tkinter thing

frozen owl
#

what the current DB looks like:

frozen owl
cinder dawn
#

another challenge?

#

may i ask why u wanna learn tkinter so much

#

like its a cool library but

#

im pretty sure it doesnt have any practical use

#

i mean i think

#

ohhh thats so cool

frozen owl
vocal basin
#

getting an answer to this question takes at most 7 clicks

#

and the answer is "sometimes"

#

I don't

frozen owl
#

this is the NN

#

but then

#

to run the code

#

you'll need the other files

vocal basin
frozen owl
whole bear
#

yea

#

cant talk

real coral
#

yoo

#

wassup

#

sry i dont have perm hahahaha

#

can you pls short explain what is this about, like the code

#

oooh

#

ok ok

#

idk, u tell me sir

#

sounds fun

wind raptor
thin thistle
#

yes ?

#

hi

#

hi

#

hi

#

just watching

#

i dont use it .d

#

cuz school groups

#

yes its original one

pulsar kestrel
#

🤔

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.

plucky dagger
#

yea

spice palm
#

so dumb

#

I can't talk

plucky dagger
#

i don't want to talk

wise cargoBOT
#
Voice verification

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

spice palm
#

yes ik I don't have the cretia for it

#

kinda dumb tbh

#

but i understand tho

plucky dagger
#

not true

#

wtf

#

.tp

#

.t

viscid lagoonBOT
#
Do you mind?

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

Usage:```
.timed <command>

#

The command you are trying to time doesn't exist. Use .help for a list of commands.

plucky dagger
#

shit

#

i got hacked

#

i did

#

ok

spice palm
#

is there a way to get verified faster?

lucid blade
plucky dagger
#

minecraft is caling me

lucid blade
#

^ this guy is good

broken maple
#

hi

lucid blade
broken maple
#

is a private call?

plucky dagger
#

idk

spice palm
#

@lucid blade yes we cannot

dark mural
#

except gofek

#

dinosaurs arent real you don't need emoji

plucky dagger
#

you can use it if you want

#

so many pepole are joining

#

@rapid crown

#

bye

#

see you later

spice palm
#

Is there no mod that can verify me loL

plucky dagger
#

i am not leaving actually

#

do you want to be friends

#

i have a channel

#

yes

#

how do you no

spice palm
#

@wind raptor

#

hey

plucky dagger
#

did you sub

#

sub then

#

i want 1m subs

spice palm
#

@wind raptor can you verify me early ?

wind raptor
#

Hey @lavish rover

plucky dagger
#

ok

wind raptor
#

One sec, mic isn't working

plucky dagger
#

i have 4 now

spice palm
#

oh wow lol

plucky dagger
#

can you sub tito

#

ok

#

i did

#

did you wachth my vid

spice palm
#

@wind raptor I really am but it just sucks the verify

#

oh wow

plucky dagger
#

i created mine

#

accunt

#

Zhaxxy

#

you are a big fan

#

my channel

#

i have 4

#

how did you get all of those cats

#

no urs

#

you lied it is okay

#

yes

#

am i the best

#

i like it

#

it is so cool

#

you have 2 channels

#

40 19 64

#

oh

#

sing a song like this 401964

#

my mom likes my vidios

#

i love this song

#

did you know in 1988 my mom almost died

#

srry

whole bear
#

hey guys

plucky dagger
#

hi

whole bear
#

where is the lua server

plucky dagger
#

idk

#

@whole bear join voice chat 1

#

just do it

gentle flint
#

this is indeed quite pointless

plucky dagger
#

what the heck mman

#

i know my dad's password on his phone

#

my dad is napping

#

i have his number

#

okie

#

my dad will get angry

#

at me

#

and kill me

#

i am a cat

#

thx

#

i am going to share my screen

#

okie

lean hatch
#

yes?

#

🥲

plucky dagger
#

like my video

plucky dagger
#

okie bye

lucid blade
#

peace

toxic arch
#

can you not ping me for no reason

#

yes of course i love spongebob

#

what are you talking about?

craggy linden
#

yep

#

hey

mossy sinew
#

@craggy linden do you like SpongeBob?

craggy linden
plucky dagger
#

hi zhaxx

#

y

#

@lunar haven

vocal basin
#

despite me telling Alibaba not to call me, they did it anyway

#

although

#

the checkmark was rather "do not advertise to me over the phone"

#

they were just asking whether or not I'm having trouble registering the account

#

If you would like to set up one of these free consultations, reply to this email directly, to schedule a meeting as convenient.
sounds like they just have people hired who have too much free time in the schedule

#

(I finally decided to read through emails)

#

use pentesting to convince people to pay for consulting

#

learning how to google is more important than learning not to google

rugged root
vocal basin
#

there is also Svelte in addition to the most popular three

#

express is for back-end

#

C -> C++ -> Java -> C#

wind raptor
rugged root
#

Deno is really appealing to me now

vocal basin
#

I wonder what that means

rugged root
vocal basin
#

finally

#

now C has 0b integers

#

allegedly

#

why put Ruby and Rust together?

rugged root
#

Both start with Ru?

vocal basin
#

@rugged root no, not memory leaks

#

Rust considers memory leaks safe

#

strictly safe

#

Box::leak is a safe method

#

memory safety is about UB not memory leaks

rugged root
#

Gotcha

cosmic lark
vocal basin
#

even without unsafe, there are ways to break things

#

memory leaks is one of them

cosmic lark
vocal basin
#

"memory safety doesn't guarantee your program is free of bugs"

vocal basin
cosmic lark
#

lets see

vocal basin
#

"the problem with Mojo is it doesn't exist"

cosmic lark
vocal basin
#

to properly drop it, you'll have to use unsafe
but not for leaking it

cosmic lark
#

ah right

#

true

vocal basin
#

likely, but I can try doing without a loop

#

with a loop in my code

#

* without

cosmic lark
#

time for a v8 buffer overflow and a quick sbx escape to get js running on "your pc" instead of ur browser

vocal basin
#

I can't write

#

492 must not use floats

vocal basin
rugged root
vocal basin
#
from itertools import filterfalse
from math import isqrt

class Solution:
    def constructRectangle(self, area: int) -> List[int]:
        height = next(filterfalse(area.__mod__, range(isqrt(area), 0, -1)))
        return area // height, height
cosmic lark
#

javascript is javascript till it enters the microsoft's engine

#

they call it jscript ig

vocal basin
#

yes

#

<pre>

cosmic lark
#

just talking in the context of the vc

vocal basin
#

@obsidian dragon you can achieve the same with div and CSS

cosmic lark
#

same

obsidian dragon
#
rugged root
#

You still want to learn the basics of JS proper, as TS still builds off of that

vocal basin
#

but pre/etc. are probably better

cosmic lark
#

i mean till browsers drive away from js totally ig there is always a reason to learn it

cosmic lark
rugged root
#

Sort of. There's extra stuff

cosmic lark
#

py-script needs pyoxide which is bloat

#

unlike builtin js

vocal basin
#

updating PIP may break something
because of breaking changes

cosmic lark
#
  • pyscript has severe security problems
rugged root
cosmic lark
#

even their website example has severe security vulns

#

like XSS

#

when its safe sure

#

but for now not

rugged root
#

That tracks

cosmic lark
#

i would surely moveon once the browser implements builtin python support

vocal basin
#

waiting for JS to return to its original Scheme syntax

#

Mint?

cosmic lark
#

i would say arch

#

and gentoo

echo garden
#

https://en.wikipedia.org/wiki/Binary_search_algorithm there was Leet code thing happening the other day and i thought of this to speed up the program to 99.7?

In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value within a sorted array. Binary search compares the target value to the middle element of the array. If they are not equal, the half in which the target cannot lie is eliminated...

rugged root
vocal basin
#

uwubuntu?

cosmic lark
echo garden
#

uwu lol

vocal basin
#

seems like yes, UwUntu

vocal basin
#

99.7 of what?

echo garden
vocal basin
echo garden
#

that was just a guess something to do with quiker running the most people, character strings?

vocal basin
#

in Python, you can't really speed it up x300 because of test system restrictions

#

whereas for top .3% time, there are probably already people who are doing the same thing, so statistically unlikely; if the problem is popular enough

vocal basin
rugged root
vocal basin
#

I guess it can?

#

self-hosting something like overleaf is nightmare too

echo garden
#

In computer science, fractional cascading is a technique to speed up a sequence of binary searches for the same value in a sequence of related data structures. The first binary search in the sequence takes a logarithmic amount of time, as is standard for binary searches, but successive searches in the sequence are faster. The original version of...

turbid sandal
#

@rugged root

cosmic lark
#

12

#

wordpress isnt that much hard to self host tbh

rugged root
#

What I do?

turbid sandal
#

@rugged root

echo garden
rugged root
#

What's up?

vocal basin
cosmic lark
#

switch to mastodon

#

lmao

obsidian dragon
#
  <details>
    <summary>
      <span>Index</span>
      <span>Timestamp</span> |
      <span>Category</span>
      <br><span>Project</span>
    </summary>
    <pre>
hello, <a>this</a> is an example
<span>code</span>
      </pre>
  </details>
#

@rugged root

#

check
123
147
159

rugged root
#

Wait, for each one of these posts, are you putting it in by hand?

obsidian dragon
#

yes

#
PROJECT = "#DDDDDD";
VANITY = "#DD7034";
DISCORD = "#7289DA";
LOGBOOK = "#888888";
STARDRIVE = "#E5B723";
PCFIXIT = "#9A698C";

function recolor(y, i, c) {
  console.log("coloring " + y + " " + c);
  var z = document.querySelectorAll("details");
  z[i].querySelector("summary").style.backgroundColor = c;
  z[i].style.borderColor = c;

}

function loop() {
  let x = document.querySelectorAll("details > summary > span:nth-child(5)");

  var i;
  var color;
  for (i = 0; i < x.length; i++) {
    y = x[i].innerText;

    y == "Project" ? c = PROJECT :
      y == "Vanity" ? c = VANITY :
        y == "Discord" ? c = DISCORD :
          y == "Logbook" ? c = LOGBOOK :
            y == "Star Drive" ? c = STARDRIVE :
              y == "PC FIxIT" ? c = PCFIXIT:
                c = "#111111";
    recolor(y, i, c);
  }
}

loop();

vocal basin
#

looks like it can be a dictionary lookup?

obsidian dragon
#

what's that bro

vocal basin
#

active engagement with the stream

#

dictionary[y] ?? "#111111"

#
const colours = {
  "Project": "#DDDDDD",
  "Vanity": "#DD7034",
  "Discord": "#7289DA",
  "Logbook": "#888888",
  "Star Drive": "#E5B723",
  "PC FIxIT": "#9A698C"
};
#

can't you deploy with builds/actions?

#

to compile the thing even in GitHub pages

cosmic lark
#

is that a twitch overlay?

vocal basin
#

I'd expect it doesn't

turbid sandal
#

@rugged root
I Promise to never stream anything inapropriate and mainly stream in #764232549840846858 and I soully take responsebility for everything on my screen

vocal basin
#

you can have a temporary database during actions

gentle flint
#

no less than 3 spelling mistakes

vocal basin
#

I think you can even store the result

#

but I'm not sure

#

there is a storage limit for actions
but I don't know what exactly it means, other than temporary storage

#

@rugged root it can just be stored as a file near the index.html

cosmic lark
vocal basin
#

easily queriable, as it's the same domain

#

you can store Markdown/JSON/whatever
fetch it
and then render it

rugged root
vocal basin
#

if you only read

#

then somewhat okay

rugged root
#

You can sanitize

vocal basin
#

is writing even possible there? I wouldn't expect so

rugged root
#

There's always a way

cosmic lark
#

hmm

vocal basin
#

you would need to have server-side code for that

#

client controls the JS site

cosmic lark
#

client side js , ez just put a web proxy and boom

vocal basin
#

!d itertools.tee

wise cargoBOT
#

itertools.tee(iterable, n=2)```
Return *n* independent iterators from a single iterable.

The following Python code helps explain what *tee* does (although the actual implementation is more complex and uses only a single underlying FIFO queue):
rugged root
#

@maiden quiver How goes it

maiden quiver
#

@rugged root all good how are you?

rugged root
#

Not too shabby. Just shabby enough

maiden quiver
#

@rugged root got you, just here to listen in.

vocal basin
#

checking my Rust code base for places where it can panic

#

most of it seems to be in test code

#

also trying to simplify the import structure so I don't need wildcard imports

#

or maybe I choose wildcard imports are good enough because I control the code which is getting imported

#
  • it's statically compiled, so less ways to fail
#

yes, it does have them

#

statically compiled languages deal with it a little bit better

#

some people openly advocate for using them in, for example, Java

#

and, also, like

#

C#

#

where it's a normal thing

#

I almost don't remember ever seeing someone import a single class instead of the whole namespace in C#

rugged root
#

Wonder if it properly prunes off the things it doesn't need

vocal basin
#

well, yes, because it's static

#

XHTML is the one that's a separate language

#

apparently, strict structure didn't go well with HTML nature

#

@peak nacelle server or peer-to-peer?

#

@orchid mauve are you running it behind a proxy?

#

@peak nacelle SSL?

#

Cloudflare fucks over users quite a lot
but it protects the site owners very well

knotty marlin
#

@rugged root can i simplify (a==1) pr (b==1) to ((a or b)==1)

vocal basin
#

not in Python

knotty marlin
#

u sure ??

vocal basin
#

!e

print((2 or 3) == 1)
wise cargoBOT
#

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

False
vocal basin
#

though

#

!e

print((2 or 1) == 1)
wise cargoBOT
#

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

False
knotty marlin
#

it seems to be working

vocal basin
#

this

knotty marlin
#

oh

vocal basin
#

because

#

!e

print(2 or 1)
wise cargoBOT
#

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

2
vocal basin
#

0 or y equals y
x or y equals x for x!=0

#

if x and y are numbers

knotty marlin
#

oh so it takes the value that is different than 0 cause 0 == False

vocal basin
#

what amazon acquisition?

knotty marlin
#

and not zero which any other number is True ?

#

and the first one at that

vocal basin
ebon mist
#

!past

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.

vocal basin
#

mostly

ebon mist
vocal basin
#

bool(x) for x that is int is equivalent to x!=0

knotty marlin
#

alright thank u

dapper mist
#

@pure gust Is it possible to request for a time slot where I can use the Live Coding room to teach some Python or Django concept (maybe for an hour)? [Obviously after I get voice verified]

vocal basin
#

wrong hemlock

gentle flint
dapper mist
# gentle flint your first message was yesterday and it was already pushing about getting stream...

@gentle flint Just trying to ask @rugged root directly because it looked like he was online. If it is a clear No, then I'll just shut up about this.

Since it looks like I need to justify my silence. It's just that I have been more of a lurker, but realised that I will have to participate if I plan to get more involved. So I am not a bot, I know I have not messaged a lot before this. But plan to participate more going forward.

echo garden
#

the government wants companies to Provide "Quantum-Resistant" Keys for future issues.. so the way it is now, people are storing encrypted data for future use of a quantum computer...

#

what?

#

how dose a programmer rectify an encryption to be "quantum-resistant" when the way quantum works is identifying every possible combination. this SEEMS unresonable.

vocal basin
#

even if the quantum computer can process all possible states, getting a coherent result out of it is still difficult

echo garden
vocal basin
#

define semi-coherent.

echo garden
#

there's enough info to rectify data into "Something" mathematics can "fill in" gaps.

#

much like a CD gettting scratched

#

noise

vocal basin
#

you can't get more information by post-processing

#

maths isn't magic

#

if the computer outputs basically nothing, you can't "fill in the gaps"

echo garden
#

@vocal basin no, however nothing can be state of mind lol

vocal basin
#

there already exists a perfect quantum-proof encryption function

#

!d operator.xor

wise cargoBOT
#

operator.xor(a, b)``````py

operator.__xor__(a, b)```
Return the bitwise exclusive or of *a* and *b*.
vocal basin
#

... if you have enough terabytes of a secure key

open jetty
#

@whole bear do you know the original video of the cat?

rugged root
gentle flint
plucky dagger
#

i am back

gentle flint
#

hi back, I'm dad

plucky dagger
#

wtf

ebon mist
#
map = {}

'x str' = '-5000'
'y str' = '-5000'
'x' = -5000
'y' = -5000
'xy' = 'x str' +,+'y str' 
map = map +'xy'
while 'x','y' != 5001,5001:

    'x' = 'x' + 1
    'y' = 'y' + 1  
    'x str' = 'x'.str()
    'y str' = 'y'.str()
echo garden
#

THIS is a facinating learning experience of quantum computers incase anyone is interested

plucky dagger
#

.sins

dapper mist
# rugged root I'm not against the idea. Did you have a particular lesson plan or something in...

Thank you @rugged root I had a few:

  1. Building something simple in Django, maybe something from https://nedbatchelder.com/text/kindling.html or from https://github.com/karan/Projects
  2. I work extensively with Scrapy so I could teach that very well too. Building a simple Web scraper (there are test sites to use for such purposes so that we do not disrupt actual ones)
GitHub

:page_with_curl: A list of practical projects that anyone can solve in any programming language. - GitHub - karan/Projects: :page_with_curl: A list of practical projects that anyone can solve in an...

plucky dagger
#

.wondertwins

viscid lagoonBOT
#

Form of super cool balls of steam!

plucky dagger
#

.youtube

#

.uwu

viscid lagoonBOT
#
In the future, don't do that.

Your input was invalid: Your message must have content or you must reply to a message.

Usage:```
.uwu [text=None]

plucky dagger
#

@whole bear

vocal basin
#

there is audiorelay
but it's proprietary

plucky dagger
#

make Zhaxxy come

#

and gofek

cinder dawn
#

@lunar haven 🍔

#

he will be here soon.

plucky dagger
#

okie

orchid mauve
plucky dagger
#

shit

#

i am so upset

dapper mist
plucky dagger
echo garden
#

@ebon mist awesome look at the video what your trying to do

vocal basin
# echo garden https://www.youtube.com/watch?v=-UrdExQW0cs

Papers We Love Conf 2022
https://pwlconf.org/2022/deirdre-connolly/
Transcript: https://pwlconf.org/2022/transcripts/Papers_We_Love_Deirdre_Connolly.txt

Deirdre Connolly / Zcash Foundation

Isogeny-based cryptography went from a curiosity to a serious post-quantum contender arguably because of this paper from Costello, Longa, and Naehrig from...

▶ Play video
plucky dagger
#

mr beast

#

i have a youtube channel

vocal basin
#

the way chunks are stored is closer to a dictionary than to a list anyway

plucky dagger
#

can someone sub to my channel

vocal basin
#

@rugged root but it's sparse

#

limited but sparse, extremely sparse

rugged root
#

I'm falling to your knowledge

vocal basin
#

limited for correctness reasons rather than structure reasons

dapper mist
#

Will this work @ebon mist ?

vocal basin
#

there are also R-Trees

plucky dagger
#

try it

vocal basin
#

R-Trees are built into SQLite, afaik

#

there is also a package for it

plucky dagger
#

ok

vocal basin
#

this is actually approaching GIS

#

I'd suggest not bothering with writing a data structure yourself, at least at first

#

(and using something like rtree package instead)

orchid mauve
vocal basin
#

pharmarchism

vocal basin
#

sounds like

#

a lot

#

25M?

dapper mist
#

Can you give a short example of the output you are looking for?

#

what will the keys of the dict be?

vocal basin
#

time to integrate SQL into numpy

dapper mist
ebon mist
#

{'0.0':{state}}

dapper mist
vocal basin
#

that is what's called a "joke" referencing the context in VC

open jetty
#

dang

#

can i save it tho?

#

can i save the video

dapper mist
open jetty
#

i usually ask for permission before i save stuff

#

thx

high wren
#

@vocal basin Yo

vocal basin
#

"so far"

#

!e

from pprint import pprint
from random import randint

d = {}
for _ in range(10):
    d[(randint(-5000, 5000), randint(-5000, 5000))] = None
pprint(d)
wise cargoBOT
#

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

001 | {(-4635, 3422): None,
002 |  (-650, -3149): None,
003 |  (-552, -4059): None,
004 |  (-71, 3257): None,
005 |  (15, 4800): None,
006 |  (925, -2757): None,
007 |  (984, 326): None,
008 |  (2119, 158): None,
009 |  (2155, 4996): None,
010 |  (2873, 418): None}
gentle flint
vocal basin
#

!e

import rtree
wise cargoBOT
#

@vocal basin :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 rtree
004 | ModuleNotFoundError: No module named 'rtree'
vocal basin
#

depends a lot on whether you need it all filled in as the world expands

dapper mist
#
xy_map = {}
for x in range(-5000, 1):
  for y in range(-5000, 1):
    xy_map[str(x) + '.' + str(y)] = "State-here"
#

@ebon mist

vocal basin
#

I think tuples are easier to manipulate

rugged root
#

Fair

vocal basin
#

all the string conversion can be done during ser/deser

dapper mist
#

@ebon mist probably wants to do this only once for some sort of level generation. But yes this can obviously be optimized further

vocal basin
#

it can actually be a mixed structure

#

array for origin
mapping for extension

rugged root
#

True

dapper mist
#

They seem to be talking about it in the Voice Chat 0 voice channel

#

Yes, you just need to dump the xy_map to JSON

Add:

import json

...

jstr = json.dumps(xy_map)
with open("mapjson.json", "w") as f:
  f.write(jstr)  
warm atlas
#

anyone knows bs4 here?

dapper mist
warm atlas
#

i want to scrape youtube links from this
https://www.youtube.com/@PW-Foundation/videos

#

of first 5 videos

gentle flint
#

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file. The potential additional information includes map projection, coordinate systems, ellipsoids, datums, and everything else necessary to establish the exact spatial reference for the file. The GeoTIFF format is fully compliant w...

orchid mauve
dapper mist
#

OK, With youtube I'd suggest using youtube-dl

#

@warm atlas

somber heath
#

It reminds me of the Magic Eye source depthmaps.

warm atlas
#

wait

peak nacelle
warm atlas
#

1 sec

rugged root
#

!ytdl

wise cargoBOT
#
Our youtube-dl, or equivalents, policy

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
rugged root
#

We don't give support for this

warm atlas
#

@dapper mist i want to scrape the href in the youtube

#

its mine assignement

#

here is the attempt

rugged root
#

Again, we don't assist with scraping YouTube here

warm atlas
#

sorry

#

why?

rugged root
#

It's fine, now you know

dapper mist
#

Noted @rugged root I was just pointing to a better solution since I do not think what he is trying to do is possible with BS4.

rugged root
#

Newb, the bot embed message should tell you

ebon mist
terse needle
#

try xy_map = {}

dapper mist
#

xy_map = {}

#

And then you get to know that everything is an object in Python 😛

orchid mauve
knotty marlin
#

does position of the function determine which one is executed before the other or does the order of which one is called first determine it

dapper mist
knotty marlin
#

like lets say I def funcA and func B and then call funcA() and then call funcB()

#

I assumed that funcA would do it's thing first

orchid mauve
knotty marlin
#

but in my code funcB executed before

dapper mist
knotty marlin
#

oh my code is huge

#

how can I paste it

dapper mist
#

Is it multiple files or is it one file with lots of code?

knotty marlin
#

it's about 146 lines

dapper mist
#

can you use pastebin.com , paste the code there and then share the link here?

knotty marlin
#

so it might be above what they can take in

#

!pastebin

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.

dapper mist
#

Yes that will work too

#

I just need a way to look at the code 😄

knotty marlin
dapper mist
#

Cool, looking at it now.

knotty marlin
#

I am trying to reset the thing but it resets before even creating the x mark

dapper mist
#

Which functions are we alking about now?

knotty marlin
#

which is not what Inteded

#

let me explain how to it works

#

so currPos takes in the postion where I clicked

#

and checks which grid it is with a lot of if statements

#

and where it is it creates an x image

#

or o

#

with a variable name "a" holding how many moves

#

if a >4 it calls check()

#

check sees if it's 1 of the 8 conditions and prints player 1 wins or player 2 wins

#

and then I want to reset

#

the problem is reset for some reason is called before drawing the last X or O

#

it's hard to explain the problem run the code

dapper mist
#

@ebon mist can you paste your error here?

#

So it looks like the reset() method is being called because your remaining conditions in yoru check() are not working correctly or succesfully

#

I don't think I will be running the code sorry.

But I'd advise trying to refactor the code by removing the global variables, they can cause a lot of confusion or overlap or unexpected behaviour. That could be one cause of the issue.

vocal basin
#

or, if you're using dumps, you can abstract away the with-open-write using Path("mapjson.json").write_text(jstr)

knotty marlin
#

I am not that advanced

#

I am just a beginner

dapper mist
ebon mist
#
import json

xy_map = {}
for x in range(50,1):
    for y in range(50,1):

        for x in range(-50,1):
            for y in range(50,1):

                for x in range(50,1):
                    for y in range(-50,1):

                        for x in range(-50,1):
                            for y in range(-50,1):
                                xy_map[f"{x}.{y}"] = None

print(xy_map)

jstr = json.dumps(xy_map)
with open("mapjson.json", "w") as f:
    f.write(jstr)
#

?

rugged root
#

No

knotty marlin
#

I FIXED IT

rugged root
#

I mean the best thing to do is to try

knotty marlin
#

I just needed to update

#

wise words master Hemlock

#

@dapper mist it seems that the function did work but it just wouldn't show what happened until it finished

ebon mist
dapper mist
#

@ebon mist any errors show up? did you search for the file? maybe it is created in a different place?

dapper mist
#

OK. Can you replace xy_map[f"{x}.{y}"] = None with xy_map[f"{x}.{y}"] = 'hello'

rugged root
#

Why do this as a string instead of a tuple?

#
xy_map[(x, y)] = None
ebon mist
#

i got it ```py
import json

xy_map = {}
for x in range(-50, 51):
for y in range(-50, 51):
xy_map[f"{x}.{y}"] = None

print(xy_map)

jstr = json.dumps(xy_map)
with open("mapjson.json", "w") as f:
f.write(jstr)

#

and it worked!!

knotty marlin
#

is ```py
((a==b==c==d)!="")

terse needle
#

no

#

you are checking if they are all equal and if the boolean result of that is not equal to ""

knotty marlin
#

damn it

rugged root
#
all(item != "" for item in [a, b, c, d])
knotty marlin
#

thanks master hemlock

#

your words are wise as always

vocal basin
#

... assuming those are strings

vocal basin
#

though

#

it needs them to be equal

#

so it won't work for "a","b","c","d", for example

#

!e

print("a"=="a"!="")
print("a"==""!="")
print(""=="a"!="")
print("a"=="b"!="")
wise cargoBOT
#

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

001 | True
002 | False
003 | False
004 | False
vocal basin
#

last one is where the error would be

#

@midnight agate illustration for the xor thing

vocal basin
#

corrected version

#

or like this

whole bear
#

Hello

#

I have no privacy here.

dense ibex
#

.

silver stratus
#

Alisa, I unable to talk in serer

rugged root
#

And in fairness, that's any public forum

whole bear
rugged root
#

Goooootcha

#

I thought you meant no privacy because it would be in this VC

#

I'm with ya now

knotty marlin
#

is bigger code better than smaller code ? aka does size matter ?

vocal basin
#

the larger the code, the higher the "cost"
"cost" not as asset, but as a liability

knotty marlin
#

very well spoken words

#

smaller is better

turbid sandal
rugged root
peak field
#

lol

cosmic lark
#

ulu

#

wlw

knotty marlin
#

@lunar haven yourself

#

haha

#

finally used your name properly

#

indeed

#

keep the love going

#

nani

#

love is an unstoppable force

#

what do u think would represent an immovable object

austere lava
#

what's the cooldown time to speak in voice

cinder dawn
#

@lunar haven just had a ketchup burger

#

it was trash

#

like going to a bakery

#

too much bread is too much

#

it feels too healthy

#

i quit starbs

#

ohh yeah

austere lava
#

food pyramid is western propaganda

cinder dawn
#

ur eating too many burgers

#

eating burgers no bread jus keptchup

#

ngl i dont drink water

#

i jus drink juice

cinder dawn
#

how much pure water do u drink

#

i threw starbucks under the bus

austere lava
#

yo

cinder dawn
#

i whistleblew

austere lava
#

i'm trying to get voice to work

cinder dawn
#

W

austere lava
#

voice is suppressed for me, presumably because i just rejoined the discord

#

i dunno why i left

#

lol

craggy kayak
#

wazzup?

austere lava
#

finds the bus 🤣

cinder dawn
#

bites tghe dust

#

the

#

too much ketchup

craggy kayak
#

too much ketchup?

#

dafuq

cinder dawn
craggy kayak
#

I believe u

cinder dawn
#

i took the hands of god

craggy kayak
#

blumewique

cinder dawn
#

replaced it with buns, pickles, cheese and a burger

austere lava
#

brb

cinder dawn
#

bloom in wick

craggy kayak
#

gotcha

cinder dawn
#

had to think of a username

#

i like the word bloom a lot

#

and then thought of a random thing

#

bloom in wick

#

yea

#

like the tip though

#

where did gofek come from

#

a generator?

#

i love gofek

#

gofek yourself

craggy kayak
#

practice for interview or just leetcoding 4 fun?

cinder dawn
#

brb

craggy kayak
#

yeap

#

< 3

#

is it?

#

ahh yeah aha

#

I should start working my leet code skills too

#

U working already?

#

Noice, I'm might start with that too

#

Those are the hardest ones right? (DP)

#

ahh gotcha

#

yh

cinder dawn
#

i would do leetcode but i can never comprehend the questions

#

idk what it is but i just cant comprehend

craggy kayak
#

you gotta practice bruh

knotty marlin
#

leet code let's goo

#

don't know how things work

cinder dawn
#

true true

craggy kayak
#

gotta start somewhere I guess

knotty marlin
#

yeah

cinder dawn
#

ive been using codechef

knotty marlin
#

well gotta start with binary code then

#

gotta speak to da machine directly

cinder dawn
#

which is leetcode but for stupid people#

craggy kayak
knotty marlin
knotty marlin
craggy kayak
#

maybe, I was to good 4 that

knotty marlin
#

or maybe you learned something you musn't have learned

#

NOT YET

#

thus it was struck by the hammer of banishment for violation of the law of the universe

#

so you should always use what you learned from dead sites to achieve greatness and honor their sacrefice

cinder dawn
#

gofek died

muted spade
#

Yes sir?

whole bear
#

A lot if, I don't unterstand anything

#

Hey

#

for me one confuses the other, but I understood what you are saying

#

Undertand*

#

ps. My english is not good, but i'm trying rs

obsidian fractal
#

HI

tropic carbon
#

@lunar haven you tagged me 🙂

whole bear
#

@lunar haven i'm not seying your screen, can you restart the transmission please

#

now yes

#

thanks

#

Ok, I just saw it now, sorry

#

Yep

#

what time is it? in their places in the case

#

This time

#

6:75

#

Damn

#

Sorry

#

6:57

#

I am from brazil, here this is only like rs or lol

#

here is 8pm

#

🙂

#

you all are from america?

whole bear
#

I wanna go someday to visit, one day...

#

Well, to see other culture too

#

Ops

#

No no, I marked for mistake

#

The Brazilians who go there talk a lot about it

#

My English is very bad? If you don't understand something, just let me know and I'll try to fix it, like on time

#

Noo

#

It's really far

#

Yep

#

Brazil! Hello

#

oi (Hello)

#

tururu

#

Sabe português? Tudo bem e você? (Do you know portuguese? fine and you?)

#

rs

#

@whole bear idn if this is correct, but is a estimated data

#

Its not my intention

#

But yes

#

Que legal!! (how cool)
Se quiser conversar alguma hora para aprender algo só me chamar! (If you want to talk sometime only for learning something, just chat me)

#

Wow, I not see that :-0

#

Eu traduzo por conta do nosso amigo inglês entender mais ou menos o que está acontecendo (I translate because of our english friend)

#

I like too, in brazil we love pizza

#

only for you know, yes

#

I see here

#

Ohhh, now I understand that part, thanks

#

I don't like it

#

It's strange, but I prefer java, if I not use python, of course

#

ima dude

#

lo

#

i came to ask for help

#

What do you need?

#

Hello

#

help with my discord bot

#

i coded it setup everything. but i can't run it

#

show the message error please

#

i wish i could screenshare

#

We need to be in here like 3 days to liberate that ye?

#

Your python version is ok with that?

whole bear
#

But some libraries don't have the suport from the recent

whole bear
#

I like food
We're all different

lost gorge
#

Hi!

#

Not avalible for voice)

#

Im sorry not so good in english. You want coffe ans shower? Got you right?

#

😄

#

I speak only russian learning english

#

How long you learning python?

#

Have good time! 🙂

#

Ahah

nimble ingot
#

What

open tinsel
#

hello

#

im just joining for fun

#

its fine to ping me

#

i setup something earlier and it delets it self if it goes out of the file it was created

#

for whatever reason

#

i copyed it but then it dissapeares

#

so i have to turn it into a zip then unzip it somewhere else

#

for it not to self destruct

#

yea

#

nah i use software for zipping but

#

i can create somethign to destory eardrums with python

#

pydub

#

i sent it to you

#

its good for exploding eardrums

#

i dont know if i can

#

oh here

#

yea

#

i mean its not horrible

#

oh it is

#

i forgot im at 27 percent volume