#voice-chat-text-0
1 messages Β· Page 1021 of 1
Yes
@dataclass
class Card:
...
@dataclass
class Deck:
cards: list[Card]
^
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()
@hybrid linden :white_check_mark: Your eval job has completed with return code 0.
001 | car driving
002 | car stopped
003 | car off
π
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)
Oh yeah, in that case it makes sense
yeah, so i have not even tested that code. i have typed it all in discord
It does make sense
so i'll use it then
Yep
I wonder if they would give me ownership of https://codewith.mu/stafa if I asked nicely
No it hasn't
But that would be weird if it did happen, considering I don't use windows
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...
love that song
Nevermind me, my mic is screwed up apparently
.latex $\frac{10}{15}$
@wheat needle
@wind raptor how is it going?
const foobar = ['aaaa', 'bbb', 'ccccccccccccccccccc'];
for (const [index, element] of my_lst.entries()) {
}
Gotta go make some dinner. Cheers all
SQLite - ORDER BY Clause, SQLite ORDER BY clause is used to sort the data in an ascending or descending order, based on one or more columns.
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]}")
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)
.
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
my bad... (userid,)
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
You can unpack it to a list.
v = [*permutations(...)]```
v = list(permutations(...))```
!e```py
from itertools import permutations
for i in permutations([1,2,3]):
print(i)
to construct a permutation it takes O(n) time...
which take my time complexity from O(n!) to O(n+1)!
I'm not saying you want to use it with lots of numbers.
only for algorithms stuff... leetcode or something like that...
if it is like cpp nextperumation... it can mutate the list and generate next permutation in O(1) expected time
Hurray for generators
@lyric moss :white_check_mark: Your eval job has completed with return code 0.
3 9
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
!d math.gcd
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.
def gcd(a, b):
if a == 0 :
return b
return gcd(b%a, a)
!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)
@lyric moss :white_check_mark: Your eval job has completed with return code 0.
3
!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
@lyric moss :warning: Your eval job has completed with return code 0.
[No output]
!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))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
6
def is_coprime(x, y):
if x == 0 :
return y == 1
return is_corpime(y % x, x)
this, my number theory is rusty π
!e
from math import gcd
totient = lambda x: sum(gcd(x,y+1)==1 for y in range(x))
print(totient(9))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
6
this is a abuse of True == 1 π
it's very convenient though, which is why I was saying it's nice to have the option
think about some unnecessary work you are doing? @lyric moss
idk
the loop
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?
9 / 2 = nope
9 /3 == 3
no
or are you saying that n is not divisible by anything that is greater than the quotient of 9/2
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
idk man
i feel like regardless id probably have to loop
to find phi
you have to loop... but not to n... READ!!
n is 10^12
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.
i'm going to check it out tommorow, fair enough i have been considering the idea
@lavish rover
learned it in 2 days (((
Yes I am from Russia@lavish rover
Yes, calculator@lavish rover
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
10^6 is only a million
@lavish roverbro
a million is basically nothing
yes, however it expects 7849056384
kk sorry
my name Mustafa
sure, but you don't need to loop more than sqrt(x) to get that number
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
just have a look here: https://www.geeksforgeeks.org/eulers-totient-function/
afaik which is not much if its looping a million it wil only be able to increment to that many digits
!e
c = 0
for i in range(10**6):
c += i
print(c)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
499999500000
c is much larger than a million
n ( n + 1 ) / 2
doing an addition, a multiplication and a division is constant... rather than looping over and doing addition n times...
you get what i mean
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
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...
this is the intuition for why it works...
thats awesome
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
I never heard of it...
i know how to do that... I didn't know there is a name for that
let's honor the whomever invented!
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
In graph theory, the strongly connected components of a directed graph may be found using an algorithm that uses depth-first search in combination with two stacks, one to keep track of the vertices in the current component and the second to keep track of the current search path. Versions of this algorithm have been proposed by Purdom (1970), Mun...
I thought you were making same point like you don't need to loop over all the things... I didn't see the code.... you are making different point... we have might have confused him more!
fair enough, I think both points are helpful to the case
Ρ
wow that's so cool
it is still asking for password
and showing fingerprint gui
it is like this
maybe need to restart
π
i am not much interested in python but i do know as i did artifical intellegence, deep learning and machine learning in that xD
ποΈ
not working even after relogin
i dont understand why would anyone join and scream for no reason lol
fun π€
Yet it happened. Frequently.
π₯²
working π
how old are yall?
69
bruh
π€¨ π€
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
i'm 21
23+47
confusion 100
π³
46
42
no 42
how do you know he is not that old
every day 10 min...
no
u said everyday 10 minutes
you gotta wait 3 days... do 10 min every day
no no, so like if you send a message at 10:00, the next activity block starts at 10:10
i see
aaahhh
ok
allright, all i need to do is wait π
but alot of communities are almost as big as python.. yet they don't have any of these
the VC on a lot of those communities is pretty ass π
kids ruined it by screaming i guess π
no... rust is good... math is good... and there are alot
why do yall choose python over other language?
yeah... they are smaller... I didn't notice that...
math is 90k rust 10 times smaller
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
one piece community has 200k... that's pretty good
it is what it is... idc, cause i don't talk!!
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#
C++ people say... 0 cost abstraction... but those abstractions suck
π¦
almost negligible
cannot be 0 i guess
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 π
I would rather write my own stl which is nice and safe to use... rather than using stl...
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
A Tour of C++ all my cpp experience is just reading this book... idk
bruh
and trying out some stuff
but in any case, you really need to actually use the cpp stuff in proper large projects to apreciate them
its just awesome to work on it π
true
on large stuff, cpp will kill all the other high level language
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.
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)
i am talking about speed only
even speed-wise, Rust is fast.
because C/C++ are older.
I'll do... I'm trying to learn... going back and forth between rust and cpp...
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.
also have u ever considered about the traces left behind while coding in rust?
What do you mean traces left behind?
REVERSE ENGINEERING
Security by obscurity isn't really something you should rely on, anyway.
problem with rust is, it's too good... it forces people to write good code... and I don't want to... I'm lazy!!!!!!!!!
like if u create a program, it could be reverse engineered if traces are left behind during compilation
I fully agree
why would I reverse engineer something if it's open soruce
source*
what is open source? the programming langauge?
thats not what i meant
I mean the software, you were talking about OSs
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
Open source is the making publicly available the source code of a given piece of software. It doesn't, in and of itself, confer any rights other than being able to view it.
with alot of .upwraps
legacy of C holds C++ back
their book is pretty good
!user
Created: <t:1510259196:R>
Profile: @lavish rover
ID: 378279228002664454
Joined: <t:1604700419:R>
Roles: <@&267630620367257601>, <@&430492892331769857>, <@&764802720779337729>
Messages: 22,372
Activity blocks: 3,133
Total: 0
Active: 0
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
ha
"Mustaphd"
brb wait
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...
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
okay...
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
scary thing is... focusing on something for years and not getting anywhere
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
yeah... I will be done with bachelors this year... I'll take an year off to think through it...
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
100% worth it
even had it generate the code for the derivatives π
I'm currently doing similar things! π
sequel @somber heath
yesterday... maroloccio and hemlock are debating about this..
who said js... it's python server... π
it's bad... but it's useful
unfortunately
what do you do for work @woeful salmon
ik you are just kidding
but still... it's not good... some one will get pissed
3 screens would take too much space on my desk
wow u got a cute clock there
so I use 2
nice wallpaper
π
true
it's the KDE default
thx lol
rainmeter
?
sorry i just saw the message
π
it's an hp 15-ab293cl
I use a track ball mouse too
why not linux
ohhh
linux is good for sure
lol
i like kali linux more
π
but i cant play games
π
I use Ubuntu
I want to talk with you smart people sooo much
I have so many questions
@woeful salmon I'm having noodles π
No arch? 
I might try it if I have some convincing arguments presented
fact won't work
and the ah of getting from exponential time to linear time is great about fib
gotta go bye!
aaaand, everyone's gone
ah
it bothers me very much that the middle one is longer
@lavish rover https://davinderjolly.tk/
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...
@ebon sandal https://www.freenom.com/
Watch more in my official videos playlist: http://smarturl.it/GEOfficialVideosYT...
My debut album 'Wanted On Voyage' is out now: http://smarturl.it/WantedOnVoyage?IQi...
βBudapestβ is available here: http://smarturl.it/Bdpst?IQid=YT
Subscribe to George Ezra: http://smarturl.it/GeorgeEzraYT?IQid=yt
Playl...
@lavish rover https://www.youtube.com/watch?v=fzlT80jQ3lo
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...
how am i supose to get voice perms
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!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
Hi Opal
Hi Opposite
Hi Vincent
Hi Mustafa
Hi Noodle
call me Cube
Sorry I don't know you
np
Are you a square
it's fine
since you are Opposite Cube
sure
yes
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.
Credits to @Memeify
original video
https://www.youtube.com/watch?v=eJrazl8bQ7I&ab_channel=Memeify
RELIGION
yeet
i wana talk about religion
my religion is strictly monotheist
oh
!pypi cake
!pypi pycake
I ain't falling this time
sure sure..
I thought you were done
yeah windows thing doesn't make sense... why would you want to just checkout what's in it without unziping it...
https://apps.apple.com/in/app/the-unarchiver/id425424353?mt=12
@lavish rover this is nice if you ever encounter some weird format
what challenge
https://en.wikipedia.org/wiki/Huffman_coding
@tidal shard
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...
this is proved to be the best way to do it.. without making any assumptions about the data
@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...
Lempel Ziv
there is this theorem I read... like huffman is the best we can do without making any assumptions about data...
I wish
yeah... that's what I ment
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
what are we doing right now?
how are you getting iterm like that from the top...
cool
I used that in lunix
something like that
joe#6000
and taxes!!
πΆ omg
what is it
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...
<body>
<iframe allowfullscreen src="https://www.youtube.com/embed/Y_SR7V5qglc"></iframe>
</body>```
guys what is wrong with this ?
idk
it should work
lamoo
nooo
that link is rick and roll
but it is fucking not working
on website
trust me
:0
where
Watch more in my official videos playlist: http://smarturl.it/GEOfficialVideosYT...
My debut album 'Wanted On Voyage' is out now: http://smarturl.it/WantedOnVoyage?IQi...
βBudapestβ is available here: http://smarturl.it/Bdpst?IQid=YT
Subscribe to George Ezra: http://smarturl.it/GeorgeEzraYT?IQid=yt
Playl...
give please
yaaa
Listen to TIM: https://lnk.to/TIMAlbum
β
If you or someone you know is struggling, find resources at: http://loveislouder.com/prevent/
Music video by Avicii performing Hold The Line (Lyric Video). Β© 2019 Avicii Recordings AB, under exclusive license to Universal Music AB
trying this one
check edited
still shit
Hey @ripe raptor!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
this is not working as well
@lavish rover
One Direction - Love You Goodbye (Official Audio)
Follow on Spotify - https://1D.lnk.to/Spotify
Listen on Apple Music - https://1D.lnk.to/AppleMusic
Listen on Amazon Music - https://1D.lnk.to/AmazonMusic
Listen on Deezer - https://1D.lnk.to/Deezer
Listen on YouTube Music - https://smarturl.it/OneDirection_YTMusic
WATCH STORY OF MY LIFE MUSIC...
why all fucking songs are blocked
ok found one fucking working link and it works
okay good
@lavish rover thanks
.
Whelp I just sat down, but the wife forgot her phone so you'll deal with Carlock again
I imagine that link takes over the computer
py -3.9
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
who is up for solving some millennium problem today... I heard poincare conjecture is a nice place to start
x^2 + 1 = 0
x = {i, -i}... gimme my million
@lavish rover But why male models?
@rugged root https://www.youtube.com/watch?v=5PcpBw5Hbwo
Intro to the geometry complex numbers.
Full playlist: https://www.youtube.com/playlist?list=PLZHQObOWTQDP5CVelJJ1bNDouqrAhVPev
Home page: https://www.3blue1brown.com
Brought to you by you: https://3b1b.co/ldm-thanks
Beautiful pictorial summary by @ThuyNganVu:
https://twitter.com/ThuyNganVu/status/1258219199769440257
Errors:
- On the first sket...
Prof. Mustafa
one of my students actually made a ratemyprof page for me lol
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
lede
ggs
my insta bio
$ chmod -x life.sh
curl https://www.cs.toronto.edu/~mustafa/life.sh | bash
no
you know you want to
Ϊ©Ψ³Ϋ Ψ§ΫΩΨ¬Ψ§ Ψ§ΫΨ±Ψ§ΩΫ ΩΨ³ΨͺΨ!
why isn't it stoping
killall afplay
English, please.
i am iranian
And?
Wait why would he expose the key as opposed to just pushing out a new one
"Rule 4: Use English to the best of your ability. Be polite if someone speaks English imperfectly."
@ripe raptor #async-and-concurrency
@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
yeah... I set hyper + f to file search...
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
yeah... muscle memory... hard
in preferences you can set alias to file search but it takes two space to get into.. one is alias.. and one to trigger it...
oh thats what the alias does, that's cool
covfefe
today's rain fall is 1 amber heard!
Boulder over.
This is apparently what a large boulder the size of a small boulder looks like
bowled over
It does look super imposing.
π₯£ πͺ
Well did
Rolled 'er boulder.
it's cute isn't it
Told ya.
maybe even, adoorable
Well that doesn't sound ideal
This is the one that currently exists, and I get some very fun javascript errors when I try to use it.
https://github.com/netbymatt/nexrad-level-2-data
what are the prereqs
if args.user:
USER_ID: str = args.user
elif getenv("USER_ID"):
USER_ID: str = getenv("USER_ID")
Calculus III and Differential Equations
Elmo attempts the Gom Jabbar, Space Witch is not amused.
USER_ID: str = args.user or getenv("USER_ID", None)
if not USER_ID: # USER_ID is None?
throw error or whatever lol
I keep forgetting
USER_ID: str = args.user or getenv("USER_ID", None)
``` works
I'm so used to the or-gotcha with conditionals
@signal sand π
DROP TABLE *;
I really want to put that on my license plate, but there's no room because I have a NH Moose + State Parks plate
# 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
Hello! My name is ' OR 1; DROP TABLE *; --
that just feels unnecessarily verbose
Meanwhile I am assembling my summer reading list, at least half of which would get me sent to the Chinese gulags
are we pretending python actually follows the zen now
I feel like
if len(A) == 0: ...
is better than
if not A: ...
it helps us sleep at night
it tells more about what A is...
they mean different things semantically
yeah they are... if we are explicit about it.. it is easier to see what the object is
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
it depends on how they defined __bool__
in builtin data-structures... len is constant time...
and bool calls len
The zen of python is the biggest load of nonsense and it drives me insane that people talk as though it's remotely followed in python
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
what's up my uyghur
but if we're making the argument of using one over the other, it should be for everything, not just built in ones
sorry my bad... len(A) != 0
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
yeah...
so __bool__ feels more appropriate π€·ββοΈ
sometimes it is better to read... we can instantly see... ah it's a container...
variable names are good for that
if not queue:
is very obvious
that's only really an issue if you name stuff badly
apparently container don't have __bool__... it just call __len__
huh?
std stuff
sure, but i don't see how that has anything to do with anything
__bool__ is syntax to convey intent
just saying...
I'm not claiming functionality is different for stdlib
some people are bad at that... i'm saying when reading code...
and if they are bad at the.. they are definitely not gonna do that len() != 0
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
true...
we were always getting into not provable and subjective arguments...
those are the fun ones
Generally if a language gives me features that help me better describe intent and be succint, I use them
yeah... it's convenient...
Someone clearly doesn't understand text on a background
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.
queue ADT doesn't makes sense to have len attribute, but deque in python has it
Tough luck.
Why does everyone get silent when I chat?
yeah, my whole point here being that the statement conveys intent to check if there's anything in the queue
not to compute it's length
which may not be part of the ADT or whatever
yeah.. just saying.. I look it up..
It's not you.
Graphics are all around you! As our world becomes increasingly visual, graphics are impacting how information is delivered. This course provides experiences for students to use image, type, color, illustration, and photography to create dynamic media using Adobe Creative Suite. Students will focus on the design process needed to create print and...
Heard this from 1 guy in my entire Discord history.
Wanna see my pic?
dam hemlock looks similar to a twitch streamer
Pass. π (That's a no.)
Okay
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...
Nim is essentially statically typed and compiled Python
just use mypy
Anyway, back to recording
nim is the knockoff version that looks the same but breaks in 3 hours
and popular... I don't want to write my own libs for it
Fair
I'm just picturing you playing a recorder.
Behold.
@tidal shard your name reminded me of a singer too π
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.
joseph vincent actually
Was it on the Classical Music station?
oh I just googled him
PyData Dallas 2015 00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: https://github.com/numfocus/YouTubeVideoTimestamps
cool
unfortunately, no errors were raised for 1 == True
Listen to The Real Python Podcast on Spotify. A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community. The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics. Join us every Friday m...
it makes sense... cause == any thing
I mean...
and it only checks type annotations
sure, but i would imagine you care more about actual different types other than just bools and ints
sure, but if you annotate everything it checks everything
Can you tutor me?
5 a month.
bitcoin? you have a deal
Deal.
Come in lobby.
yo
5 bitcoin a month, see ya suckers later
Today we have a special treat. A conversation with Brian Kernighan! Brianβs been in the software game since the beginning of Unix. Yes, he was there at Bell Labs when it all began. And he is still at it today, writing books and teaching the next generation at Princeton. This is an epic and wide ranging conversation. Yo...
I'm taking about int class __eq__
Good bye
lol
comparing objects of different type is not an error in python. it is a feature. They will compare not be the same though.
and bool is a subclass of int π₯² π₯² π₯² ..
!e
x = [1, 2, 3, 4, 5]
print(x[True])
@willow light :white_check_mark: Your eval job has completed with return code 0.
2
1 == True is not a type error.
My favorite way to write python code designed to annoy people: use True and False in place of 1 and 0
!e
print(1==True)
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
True
I'm saying about mypy... because it sees object in type Annotation and says it's fine cause object is parent class of everyting
https://www.youtube.com/watch?v=hT116E2W2JQ This is my Zoom tutorial
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...
yes, because you are allowed to compare an integer to anything
it won't be True, but you can still compare
yeah..
I don't see what's wrong with that
let's not get into that...
I really want that specific webcam for work.
it doesn't makes sense mathematically...
!e py r = isinstance(True, int) print(r)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
it's convenient decision... but not good imo...
That's why I do it
?
Did someone say Attenuation?
!e print(bool.mro())
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[<class 'bool'>, <class 'int'>, <class 'object'>]
So the class has it.
do you think it's good opal?
Q.1 : Counter-part for Python?
It has its uses.
sum(v == 7 for v in nums) #How many in nums equals 7?```
== you meant
ta
thank you hemlock
It's late.
Any thing that can replace Python, if I don't like?
@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
Something better than Python?
it's convenient.... I don't disagree with that... but should it be like that..
Done.
Cheers
Can you answer my question π ?
It depends what your beef is with Python
!e
from datetime import datetime
now = datetime.now()
print(f"It is currently {now:%Y-%m-%d %H:%M:%S}")
@willow light :white_check_mark: Your eval job has completed with return code 0.
It is currently 2022-05-19 15:58:22
Different tools for different jobs and all that
Time.
What are you mainly going to be making, what kinds of projects, etc.
if you agree that it's convenient, why not have it there π
I don't want a mindset, just that are there things better than Python?
?
depends on your use case.
^
π
?
Depending on the learning cure, which language is the most difficult?
One of the esolangs, probably.
Suggest something like C++ or something. Anything with a curve equal to that?
How's C?
I've done C#.
My only language is Python.
My only language is English.
Communicatory-based language.
@whole bear You're like the decoration fairy, I dig it.
@lavish rover math discord disagrees with you... about True == 1... π
I've already established that's not mathematical equality, I'm not sure what the math server is disagreeing on
I've noted Opal's suggestions.
π
pyhton
Pick something you like the look of. You've obviously had a look around.
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.
having different types bool and int is better... that's all.. I was curious how they see that...
BrainFuck is a good pick.
well, they're entitled to their opinion
Rust
Okay.
yeah..
Wait, react is a language?
I wouldn't put those languages in the same bucket
I thought they were very insistent on being called a library
Also, learn Matlab, it pays well
That's correct, maybe I'll view C++ with more depth, it's right that comparision here isn't justified.
Okay.
!e
x = 256
y = 256
print(x is y)
a = 257
b = 257
print(a is b)
@willow light :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
Have you ever seen someone code with C++?
cool, so that bug is no longer a thing
First impressions for C++?
Everyone is busy in voice chat, maybe hang on it to a little more, yeah?
Cya
!e
x = 256
y = 256
print(x is y)
a = 757
b = 757
print(a is b)
hi
Hemlock, seems you've got some weather going on today
hello there
What do you want in this code
nothing
!e
x, y = 256, 256
print(x is y)
a, b = 757, 757
print(a is b)
!e
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
@willow light :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
003 | ^
004 | SyntaxError: invalid syntax
What is this
We don't use this we use self
You mean what is self
Ok ok
no more
!e
print("β«mixins are pretty cool")β
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
β«mixins are pretty cool
!e
import logging
logging.warning("("mixins are pretty kool
@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?
!charinfo print("β«cool")
\u0070 : LATIN SMALL LETTER P - p
\u0072 : LATIN SMALL LETTER R - r
\u0069 : LATIN SMALL LETTER I - i
\u006e : LATIN SMALL LETTER N - n
\u0074 : LATIN SMALL LETTER T - t
\u0028 : LEFT PARENTHESIS - (
\u0022 : QUOTATION MARK - "
\u202b : RIGHT-TO-LEFT EMBEDDING - β«
\u0063 : LATIN SMALL LETTER C - c
\u006f : LATIN SMALL LETTER O - o
\u0070\u0072\u0069\u006e\u0074\u0028\u0022\u202b\u0063\u006f\u006f\u006c\u0022\u0029
print("mixins are pretty cool")
im all alone in this voice chat anyone good at cryptography in python please join
https://github.com/MatMasIt/steganoCode
Basically steganography
I'm not, but the folks in #cybersecurity might be able to help/compare notes
So long as it's broad strokes and doesn't violate rule 5
!e
print("zero-width space:β")
@willow light :white_check_mark: Your eval job has completed with return code 0.
zero-width space:β
versions:
20220101
20220102
20220103
...
20220137
20220138
Or you could do what I've been doing for our container registry:
appName2.2.7:20220115T1337
@unborn flame @thorny crystal I'm available and reasonably cogent at the moment.
nice
Cool, let class begin π
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?
We're in voice chat just now, discussing that.
How do I hear? I'm outside ATM smoking. Going in to pc in a few...
I'm on mobile this second...
I'll be around.
OK cool
!e py import numpy as np arr = np.mgrid[-3:4, -3:4].T print(arr)
@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
@somber heath The explanation was great.
Thanks for it and inspiration to make things like this 
!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])
@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]
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;
}
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
!voice
Voice verification
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.