#voice-chat-text-0
1 messages · Page 155 of 1
I'm building a python program that recommends user a car based on their preferences
Can anyone help me with that
I would draw out the algorithm you’re gonna use on paper first
Is that for me?
Yeah
Oh okay
I have a code already
But facing issue with how to get info about cars and integrating it with my code
@subtle cedar
Csv file?
Successive sorts of available cars sorting first by least important preference of car attribute then on to most important preference, perhaps.
Can't find one
Wow
Yeah kind of
List of dicts.
Am I supposed to make one?
Each dict a car.
I'm avoiding that
How many cars you need?
In lieu of what?
Legit so may cars are available in the market
How can I make for all of em
It's too tiring
This is a decent start: https://www.kaggle.com/datasets/nehalbirla/vehicle-dataset-from-cardekho
So should I change my code purpose
I have no idea. I'm just trying to find vehicle datasets cause you said you needed it
anybody experienced this before? made an update and now..
Lemme try to find some more
But how do I integrate this with my codeM
?
@thorn lagoon can I dm you and show my code?
I'm a beginner. But I'll see what I can do.
Haha OK, shoot me a dm
!server
what's the book's name?
how would i create an input with a border like this?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
!stream 1053732836693258391
✅ @turbid sandal can now stream until <t:1687982055:f>.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
!stream 492010589409771530
✅ @final crane can now stream until <t:1687982931:f>.
!stream 492010589409771530 30M
✅ @final crane can now stream until <t:1687985036:f>.
@stark blade
py -m ensurepip
hello guys
!stream
member
!stream <member> [duration=None]
Can also use: streaming
Temporarily grant streaming permissions to a member for a given duration.
A unit of time should be appended to the duration. Units (∗case-sensitive):
y - years
m - months∗
w - weeks
d - days
h - hours
M - minutes∗
s - seconds
Alternatively, an ISO 8601 timestamp can be provided for the duration.
!stream 361549679059795968
✅ @stark blade can now stream until <t:1687984187:f>.
Nice try
its https://chat.openai.com/ open network tab and copy the authorization token and use that instead of the api key
it uses gpt 3.5
here you can use gpt 3.5 16k model for free without login
yep
cuz its not the openai official one
it uses the api from thirdparty sources
which im not sure is trained on the same model as openai one
which is webtext2
doesnt mention chat.openai.com
Convert PDF to Excel in just seconds. Adobe Acrobat online services turn your PDF content into an easily editable Microsoft Excel file. Try it for free!
hardware incompatibility maybe!
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@lavish rover Yo
yo
Description will go into a meta tag in
That’s awesome! I didn’t know Harvard is making a course on cybersecurity.
How’s Leetcode going? I’ll be practicing for a coding interview I have coming up https://neetcode.io/
A better way to prepare for coding interviews.
!e
a = [10, 20, 30, 40]
a[1:2] = [-1, -2, -3]
print(a)
@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.
[10, -1, -2, -3, 30, 40]
?
slice assignments are cursed
!e
print(int("৪୨")) # answer to everything
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
42
it was this way since ~2019, I think
(like I had accounts using this name)
!charmap ৪୨
wait
I forgot
!charinfo ৪୨
\u09ea : BENGALI DIGIT FOUR - ৪
\u0b68 : ORIYA DIGIT TWO - ୨
\u09ea\u0b68
this
str.isdecimal()```
Return `True` if all characters in the string are decimal characters and there is at least one character, `False` otherwise. Decimal characters are those that can be used to form numbers in base 10, e.g. U+0660, ARABIC-INDIC DIGIT ZERO. Formally a decimal character is a character in the Unicode General Category “Nd”.
oh
!e
characters = {chr(i) for i in range(100000)}
numerics = set(filter(str.isnumeric, characters))
digits = set(filter(str.isdigit, characters))
decimals = set(filter(str.isdecimal, characters))
print(numerics > digits > decimals)
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
I think str.isdigit is one of the most used ones
but it's very non-strict
so, like, checking that character is [0-9] is very far away from using str.isdigit
conclusion: just use regex
!e
print(int("32"))
@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.
32
@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.
101
is that a bug in 3.11?
cuz 3.10 seems to work fine
in what sense?
!e
print(int("৪୨"))
@cosmic lark :white_check_mark: Your 3.11 eval job has completed with return code 0.
42
four and two
right
!e
print(int("੧୨𑄽9"))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
1279
so close yet so far
or just this
simple enough example to demonstrate the issue
though
no
the first one
this invalidates an even more naïve algorithm
@lunar haven what does your algorithm return for this tree?
1,1,1,null,1,null,1
(with brackets)
is that tree symmetric?
checking that elements are in reverse order isn't enough, the structure needs to be preserved too
(the test case it fails on)
I put it now because that's how it serilises the thing in the system
I normally don't put null at all
(and on the next level, there are four nulls)
left and right match the element criterion
but fail the structure criterion
with more varied values, would look something like this
[2,3] and [3,2] element lists are mirrored
but trees [3,2] and [2,3] aren't
this is not a symmetric tree
you ignore the structure
you only consider the order of elements
i.e. you treat trees [3,2] and [2,null,3] as the same
your algorithm can't tell these two cases apart:
because order of elements in the right subtree is the same
f(root.right) is [3,2] in both cases
or not exactly
what does it actually return?
I'll check now
[None,3,None,2,None]
in both cases
you can add a hacky parameter depth
replacing [None] with [(depth,)]
(tuple there to differentiate from node.val)
though
even just [depth] should be fine
you have
f = lambda node: f(node.left) + [node.val] + f(node.right) if node else [None]
you can change it to
f = lambda node, depth: f(node.left, depth + 1) + [node.val] + f(node.right, depth + 1) if node else [depth]
not []
[depth]
the second passes the tests
reason why it works:
it accounts for the structure, not only element order
the structure of a tree is uniquely defined by depths of nulls
you incorrectly translated the tree
TreeNode(1, TreeNode(2, TreeNode(2)), TreeNode(2, TreeNode(2)))
left and right are the same in that test case
I have this thing which doesn't use recursion at all
(depths of nulls in small circles)
3 3 3 3 3 2
2 2 3 2
3 3 2 2 3 3
2 3 3 2
@lunar haven normally algorithm doesn't construct any sort of list of elements/depths/whatever
it instead considers pairs of nodes it needs to check for mirroring
starting from (root.left, root.right) pair
checking if one tree is a mirrored version of another tree can be done either recursively or iteratively
(both versions utilising a stack in some form)
@lunar haven How's it going?
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
Thanks
hi
cybersecurity is gay
jk
red dead redemption 2 gameplay?
fr
a puppy!
nah my cuteness makes your heart sing!
ok
eid mubarak @lunar haven
it means happy @lunar haven
blessings and happiness
hi
!ytdl @violet cosmos
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)
sad
I'm very sad, I don't think anyone will answer my question 
the code in question uses numpy
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
hello @whole bear
scipy.ndimage
I'm trying to port a Cython code to another language
I would like to share my screen so I could show you how strange the colors behave
that is indeed true
ok
wait
I edited the code so I can place cells with the mouse cursor
and also commented the line that steps the gol
!verfiy
so we can see just the color system
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@whole bear 👋
@somber heath the "GIF"
You did post that...I saw it...it didn't register with my brain as what I was talking about.
Because I'm a ditz.
Numpy does have structs, if that helps.
Custom dtypes.
ok
Good luck. Sounds like a fun project.
Hi
@lunar haven fix yo damn stream
hi
hi
gofek left
hmm
@trail tusk do you know Cython?
no
:( ok
sorry
save wizard moment?
ah ok
hi @scarlet halo what you up to this morning?
what kinda project is it?
it downloads mods from modrinth
you make mods too?
no
Coding going smoothly so far for your project, ive never used modrith before
yeah i checked it out, is it more for minecraft mods right?
yeah
and theres plugins and shaders and resource packs and modpacks its pretty cool
ever used blockbench?
and theres like a notification system where you can follow a project and see when it updates
yea
Ill join you in call one sec
ok
code
hi
?
ok poopy pants
what
est hola
hey sorry i cant stay tho
morning Opal
hi again
👋
its not like i know i do it. lol but boy is it gonna be friggin HOOOT
Owl be the judge of that.
this heat jumped up on us like a panther. Thank god i got a couger to protect me.
can somebody play some music??
I could but i don't beleive that its appropriate here
just get a spotify subscription
Hey, Shank.
This VC which is more for conversation...which does happen, despite appearances. Music would be disruptive to that.
i like how everyone is just chilling while being muted
Also, this server has a policy against ytdl and other things like it.
Which music bots will often use.
Honestly i would love to play music for people but i know that is in approriate here.
a
someone should start coding something and share it
!e
print(ufsd)
@scarlet halo :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | print(ufsd)
004 | ^^^^
005 | NameError: name 'ufsd' is not defined
hehe
I wanna code something but im stuck i need a file from the organization im coding for, i don't have a phone and Emailing would be a pain untill i call first... go figured
whats so funny quant
its programming
getting errors?
meh, whatever you concieve the situation i won't argue.
I'm available to attend to something,if that's what you're asking.
is there resoning behind it or...
nah
amazing.
the welcome to the club of irrational thought.. im your host, the waiter, and owner of this established reign of irrational behavior and patterns. Careful the cognitive conditions may be hot so you may wanna let it cool.
I had another person tell me I sounded like a teacher.
Maybe the universe is trying to tell me something.
Ah the teacher was being taught of their own teachings unbenounced by the teacher themselves...
Right.
I think it may just be telling me I'm gassy.

Which, you know, thanks for the fucking update, universe, I already knew that.
well the universe as a whole has this same affliction, we may as well wait for the comsic match to light.
ok
Life is just one big fart joke, in the end.
the big bang.
Ding ding.
ethanol
IIIInteresting.
the non-drinkable is methanol
thank you, Dyslexia comes in all forms of perceptual understanding. like which plants come back and the proper understanding is Annual? and ... whats the other word?
Thank you, Dev. They're words from the heart.
that indigenous
Perennial
@polar ocean 👋
agreed, probably patent it so when quantum computers take over and provide new ways for a browser to use cookies via quatum states.. Quanticookie
or, a browser cookie like state for real world elements... hmmmm Quanticookie
What does it mean to be indigent?
: suffering from extreme poverty : impoverished. archaic : deficient.25 May 2023
Antagonize definition, to make hostile or unfriendly; make an enemy or antagonist of: His speech antagonized many voters. See more.
Well I spell it with an s, but sure.
.
I did
very
I take the blame for introducing Dev to the element song.
Dev mentioned a chemistry lesson.
So I mentioned it.
I've done Pirates, so I'm familiar with the origin.
my favorite is his world war 3 song
C++
Python.
English
Mind you, I only do Python.
Gotta feed cats
https://github.com/microsoft/Pyjion
u werent wrong tho
dont need to edit it
Haa
@zenith radish know anything about rewards.bing.com?
A Chucky doll vape?
hi
@turbid sandal That you're taking up vaping worries me.
I want your lungs to be healthy.
@turbid sandal but surely u are?
@turbid sandal You misunderstand me. I mean if we ever need to harvest your organs, we want them in top condition.
beast

??
idk
In seriousness, it takes a toll on your health, and that's something you want to guard, because if you don't have your health, you don't have very much at all.
then there's no hope for humanity

we should start saving tears wait till im done crying into this cup then you
@orchid mauve perhaps they interfered with each other
sounds like a EMP
yeah but for all to fail at once
better strip those drivers and cavity search the issue
government agencies can just show up on your doorstep and force you to give up data
cheaper, faster, but maybe not as quiet
"CIA is already controlling your device, so relax and hope it's only CIA and not FSB or whatever"
though I doubt FSB are actually capable of anything nowadays
well, I mean if they already have the data;
only thing FSB can do is to accidentally leak the data because they don't know better
FSB is literally a bully organisation stuck in the 50s
"I may have a hunch that it would be easier to get a mouse and keyboard"
~ Mr. Hemlock
"speaking of not taking care of one's health"
(experimenting with voice)
Neat
what are you doing im hooked im an audiophile
for instance im trying to figure out whats said here if there is anything at all, however it doesn't seem like anything is being said, however im unsure of the format im seeing here...
however, what seems to be happening in the fouriur thingy is a focus function
well, from a frequency you can guess that it's not necessarily something that's going to be pleasant to listen to
literally just a screech
so the representation of sound here is standard and the upper portion of the graph signify High frequencies and the lower low frequences, now, the frequency in discretion, so the frequency is the what, 1800 range? is a chaulk scratch?
at this point doesn't even sound like voice
CAN I SAMPLE THIS
yes
thats breathing in while trying to talk
no, this is not inhale
it sounds human on the breath in
it only sounds odd after about 3 4 seconds
thats definately human.
like a kid
super?
i play'd it twice with eyes closed.
instince tells me human
@somber heath Oh my god, the current enemy I'm fighting in Godville is a Bard Against Humanity
Obligatory PTT on mobile is ass.
I like it.
only two octaves lower, I guess
Neat
and what it sounds like
it's actually surprising how high-pitched it is
it doesn't sound like it is
Ahh, the sound of souls escaping from hell. Refreshing
Huge-ass fan or huge ass-fan? You decide!
Yes
if it can be proved, it will be proved eventually if you just iterate over all algorithms
or disproved if can be drisproved
but
there are correct statements that can't be proved
How do you mean?
and we can prove that for some statements
- statement is true
- no proof proves it
we can't show such statement
because we would need a proof for that
@frigid panther Sup
@vocal basin https://whyp.it/tracks/107035/alisamp3?token=CoqKr btw this is my brain 24/7
So something as simple as:
True == True
Would need a proof?
hey @rugged root, just working on a django project, how are you doing
we can prove that, with the current axiom system, a certain statement can't be proven true or false
it might be true
it might be false
it might be either true or false
Executioner's axiom.
last is, for example, related to Euclidean/on-Euclidean geometry
hi like @rugged root and a few others
Because it's me?
Just seems like one that you would do in the accent
Yo
Short clip from noise performance by the Chinese Torturing Nurse. Part of the My World Images festival in Copenhagen, Sept. 2010. Video: Jacob Crawfurd
Sodoma Gomora - Snuff Porn Gore Soddom (ft. Bushpig) (2008)
@rugged root 
How goes it
Hey @sweet lodge!
pandemic?
not necessarily
idk
outbreak sounds more like something when it's not yet wide-spread
Not too good, but I think we're getting there
I found a team to work on a side project with, so that's helping
How goes the you?
plasma is what lightning and what the northern lights are made of @whole bear
Oooo
Neat
In physics, a state of matter is one of the distinct forms in which matter can exist. Four states of matter are observable in everyday life: solid, liquid, gas, and plasma. Many intermediate states are known to exist, such as liquid crystal, and some states only exist under extreme conditions, such as Bose–Einstein condensates (in extreme cold),...
use JWT
oh
@obsidian dragon you can use localstorage instead
without sending anything to the server
window.location = something?
I don't remember
that's for changing URL
I've never automated scrolling beyond just scrolling to the bottom of the page
@obsidian dragon where r u guys on now?
@rugged root some cookies are inaccessible from JS
I wrote in the wrong chat
#off-topic-lounge-text message
I thought that was just for cross site
I think there's a flag to forbid JS from accessing it
@vocal basin where r u guys on now???
Need to make a calculator with c++
#include <Python.h>
"adminless" would be a better term
@rugged root where r u guys on now?
I'm not sure what you're asking
which stream r u on?
stream?
I don't think anyone is currently streaming
just chatting now?
yes, mostly
Yeah
"ultimate paranoia:
company isn't hiring => ohno I'm going to get laid off
company is hiring => ohno I'm going to get replaced"
@vocal basin why don't u speak and keep pinging?
?
Some people just prefer to type rather than talk
who on earth likes his boss?
hahaha
I loved my boss at my 1st company
you can probably read this one, I guess
Both the CEO and CTO were amazing people
HAHAHAHA
HOLY SHIT
I HAVE TO SEND THIS TO MY FRIEND
@orchid mauve You're really quiet for some reason
A lot
depends how early the typo gets caught
A indentation error costs my company >$100K
"I don't even need to make typos, my code is already broken"
@wind raptor u around?
Heyo!
right. u r on.
GIGO
An acronymn to live by
quite an old problem
!e py a
@somber heath :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 | a
004 | NameError: name 'a' is not defined
!e
code
!e py def func(): a a = None func()
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 4, in <module>
003 | func()
004 | File "/home/main.py", line 2, in func
005 | a
006 | UnboundLocalError: cannot access local variable 'a' where it is not associated with a value
!e python if (1 == a): print('Hello')
@amber raptor :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 | if (1 == a):
004 | ^
005 | NameError: name 'a' is not defined
PS C:\Users\rabbi> if ($a -ne 1){write-host 'hello'}
hello``` WTF POWERSHELL
!e
# don't
from collections import defaultdict, ChainMap
exec("print(repr(a))", globals(), ChainMap(__builtins__.__dict__, defaultdict(str)))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
''
rabbi
I didn't know you were religous
Back in a sec
hi hemlock
planning
That's what I write
@rugged root remind me to come to story time
ur a "bi-modal"
French stockmarket. "Oui. Sell."
a
Rip Torn died in 2019.
rip
disposable garbage bag. its replaceable and only trash goes in it
White ibis, seagulls.
So long as the garbage is where it's supposed to be.
The planet does gain mass.
so does the sun
i feel like opal is a ai bot undercover
Nope, I was wrong. It loses mass, overall.
a- damn-
There are additions and subtractions.
The shape of the Earth is nearly spherical. There is a small flattening at the poles and bulging around the equator due to Earth's rotation. Therefore, a better approximation of Earth's shape is an oblate spheroid, whose equatorial diameter is 43 kilometres (27 mi) larger than the pole-to-pole diameter.
Source: Conversation with Bing, 6/29/2023
(1) Earth - Wikipedia. https://en.wikipedia.org/wiki/Earth.
(2) Earth - National Geographic Society. https://www.nationalgeographic.org/encyclopedia/earth/.
(3) Shape of the Earth: The Oblate Spheroid - Earth How. https://earthhow.com/shape-of-the-earth/.
(4) In Depth | Earth – NASA Solar System Exploration. https://solarsystem.nasa.gov/planets/earth/in-depth/.
Earth is the planet we live on, the third of eight planets in our solar system and the only known place in the universe to support life.
Earth is not a perfect sphere. In fact, it’s in the shape of an oblate spheroid. Earth shape bulges at the equator and flattens at the north and south pole.
NASA’s real-time science encyclopedia of deep space exploration. Our scientists and far-ranging robots explore the wild frontiers of our solar system.
this fucking standup is never going to end
Perpetual standup
I ghost pinged you in dms.
Rabbit said a thing that you missed, but then he said it again.
and you heard it
That works
So good
The pigeons are taking over! They're staging a coup!
yes
hi
well
well as in good
Though my mic could work better
by working at all with discord
it's unclear.
I think it's discord.
-not before filter?
I have tried resetting, but I gave up so now I just pushed the mute button so that people know my mic isn't working.
all files that don't end with .go
find -not -name "*.go"
Has anyone tried discord on the Switch?
Didn't know that was a thing
find is so weird
yes
like Bob Dylan?
"Discord remains unavailable on Nintendo Switch. However, although Nintendo has not officially made this communication app available on Switch, there is a tricky way to get Discord on your Switch using the Discord Website."
Anyone can create their own coin. We should create a hemlock coin. Lets go: https://coinmarketcap.com/alexandria/article/how-to-create-your-own-cryptocurrency
well, that "rich" in cryptocurrency still comes mostly from crime
it might change over time
@mossy cedar omg TURN ON ~~CRISP ~~ KRISP PLEASE.
Krisp
I hope it goes away
Once you pop, you can't stop listening to background noise
yeah, does look like an imitator.
FedNow baby
It is becoming main stream.
having the ability to revert transactions in case of something going wrong seems to be more important for society than not having it
The US digital coin baby.
@thorn wharf This is already happening
@rugged root see the FedNow
i gotcha, i was mostly meaning it becomming a standard across all/almost all banks @molten pewter
but like i said im not familiar enough with blockchain to confidently speak on it
All of the banks are partnering.
oh wow thats crazy
Outlines First Whole-of-Government Strategy to Protect Consumers, Financial Stability, National Security, and Address Climate Risks Digital assets, including cryptocurrencies, have seen explosive growth in recent years, surpassing a $3 trillion market cap last November and up from $14 billion just five years prior. Surveys suggest that around 16...
biden's executive order: 14067
wildddd
Executive Orders should not be taken as it'll be there forever
Executive Order 14067, officially titled Ensuring Responsible Development of Digital Assets, was signed on March 9, 2022, and is the 83rd executive order signed by U.S. President Joe Biden. The ultimate aim of the order is to develop digital assets in a responsible manner. The executive order addresses the potential national security implication...
no one is competent enough to speak on it anyway
WASHINGTON — The U.S. Department of the Treasury today published three reports pursuant to Sections 4, 5 and 7 of President Joe Biden’s Executive Order 14067 on “Ensuring Responsible Development of Digital Assets.” The reports address the future of money and payment systems, consumer and investor protection and illicit finance risks. “Innovation...
aww come on
blockchain devs: "i have no idea what im doing"
Sure. But listen to the Department of the Tresury.
so many people i pop in thinking theres a good convo.. and its shitcoin stuff
$ rg --files -g '!*.lock' | xargs cat | wc -l
4954
Coin swapping is a thing.
bbl
As far as I know, coin to fiat still needs an exchange
20 of 25
@late river Read the treasury's plan for digital currency: https://home.treasury.gov/system/files/136/Digital-Asset-Action-Plan.pdf
I was involved in implementing some of the controls around digital currency in a large bank.
block chain might be very less-than-ideal solution, especially for distributed systems
even ethereum, iirc, doesn't actually have a strict chain-like structure (they do include sibling blocks if they exist, to some extent)
supporting for merge, if split ever occurs, is important
drone piracy
My neighbor’s kid is constantly flying his quad copter outside my windows. I see the copter has a camera and I know the little sexed crazed monster has been snooping around the neighborhood. With all of the hype around geo-fencing and drones, this got me to wondering: Would it be possible to force a commercial quad copter to land by sending a lo...
Revolutionary wheels.
All you need to do is set them up so that you arm the explosives before they get sent out, and disarm them upon delivery, rearm, and disarm upon return.
Keep in mind Hemlock, you need to make sure you tip it so when the singularity comes about, you're not on the hitlist.
Get it, because wheel go around, they revolve.
The most revolutionary invention: The revolving door.
You mess with the FAANG, you get the bang.
@rugged root 5 days until a lot of people cant count to 5 on 1 hand...
A plumber gets called out to a chicken farm to deal with a backed-up pipe.
He reaches into the pipe and pulls out a whole chicken. Dirty, but otherwise inharmed, it runs off.
"Well, that's what was causing the bokage."
Despacito prestissimo.
Did you hear about the constipated chicken?
I don't think I need to finish this one.
See Y'all later 👋
My cat is always wearing a tuxedo
They must have been in a fowl mood
Yes, but misery loves company.
Birds of a feather.
Shart together?
It's chickens, so yes
Can I subscribe to the totallymad podcast? Dude's got a radio voice.
Right?
"I went to the tailor and all I got was this lousy smoking jacket."
class StaticArray:
def __init__(self, n: int):
self._array = [0] * n
def get_at(self, i: int) -> int:
return self._array[i]
def set_at(self, i: int, x: int) -> None:
self._array[i] = x
the interface is described here
it matches the spec
underlying implementation doesn't matter there
!d array.array
class array.array(typecode[, initializer])```
A new array whose items are restricted by *typecode*, and initialized from the optional *initializer* value, which must be a list, a [bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object), or iterable over elements of the appropriate type.
If given a list or string, the initializer is passed to the new array’s [`fromlist()`](https://docs.python.org/3/library/array.html#array.array.fromlist "array.array.fromlist"), [`frombytes()`](https://docs.python.org/3/library/array.html#array.array.frombytes "array.array.frombytes"), or [`fromunicode()`](https://docs.python.org/3/library/array.html#array.array.fromunicode "array.array.fromunicode") method (see below) to add initial items to the array. Otherwise, the iterable initializer is passed to the [`extend()`](https://docs.python.org/3/library/array.html#array.array.extend "array.array.extend") method.
you can also use this
you can't modify a tuple quickly
set_at would be O(N)
because you need to create a new tuple each time
type hints seem wrong, a lot
def birthday_match(students: Sequence[tuple[Name, Bday]]) -> tuple[Name, Name] | None:
...
input isn't StaticArray
more strict:
def birthday_match(students: tuple[tuple[Name, Bday], ...]) -> tuple[Name, Name] | None:
...
Flashbang instructions: "Rule 1: Try to avoid deploying to baby cribs."
missing , ...
Ha
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'int'>
002 | int | str
| means union there
yeah python 3.10/11 update
or just means pick first if it's not None
| is since 3.10, iirc
before it was typing.Union
that sounds about right
Union still has its place
(though less so if you use from __future__ import annotations)
line numbers style seems familiar
minted package for TeX
theyre the same but there wont always be support for |, when defining a response_model in fastapi routes, it requires Union simply because of the context - | would perform operation in that context so something to just keep in mind
str aint type?
@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 | None | 'C'
004 | ~~~~~^~~~~
005 | TypeError: unsupported operand type(s) for |: 'NoneType' and 'str'
i caint even read that
maybe typo?
so if type None merge type str
seems to be k-1
It's not peculiar.
'C' is used in place of C when C isn't yet defined
See posts, photos and more on Facebook.
the example is there just for demonstration purposes
not showing "how to properly do it"
Every year thousands of paintball players descend upon Oklahoma to reenact the infamous WW2 invasion known as D-Day and pay tribute to those who gave the greatest sacrifice while defending the modern free world from evil & oppression. The week-long event happens at Oklahoma D-Day Adventure Park in Wyandotte, Oklahoma and Spantastik was on hand d...
Neophyte (Simon Hall) is a fictional mutant super villain appearing in American comic books published by Marvel Comics. The character is depicted as a member of the Acolytes.
Neophyte
neophyte in Wiktionary, the free dictionary. A neophyte is a recent initiate or convert to a subject or belief. Neophyte may also refer to: Neophyte (botany)
Neophyte of Bulgaria
Patriarch Neophyte (Bulgarian: Патриарх Неофит, secular name Simeon Nikolov Dimitrov; born 15 October 1945 in Sofia) has been the Patriarch of All Bulgaria
I've got nothing.
There is an archery range not too far from where I live. I've shot a bow in primary school and I remember being shittier at it than I thought I'd be.

Curricular exercise.
"Godwin's Law for PLs"?
anarchy range
(not (a or b)) == ((not a) and (not b))
(not (a and b)) == ((not a) or (not b))
2 b or not 2 b
Pontiac Actually-On-Fire-Bird
@lavish rover Did you settle on a new name for the new thing?
there are multiple Ds
Oh my.
tee hee
one of them is for dtrace
> (not to be confused with other programming languages named "D")
D is the fourth letter of the Latin alphabet.
D or d may also refer to:
maybe alternation between compilation and runtime is what differentiates it from strictly compiled
mob psyco.!?
@lunar haven what's up? I cannot hear your voice when I am watching your live streaming
Are you explaining data strucure?
I'm currently studying data structure too
yes
now i hear you
thanks
idk
no it is not about volume
discord magic
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
connection might sometimes fail
(a relatively common error case)
assuming the animal
thanks for sending me this. I did not satisfy the condition yet. I just joined yesterday
or maybe this?
https://en.wikipedia.org/wiki/Capybara_(software)
Capybara is a web-based test automation software that simulates scenarios for user stories and automates web application testing for behavior-driven software development. It is written in the Ruby programming language.
Capybara can mimic actions of real users interacting with web-based applications. It can receive pages, parse the HTML and subm...
omg anyone see this guy? https://www.youtube.com/watch?v=f9smvQ5fc7Q he's actually pretty cool
I programmed an AI to solve any rubiks cube, see how I did it.
this video was inspired by:
https://www.youtube.com/watch?v=0cedyW6JdsQ
Music used:
smiles for miles - Silent Panther
RESPECOGNIZE
ES_I Wish That I Was A Mad Man (Instrumental Version) - Staffan Carlén
ES_Youngsters Anthem 01 - John Åhlin
ES_Army Of Angels 3 - Johannes Bornlöf
ES_A...
"watch his videos in reverse so it actually looks like he's learning something"
I cannot hear you for some reasons. let me join again after two days. if you still do the streaming then
not much talking was happening
okie dok
i did not meet the condition for Have over 50 messages in the server.
and Have joined the community over 3 days ago. this
list is an array list, I'd assume
re-allocating when necessary
list is good enough for most cases
yes
Python is way more about utilising existing data structures
class list([iterable])```
Lists may be constructed in several ways:
• Using a pair of square brackets to denote the empty list: `[]`
• Using square brackets, separating items with commas: `[a]`, `[a, b, c]`
• Using a list comprehension: `[x for x in iterable]`
• Using the type constructor: `list()` or `list(iterable)`...
it's like Vec in Rust
mostly
(or vector in C++)
ArrayList in Java?
I don't remember
Python is okay for prototyping some data structures
trees, for example
not that easy to properly handle in something like C
(for me, Rust is even easier than Python in this case because of enums/match/etc.)
(tbf, it applies to some extent to "all" languages, but it's a little bit more prominent in Python)
@slate viper I can hear
(idk if gofek can)
@lunar haven am i muted?
Django? Java?
(did I mishear?)
((listening to something else relatively loud too))
I haven't worked with it myself yet
not really a fan of frameworks
yeah, match statements
!d match
8.6. The match statement
New in version 3.10.
The match statement is used for pattern matching. Syntax:
match_stmt ::= 'match' subject_expr ":" NEWLINE INDENT case_block+ DEDENT
subject_expr ::= star_named_expression "," star_named_expressions?
| named_expression
case_block ::= 'case' patterns [guard] ":" block
```...
class typing.Generic```
Abstract base class for generic types.
A generic type is typically declared by inheriting from an instantiation of this class with one or more type variables. For example, a generic mapping type might be defined as:
```py
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
``` This class can then be used as follows...
!d typing.TypeVar
class typing.TypeVar(name, *constraints, bound=None, covariant=False, contravariant=False)```
Type variable.
Usage:
```py
T = TypeVar('T') # Can be anything
S = TypeVar('S', bound=str) # Can be any subtype of str
A = TypeVar('A', str, bytes) # Must be exactly str or bytes
``` Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function and type alias definitions. See [`Generic`](https://docs.python.org/3/library/typing.html#typing.Generic "typing.Generic") for more information on generic types. Generic functions work as follows:
py 3.12 will have this
def max[T](args: Iterable[T]) -> T:
...
class list[T]:
def __getitem__(self, index: int, /) -> T:
...
def append(self, element: T) -> None:
...
stack is LIFO
queue is FIFO
they're just named after what element is popped
@lunar haven
if you pop a stack, you get last inserted element
if you pop a queue, you get first inserted element
if you pop a stack, you get last inserted element
^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
first out last in
or, the later it was inserted, the earlier it will be popped
(applies only when comparing elements currently present in the stack)
and in case of a queue, the earlier it was inserted, the earlier it will be popped
Queue is
First in First Out
Meaning the first thing to enter will be the first thing to leave
Stack is
First in Last Out
Meaning first thing to enter will be the last thing to leave
(applies not only when comparing elements currently present in the queue)
work one hour
don't sleep
sometimes duplication is okay
just have table of addresses
(student, address)
all addresses associated with that student
not sure about the second one
just do what's simpler to maintain and/or more performant
like
indices are data duplication too
@slate viper
this?
(student id, course id, grade) row
(student id, course id) primary key
ah
if per assignment, then yes, assignment id
there is grade for the whole course
there is grade per assignment
assignment uniquely defines the course (so course can be excluded from the question)
(assignment, student) uniquely defines the grade if any
have a separate table
assignments
assignment has a foreign key to its course
are student address and parent address two different concepts in the system?
or is the whole purpose of it to just list addresses associated with a student in order of precedence?
well, same as in the original question
have one table with ids of all people?
yes
STU1
PAR1
TA1
people:
id
students:
id
parents:
id
teachers:
id
ah
also
@slate viper teachers can be parents
don't forget
also
if you intend on the system working for 5~10~20 years, and if you intend on keeping all the data for that time,
students also might become parents and teachers
I originally had 10~20 years there
but then I remembered that some students become teachers in the same school they graduated from even earlier
code 💣
course, I think
people:
id
student:
people.id
teacher:
people.id
parent:
people.id
class Dynamic_Array_Seq(list): pass
ah pascal snake makes more sense since the first is also capitalized
thankfully
screaming kebab
screaming snake
ah
I remembered the most ugly
camel_Snake_Case
"LP will soon be working for pharmacy"
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
hi
Why do they care?
ghidra g0d
but yk what?
i would rather look at a lady all day
than looking at a dragon
😎
Stirling
Bridge and the port. Located on the River Forth, Stirling is the administrative centre for the Stirling council area, and is traditionally the county town
Stirling engine
the regenerator is what differentiates a Stirling engine from other closed-cycle hot air engines. In the Stirling engine, a gas is heated and expanded by
pretty young if u went to the conf
yep
woman better
no i mean overall, if u like look at the research, ghidra has yet to reach that level of what IDA has implemented
only thing close to IDA opensource i would say is angr
oh
https://hex-rays.com/blog/free-madame-de-maintenon-ctf-challenge/
also if u are up for some chall lol
oh
u dont need to pay if ur company sponsors ya
or have a fren who works on hexrays
lol
lmao
depends on the interface of D
what if D[] operations are undefined?
this, for example, doesn't seem to define indexing
@gentle flint You could bake your own.
It'd involve a bit of technique, but it'd be doable.
@rugged root If the omnipresence of God is taken as given, then God is in the refrigerator.
That tracks
@classmethod
def from_dict(cls, obj: dict | None) -> AcceptContract200Response | None:
"""Create an instance of AcceptContract200Response from a dict"""
if obj is None:
return None
if not isinstance(obj, dict):
return AcceptContract200Response.parse_obj(obj)
_obj = AcceptContract200Response.parse_obj({
"data": AcceptContract200ResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
})
return _obj
That just feels way too long to have as a ternary
If your kitchen designer had poor taste, would you have a kitschen?
Why are shark? Nobody know.
hey
Jack has a very rare form of laryngeal paralysis and his voice changed after his first surgery. Since posting this video I've received a lot messages from people sending me their own cat's that have similar issues. I want to make an awareness video on this and include cats that sound the same as well as veterinary interviews. If you have a ca...
56,173
321,271




