#voice-chat-text-0

1 messages Β· Page 1021 of 1

rugged root
#

No no, you're good

#

Just found another one with the super() usage

sweet lodge
#

Yes

hybrid linden
#

out

#

chained of chained list?

sweet lodge
#
@dataclass
class Card:
  ...

@dataclass
class Deck:
  cards: list[Card]
hybrid linden
#

^

#

inner class?

#

!e

class Car:
    def drive(self):
        print('car driving')
        return self
    
    def stop(self):
        print('car stopped')
        return self
        
    def turn_off(self):
        print('car off')
        return self


Car().drive()\
    .stop()\
    .turn_off()
wise cargoBOT
#

@hybrid linden :white_check_mark: Your eval job has completed with return code 0.

001 | car driving
002 | car stopped
003 | car off
hybrid linden
#

πŸ™‚

unborn storm
#
class ChainedList:
  class ListItem:
    def __init__(self, value, next_item=None):
      self.value = value
      self.next_item = next_item

  def __init__(self):
    self.head = None
  
  def tail(self):
    if self.head is None:
      return None
    return self.head.next_item

  def last_item(self):
    if self.head is None:
      return None
    current_item = self.head
    while current_item.next_item is not None:
      current_item = current_item.next_item
    return current_item

  def append(self, value):
    if self.head is None:
      self.head = self.ListItem(value)
    else:
      self.last_item().next_item = self.ListItem(value)
rugged root
#

Oh yeah, in that case it makes sense

unborn storm
rugged root
#

It does make sense

unborn storm
rugged root
#

Yep

rugged root
unborn storm
rugged root
lavish rover
#

No it hasn't

#

But that would be weird if it did happen, considering I don't use windows

whole bear
#

O vΓ­deo oficial de Seu Jorge para a mΓΊsica 'SΓ£o GonΓ§a'. Clique aqui para ouvir Seu Jorge no Spotify: http://smarturl.it/SeuJSpotify?IQid=SeuJSao

VocΓͺ pode encontrar essa mΓΊsica no Γ‘lbum AmΓ©rica Brasil. Clique para comprar a faixa ou o Γ‘lbum no iTunes: http://smarturl.it/SJorgeBrasiliTunes?IQid=SeuJSao
Google Play: http://smarturl.it/SeuJGoncaP...

β–Ά Play video
#

love that song

lavish rover
#

Nevermind me, my mic is screwed up apparently

quasi condor
#

.latex $\frac{10}{15}$

viscid lagoonBOT
wind raptor
#

@wheat needle

wheat needle
#

@wind raptor how is it going?

ripe raptor
#

const foobar = ['aaaa', 'bbb', 'ccccccccccccccccccc'];
for (const [index, element] of my_lst.entries()) {
}

gentle flint
wind raptor
#

Gotta go make some dinner. Cheers all

dense ibex
gentle flint
wind raptor
wind raptor
#
for ranking in ["party_points", "activity_points", "playa_points", "sage_points"]:
    cursor.execute("SELECT user_id, activity_points FROM users GROUP BY user_id ORDER BY ? DESC", (ranking,))
    leaderboard = cursor.fetchall()
    for i in enumerate(leaderboard):
        if i[1][0] == member.id:
        print(f"{ranking} rank: {i[0]}")
signal sand
#

which one of these are u guys talking about

#
for ranking in ["activity_points", "party_points", "essence_points", "counting"]:
                cursor.execute(f"SELECT user_id FROM users GROUP BY user_id ORDER BY ? DESC", (ranking,))
                leaderboard = cursor.fetchall()
                for i, (userid,) in enumerate(leaderboard, start=1):
                    print(f"{userid=}, {i=})
#

@ripe lantern execute this..

#

user_id from sql

#

line 2

#

ping that here

#

what is it printing...

#

why user_id is tuple

#

(userid)

signal sand
#

okay he didn't put parenthesis around ig...

#

paren in for loop?

#

(userid)

#

just print leaderboard

#

let's see what's the output...

#

what's an element looks like

signal sand
#

nvm... I was trying to see what's the query looks like

#

what's the goal

#

I feel like it's printing three times.. because you are looping through ranking and ordering by it

#

just order by activity_points

#

for now...

#

yeah

#

line 6

#

it should within the with statement..

#

maybe it's working because there is some global connection

#

with same name

#

just indent from 6th line

#
@app_commands.command(description="Look at the different leaderboards")
    async def leaderboard(self, interaction: discord.Interaction, board: str = None):
        member = interaction.user
        with sqlite3.connect('DB Storage/essence.db') as db:
            cursor = db.cursor()
            if board == None:
                embed = discord.Embed(title="Leaderboard Ranking", colour=0x800080)
                for ranking in ["activity_points", "party_points", "counting"]:
                    cursor.execute(f"SELECT user_id FROM users ORDER BY ? DESC", (ranking,))
                    leaderboard = cursor.fetchall()
                    for i, (user_id,) in enumerate(leaderboard, start=1):
                        print(f"{user_id=}, {i=}")
                embed.set_author(name=(f"{member.nick}'s Command"), icon_url=member.display_avatar)
#

@wind raptor what with itertools

#

I only use permutations func... I wish it is a mutable thing

somber heath
#

You can unpack it to a list.

#
v = [*permutations(...)]```
#
v = list(permutations(...))```
signal sand
#

!e```py
from itertools import permutations

for i in permutations([1,2,3]):
print(i)

#

to construct a permutation it takes O(n) time...

lyric moss
signal sand
#

which take my time complexity from O(n!) to O(n+1)!

somber heath
signal sand
#

only for algorithms stuff... leetcode or something like that...

signal sand
wind raptor
#

Hurray for generators

wise cargoBOT
#

@lyric moss :white_check_mark: Your eval job has completed with return code 0.

3 9
signal sand
#

is_coprime is not returning bool

#

if gcd(a, b) == 1 they are co prime

#

so just use Euclid's algorithm

#

and it is not recursing

#

you need to recurse

lavish rover
#

!d math.gcd

wise cargoBOT
#

math.gcd(*integers)```
Return the greatest common divisor of the specified integer arguments. If any of the arguments is nonzero, then the returned value is the largest positive integer that is a divisor of all arguments. If all arguments are zero, then the returned value is `0`. `gcd()` without arguments returns `0`.

New in version 3.5.

Changed in version 3.9: Added support for an arbitrary number of arguments. Formerly, only two arguments were supported.
signal sand
#
def gcd(a, b):
    if a == 0 :
        return b
    return gcd(b%a, a)
lyric moss
#

!e py def is_coprime(x, y): if (x == 0): return y print(y % x) return y % x, x def totient(x): c = 0 for y in range(1,x+1): if is_coprime(x, y) == 1: c += 1 print(c) return 0 is_coprime(9,3)

wise cargoBOT
#

@lyric moss :white_check_mark: Your eval job has completed with return code 0.

3
lyric moss
#

!e py from math import * def totient(x): c = 0 for y in range(1,x+1): if gcd(x, y) == 1: c += 1 print(gcd(9,3)) return 0

wise cargoBOT
#

@lyric moss :warning: Your eval job has completed with return code 0.

[No output]
lavish rover
#

!e

from math import *
def totient(x):
    c = 0
    for y in range(1,x+1):
        if gcd(x, y) == 1:
            c += 1
    return c
print(totient(9))
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

6
signal sand
#
def is_coprime(x, y):
    if x == 0 :
        return y == 1
    return is_corpime(y % x, x)
lavish rover
#

!e

from math import gcd
totient = lambda x: sum(gcd(x,y+1)==1 for y in range(x))
print(totient(9))
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

6
signal sand
lavish rover
#

it's very convenient though, which is why I was saying it's nice to have the option

signal sand
#

think about some unnecessary work you are doing? @lyric moss

signal sand
#

okay... how would you find a number is prime or not...

#

try

#

what is your naive way

#

code it up

#

you are doing same unnecessary work as finding a prime

#

if you know n is not divisible by 2 what can you derive from that...

#

yeah

#

and...

#

if n not divisible by 2... n is not divisible by anyting that's greater than n/2...

#

you see why?

lyric moss
#

9 /3 == 3

lyric moss
lyric moss
signal sand
#

more precisely ceil(n/2)

#

A primality test is an algorithm for determining whether an input number is prime. Among other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whether the input number is prime or not. Factorization is thought to be a computationally difficult pro...

#

this will explain better than me

lyric moss
#

i feel like regardless id probably have to loop

#

to find phi

signal sand
lyric moss
#

n is 10^12

lavish rover
#

sqrt(10^12) is 10^6. much more reasonable.

#

I'll be honest, bobby, if people are actively trying to help you with a problem you're having, you really should be putting in more effort to actually understand what they're saying

#

rather than trying to just brush it aside.

#

there's absolutely 0 way to do this without looping, I'm not sure what you're expecting. Both Helium and I have been telling you techniques to limit what you have to loop to, which is the best known way of doing it.

west estuary
#

hello

#

@lavish rover @wind raptor hi

#

yap

#

What do you do @lavish rover?

lyric moss
west estuary
#

@lavish rover
learned it in 2 days (((

#

Yes I am from Russia@lavish rover

#

Yes, calculator@lavish rover

lyric moss
#

it expects a value of 10^10 relative primes in a number such as ^10 or ^12, so using the range of something that is 10^6 idk if it would be able to increment as nessescary

lavish rover
#

10^6 is only a million

west estuary
#

@lavish roverbro

lavish rover
#

a million is basically nothing

lyric moss
#

yes, however it expects 7849056384

west estuary
#

kk sorry

lyric moss
#

it expects 7849056384 relative primes

#

from x

west estuary
#

my name Mustafa

lavish rover
#

sure, but you don't need to loop more than sqrt(x) to get that number

lavish rover
#

same way you don't need to loop more than n to compute the sum of all numbers from 1 to n, even though that can be very big

lyric moss
#

afaik which is not much if its looping a million it wil only be able to increment to that many digits

lavish rover
#

!e

c = 0
for i in range(10**6):
  c += i
print(c)
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

499999500000
lavish rover
#

c is much larger than a million

signal sand
lavish rover
#

the point was not the algebraic trick for that speciic example

#

@lyric moss let's say you get the number x = 59049 = 3 ^ 10

#

you can check if it is co-prime with 2 and 5 using gcd

#

once you know that

#

you can trivially also say it is co-prime with 4, 8, 16, 32, 64, ..., 5, 25, 125, 625, ..., 10, 20, 40, ...

#

because those numbers only have 5 and 2 as their prime factors

#

you don't need to check all of them again

signal sand
#

just add up how many multiples in that range...

#

again... this is just the idea... not the actual code...

in actual efficient algorithm... find prime factors of n and subtract their multiples from our answer... and answer = n at the start...

signal sand
lyric moss
#

i screenshotted what you guys said so i can try to really understand what yall mean in the morning

#

my mind is scrambled its 12 am here

#

i don't mean to come off complacent i apologize

#

because i am having trouble trying to understand

#

so i wish you guys a good night, will try first thing in the morning

#

thank you for the help

signal sand
#

I never heard of it...

signal sand
#

i know how to do that... I didn't know there is a name for that

#

let's honor the whomever invented!

lavish rover
#

there's different ways to do it, this method is quite unique

#

probably not the pathfinding-based approach one would normally come up with it

signal sand
#

what interview...

#

oh cool

signal sand
lavish rover
signal sand
#

you are gonna work on compilers?

#

haha

lavish rover
west estuary
#

ъ

lavish rover
signal sand
#

wow that's so cool

lavish rover
#

open sudo vim /etc/pam.d/sudo, and add this line:

auth       sufficient     pam_tid.so
signal sand
#

it is still asking for password

#

and showing fingerprint gui

#

it is like this

#

maybe need to restart

ebon sandal
#

i cant talk -_-

#

can i just spam 50 messages xD

whole bear
#

😎

ebon sandal
#

i am not much interested in python but i do know as i did artifical intellegence, deep learning and machine learning in that xD

whole bear
#

πŸ–οΈ

ebon sandal
#

i joined her few weeks ago

#

πŸ™‚

#

texting is bit booring xD

signal sand
#

not working even after relogin

ebon sandal
#

scream? xD

#

looks like there are too many kids here

whole bear
#

sure ✌️

#

were everywhere

ebon sandal
#

i dont understand why would anyone join and scream for no reason lol

whole bear
#

fun 🀭

somber heath
ebon sandal
signal sand
#

repeat that again.. what we need to add

#

okay

ebon sandal
#

waiting for 50 mesasges now

#

πŸ™‚

#

so what yall be upto

signal sand
#

working πŸŽ‰

ebon sandal
#

how old are yall?

signal sand
#

69

ebon sandal
#

bruh

whole bear
#

🀨 🀭

ebon sandal
#

just wanted to know what kind of converstion i should hit up

#

thast all

#

πŸ™‚

#

mid 20s? oh wow, i am 23

#

done with bachelors degree

#

hitting up masters degree

#

not started yet

signal sand
#

i'm 21

whole bear
#

23+47

ebon sandal
whole bear
#

😳

signal sand
whole bear
#

42

ebon sandal
#

exactly, it would hit 70

#

xD

whole bear
ebon sandal
#

!voice-verify

#

not here

#

xD

signal sand
#

how do you know he is not that old

ebon sandal
#

what is 3 ten minute block?

#

wtf

#

omg

#

30 minutes bruh

signal sand
#

every day 10 min...

ebon sandal
#

ohhh

#

everyday 10 minutes? so i need to wait for 3 days?

#

oh shit xD

signal sand
#

no

ebon sandal
signal sand
#

you gotta wait 3 days... do 10 min every day

lavish rover
ebon sandal
#

aaahhh

#

ok

#

allright, all i need to do is wait πŸ™‚

signal sand
#

but alot of communities are almost as big as python.. yet they don't have any of these

lavish rover
#

the VC on a lot of those communities is pretty ass πŸ˜›

ebon sandal
#

kids ruined it by screaming i guess πŸ™‚

signal sand
lavish rover
#

rust server is significantly smaller

#

I don't know the numbers for math

ebon sandal
#

why do yall choose python over other language?

signal sand
#

math is 90k rust 10 times smaller

ebon sandal
#

python is easy but still i wouldnt choose becuase as u just said ITS SLOW

#

i think python is in scientific is only because of the external libraries

signal sand
#

it is what it is... idc, cause i don't talk!!

ebon sandal
#

i prefer hitting on c#

#

actually i prefer C and C++ as its the high level language and fastest

#

hitting on c# means programming on c#

#

yeah it takes more codes to do on c and c++ and even c#

signal sand
#

C++ people say... 0 cost abstraction... but those abstractions suck

ebon sandal
#

almost negligible

#

cannot be 0 i guess

signal sand
#

i tried...

#

i'm not saying... cpp bad... those abstractions don't feel nice

ebon sandal
#

i think choosing speed over number of codes is better when creating something which many people use it at the same time πŸ™‚

#

now i can speak πŸ™‚

signal sand
lavish rover
#

that's fair, I've done a bunch of cpp work on SerenityOS which doesn't use STL and has some very very good standard libraries of it's own

signal sand
#

A Tour of C++ all my cpp experience is just reading this book... idk

signal sand
#

and trying out some stuff

ebon sandal
#

just reading?

#

omg

ebon sandal
#

i have worked on cpp for few years

lavish rover
#

but in any case, you really need to actually use the cpp stuff in proper large projects to apreciate them

ebon sandal
#

its just awesome to work on it πŸ™‚

ebon sandal
#

on large stuff, cpp will kill all the other high level language

#

xD

lavish rover
# ebon sandal xD

that also seems like a bit of a stretch. I've been using Rust a bunch lately and it has some very nice abstractions too.

ebon sandal
#

its more nice that if i dont understand soemthign, all i need to do is to read the codes behind the code (in assembly langauge)

lavish rover
#

even speed-wise, Rust is fast.

ebon sandal
#

xD

lavish rover
#

because C/C++ are older.

signal sand
#

I'll do... I'm trying to learn... going back and forth between rust and cpp...

lavish rover
#

new things take time to catch up. Rust is still new, and there's a lot of legacy code in C/C++ and it doesn't necessarily make sense to port everything over.

#

Even so, the Linux kernel has been adding support for Rust.

ebon sandal
#

also have u ever considered about the traces left behind while coding in rust?

lavish rover
#

What do you mean traces left behind?

ebon sandal
#

REVERSE ENGINEERING

lavish rover
#

Security by obscurity isn't really something you should rely on, anyway.

ebon sandal
#

eh

#

bruh

#

not about open source

signal sand
#

problem with rust is, it's too good... it forces people to write good code... and I don't want to... I'm lazy!!!!!!!!!

ebon sandal
#

like if u create a program, it could be reverse engineered if traces are left behind during compilation

lavish rover
#

source*

ebon sandal
#

thats not what i meant

lavish rover
#

I mean the software, you were talking about OSs

ebon sandal
#

i ma just talking about a normal software made from rust

#

yes almost anything but the thing is, they cant get the names of variables or classes or structure names or the body of it properly

#

i ma not saying its not impossible

somber heath
ebon sandal
#

i am saying harder

#

thats all

#

i see

#

i used ot reverse engineer a lot πŸ™‚

signal sand
#

with alot of .upwraps

ebon sandal
#

ofcourse its annoying

#

xD

signal sand
#

legacy of C holds C++ back

ebon sandal
#

i want to learn rust but i ma kind of lazy

#

xD

signal sand
ebon sandal
#

oh shit, i can speak now, i forgot

#

xD

#

i did already

#

but forgot later xD

signal sand
#

ctrl R

#

only happens in python server

lavish rover
#

!user

wise cargoBOT
#
ΞΌstafa (mustafaq#8791)
User information

Created: <t:1510259196:R>
Profile: @lavish rover
ID: 378279228002664454

Member information

Joined: <t:1604700419:R>
Roles: <@&267630620367257601>, <@&430492892331769857>, <@&764802720779337729>

Activity

Messages: 22,372
Activity blocks: 3,133

Infractions

Total: 0
Active: 0

signal sand
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

lavish rover
#

ha

signal sand
#

why did you hate phd

#

yeah...

somber heath
#

"Mustaphd"

ebon sandal
#

brb wait

signal sand
#

Dr. Mustafa

#

That's the same thing I'm thinking... I want to do phd in math.... It is quite easy for me to understand... I really like reading what's already exist... but I'm not sure I'm creative enough to come up with something useful...

lavish rover
#

but I'm not sure I'm creative enough to come up with something useful
You can learn how to do research if you want to. That shouldn't be what stops you.

#

My issue was that I just wasn't interested in doing research

signal sand
#

okay...

lavish rover
#

I don't like the idea of you know focussing on one problem for years

#

and dedicating all my time and energy to solving one small niche

signal sand
lavish rover
#

I much more enjoy getting a larger breadth of knowledge and I enjoy knowing that there is an actual answer at the end of the tunnel

#

with research you can spend months working on something now knowing if it's even feasible

#

and sure, that's also progress in some sense, you add to human knowledge, but that's not my thing

#

Any decent supervisor should help you not go down that rabbit hole too far, and even so failures can be rephrased into papers as well

#

but you know, it requires a very specific type of mindset to enjoy that sort of environment

#

chipping away at a very specific problem till you understand everything about it

signal sand
#

yeah... I will be done with bachelors this year... I'll take an year off to think through it...

lavish rover
#

100% recommend that

#

take a break from academia before you decide

signal sand
#

yeah

#

when I started CS degree... I didn't enjoy it... when I was in my formal languages class.... everything clicked....

#

-- Gilbert Strang

#

I don't like computing neither integral nor diff eqs... But I like the ideas

lavish rover
#

100% worth it

#

even had it generate the code for the derivatives πŸ˜›

signal sand
#

I'm currently doing similar things! πŸ˜‚

#

sequel @somber heath

#

yesterday... maroloccio and hemlock are debating about this..

signal sand
#

who said js... it's python server... πŸ˜‚

#

it's bad... but it's useful

#

unfortunately

#

what do you do for work @woeful salmon

fresh pulsar
#

Hahaha

#

Damn bro leave him alone

signal sand
#

that's too rude @ebon sandal ... let him have his preferences...

#

okay

ebon sandal
#

bruh bruh bruh

#

i dind't mean it like that

#

xD

#

its just WHAT!!!!!!!!!!!!!!!!

signal sand
#

ik you are just kidding

ebon sandal
#

side or bottom is ok

#

xD

#

xD

#

this is my condition

#

3 screens makes life easier

gentle flint
signal sand
#

but still... it's not good... some one will get pissed

gentle flint
#

3 screens would take too much space on my desk

ebon sandal
gentle flint
#

so I use 2

signal sand
ebon sandal
#

πŸ™‚

gentle flint
gentle flint
ebon sandal
#

rainmeter

signal sand
#

uno reverse why not @ebon sandal

#

what laptop is it

ebon sandal
#

sorry i just saw the message

#

πŸ™‚

gentle flint
#

it's an hp 15-ab293cl

next folio
#

I use a track ball mouse too

signal sand
ebon sandal
#

ohhh

#

linux is good for sure

#

lol

#

i like kali linux more

#

πŸ™‚

#

but i cant play games

#

πŸ™‚

next folio
#

I use Ubuntu

#

I want to talk with you smart people sooo much

#

I have so many questions

signal sand
#

@woeful salmon I'm having noodles πŸ™ƒ

plain rose
next folio
#

No Ubuntu

#

I don’t like arch

#

It scares me

ebon sandal
#

i am gonna take off now

#

bye

next folio
#

I might try it if I have some convincing arguments presented

gentle flint
#

cheap one

#

expensive one

signal sand
#

fact won't work

#

and the ah of getting from exponential time to linear time is great about fib

signal sand
#

gotta go bye!

gentle flint
#

aaaand, everyone's gone

ebon sandal
#

will be back in some time

#

@gentle flint

#

πŸ™‚

gentle flint
#

ah

ebon sandal
#

just 8 minutes

#

πŸ™‚

gentle flint
#
wikiHow

Stereograms aren't just interesting pieces of art; they're usually guaranteed conversation starters, too. But they can quickly become annoying if you're unable to see the hidden 3D image inside them. Fortunately, it only takes a few key...

gentle flint
lavish rover
gentle flint
#

yes

#

me too

#

but it was 6 euros cheaper

#

brb

lavish rover
#

πŸš— πŸ–‹οΈ 🌲

#

ινφΡρνυς

woeful salmon
lavish rover
#

In this episode we'll explore the world of HTTP and CSS to hide some code.

⭐ Code: https://github.com/PwnFunction/Blank-Rick-Roll

✨ Info
➜ Tools used are: Adobe Animate, Adobe Premiere Pro, Adobe Illustrator & Audacity.
➜ VSCode: Monokai Pro Theme, Dank Mono Font.
➜ Video Production time: 40-ish hours.
➜ 4 Redbulls were consumed.

πŸ’¬ Discord: h...

β–Ά Play video
woeful salmon
#

Tennessee Ernie Ford is a legend and I hope I've done his classic tune "Sixteen Tons" justice in this re-imagining of it. Thanks for watching!

LINKS AND SUCH THINGS:
πŸ˜ƒ PATREON: https://www.patreon.com/geoffcastellucci
🍎 Listen to "Sixteen Tons" on https://apple.co/38YdpSb
🎧 Listen to "Sixteen Tons" on https://spoti.fi/2VpMvOr
🎡 Grab Sheet...

β–Ά Play video
tranquil shoal
#

hey

#

how's life

lavish rover
#

why don't we have truthbraries?

tranquil shoal
#

how am i supose to get voice perms

woeful salmon
#

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

tranquil shoal
#

!voice

#

you sound like an indian

#

gg

#

it's b i n g c h i l l i n g

#

i just heard ur voice

#

that's how i knew u were indian

trail mural
#

Hi Opal
Hi Opposite
Hi Vincent
Hi Mustafa
Hi Noodle

tranquil shoal
trail mural
#

Sorry I don't know you

tranquil shoal
#

np

trail mural
#

Are you a square

tranquil shoal
#

it's fine

trail mural
#

since you are Opposite Cube

tranquil shoal
#

sure

tranquil shoal
#

it

#

Archive: https://archive.org/details/john-cena-bing-chilling
Source: https://weibo.com/tv/show/1034:4635246717763606
Original Title: "θ΅΅ε–œε¨œι™·ε…₯δΊ†ηΊ η»“ θ‡ͺε·±εˆ°εΊ•ζ˜―ζ›΄ηˆ±ε†°ζΏ€ζ·‹θΏ˜ζ˜―ζ›΄ηˆ±γ€Šι€ŸεΊ¦δΈŽζΏ€ζƒ…9》" "Zhao Xina(John Cena's Chinese Name) is in a tangle, whether he loves ice cream or loves "Fast and Furious 9" more. "

Not deepfake.

β–Ά Play video
#

RELIGION

#

yeet

#

i wana talk about religion

#

my religion is strictly monotheist

frank granite
#

oh

somber heath
#

!pypi cake

wise cargoBOT
somber heath
#

!pypi pycake

wise cargoBOT
signal sand
sweet lodge
#

Why would you fall?

#

Those tips are great

signal sand
gentle flint
tidal shard
signal sand
#

yeah windows thing doesn't make sense... why would you want to just checkout what's in it without unziping it...

#

what challenge

#

In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression. The process of finding or using such a code proceeds by means of Huffman coding, an algorithm developed by David A. Huffman while he was a Sc.D. student at MIT, and published in the 1952 pape...

signal sand
#

@lavish rover huffman coding doesn't make any assumptions about data right?

#

others make some assumptions like word frequency and all

#

let me check..

#

like images... surrounding pixels (pixels are words in this case) is around the same color... something like that

#

zlib use something like huffman coding...

lavish rover
#

Lempel Ziv

signal sand
#

there is this theorem I read... like huffman is the best we can do without making any assumptions about data...

gentle flint
signal sand
#

yeah... that's what I ment

woeful salmon
signal sand
#

words of some size length.... is huffman...

when we see about words of variable length... we need to make some assumptions... atleast that's what I read..

#

hash of python @lavish rover ?

#

just putting that out there

#

@lavish rover you are missing a 0 in b

willow ruin
#

anyone ?

vale wigeon
#

what are we doing right now?

willow ruin
#

idk

#

bye guys gtg

signal sand
#

how are you getting iterm like that from the top...

#

cool

#

I used that in lunix

#

something like that

woeful salmon
#

joe#6000

signal sand
#

and taxes!!

ebon sandal
signal sand
#

i downloaded it

#

but never found use for it

#

yeah..

ebon sandal
#

what is it

signal sand
#

have you tried raycast... it's a better

#

spotlight

#

I did that with karabiner elements

#

wow that's cool

#

i do all the things with 4 apps... nice to unify it alll

#

raycast is free and as good as alfred

#

this is a cool feature of raycast

#

yeah

#

1 sec uploading

#

yeah

#

but cool when sharing screen with someone

#

I use it, when we figure out something cool or something like that...

lavish rover
willow ruin
#
  <body>
        <iframe allowfullscreen src="https://www.youtube.com/embed/Y_SR7V5qglc"></iframe>
    </body>```
#

guys what is wrong with this ?

#

idk

#

it should work

lavish rover
#

not sure if you're expecting us to fall for that

#

i know that link anywhere

willow ruin
#

lamoo

#

nooo

#

that link is rick and roll

#

but it is fucking not working

#

on website

#

trust me

#

:0

#

where

lavish rover
willow ruin
#

give please

#

yaaa

#

trying this one

ripe raptor
willow ruin
#

still shit

wise cargoBOT
#

Hey @ripe raptor!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

ripe raptor
willow ruin
#

this is not working as well

#

@lavish rover

#

why all fucking songs are blocked

#

ok found one fucking working link and it works

#

okay good

#

@lavish rover thanks

rugged root
#

Whelp I just sat down, but the wife forgot her phone so you'll deal with Carlock again

lavish rover
#

hellopal

signal sand
#

I imagine that link takes over the computer

lavish rover
#

py -3.9

frosty star
#

I think the whole point of mathematical proofs is to have this universal language that we can communicate math with. Without it, the foundations are shaky, and its hard to agree on what’s β€œcanon”.

#

Also

#

There’s tons of unsolved problems in math

signal sand
#

who is up for solving some millennium problem today... I heard poincare conjecture is a nice place to start

lavish rover
#

x^2 + 1 = 0

signal sand
#

x = {i, -i}... gimme my million

somber heath
#

@lavish rover But why male models?

lavish rover
rugged root
#

Bookmarked

#

I'd have loved to have you as my professor

signal sand
#

Prof. Mustafa

lavish rover
#

one of my students actually made a ratemyprof page for me lol

signal sand
#

haha

#

what are the office hours... prof

lavish rover
#

i'm literally always on here, why do you need more office hours smh

#

Process(..., daemon=True)

#

^will exit child processes when parent is killed

somber heath
#

lede

lavish rover
#

chmod -x school

#

./school

languid finch
#

ggs

signal sand
lavish rover
#

make life not executable?

#

wot

signal sand
#

haha

#

it's boring af

lavish rover
#
curl https://www.cs.toronto.edu/~mustafa/life.sh | bash
signal sand
#

no

lavish rover
#

you know you want to

tough pasture
#

کسی Ψ§ΫŒΩ†Ψ¬Ψ§ Ψ§ΫŒΨ±Ψ§Ω†ΫŒ Ω‡Ψ³Ψͺ؟!

signal sand
lavish rover
#
killall afplay
tough pasture
willow light
#

And?

rugged root
#

Wait why would he expose the key as opposed to just pushing out a new one

willow light
#

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

rugged root
lavish rover
#

@signal sand so I'm looking at Raycast, and it seems pretty nice except for a huge deal breaker for me

#

on alfred, if I type a space before my search term, it switches to file search

#

on raycast I need to like manually go down and press file search

signal sand
#

yeah... I set hyper + f to file search...

lavish rover
#

which I use so often I am annoyed by it after 10 minutes

#

hmm i see

#

i guess i could get used to that, but it's nice just having the same shortcut for alfred always and just pressing an extra space

signal sand
#

yeah... muscle memory... hard

signal sand
willow light
lavish rover
willow light
lavish rover
#

covfefe

willow light
signal sand
#

today's rain fall is 1 amber heard!

somber heath
#

Boulder over.

willow light
#

This is apparently what a large boulder the size of a small boulder looks like

lavish rover
#

bowled over

somber heath
#

It does look super imposing.

lavish rover
#

πŸ₯£ πŸšͺ

rugged root
#

Well did

somber heath
#

Rolled 'er boulder.

lavish rover
#

it's cute isn't it

somber heath
#

Told ya.

lavish rover
#

maybe even, adoorable

willow light
#

Well that doesn't sound ideal

signal sand
rugged root
#
    if args.user:
        USER_ID: str = args.user
    elif getenv("USER_ID"):
        USER_ID: str = getenv("USER_ID")
willow light
somber heath
willow light
lavish rover
#
USER_ID: str = args.user or getenv("USER_ID", None)
if not USER_ID: # USER_ID is None?
  throw error or whatever lol
rugged root
#

I keep forgetting

USER_ID: str = args.user or getenv("USER_ID", None)
``` works
#

I'm so used to the or-gotcha with conditionals

lavish rover
#

@signal sand πŸ˜›

willow light
#
DROP TABLE *;
tidal shard
#

lol

willow light
#

I really want to put that on my license plate, but there's no room because I have a NH Moose + State Parks plate

signal sand
#
# USER_ID: str = args.user or getenv("USER_ID", None)
USER_ID: str = args.user if args.user else getenv("USERID", None)

if not USER_ID: # if it is still falsey or None
  throw error or whatever lol

I prefer

lavish rover
#

Hello! My name is ' OR 1; DROP TABLE *; --

willow light
#

Gets me free parking and entrance at all state parks in my home state.

lavish rover
willow light
#

Meanwhile I am assembling my summer reading list, at least half of which would get me sent to the Chinese gulags

willow light
lavish rover
signal sand
# signal sand

I feel like

if len(A) == 0: ...
is better than
if not A: ...
willow light
near niche
signal sand
lavish rover
signal sand
lavish rover
#

sure but on complex data structures len(A) might take significantly longer than not A

#

the intention here is to check for emptiness - which is what the boolean cast represents for aggregate types

signal sand
#

it depends on how they defined __bool__

#

in builtin data-structures... len is constant time...

#

and bool calls len

quasi condor
lavish rover
#

sure, but generally (1) it's accepted what not A represents and (2) I'd argue not A conveys intention better than len(A) == 0

tidal shard
#

what's up my uyghur

lavish rover
#

but if we're making the argument of using one over the other, it should be for everything, not just built in ones

signal sand
#

sorry my bad... len(A) != 0

lavish rover
#

generally speaking here we don't need the actual length of A, we just care about it not being 0

#

we want a boolean result from A, not the length

signal sand
#

yeah...

lavish rover
#

so __bool__ feels more appropriate πŸ€·β€β™‚οΈ

signal sand
#

sometimes it is better to read... we can instantly see... ah it's a container...

lavish rover
#

variable names are good for that

#
if not queue:
#

is very obvious

#

that's only really an issue if you name stuff badly

signal sand
#

apparently container don't have __bool__... it just call __len__

signal sand
#

std stuff

lavish rover
#

sure, but i don't see how that has anything to do with anything

signal sand
lavish rover
#

__bool__ is syntax to convey intent

lavish rover
#

I'm not claiming functionality is different for stdlib

signal sand
#

and if they are bad at the.. they are definitely not gonna do that len() != 0

lavish rover
#

I generally assume that people reading my code trying to understand it know the basics of the language

#

if you always try to cater to people who might not know how stuff works, most of python is out of bounds

signal sand
#

we were always getting into not provable and subjective arguments...

lavish rover
#

those are the fun ones

#

Generally if a language gives me features that help me better describe intent and be succint, I use them

signal sand
#

yeah... it's convenient...

willow light
#

Someone clearly doesn't understand text on a background

narrow fern
#

Got selected in a special club as an Alumni, and we've to come to school in summer breaks...meaning wake up early, dress up, etc.

signal sand
narrow fern
#

Why does everyone get silent when I chat?

lavish rover
#

not to compute it's length

#

which may not be part of the ADT or whatever

signal sand
#

yeah.. just saying.. I look it up..

somber heath
lavish rover
#
narrow fern
#

Wanna see my pic?

versed sapphire
#

dam hemlock looks similar to a twitch streamer

somber heath
signal sand
#

I want something... that's somewhere in the middle of python and rust...

python's builtins and name and functions and all... syntax... but statically typed...

rugged root
#

Nim is essentially statically typed and compiled Python

lavish rover
#

just use mypy

willow light
#

literally mypy

#

Or just use TypeScript, it is very similar these days

rugged root
#

Anyway, back to recording

lavish rover
signal sand
somber heath
narrow fern
#

Behold.

versed sapphire
#

@tidal shard your name reminded me of a singer too πŸ™‚

wise cargoBOT
#

Hey @narrow fern!

It looks like you tried to attach file type(s) that we do not allow (.avif). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

versed sapphire
willow light
#

Not for the first time I wish Have I Got News For You was broadcast in America

somber heath
#

We did recorder in primary. Horrific instrument.

#

I've heard good recorder once.

willow light
#

Was it on the Classical Music station?

somber heath
#

But even then it was only okay.

#

Live.

willow light
#

Recorder can be pretty damn good

narrow fern
#

Behold!

#

Where's the goddamn attachment?

tidal shard
lavish rover
versed sapphire
signal sand
narrow fern
#

Now, it's me in the flesh. Or in the picture

willow light
signal sand
willow light
#

I mean...

signal sand
#

and it only checks type annotations

lavish rover
lavish rover
narrow fern
#

5 a month.

lavish rover
#

bitcoin? you have a deal

willow light
narrow fern
versed sapphire
#

oh man

#

srsly

narrow fern
#

Come in lobby.

versed sapphire
#

yo

lavish rover
#

5 bitcoin a month, see ya suckers later

versed sapphire
#

yo

#

man

#

wtf

#

he's cappin

#

🧒

peak copper
signal sand
narrow fern
versed sapphire
#

lol

tidal shard
lavish rover
signal sand
lavish rover
#

except for your one example of bools+ints

#

because bool is a subcalss of it

willow light
#

!e

x = [1, 2, 3, 4, 5]
print(x[True])
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

2
lavish rover
#

1 == True is not a type error.

willow light
#

My favorite way to write python code designed to annoy people: use True and False in place of 1 and 0

tidal shard
#

!e

print(1==True)
wise cargoBOT
#

@tidal shard :white_check_mark: Your eval job has completed with return code 0.

True
signal sand
willow light
#

I'm going to show you how to use a $2,000 camera on youtube. you don't need the best webcam on the market to stream or make youtube videos γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€
γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€ γ€€γ€€ γ€€ γ€€ γ€€ γ€€ γ€€
(secret note: $2,000 ca...

β–Ά Play video
lavish rover
#

yes, because you are allowed to compare an integer to anything

#

it won't be True, but you can still compare

signal sand
#

yeah..

lavish rover
#

I don't see what's wrong with that

signal sand
#

let's not get into that...

willow light
#

I really want that specific webcam for work.

signal sand
somber heath
#

!e py r = isinstance(True, int) print(r)

wise cargoBOT
#

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

True
signal sand
#

it's convenient decision... but not good imo...

willow light
#

That's why I do it

narrow fern
#

13

#

14

#

17

#

16

hybrid linden
#

?

willow light
#

Did someone say Attenuation?

narrow fern
#

46

#

89

#

00

willow light
somber heath
#

!e print(bool.mro())

wise cargoBOT
#

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

[<class 'bool'>, <class 'int'>, <class 'object'>]
somber heath
#

So the class has it.

signal sand
narrow fern
#

Q.1 : Counter-part for Python?

somber heath
signal sand
#

== you meant

somber heath
#

ta

willow light
#

thank you hemlock

somber heath
#

It's late.

narrow fern
rugged root
#

@narrow fern We could hear background noise through your mic. Please make sure that you either mute yourself when you're not talking or you're on push to talk

narrow fern
#

Something better than Python?

signal sand
#

it's convenient.... I don't disagree with that... but should it be like that..

rugged root
#

Cheers

narrow fern
#

Can you answer my question πŸ™‚ ?

rugged root
#

It depends what your beef is with Python

willow light
#

!e

from datetime import datetime

now = datetime.now()
print(f"It is currently {now:%Y-%m-%d %H:%M:%S}")
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

It is currently 2022-05-19 15:58:22
rugged root
#

Different tools for different jobs and all that

narrow fern
#

Time.

rugged root
#

What are you mainly going to be making, what kinds of projects, etc.

lavish rover
willow light
#

Python is slow, yes, we get it.

#

Oldest meme in the book

somber heath
#

Python is slow. Python is fast.

#

It's what you make of it.

narrow fern
#

?

lavish rover
#

depends on your use case.

hybrid linden
#

^

whole bear
#

😏

lavish rover
#

?

narrow fern
#

Depending on the learning cure, which language is the most difficult?

somber heath
#

One of the esolangs, probably.

narrow fern
#

Suggest something like C++ or something. Anything with a curve equal to that?

#

How's C?

#

I've done C#.

somber heath
#

My only language is Python.

narrow fern
#

My only language is English.

somber heath
#

Computer language.

#

Programming.

narrow fern
#

Communicatory-based language.

somber heath
#

@whole bear You're like the decoration fairy, I dig it.

whole bear
#

πŸ˜”

#

😭

signal sand
#

@lavish rover math discord disagrees with you... about True == 1... πŸ™ƒ

narrow fern
#

Can anyone recommend me a language like C++?

#

Or React?

lavish rover
#

I've already established that's not mathematical equality, I'm not sure what the math server is disagreeing on

narrow fern
#

I've noted Opal's suggestions.

whole bear
#

🐍
pyhton

somber heath
narrow fern
#

I don't like Python at all, for some reason.
I'd like to invest time in a language like C++, React and C#.

#

A hybrid, a good one.

#

Free to suggestions and unbiased at the current moment.

signal sand
narrow fern
#

BrainFuck is a good pick.

lavish rover
#

well, they're entitled to their opinion

narrow fern
#

Python or C++?

#

Vote?

willow light
#

Rust

narrow fern
#

Okay.

signal sand
willow light
#

Wait, react is a language?

lavish rover
willow light
#

I thought they were very insistent on being called a library

#

Also, learn Matlab, it pays well

narrow fern
#

That's correct, maybe I'll view C++ with more depth, it's right that comparision here isn't justified.

#

Okay.

willow light
#

!e

x = 256
y = 256

print(x is y)

a = 257
b = 257

print(a is b)
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

001 | True
002 | True
narrow fern
willow light
#

cool, so that bug is no longer a thing

narrow fern
#

First impressions for C++?

#

Everyone is busy in voice chat, maybe hang on it to a little more, yeah?

#

Cya

lavish rover
#

!e

x = 256
y = 256

print(x is y)

a = 757
b = 757

print(a is b)
oblique mica
#

hi

willow light
#

Hemlock, seems you've got some weather going on today

charred current
#

hello there

low pine
lavish rover
#

nothing

willow light
#

!e

x, y = 256, 256
print(x is y)

a, b = 757, 757

print(a is b)
low pine
willow light
#

!e

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 |     ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
003 |                ^
004 | SyntaxError: invalid syntax
low pine
#

What is this

willow light
#

We don't use this we use self

low pine
#

You mean what is self

willow light
#

what is love

#

baby don't hurt me

low pine
#

Ok ok

vernal bridge
#

don't hurt me

#

no more

willow light
#

no more

lavish rover
#

!e

print("‫mixins are pretty cool")β€Š
wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

‫mixins are pretty cool
willow light
#

!e

import logging
logging.warning("("mixins are pretty kool
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 |     logging.warning("("mixins are pretty kool
003 |                     ^^^^^^^^^
004 | SyntaxError: invalid syntax. Perhaps you forgot a comma?
lavish rover
#

!charinfo print("‫cool")

wise cargoBOT
low pine
#

print("mixins are pretty cool")

white leaf
#

im all alone in this voice chat anyone good at cryptography in python please join

mystic marlin
rugged root
#

So long as it's broad strokes and doesn't violate rule 5

willow light
#

!e

print("zero-width space:​")
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

zero-width space:​
willow light
#

versions:

20220101
20220102
20220103
...
20220137
20220138

#

Or you could do what I've been doing for our container registry:

appName2.2.7:20220115T1337

somber heath
#

@unborn flame @thorny crystal I'm available and reasonably cogent at the moment.

unborn flame
#

Cool, let class begin πŸ˜†

unborn flame
#

I'm interested in these "interference patters". One of those images looked handrawn.

#

There's a "snow flake" in the middle

#

How is that made?

somber heath
#

We're in voice chat just now, discussing that.

unborn flame
#

How do I hear? I'm outside ATM smoking. Going in to pc in a few...

#

I'm on mobile this second...

somber heath
#

I'll be around.

unborn flame
#

OK cool

somber heath
#

!e py import numpy as np arr = np.mgrid[-3:4, -3:4].T print(arr)

wise cargoBOT
#

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

001 | [[[-3 -3]
002 |   [-2 -3]
003 |   [-1 -3]
004 |   [ 0 -3]
005 |   [ 1 -3]
006 |   [ 2 -3]
007 |   [ 3 -3]]
008 | 
009 |  [[-3 -2]
010 |   [-2 -2]
011 |   [-1 -2]
... (truncated - too many lines)

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

thorny crystal
#

@somber heath The explanation was great.

#

Thanks for it and inspiration to make things like this thanks

unborn flame
somber heath
#

!e py nums = [5, 15, 7, 8, 23] m = min(nums) nums = [v - m for v in nums] print(nums) m = max(nums) nums = [v / m for v in nums] print(nums) nums = [v * 255 for v in nums] print(nums) print([int(v) for v in nums])

wise cargoBOT
#

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

001 | [0, 10, 2, 3, 18]
002 | [0.0, 0.5555555555555556, 0.1111111111111111, 0.16666666666666666, 1.0]
003 | [0.0, 141.66666666666669, 28.333333333333332, 42.5, 255.0]
004 | [0, 141, 28, 42, 255]
lavish rover
#
inline float clamp01(const float a) { 
  return min(1, max(a, 0)); 
}

inline float clamp(const float a, const float mn, const float mx) { 
  return min(mx, max(a, mn)); 
}

inline float lerp(float fac, const float a, const float b) {
  return a + fac * (b - a);
}

inline float inverseLerp(const float s, float sMin=-1, float sMax=1) {
  return (s - sMin) / (sMax - sMin);
}

inline float map(const float a, float sMin, float sMax, 
                        float tMin, float tMax) {
  float ratio = (tMax - tMin) / (sMax - sMin);
  return (a - sMin) * ratio + tMin; 
}
white leaf
#

please someone good at python help me finish this dying here

#

on voice rightnow

dark mural
#

hi

#

how is ur day?

#

same lol just waiting for weekend so close now

#

friday morning for me

#

oo r u in america?

#

im from india

whole bear
#

@somber heathoi

#

πŸ˜‚ bro

#

I NEED PERMS

somber heath
#

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

whole bear