#ot1-perplexing-regexing
1 messages · Page 126 of 1
Depends on the company
One of my apps is already running on 3.13
But.... what does the version of Python matter when comparing space saving "optimizations" of one install vs 50 different exe(s) each which their own install?
Your way would require 50 different updates, while just installing would only require updating once
Don't talk like that
why 50 different exe's?
for different architecture and os?
Imagine you have 50 different programs to run
And you made an exe for each one
Now you have 50 copies of Python that each have to be rebuilt individually
So you're just going to stay on the old version forever?
ight Mb
makes me wanna put 5 forks in a microwave
hell nah
So you're going to rebuild them all?
and also, cant i just combine all of those scripts into 1 exe?
ok nvm
that'd be inefficient to use
if you want to optimize space then I think pdm has a pnpm style cache for packages, but idk if that fixes whatever problem you have
a python installed portable env sounds good
That's what I did
They're in a container called steve
The argument passed in determine which one it does
So for example, to email everyone their morning reports, a cron job runs docker run --pull always --detach ghcr.io/idi/steve:edge daily-reports
But to make sure the cached data is up-to-date, every hour it runs docker run --pull always --detach ghcr.io/idi/steve:edge update-orders
We use 2.7, 3.8, 3.11
Do you personally still touch the 2.7?
Yes
My condolences
Most of what i do is in 2.7

Whenever I get a job, I hope I'm not forced to use many versions
I can't keep multiple versions of syntax in my head at once
Its not that bad tbh but i dont do anything special
So far been caught lacking by dict insertion order once
Also annoying 2.7 errors about unpacking dicts and such
Steve needs a container named Adam.
I am not the only one https://www.reddit.com/r/cscareerquestions/s/sBCv2BCocn
Do you think one can effectively engage in a weekly meeting about finances without having at least a fundamental understanding of finances?
i dont have to, it's not my job.
That’s not what I asked you
If I was expected to attend a weekly finance-focused meeting with a person there whose job it is to do the finance stuff, I would expect that person to effectively communicate the important stuff in a way I can understand.
If there's a gap in understanding or terminology, the finance person should be able to explain and cover the gap.
Meeting about finance for the sake of finance
there's no basic understanding that can give you understanding of complex topics that you need an expert for
I get 50kb download speed when installing tensorflow with pip. Other libraries downloading at normal speed. Can you try downloading tensorflow?
Broken record moment
bro is unemployed?
I swear to god if you post this one more time I will ban you irl
Your situation is not similar to the guy's in the post simply because you refuse to ask about your manager's opinions
In your own words, "you dont ask questions"
But the fundamental understanding will give you the base idea and knowledge of what the expert does and it’s a whole lot better than having no understanding at all
but you still need the expert to make it easier to understand. and the expert should be able to provide that baseline understanding
Okay so how does this refute my claim
it's not a refutation, more a refocusing
Are you suggesting that it’s not a good idea for every employee to have a fundamental understanding of what every employee does in a company because an expert surpasses the knowledge of the fundamental level?
no
So then where’s the disagreement?
it doesn't matter whether someone has a fundamental understanding or not
Why?
Keezy what are you getting at
Okay so if I got your position right, it’s not a necessity for every employee to have a fundamental understanding of what every employee does in a company because an expert has the knowledge anyway
Are you suggesting your manager doesnt have a basic understanding of the tech used?
sure. if someone needs to know, then they can ask
My argument is that if you’re in a weekly meeting about X, in order to effectively engage in this meeting, you should at least at a minimum have a fundamental understanding of X regardless of experts of X in the meeting
Why are you making this argument
Is someone you know at work lacking this basic understanding?
I am making this argument because i think it’s detrimental to not have any knowledge about the subject of the meeting taking place especially if it takes place weekly
but that's saying nothing. obviously you should know what the meeting is about
Okay so do you agree with my position?
Ok, was there an inciting incident though? Perhaps some frustration with a non-technical manager?
What made you get up this morning and post this here
but this is different from what you were talking about earlier
That’s irrelevant
What is
not really. look up "xy problem"
It doesn’t matter what inspired my argument
it matters if you want to fix things instead of just argue
See youre trying to get people to agree to this inoffensive sentiment of "everyone should have a basic understanding" but then you'll say "hah well my manager doesnt"
But you dont fucking know
CAUSE YOU DONT ASK QUESTIONS
That’s not what I am talking about though
It sure is though
I am talking in general
Now you are
As soon as someone agrees you'll switch up
You've done it before keezy we're not fucking stupid
the problem is that when you make your statement general, it loses any meaning. obviously you should know what a meeting you're in is about, at least tangentially. but this is clearly different from someone knowing about all areas of the company
I think it's pretty clear that they do like arguing and not actually solving problems
Every time I look in here the same thing is happening
real
#python-discussion message @rough sapphire
My harddrive was replaced with a windows installation media
What does this mean? can you give more details?
like
I was trying to get windows on a usb stick and then after i was done i wanted to play a game but my game started updating, i was confused because there shouldn't be any patches at the moment, after i found out that i wasn't updating anything
i was installing the entire game
I then went into the files and my entire disk drive was instead of 1.8tb it was 32gb
And EVERYTHING i had on there was gone
You probably formatted it
There are probably some tools to recover it but they’re not reliable
Not reliable?
yes
no; they just can’t get all the data back
I'm using disk drill right now
or they may get corrupted data back
what tool did you use to create the bootable usb?
microsoft azure
what?
its like
i found azure dev tools. is that what you were using?
yes
disk drill is good but it has a file size limit
you can only recover like 700mb with the free version
it'll show all the data it found but it won't be recoverable past 700mb total
i have to pay?
to recover everything, yes
how much
¯_(ツ)_/¯
the program should have a page for like
pricing
last time I had to recover files from a hard drive, I used photorec
recuva is also an option
not sure how good either of those are compared to disk drill
PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks (Mechanical Hard drives, Solid State Drives...), CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. PhotoRec ignores the file system and goes after the underlying data, so it will still...
is it a removable drive?
external
¯_(ツ)_/¯
could be disk failure, usb controller being mad for no reason, windows thinking the partition needs repairing, etc
you can try making it writable with diskpart on cmd., there's a few tutorials online showing how to do it
Sometimes, you might not be able to format a drive such as a hard disk, SSD drive, USB drive or SD card because its read-only attribute might have been checked (turned ON). So, in this quick video, I'll show you how to clear readonly attribute by using PowerShell or Command Prompt. In PowerShell, you'd have to use an utility called DiskPart in o...
Thanks
what i could do
i guess
is just clip the clips on there
that i want
xdd
im not paying 100 ngl
e
you said
mines has if statements, variables, loops, and printing
yes
i have all of those except printing
i dont have a terminal
ill need to write a driver for that
its only parsed
whats a compiler?
oh wait
my compiler is a little broken rn
for some reason i didnt fix while loops xd
what is a compiler
it turns code to assembly
oh
heres a program
0000 0010 0000 0001 0000 0000 0000 0101
0000 0010 0000 0010 0000 0000 0000 0000
0000 0100 0010 1000 0000 0000 0100 0011
0000 0110 0000 0100 0000 0000 0000 0000
0000 0010 0011 1111 0000 0000 0000 1010
0001 0000 0011 1111 0000 0000 0000 0100
0000 0010 0000 0000 0000 0000 0000 0101
0000 0100 0011 0100 0100 0000 0100 0011
0000 0100 0000 0000 0001 0001 0000 0000
0000 0110 0000 0010 0000 0000 0000 0001
ld r1 5
ld r2 0
mrtn r3 r1 r0
ld r4 r0
ld r63 10
bnz r4 r63
ld r0 5
mul r3 r1 r4
add r0 r4 r1
ld r2 r1
:p
anyway im gonna go on my phone
mines
just takes individual lines
and interprets it into python code
and executes it
im back
nahh
but first
it adds all those intepreted lines and adds it to a list of all the lines
then it exectes it
holy shid hes back
im hooked on board game arena has anyone tried it
Only one thing i tried this week was sololearn. And im the third in my league
uwu
uwu
.uwu
oh god.
just do it
.uwu
.uwu
^^ uwu <<https://discowd ʘwʘ com/channyews/267624335836053506/463035241142026251/1285938801771810869>>
.uwu
^^ uwu <<<https://discowd> ʘwʘ c-com/channyews/267624335836053506/463035241142026251/1285938801771810869>>
Someone really said that logic is invented in #python-discussion . Smh
fart
What do you mean? You've never invented logic?
is it not?
It’s discovered
Where was it discovered?
what are your subjective choices of axioms?
not sure if I'll stay but yes for the time being I'm back
wanted to reduce my screen time and my discord server count
and you ditched pydis of all servers 😭
😭
this was the only public active server I was in ¯_(ツ)_/¯
I didn't make the rules
post the taco cube
ALL HAIL THE CUBE RULE
C U B E R U L E
No identifiable form of starch means it is a salad
I admit I haven't thought too deeply about it but I've always viewed mathematics as something humans invented to make sense of the world
but also, in a way, I feel like this is sort of unfalsiable cuz I don't have a way to prove either side correct
what is a potato?
solid cube?
i.e. a new category?
a semi-sensible take is that the axioms are chosen/invented, corollaries from those are discovered
Universally, 1 + 1 = 2. This isn’t invented. This is based off of basic reasoning.
it is invented though
How?
we came up with it
Do you think 1 + 1 wouldn’t equal two in another universe?
sure
we defined what 1 and + mean
the axiomatic system under which 1+1=2 is logically true holds regardless of universe, and its properties were indeed discovered, but that axiomatic system was invented
How would it be logically reasonable for 1 + 1 to not equal 2 in another universe?
*1+1=2
If you don’t know then why would you make that claim?
fixed
i never said that it was true. i simply said it could be true
it is a very obvious way to make that axiomatic system, so it may seem somehow fundamental to existence, but it was very much invented.
How could it be true?
i dunno, its another universe
I am looking for the base in your answer on what made you come up with that conclusion that it would be possible
in fact, it was invented several times, incorrectly.
idk what the point of debating of 1+1=2 in another universe is
1+1 could be 0 with reasonable-ish axioms
Because my argument is 1+1 = 2 would be true in all universes
can you prove it mathematically?
It’s axiomatic
that's not how it works
you can say anything is axiomatic and it would be true
1+1=2 is not an axiom
You have one and then you add another one. That equals to two.
but what if there exists another universe in which it doesn't work that way
That’s not how mathematics work.
why not?
Because mathematics is axiomatic
as mentioned before, the universe doesn't matter, the chosen axioms do
who are you to dictate the laws of another universe?
what does that even mean
We don’t dictate anything. It’s all predetermined for us
mathematics is built around inventing definitions that describe ocasionally useful things.
tfw math is occasionally useful
in the case of 2=1+1, they were invented to count things
math phds when someone finds a practical use for their research:
something something rationalism
that's leaning more towards the philosophical side
But no matter how you write the formulas or the equations. The conclusions to the answers will always remain the same (if your math is correct)
That’s why it’s not invented
yes, if your logic is correct and two people agree on the axioms, they must necessarily agree on the conclusion
have u seen the 360 page proof that 1+1=2?
not if you were to pick some different axioms
The conclusions to the mathematic answers were not invented
yes, if your chosen axioms represent the phenomena you're using them to describe accurately, they'd in fact describe that phenomenon accurately, regardless of who invents them.
(the proof isn't 360 pages)
I would argue that's not exactly a useful statement tho
162*
aint nobody readin allat
you could prove 1+1=2 in a few pages if that was the actual goal
they just threw it in later on because why not
you can just make up axioms which do not represent the phenomenon accurately, and then you get a different result suddenly
you shouldn't need much more than some succ
and fundamentally, mathemantics, unlike most science, is not actually about describing real-world phenomena
real
Sign up for the free Morning Brew newsletter: https://morningbrewdaily.com/halfasinteresting
Get a Half as Interesting t-shirt: https://standard.tv/collections/half-as-interesting
Suggest a video and get a free t-shirt if we use it: http://halfasinteresting.com/suggest
Follow Sam from Half as Interesting on Instagram: http://Instagram.com/Sa...
idk how to explain it but I think this gives me better perspective into this
the mathematical process is approximately - pick a definition, research what conclusions you can get based on that definition.
Now, there are some moderately obvious definitions, especially relating to geometry and counting and such, but even then, they were picked arbitrarily.
I have no explanation, only vibes
(fun fact: it is pretty damn hard to actually make a proper logical foundation for all of conventional mathematics that is sound and makes sense).
it's more like you kinda can't
I honestly don't remember what the status on that is
Gödel's incompleteness theorem and whatnot
yeah that thing
it follows from axioms that are chosen
It was definitely keezin time
Beech I'm Batman
That’s not an axiom then if you have to “make them up”
Axioms are references of facts that are proven.
.wa s define axiom
a saying that is widely accepted on its own merits
axioms are not proven
They are proof that has been established
i was taught in school that axioms where just things that we take for granted are true
nope. look it up
An axiom, postulate, or assumption is a statement that is taken to be true, to serve as a premise or starting point for further reasoning and arguments. The word comes from the Ancient Greek word ἀξίωμα (axíōma), meaning 'that which is thought worthy or fit' or 'that which commends itself as evident'.
The precise definition varies across fields ...
In mathematics, an axiom may be a "logical axiom" or a "non-logical axiom". Logical axioms are taken to be true within the system of logic they define and are often shown in symbolic form (e.g., (A and B) implies A), while non-logical axioms are substantive assertions about the elements of the domain of a specific mathematical theory, for example a + 0 = a in integer arithmetic.
sumn like that
I did
cuz it contradicts whats written here
source?
💀
ah
U beat me to it
Whats the proof that an axiom is true
isn’t finding good source documents taught in college
Not really
yes
You mean wikipedias sources? :p
well I guess at least learned
most of my geneds had writing components where a certain number or vetted academic sources were required
Well yes, you learn but youre not taught
honestly, wikipedia gets exponentially less useful if you have a degree on the topic 
I guess learned would be the better term then
i found myself using it a lot less after graduating
I like it as a starting point
you can't prove an axiom. for example the parallel postulate. it isn't true or false, it just changes what geometry you're talking about
Wikipedia sites their sources
well yea, its a great starting point
another starting point i like is rational wiki https://rationalwiki.org/wiki/Main_Page but mostly for anything involving pseudoscience or the like
I think that would be the case for any encyclopedia, they aren't supposed to contain in-depth knowledge on topics, they cover a bit of everything
I think that's likely to be the case in the future, when they get more reliable and common apps have an in-built way to interface with them
that is neat, axiom somehow simulatinously means "a fact that has already been proven", and "the foundation of a logical system on which further proofs can be built". In this case, I use it in the latter meaning. For example, when defining natural numbers, you don't prove that zero is a natural number, you state that zero is a natural number, and that the successor of a natural number is a natural number. Those are two axioms of natural numbers.
Bro what is going on with my math instructor?
today she got a call and everyone agreed her to pick it up
afterwards she explained that it was a doctor telling her that her mother is in a vegetative state
and she legit said "her health is sort of like a sinusoidal function, it keeps going up and down. She just about to die. Im sorry i interrupted the lesson guys, i did not come yesterday and i might not come a couple weeks in the future"
And went back to teaching like nothing happened
kind of sounds like your math instructor explained exactly what is going on with your math instructor
Agreed. Unfortunate that she can't take more time off but she is likely just focusing on the day-to-day.
People deal with grief in different ways
So since we hashed out the discussion of mathematics being invented or discovered. Can we all unanimously agree that the mathematical formulas are invented and mathematical conclusions are discovered?
math it's literally what is happening
descartes thought math was something that we born with
what's the difference between an equation and a conclusion?
Nahhh sinusoidal function is crazy
I misspoke. Equations have a conclusion in them
It's perhaps better to think of such math more as like painting, but with logic. It need not be useful.
yeah its a form of art
(But often is because the things we find interesting tend to be somewhat based on reality in some way)
(Nature gives us puzzles we like)
(In the past math was all constructive, and based on real problems)
(That's why Euclid's elements is all about constructing things (that have to do with physical (locally Euclidean) geometry (e.g. a house)))
what's with the parens did this turn into lisp-discord
(yes)

Side notes to side notes.
Trig for example came about from the physical based desire to compute volumes of domes and such (lots of cones, cyclinders). I wonder why...
@grave cove do you agree?
An invention is a discovery + some tool built from that.
So it's both.
is this a trick question. like that one puzzle where the waitress asks if every mathematician at the table wants water
You discover some math, then invent some tool from that (e.g. the quadratic formula).
The tool lets you discover more math.
No, they’re going to to eat, they’re going to splurge on the Coca Cola
You BETTER NOT try to offer them P*epsi
IDK why this question keeps being brought up. It's really straight forward IMO.
No major insight to be gained from this.
Engineers (for the physical version of this) focus on making tools mostly, and making them very good. A physicist might discover it first, but their tools are often pretty bad at first and they are not interested in making them really good unless they really need them for the next step they see.
(In reality people in these fields are a mix of these professions)
(All physicists in the past would tend to make their own tools (with the help of a lot of assistants), making them engineers too)
(Now these tools are so complex that you often need to specialize in them (a physicist might understand the general ideas of a lithography machine for CPUs, but can they build one? Probably not))
Both the discovery and the tool are considered "math." (invention is not separate from discovery, so it's not either or)
try it, it's fun:
When three professors are seated in the restaurant, the hostess asks them: “Does everyone want coffee?”
The first professor says: “I do not know.”
The second professor then says: “I do not know.”
Finally, the third professor says: “No, not everyone wants coffee.”
The hostess comes back and gives the coffee to the professors who want it. How did she figure out who wanted coffee?
and a bunch of numerical methods were super old, like used by the babylonians
“IDK” means they do, but they don’t know if all three do
When they get to #3, he doesn’t want any coffee, so he says no
So the hostess just gives coffee to the IDKs
based
A lot of math when presented as just the end result seems impossible to come up with until you realize that the way they do it is by guess and check (often numeric before analytical), just like in science. After which they get a general idea of what is probably true, and then assume it's true and try to prove it.
(It's an important step in math to "want something to be true")
If you look at old math, it's all a bunch of numeric computed tables by hand and then based on that try to find the pattern (this is prior to plots which were a major invention).
(Or it's geometry (because no symbolic algebra yet, which is the same thing written another way))
Babylonian numeric search was realizing that you can do binary search for guessing and that this was better (hot/cold).
(And that each guess it closer to the correct value than before so you can keep going, this is a major key insight)
(Early seed of limits)
bro loves parentheses
Maybe they want us to evaluate the sentences in parenthesis first
hmmmmm
bro speaks a lisp dialect
bro uses BODMAS
No way, its Guido
how a country block a site like X for the entire country
I get it now, the police come in with a warrant
and the own employees of the company have to take it down
initially brazil's equivalent to the FCC, Anatel, sent out notices to ISPs telling them to block certain IP ranges
ever since Elon bought Twitter, he moved their infrastructure from Google IPs to their own IPs and ASN
that makes it easier to block
now it would be more difficult had Cloudflare not cooperated with the brazillian government because now visiting twitter is like visiting any cf protected website, and the only way to tell would be through plaintext DNS requests or through DPI
this block is quite unusual as it's not the typical lousy "block DNS and call it a day" that ISPs typically do for stuff like piracy websites. it was an actual IP ban. couldn't even ping twitter's servers
that wouldn't work in this case because elon closed X offices in Brazil specifically to avoid retaliation by the government
Das what im saying
what did you mean by ASN? Autonomos System Number? It's it a layer above ip range?
what did you mean by ASN? Autonomos System Number?
yes
It's it a layer above ip range?
no, you can think of it as an ID given to ISPs
https://www.arin.net/resources/guide/asn/
An Autonomous System (AS) is a group of one or more IP prefixes (lists of IP addresses accessible on a network) run by one or more network operators that maintain a single, clearly-defined routing policy. Network operators need Autonomous System Numbers (ASNs) to control routing within their networks and to exchange routing information with other Internet Service Providers (ISPs).
so, it's correct to say that have a lot of variations on the routing policy across the world?
wdym
for example, the routing policy from a y country doesn't allow routes that access specific range of banned web applications
i think so yes
countries can choose to tell isps to not route certain ips or ip ranges
or route them differently
or the Internet Service Providers have a common standard that all they can communicate
so can an isp choose independently to not route certain ips without a previous court order, for example
it depends on the country
like cloudflare does?
im not that sharp on networking stuff
cloudflare is a bit different i think. they reroute banned traffic internally but still receive it
got it
bgp goes hard
border gateway protocol? bgp-4?
moon
bro has split keyboard
should also be coding in rust, and wearing thigh socks
a lot of python recently actually
also jfc, I have a diffmarker where one arm is 900 lines
🗿
guys, what kinda style should i go for?
Definitely not that
classic sky
||cranes||
classic birds
pink
look at this tiny mf thing
How doyou control a mouse with those things?
pretty
ant eater
mooncakes are not mice
what build r snow leopard
?
I love the emoji in your bio
am joking
somewhere in between
tail
But why is it efficiënt then?
Windows when they remove the anticheat from the kernel
comfortable hand positions for typing
I have a keyboard heavy workflow anyway, so I don't use the mouse much unless I interact with a web browser/browsing code
I read my preparation sheet before the exterminators came in and did treatment in my apartment and it says
“Do not be alarmed if you see increased pest activity for 7 to 14 days after the treatment. This is normal and it is the result of the treatment.” How is this a normal part of the treatment?
seems like something you should ask the exterminators
The pests are being actively threatened so they start doing more things than normal I'd guess
if your house is on fire, do you continue as normal?

Now, you might think it odd that after a pest control treatment pest activity would go up, but in some cases that can happen. The good news is, these spikes usually only lasts a couple of days and is part of the effective removal process.
A pest control service doesn’t use products to make more bugs appear in hopes you’ll hire them longer, but the products they do use can actually drive pests out of hiding.
seems chill
unless psvm is a certified pest control expert
oh nvm im slow
thats what hey werer saying
I also misread it 🥴
💀
https://youtube.com/shorts/t3gJIo7GCnY tape measure lore is INSANE
You can buy my books here:
https://stevemould.com/books
You can support me on Patreon and get access to the exclusive Discord:
https://www.patreon.com/stevemould
just like these amazing people:
Glenn Watson
Peter Turner
Joël van der Loo
Matthew Cocke
Mark Brouwer
Deneb
Twitter: http://twitter.com/moulds
Instagram: https://www.instagram.com/s...
yes
<input
type="checkbox"
className="tristate-checkbox"
checked={currentVal == valuesArray[0]}
onChange={(event) => {
cycleStates()
if (onChange) onChange(event)
}}
ref={(elem) => {
elem.indeterminate = currentVal == valuesArray[1]
}}
/>
is this not an ok way to make a checkbox element to change to the intermediate state?

what is that ref doing
have you considered useRef?
making that checkbox's current state as intermediate, based on some values
i m doing that rn
yeah but ive never seen anyone using it like that
but some guy saw that above code and said that this is a bad practice
also, both on change and a ref?
you usually only need one
usually you would just have an on change that does a setState()
now im doing it like this
useEffect(() => {
if (inputRef.current)
inputRef.current.indeterminate = currentVal == valuesArray[1]
})
const inputRef = useRef()
<input
type="checkbox"
className="tristate-checkbox"
checked={currentVal == valuesArray[0]}
onChange={(event) => {
cycleStates()
if (onChange) onChange(event)
}}
ref={inputRef}
/>
idk if im still doing it in the way, that'd be considered as a "good practice"
or, in the "react" way
that useeffect looks sus
where dependency array
i actually forgot how to use effect
ok, i'll include that too
also bro, idk why
but when i update a child component
it just updates every single parent component bro
why is it like that?
are you passing any state down?
and why cant it just update only the child?
what "child" are you referring to here?
im storing an object as a state
and im passing a value from one of its keys to the child
and i do supply that state's setstate function to the child component (this input tag)'s onchange function
so, does that mean that'll update the parent?
that input tag is in a child component (say B)
wait
what are the contents of on change?
if it contains a setState that updates the parent, then the parent will obv update
ok i cant believe that i actually forgot ohw states work in react
so, states update the parent component in which it is created, and thus re renders every single child component
am i right?
if u update a parent children will update with it
ok so, how do i make it in such a way that'll achieve this?
i need to share a value between the parent and its direct child
this value will be used to decide how to render a component using in-place conditionals,
like this
<input
checked={currentVal == valuesArray[0]}
onChange={(event) => {
setCurrentVal() // currentVal is from the parent component. and we're inside the child component
if (onChange) onChange(event)
}}
/>
but it should also not re render its parent component
is there anything like this in react?
the only thing i find like this in react is by having such value in useRef and passing it inside the child component does the job what i expected
but people said that its not how useRef should be used
why in place conditional ?
why not?
if you want something to persist across renders, put it in the state
but its re rendering the parents unnecessarily tho
is it a big issue?
or is it normal thing that i dont have to worry about?
usually such a small rerender is not an issue
iirc use memo and use callback can be used to prevent a Re render
i did use some usecallbacks for the functions that are defined under the child element
and that did reduce unnecessary re renders
but when i asked for some doubts in my code, he got so pissed off for seeing so many bad usage of usecallbacks
and said i dont need them
maybe i should take a deeper look into the docs
sigh time to start learning again
well yea rerenders are not that big of deal unless ur like rerender ing the whole page
ok
got it
im just over exaggerating for optimizing it to oblivion
and then i'd just start to do premature optimization
is there a cure to not to do it?
only optimize when there is something to gain lol
like if you can NOTICE the difference
optimize
i dont have much knowledge in dsa
by getting good at it, can i remove such paranoia in me?
mmmmmmmmmmmmmmmmmmyea
🤨
but the thing is, algorithmic optimizations where you drop the big O of something are rarely the optimizations you need
usually its something like caching, etc
buffering, async operations, using the correct API
etc etc
ye
W
this time I processed the onions and made the bechmael extra thick
made a big difference
Some greeks prefer pastitsio over mousaka. You should try to make it sometime.
oh interesting
oh, looks neat, what ingredients have u used?

looks pretty different from what my family makes
usually we use ground lamb + fried eggplants for the filling, and the top most layer is toasted pita + yogurt
only greek food i remember is souvlaki
oh, im assuming thats the greek version, the version we make is the middle eastern one
feta cheeseis goated
esp in greek salad
@granite tree look at my food.
@quasi blaze you too, since you wanted to talk about food (albeit not in a free-for-all channel like this one)
That is outstanding. Love moussaka (and pastichio or however you spell both
I never heard or seen this kind of food before
Would a fair description be this is shepards pie but with eggplant?
I do have eggplant and potatos to use this weekend, this might be the dish to use them
the top layer is a white sauce, not mashed potatoes
Today 10 girls asked me out
Ah
Apparently it was ladies room
If u are ugly, just show ur crush the more attractive female friends after getting friendzoned from them
Works everytime
$$$
do u guys serve ur massouka cold or hot btw
we usually serve it cold 
Hot usually
would you reject a lasagna? 
no, I would put sour cream on it
sour cream mixed with fresh thyme :3
so both bechamel and sour cream?
or would you put sour cream in it? 
NO BECHAMEL
I would put sour cream right below the top most layer
too most layer being cheese
now that I think of it, my lasagne is pretty unauthentic lol
🥴
that feels like a crime
and i like choccy pizza, what's more crime?
Choccy pizza is more of a cookie cake though
with fruits :D
some crime is fun and harmless like jaywalking or impersonation
u
u r mixing savoury and sweet here
😊
it's not like that's an uncommon thing
who cares?
@stiff robin I've been meaning to ask you about that 20+ year old "personal kit" repo of yours. have you written anything about how you designed it?
It's mostly just accreted.
do you have it pip installed everywhere you use python, or what?
Well... yes and no.
For personal use it's just part of my standard account install, with the scripts in ~/bin and/or ~/bin-cs and the perl in ~/lib/perl and the python in ~/lib/python.
For reuse I install the whole checkout in /opt/css, with an /opt/css/env.sh which sets $PYTHONPATH and a few other things so that it is found - users can just source that.
For project use, pip install. The more reusable/stable stuff is on PyPI: https://pypi.org/user/cameron.simpson/
Some things go up there to support other things, so at need something might get spiffed up a bit and published so that pip install can get everything required.
perl?
the last person I talked to who uses perl was my advisor, and I left academia to work in the NLP department of a certain company. and even here, no perl.
Well, I don't write any perl these days. I had a bunch of perl stuff before I moved to Python, which was something I put off for more years than I should have.
what feature of perl do you miss the most and why is it autovivification?
Once you've got an installed base of code, shifting languages has this barrier that all your modules don't help you anymore - they need reimplemnting as needed.
"autovivification"?
Perl's kind of succinct. For tiny things it's all right. I wrote a lot of object oriented perl too, but Pythons just better.
Miy personal philosphy on languages is use the "smallest" tool which succinctly and clearly solves the problem. So my rough hierachy is usually essentially shell, awk, python depending on complexity and the task. Was shell, awk, perl. Ovbiously it isn't a strict hierachy.
autovivification. it's how my uncle described a language feature where nested data structures are created implicitly. In Python terms, suppose that foo['bar'][0] = 'hello' doesn't require prior instantiation of foo['bar']
Ah that. Yes.
defaultdict and the like is your friend in Python.
autovivication is handy, but to me it's like os.makedirs vs os.mkdir. I almost never use the former, too prone to accidents. (Looking at you, Docker.)
does this mean, then, that you're never in a situation where python is too small for the task at hand? is this a statement about the scope of the projects you undertake, or your opinions about the scope of problems that Python can solve?
Depends on small. You can build a lot of classes, and classes on classes. Etc.
Squiggle is joining the chat?
Are you two alts of eachother?
Perl's regexs are a lot better than others (PCRE). Specifically having recursion makes it a full language. You can have named functions too basically.
I hold both of you in high regard, so take it as a compliment inasfaras my opinion matters.
There's recursion in Perl's regexps? Because I was pretty sure Pythons re module is PCRE compatible.
I'm not sure on re's state, it probably does not have recursion and is an older version of PCRE.
But either way, everyone tries to copy / play catchup to Perl's regex.
what about """raku"""
Raku is Perl 6, they renamed it.
(It's also like pygame-ce in the sense that it's run / maintained by different people)
I'm a little leery of using regexps in some turing complete sense etc. Perl's overreliance on the in parsing is in some ways a detraction - you've got this one powerful tool and it gets used for everything.
I'm a big regexp fan, but feel it's a bit prone to making cryptic fragile things. Back to my "the smallest tool which succintly and clearly solves a problem" rule of thumb.
I've never used Perl 6, I shifted mostly to Python from Perl 5, about when Perl 6 was new.
oh, you just reminded me of a coworker who likes perl. which undermines my original statement.
he just had his 35th anniversary with the company.
Yes, sometimes Perl looks like line-noise to the uninitiated, but to the
seasoned Perl programmer, it looks like checksummed line-noise with a mission
in life. - The Llama Book
This is a for a straight forward reason. People are writing their regex as one-off one-liners with no named variables. With proper PCRE you can write it like normal code and it's easy to understand.
And for that one-liner case, it's great, but meant to be used in an interactive environment, like vim.
... or sig quotes JAPH and all that.
To be clear I don't like a lot of Perl, but there are some shiny bits that bring it up.
It's similar to Fortran in that regard, and I wish new languages did not just completely ignore them.
Problem is that everyone tends to code in their domain, and use a language that supports that specifically. So those making a new language are only focused on things in their domain, they may often not even be aware of the other ideas.
I just realized this went over my head.
how so?
I thought the quotes here were referring to it actually being Perl 6.
if I use more than one pair of quotes, it's a shitpost with no particular meaning. but I am aware of how the intended sixth major version of perl ended up as a separate language.
my aforementioned advisor refused to acknowledge it.
Yeah, I was thinking about it from the POV of people that refuse to acknowledge it as its own thing that is legitimate. Not sure why this drama exists.
IDK the Raku lore.
ISTR that there were breaking syntax changes. Possibly large - I never really found out.
chat is this real
wait I misread this
I thought the cat walked 800 miles
fucking news outlets man
I actually really like that. Some people only have a domain they like. I use G'MIC for that reason.
When I go outside that domain, it's C++ or Python for me.
But even so, I rather use a DSL if it is good for it
@sullen pier re: #python-discussion message
I love weird decor, I guess? I have some skull (most probably dog's, but maybe fox's, idk) we found in a forest. I'm still sad that last fall we went to look for mushrooms and found a lot of bones (including vertabraes! it was some animal's old dinner - some bones scattered but also a lot in one place) but I didn't have anything where I could put them to bring home :c
I think I found cow skull fragments a couple of times
Now there's a title I never thought I'd hear
My dog has a fetish for hair.
Leg hair, if you are wearing shorts
So damn annoying
anyone recommend any good anime to watch?
naruto
its not an anime, its an emotional rollercoaster with lot of thrills and suspense
every character has a proper background story shown
which ll help u connecting
let the ss speak for itself
i read naruto > 10 years ago. only newbies say naruto
anyone who is not a newbie recommend any good anime to watch (please don't say bleach/naruto/boruto/attack on titan/death note/one punch man/ kuroko no basuke/haikyuu/steins gate/gintama/GTO/berserk/assassination classroom/full metal alchemist. i have seen those)
mirai nikki
really good puzzlling story with beautiful ending
darwin game is another thrilling anime
but short one
if u want 100+ episodes anime then u wont find good stories except the one u already watched
if i wanted to watch hundreds of episodes i can always watch gintama.. there is no anime greater than gintama.. it is the 🐐
assassination classroom is also fun if u want laid back exp
again seen those oldies
classroom of elites got new season
i'm looking for undiscovered gems.. not the already popular bc i have seen those
also time i got reincarnated as slime
ah the hidden gem i consider is miss kobiyashi dragon maid
cute and fun anime with one of the best animations
seen
the jiggling physics is 📈
chat get back up
you're too down bad
if u want some good romantic then The Quintessential Quintuplets is nice
u must have head of saiki K as well
talking about oldies, if u havent watched jojo then u cant talk about oldies
ffs
if u like fighting, u can watch whole series of baki
what part of undiscovered gems dont u understand?
why you gotta hate on everything??
if it is undiscovered, how do u expect anyone here to tell u the discovery fool
use some brain cells
hmm…
if it's undiscovered it is discovered it is undiscovered so it is discovered
¯_(ツ)_/¯
how about just an assumption
too
like someone says there are aliens but no one has discovered
in english undiscovered means not discovered by majority especially anime newbies like u. it means discovered by anime aficionados who know it's good enough to become popular before it becomes popular
they are discovered
in short "weebs"
idk

no
just
okay i m watching frieren now 👋
lol
typical weeb, asked to suggest some anime, then went to watch the anime he was already planning
xD
and who only talks by emotes 👎
emo-boi
it was suggested by an aficionado. not a wannabe newb like you
emo xD
ok a weeb suggested another weeb
Alright kids, calm down
and?
Brooooo
im hiring anyone who can do extensions for my project (wage free)
I lost the credit
project looks like this
i will dm link to a documentary thingy
its pastebin dw
So why not just call it a collab
h
hiring
"wage free"

I use spotify on lappy but never got a single add
CSS question. I'm only curious if it's possible, but is there something in CSS that can repeat parts of a rule? Something that matches all these paths: ```div section h1 div section div section h1 div section div section div section h1 div section div section div section div section h1 // and so on with repeating "div section"
div > section > h1
div > section > div > section > h1
div > section > div > section > div > section > h1
div > section > div > section > div > section > div > section > h1
// and so on with repeating "div > section >"
Search engines just keep giving me irrelevant stuff
Yeah, I don't think it's nesting
Probably need some preprocessing
Yeah
Lemme see if Less or Sass has it
I can't find anything about it
I blame enshittification
I've noticed that div section h1 is all that's needed for this scenario, but that's not what I'm talking about
Lemme edit my question
maybe check scss? dunno
No luck either
the :is pseudoselector maybe
That was my first thought, but I don't think it allows repetition
You would still need to manually add :is(div > section >) rules per repetition
would you?
if you can nest them things should work, no?
stuff like
:is(
div > section > :is(
foo,
bar
),
table
)
I can't think of any reason to be that specific and it's also slower to do this
This looks bonkers to me
dip * 46
booster * 50
🐟 * 8```
?
are game engines just abstractions?
abstractions for APIs like OpenGL and Vulkan and so on?
I think it's more than that
Everything's an abstraction of differences in voltage
But I'm not sure how you define an abstraction exactly
hmm
sure ig
Basically some code coupled into small functions or smth?
I don't know enough about game engines but there's a lot of stuff they do to make your life easier
Or rather, aliases
yeah they do make your life easier ig
Like ultimately you can say "this is all just an abstraction to draw some stuff on the screen with OPenGL" but idk
game engines usually do more than just rendering, e.g. physics, model loading
Ahhhh righttt
thanks
I think you misunderstood my question
I'm looking for a way to repeat parts of a rule, not pick any of two or more selectors
huh, I assumed you meant the ability to extract a common prefix
div > section > :is (
h1,
div > section > h1,
div > section > div > section > div > section > h1,
div > section > div > section > div > section > div > section > h1
)
```the ability to "repeat this one or more times" seems like an unlikely thing to exist as a selector
I kinda think so too
is div > section > h1 not a specific enough rule?
it would match all of these cases, wouldn't it?
It might be enough, but I thought I edited my initial post out of that
so afaict your whole list of rules
(assuming you meant to , them together)
ends up kinda just collapsing to div > section > h1
not exactly equivalent because of specificity stuff, but basically the same
That's true
Lemme find the code that made me ask the question
Actually, nevermind my question
having different styles for h1 in the same document seems like an odd decision 🥴
The code that made me ask my question has different properties for each repetition, making my attempt to find a single selector impossible
Now that I think about it, true
Why do you think you need or want such a specific selector?
Are you aware that if you change the layout of the HTML at all this will break?
> means direct descendent
I am, I was under the assumption that the HTML wouldn't change
To avoid repeating the same code
Well that's a silly assumption if you ask me!
If you don't want to repeat code then use less specific selectors
Like, why not just make a .section-header class?
(realistically, just a rule for h1 and similar)
Yeah, that's totally an option too!
I've been at jobs where nested more than two levels wasn't even allowed
I mean, why not just add classes for each different h1 at that point
Because your headers are likely to be all the same
Just different sizes
Have you ever looked at how something like Bootstrap works?
or same size in em
I think it's a matter of preference, but it's totally still usable
Tailwind is another popular option
i.e. presumably you'll want a similar size relationship compared to the surrounding text size
🌈 The more you know
which afaik is the default behavior for the header tags anyway
I would recommend choosing a framework and letting it do this kind of stuff for you, so you can have a good looking site without defining every little style like this
That's fair
- https://getbootstrap.com/docs/5.3/getting-started/introduction/
- https://tailwindcss.com/docs/installation
Both good options
is that your dog?
very cool dogs
im a cat person though
Eating chiles in Mexico wasn’t such a good idea
TIL in c and cpp, whether char is signed or not depends on implementation
and got -15 on a test because of this dangit
what the fuck
"please give me a negative q character" - statements dreamed up by the utterly deranged
who uses chars > 127 anyway?
ascii ought to be enough for anyone
well the question wasn't about characters, but overflow
and I thought chars stored 0-255
and the question was asking what this outputs
char d = 173;
printf("%d", d);
(the correct answer is the negative one)
Unless there was more to the question, the only correct answer is "it is implementation defined"
there is also a good case to be made for not using char for numbers at all
i.e. use uint8_t
in C++ there is also std::byte for the case of "this is just bytes of data, I'm not treating these numerically"
unsigned numbers bad in general
there are sensible uses
yeah
i think it's 1) treat data as bytes and 2) you actually want the wrapping arithmetic
if it is signed, it is actually UB to do this
signed overflows are undefined behaviour
did you happen upon a bad C course
it's actually the data structure course
why is this in a ds course? 🥴
data structures but it's actually just primitive data types 🥴
talked about data types (how the same bits can represent different things depending on the type it is)
which lead to how to represent (negative) integers
certainly didn't expect this when going into the course 🥴
if you mean ieee754, not really, we skimmed through it
how to neg integers -> how to turn decimal(floats) into binary -> recursion(???) -> arrays(now)
now that I look at it for the 2nd time, why are all these things in the ds course
prof briefly mentioned that it's like scientific notation then moved on to the next topic
that is indeed true
something like that
Oh. boi... Today has been a real blocked / Slack arguments day. Can i just please write some code?
I hate that they picked C for this over a language with defined overflow behaviour, but it does make some amount of sense to treat signed overflow as defined in that course.
we did this in assembly
which is also about the only language where a signed overflow doesn't indicate a bug in your code
our assembly class is like next year or something, so the timing is a bit awkward
for most floats
(-1)**sign * 1.<mantissa bits> * 2**(exponent - offset)
What does **sign mean? To the power of the sign? I don't get it
oooh I see
(the "most" here ignores: inf, nan, subnormals)
The illusion of choice

i can see myself sorting strings based on similarities and origins of their chars
outside ascii lies madness
and poop emojis
oh yeah, i didn't every chars. just a short bit over 100000 chars
Monty Python mentioned
clara
good boy
🤨
Android malware is boring
most of it is either really simple and obvious phishing or apps that hide from google play's crappy automatic checks
meow
He's so beautiful
horse posting hours
did he really say that
🥴
mrrr
mow!
Yes
do you guys know any apps that let you search the contents of images like in Google photos or Samsung or ios gallery?
I want something I can install on my win 11 pc or maybe an android phone that doesn't ship with it
I only know of one I heard of but it's MacOS only
And thus I don't even remember the name
!rule ad <@&831776746206265384>
Hi, we don't allow self promotion or unapproved ads. Appreciate your goals, but please dm Modmail first for approval
yum
I would use a fork
I am pleased you are back.
have you considered making a site for all these pics
One already exists
source?
i take these pics from twitter, go check them out
here are a few that i remember and that i found in image watermarks:
MarimoLoveSL yo3_wing ksk_no_suke Ohainko yukino_lr
Discord
I'm sure there are more accounts that I follow and download from but I can't verify
unfortunately I'm brazillian
Some silly Billy in an Indian call center forgot their f strings
"of these 50 states" as if there were any other states
there's a few countries that consider the US has more
Check reddit. When I actively went to r/foxes I could collect some nice good quality pics (have some photos of desktop wallpaper size as well)
Like my banner on discord
And my lockscreen is also a photo from r/foxes
the contrast with the text is bad 😔
but on the other hand, fox
nvm
I could've edited the photo to have darker top, but it's just date and charging info so 🤷 first digit of 24h time is easy to discern
and it's not like in 12h clock where there's just 2h between 11am and 1pm, so I feel the difference (the closest same second digit in 24h clock is 4h, it's hard to miss it, lol)
Smh they're not using snake case
dont u make shame of my kind
threads is filled with millenials and gen x's that all strangely glaze apple
this cannot be real bro
that number looks legit
chrome is a pile of shit, it keeps corrupting my extensions for some reason
happens so often
and everytime it happens, all my data is lost
it works on my machine 🥸
||jk I use brave||
chrome is the best PR campaign for firefox
but I use chrome for logging onto some other accounts that I dont use often
and it just works, never really had problems
sometimes a product ticks me off so much it makes me wanna grab the dev and run their ass on a cheese grater like in spongebob and this is such a case
im guessing its something to do with your extensions
extensions that had this happens:
- ublock
- raindrops
- web activity time tracker
- others
all of them open source except for rain drops, and it happens often on all of these
have you tried getting rid of all of them and adding them one by one
to see which one causes it exactly
that wouldnt fix it
every week, 1 of those gets corrupted and requires a re install
i dont see why they would affect one another
interesting, which version is it
i dont even have them on simultanously because i use different accounts
of chrome? i use the latest everything
I use 129.0.6668.70
Subscribe for more short comedy sketches & films: http://bit.ly/laurisb Buy Expert shirts & hoodies at https://laurisb.myshopify.com/ Funny business meeting illustrating how hard it is for an engineer to fit into the corporate world! Watch the next episodes: http://bit.ly/SquareProjectEp1, http://bit.ly/SquareProjectEp2 & http://bit.ly/SquarePro...
The thought occurred. While we laugh. Consider the interview question:
You are given an array of 7 lines. How many of them can be consider perpendicular to each other?
What would be your response?
"What is a line, in this context?"
Is it typical to work on silly IQ puzzles on the job? I'd like to end the interview right here. Thank you for your time.
Dont have the time or the energy for riddles in an interview process
I don't know if I go straight there, but if they start equivocating yeah
I'll take random leetcode over this nonsense any day
At least leetcode is somewhat applicable
My mind goes straight to a project I worked on that involved lines in arbitrary dimensional space so maybe I interpret the question more fairly
How is everyone?