#ot1-perplexing-regexing
1 messages Β· Page 168 of 1
Tennessee is where jack daniels is from
Double dipping on the last 2 but i'll allow it
whose that
Some whiskey guy idk
Also Elvis, and Dolly Parton
I just know the sauce from tgi fridays
dude people talk about elvis like hes the only fucking elvis
like everyone knows only 1 elvis
Yeah jack daniels is not a great whiskey so you aren't missing much
like every elvis is THAT elvis in every context, howd he achieve that
Being a rock star
bro is a globally defined variable
also hannah montana
true true
Nashville is the country music city (and destination for bachelorette parties in recent years), Memphis is BBQ and Elvis, Knoxville is UT football
Driving from one corner to the other takes about 7.5 hours, which is longer than what I drove down to the beach this past weekend
Duality of man
also hannah montana
Can someone help me just make a decision?
I'm working with Elasticsearch and currently trying to transform documents I'm fetching. Our API wrapper class interface is inconsistent and therefore the documents may be returned as document source dictionaries, raw document dictionaries (including metadata) or elasticsearch-dsl Hit objects. Trying to keep the interface identical to avoid breaking things and/or having to rewrite calling code.
I've got a helper named parse_fields which looks like this (here JsonT is just a recursive type alias for what a JSON object can be):
def parse_fields(
data: JsonT,
*,
fields: Iterable[str],
parse: Callable[[JsonT], JsonT],
) -> JsonT:
...
This works best for document source dictionaries, but for Hit objects I'm ending up with ugly crap like this:
return [
Hit(
{
**document.meta,
"_source": parse_fields(
document.to_dict(),
fields=["path.to.value"],
parse=my_parse_function,
),
}
)
for document in response
]
I'm torn between keeping it as it is, adding additional helpers to abstract away the transformation to/from Hit objects, changing parse_fields to seamlessly deal with either dictionaries or Hit objects, or rewriting the entire thing to return consistent output and the size of the diff be damned. Help?!?
When in doubt, rewrite
I promise it'll get better
One more rewrite is all you need
I'm quite literally in this picture
Do you like it?
I don't dislike it, so I suppose I'm neutral on it
Im weak
Lunch in spoons
I cant say no
iykyk
For such a trashy low budget pub their chicky burger is so good
Got me hooked
amen
π
The ambivalence of man
.wa s ambivalence
mixed feelings or emotions
Microsoft teams has aa bug where after you click join it flips the mic back open on its own
I'm gonna assume it's a front end issue where the state gets reset by poorly handled async calls
which is pretty typical in FE
tho it's a rookie mistake and the fact that it happens here is so ass
You mean joining a meeting?
It used to be the case where if you joined a meeting with fewer than 5 people it would auto unmute you regardless of your preference
Ask me how i found out
I dare you, ask
nah im good 
Anyway it was probably a bug thats been fixed recently
Was it:
unmute
loud fart
mute again
I dont see why they'd do it intentionally, besides straight up evil
It was
Unmute
Bunch of swearing for starting the meeting 2 minutes early
Mute
It still does this and I haaaate it
Teams still auto-mute if there are X+ people in a meeting. But otherwise tends to default to "mic on" and it's the worst
during covid, my school was fully into microsoft's stuff, so naturally they went with teams + the rest of ms 365 stuff
i had to install a separate program to keep my mic off system-wide just in case that happened
and happen it did afair
disable your mic with a needle
plug in your headset only when in call
(only do this if you own the device)
deserved tbh
teams is probably the worst software microsoft makes and theres a lot of competition
whats the best tho
npm? idk
Minecraft?
I think only software they currently make counts, otherwise you have too many options from the past
theyre responsible for bedrock so im not sure we can give them credit
I had a crazy situation a few months ago. At an intersection, one direction had flashing yellow lights and the other was green
Apparently one direction was being rewired or something like that, and they clearly haven't thought about the implications
And youβre just telling us about it now?
hm?
they bought it along with its devs tho
how much Microsoft involvement is allowed for it to be counted as Microsoft produced
github? vscode?
What
If Minecraft doesn't count, Github doesn't either.
can't say i know anything about the team behind github
all i know is it comes with a microsoft stamp
Yeah, like Minecraft (bedrock or not)
Both were bought, not originally created by MS
VS Code is fair I guess, people seem to like it
i think it strikes a good balance, good quality of life features without being overly complex, extensions make it usable for a wide variety of languages etc.
yea, the unadulterated version without the AI and telemetry bs
i.e. codium, the binaries of the open source part of vscode
I mean people seem to like the version with telemetry, too
genuinely harrowing to know that
I forgot codium existed. Is there any actual difference? I configured copilot to not do anything outside of chat and telemetry is blocked via my pihole
ai agents and all the related UIs are completely gone
steam is cooked for me
im not too bothered by the telemetry but im happier if there isnt telemetry
ddosed
pretty much whatβs happening yeah
Wrong reply :p
this is like top 10 most anticipated games oat
Oh wow I can't even open the web version of Steam Chat
... do they not separate their services in the backend?
Ah nvm
probably the load balancers that got destroyed
OOM just from the number of requests that went in
it's cooked globally
lol
I wonderrrr if they do things on premise lol
with a user base as big as steam I think they probably go with dedicated server providers all over the world
i feel like this could have been avoided if only team cherry went with preloading
im skiping class for silksong
is the game actually big enough to need that? 
how big is it?
not the size
spreading out people downloading the game
hmmmmm
LET ME GIVE YOU MONEYYYYYY
impulse vs momentum right?
unofficial
What if I told you my name is Steam
bro is john steam
they never imagined it'd get thus low
you know it's bad when the status tracker says they are getting DDOSed
Well, it doesn't say that
bold of you to assume discord mobiles ui is consistend enough for this trick to work
what if it's actually very italics of me
It's high noon...
@grave cove what are your thoughts on the Angela trailer
tank mains are so up
Frankly, I'm starting to dread her release
Like
She genuinely looks more terrifying than Wolverine
did we get an ability breakdown?
The Hand of Heven unfurls her angelic wing β It's Angela's time to shine! π
Before the Timestream Entanglement, Hela's agents kidnapped Angelaβs sister, Laussa. Hell-bent on saving her, Angela rushed to battle, but was pulled into a collapsing universe, together with Heven, the Tenth Realm.
A brutal war was waged between gods and demon...
oh shit
It's genuinely horrifying lol
like actually
I made a prediction that she might be able to pin people like Reinhardt from Overwatch
yoo this is lit
I didn't expect it to be that good
Don't get me wrong, she looks fun as hell
but there's no way she doesn't become a problem
Her flight is infinite, which I didn't expect
people thought pheonix was going to be S++++ tier permabanned from the trailer
She can displace people a CRAZY distance basically for free
and her health is one of the higher pools and she's still got a decent shield
im instalocking this shit
I agree, but I've never felt so horrified watching a character trailer
Even Phoenix I figured wasn't going to be too crazy
Her displacement is on a 3 second cooldown lol
Granted, it's on a resource meter
Just imagine the hell that Thor + Angela + Wolverine + Invisible Woman could unleash loll
Infinite space
holy cc
like, do you even need to win fights of you can literally just constantly push people back
Throw in a Mister Fantastic, even and like dear God
full dive team might cook them
Wait did you see the new BP team-up
I'm actually so annoyed that they thought that kinda team-up was a good idea
bp remains permabanned
Well, he is getting nerfed again
Maybe this time they did it right
theres absolutely no reason for a low ttk ambush diver to have 300 hp
good thing shes also getting nerfed
im actually quite happy with this round of balance changes, expect for cap nerf
no way it'll be half
most likely like 2 or 3 second nerf
I heard it was getting changed to 6 seconds but I suppose we take that with a grain of salt
also loki nerf
i think the big reason why loki was so op was because luna was op
luna nerf is an indirect loki nerf
Upcoming Season 4 Balance changes:
οΈοΈ
οΈοΈBUFFS
οΈοΈ- Scarlet Witch
οΈοΈ- Peni Parker
οΈοΈ- Invisible Woman
οΈοΈ- Thor
οΈοΈ- Blade
οΈοΈ- Dr. Strange
οΈοΈ- Moon Knight
οΈοΈ- Ultron
οΈοΈ- Jeff the Landshark
οΈοΈ
οΈοΈNERFS
οΈοΈ- Luna Snow
οΈοΈ- Emma Frost
οΈοΈ- Black Panther
οΈοΈ- Captain America
οΈοΈ- Loki
οΈοΈ- Squirrel Girlβ¦
like why are we deadass nerfing cap for the 4th time in a row bro
im pretty sure he has the 2nd highest winrate among tanks
he was also pick or ban in the tournaments i think
yeah and Mantis has the highest win rate period, but y'know
We'll have to see how they even nerf him tbh
I can see maybe a movement speed reduction
he's like an unkillable menace sometimes
i could get behind that i guess
It's the survivability that they keep nerfing
the survivability is what makes him him, yknow
strange might be back on the menu
I've been playing a lot of some of the characters getting buffed
in particular?
Tbh I don't think Thor needs another buff
but Scarlet Witch, Blade, Ultron, and Jeff
Idk I feel like he's been great this past season
I kinda figured the team-up with Angela would be enough to put him over the edge
i'd say he's better than ever but still not "great"
Also, Invisible Woman buffs could be interesting
I don't really mind her kit, I just hate how little damage she does
Like, people will say she's good against dive, but can't really fend for herself
I push em, now what
yeah you pretty much just have to go invisible and hide
Jeff could be another interesting one
I don't really know what they could possibly do to buff him
I hope it's the bubbles
I miss instant healing so badly
but I think they said it was his ult they're buffing
Presumably just making it taller or something silly
I'm not done reading but these are crazy
Jeff now has a support ult
It's Jeff! (Ultimate Ability) now leaves an 8m radius Healing Pool at the point of activation that heals allies within range by 100/s. Healing Pool lasts for 8s.
sheesh
kinda wild
Seol Hee's Ultimate Ability duration is getting cooled down. (See, we do nerf her!)
luna βindustry plantβ snow gets some much needed nerfs
also doesnt this make strange the tank with the lowest health pool?
yes lol
unless you count banner
making a frontline shield tank have 575 hp is diabolical
that's my area code too
lmao
@twin pollen personally i dont understand this in one of your blog posts
https://brassnet.biz/blog/pay-for-things.html
why exactly? i get wanting to benefit the small companies, but i refuse to pay a dime to google/meta etc.
In which I explain why I am moving away from free services.
just because you pay money
doesnt mean companies wont turn around and sell your data anyway
I pay google, and have pretty much since they got rid of the free tier of what is now 'workspaces'. While I would love to migrate my family off of that it is a hell of a lot to unwind. I also use YouTube TV because it is the best solution for my family for TV. I do not use anything from Meta. I have started to prefer paid services to free ones to the extent possible.
some would argue to just stop using Google / Meta / Microsoft services altogether
for small services I can agree with the sentiment but yeah... paying Google is not going to make them stop collecting your data
that was an example :p
google doesn't care that you're paying them, they'll still keep collecting your data
i'd recommend watching cory doctorow's pycon speech :p
the idea that "because you paid [big tech company], they wont sell your data!!" is dumb, because why wouldnt they? they'll give you features, and pocket that money along with whatever they make from your data because why wouldnt they?
Note: This video contains strong language that may offend some viewers. The opinions and perspectives within this video should not be considered official stances of the Python Software Foundation.
Cory Doctorow (craphound.com) is a science fiction author, activist and journalist. He is the author of many books, most recently PICKS AND SHOVELS a...
ultimately (and is also covered within the talk), this arises from a lack of competition and regulation
I was in the room.
thats cool
Post workout snack
Aren't you allowed flavor post-workout?
Hello I'm new here how do I make GTA 7 in python with turtle chatgpt and pygame?
@obtuse hare as u can see, they are sorta of grouped by color 
the white is beginner land for people learning the language
5-6 aka yellow would be easy
Lol
wolfie has returned
alrightly thanks man
no way me too
Hello
jus gotta kick out thuri and we are back to good old 2021 pydis
piping curl into jq surprisingly isnt terrible
im using bash for the file handling, which bash isnt terrible at, its surprisingly not shit
well that IS one of the intended use cases
developers very often intend things and very seldom deliver πΏ
but yeah it works neat
management moment
Nah that's so real lmao
jq is great
Pydantic is greater
1 binary vs p*thon and its shitty dependencies
things i like about pydantic: the whole thing
things i dont like about it: the first 2 letters of its name
@worldly mortar to your last message, we're in the realm of speculation now ofc :p
overall i just think that's an interesting idea too, although one question i have about it is that, as far as i've known, practical/classical physics and quantum physics don't exist separately from one another - in this sense, the "everything is quantum" statement is true
well i like to think of it that quantum objects have quantum properties such as randomness, and by linking them together they lose the quantum properties through linking, but also gain emergent properties that follow a seperate set of deterministic rules
quantum fields are still deterministic in relation to measurement, but at a larger sclae the meausrements behave differently
consider a deeply nested function inside a function etc. each function has a memoised cache of actions as well as an internal "measurement" program it can run
each step it can either take in deterministic rules and process deterministic outputs, or it can be measured and apply the new nesting structure, potentially calling more processes in a hierarchical cache system, and with relation to physics, this would be like the system behaving according to deterministic rules, or being measured and having its cache altered
(idk if that made much sense)
didn't take you for a Junker Queen main
i am half following :p
the nature of measurement seems to matter for this
but it is something we truly don't understand yet
i'd go as far as to say we don't even truly know if it's random
like, in the sense of the multiverse, there's no randomness, because it's not a single possibility that happens - all of them happen
so it is "deterministic"
i like to believe that the process causing quantum ohysics indetermination is caused by the same thing that causes the wave particle duality
and that it is not a particle but just two wave frrquencies / ampl8tudes overlapping
i.e. the ultra high frequency low amp wave is the direction and the ultra low freq high amp wave is the location
and the more you pinpoint the location, the harder it is to poinpoint a hugh freq wave point as well, and vice versa
i like to believe that the process causing quantum ohysics indetermination is caused by the same thing that causes the wave particle duality
i agree, and the same issue as measurement
the only time that we think things are particles are when we measure them
and that is also the only time we get randomness
ππππππππ
πππ
πππ
πππ
πππ
speaking from my exp, do not
nah it's separate to that
Fairly sure it's that
I suppose that makes sense
something something late stage capitalism
illogical and unnecessary laws being imposed
yadayada
Donβt they deserve to be paid for their work?
Whoever βnews peopleβ are defined as here
that's a leap to take from the justifications of that law
coming from someone who is from a family of journalists, the model for that exists, it's called subscriptions and works the same way now as it does 40 years ago, the avenues are just different
I just read the headline that says they need to be paid
the "legacy media" here is papers being sad that they can't break news in the same way the could decades ago
Yeah, WSJ and NYT always tries to demand I subscribe
broadsheet papers used to be able to shock nations with their front pages, and now they can't do that, and a lot of them never really understood the internet business
to be fair, I subscribe to NYT and The Telegraph online and I get one physical paper every day of the week based on who I think produces the best reads for that day
and there is still a population who does that, it's just much smaller and a lot of the papers aren't really exploring what comes next for them once that becomes an untenable service to provide
If I ever get a subscription to news it will be these people
https://ground.news/
yeah I did see that before -- last I checked I didn't feel I was getting my moneys worth from the subscription, it might have changed now
there's something special about reading a paper and having the stories be actually curated rather than being driven to news solely based off what is trending and what is sensationalist
I just want the little bias meter
My dumb brain just takes what people say at face value and gets confused when people have different opinions later
it's quite relaxing to go from some foreign affairs nightmare on the front page to a column on fishing or a spread about the history of devolution
Wait, isnβt sensationalism exactly what newspapers do?
Thatβs what the front page is
yes, but as you continue reading it's considerably less sensationalist
and it's a different type really
there's a difference between sensationalist as in "holy shit this is breaking news we've got to get this up in 4 minutes without checking all the facts" and a cover sheet that had to be edited the night before and sent through rounds of editors and subeditors and then get to the printers and then reach the shelves
of course it's sensationalist and is still designed to catch your eye, but it's generally done in a way that still actually presents a much larger amount of factual information
Canβt edit printed paper later
Untenable as in too costly to print physical newspapers?
which gives a much better reason to get it right the first time around
as in people aren't buying them enough to have it be a profitable business
the amount of apologies issued from online publications vs newspapers is astonishingly different as you might expect
not in UK at least, and not in the larger American cities last time I was there
most convenience stores in the UK sell the papers, then there are newsagents and supermarkets who will sell them, and then stands in the larger cities
last time I was in NYC, LA, SF, Seattle and Austin there were definitely easily accessible newspapers
I have pictures of American papers so I must've got them somehow
in fairness LA, SF and Seattle was one trip
any organization that does sponsorships for youtube videos is, as far as i'm concerned, probably trash
Sounds like youβre going to be pretty high up on the bias meter
How dare a marketing team run their ads on one of the most successful platforms in the world???
They should be relegating themselves to Truth Social!
wut
fine. i shall slightly lessen statement
i love how you can just download the entirety of english wikipedia for ~100gb
that's only text, though
i think this one contains pictures as well
because the one with no pictures is labeled with _nopic
huh, so it does. idk why wikimedia is among the places offering them, though
also, apparently wiki commons, where all the images reside, sums to 745 terabytes
kiwix?
yep
ok but a lot of those are unused
and not all used ones are used on a wiki
and not all wiki ones are on the english wiki
neat for internet outages lol
I think someone in our small county has to download it,
we might get into a bad war, Iran vs everyone
you can download it yourself right now
Download and browse Wikipedia along with hundreds of educational websites. Free knowledge anytime, anywhere, without an internet connection.
I know, but wifi is slow, and mobile data is expensive for 111gb
hmmmmmmm, steal from university wifi ig
two years remaining to unlock university
you don't need to download the 111gb version
how much is the nopic?
there is a ~50gb version that doesn't include pictures
since you mentioned you live in iran, the persian version is 12gb with pictures and 4.4gb without
have a look for yourself https://download.kiwix.org/zim/wikipedia/
someone made a bot and added all villages in iran to it π
thanks β€οΈ
ok counter point, non english wikipedia isnt great
id suggest you get the english ones
there probably isn't much knowledge in it
then machine translate to farsi
yea that
is there really no better compressed version
idk
how much does it decompress to i might try recompressing it with like
7zip lzma or zstd
cmon bro 111gb is like an indie game in 2025 π₯
openzim is compressed with usually lzma or zstd
π
I mean, until you decompress it
I recently downloaded all enWP titles
105 MB compressed, 406 MB decompressed
yuh text compresses a lot
and the photos are usually no bigger than 250px if you download only the thumbnails
Producers, you can make Python scripts in FL Studio. Neat!
ππ₯
wassup mfs
<@&831776746206265384> fuck you
!ban 1372503271289126932 low effort troll
:incoming_envelope: :ok_hand: applied ban to @fair cedar permanently.
bro isn't mindful of his actions
"low effort troll" lmao
do high effort trolls get banned too
They do not
π§
π
But yeah best distro depends on why you want Linux.
@sage veldt I understand thanks for sharing. Do you have examples of specific bloat that comes with distros other than Mint?
If you just want something to just work then mint and similar.
If you want to customize stuff from the start then arch/NixOs/etc
If you want to run on low end hardware then there's distros specialized in that.
Etc
I never had the feeling my ubuntu was bloated, so I wouldn't know what difference to look for If I'd had to try Mint today for example
nope sorry, just try to stay away from ubuntu lol (if it isnt some ubuntu spinoff like kubuntu or something), try experimenting and seeing which OS you like for a week, people tend to recommend debian/nixOS/arch/mint
research those
and see if maybe you like them
Will do that for sure, just wanted to know what specific components or app you coinsider bloat in other distros
I'm on Fedora and I don't have a lot of complains, it seems to just work. ||even audio||
Like, I could understand if you consider Gnome slow compared to other DEs
oh yeah fedora is a GREAT distro
pop-os is good for beginners
i moved from fedora to mint just because of the driver manager and software manager guis
The main thing people don't like about Ubuntu these days is the whole Snap thing. Besides that, it isn't bloated compared to any other mainstream end-user distro. I even reckon that Mint preinstalls more apps than Ubuntu.
the only complaint about fedora i had was its software installer thingy being buggy on gnome
You mean the OS installer? Or the Software program?
like the market place to install softwares
I agree Snaps can be annoying yes. Any of you running Hyperland? I'm super curious, but I fear I will get habits I cannot transfer to the work Macs :/
gulpp
i changed to pop os lol
this is so shit , at least on ubuntu , the snap package manager
I remember trying to update the system to the next version through this program and it just freezing to death
@sage veldt there is a difference. Mint does not support or test GNOME on its platform, may not keep up with GNOME releases in its repositories, and is overall configured for a Cinnamon desktop. Things will probably break or be unconfigured in subtle ways, and might break further every major upgrade.
I tried to install some KDE apps when I was using Mint Xfce. They hadn't updated their KDE packageset in years.
i had installed discord via the app store and everytime i had to update it , it wont install so i would have to delete and then reinstall , it was really a pain in the ass , should have just went with website download
soooo would you say for GNOME i should just install fedora?
or whats the most recommended GNOME distro for a newbie like me
I'm just using Discord from the browser. The "desktop application" is a website anyway
but a Firefox tab shouldn't be able to execute arbitrary code on my computer if the application programmers are not very good
Same, I'm not sure what benefit I get from installing it other than the activity "rich presence" integration maybe?
Fedora is a good choice yeah
is fedora good for a total beginner like me?
pop os is also good :3
i like having an app dedicated to it , i dont like having it in a browser xd
yeah, "playing sgt-puzzles for 16 hours" is not worth it for all the downsides and the need to update it manually on some systemes
if you have an nvidia gpu probably not
"shouldn't" putting in some heavy lifting in this statement.
nah its a laptop
lol this is all happening on a windows 11 trashy laptop
laptops can still have nvidia gpus
I mean, actual browsers are pretty well sandboxed. If they're not it's a gigantic vulnerability
pop-os looks like the most windows-like distro out there
that was in reference to electron having more access to a computer than a normal browser tab
i mean if your browser is compromised you have bigger thnigs to worry about than discord devs doing something malicious xd
"Windows-like" is barely a thing when it comes to any distro
"most" windows-like
99% of the time, it's the DE that kinda looks Windows-y
i mean just use windows if it does what u want
but that's not really distro-specific
100%, just talking about the looks. And it's good, it can bring more people from windows to linux
ehh
It takes a lot more to get people to switch
but when they do decide to switch, DE is the first thing they see
its not only the looks, but the ideology of mostly using GUI apps to do stuff with the computer
I think when certain distros advertise themselves as being "beginner-friendly", it feels a little disingenuous
because the reality is... Most of the distros do the same things, it's just other distros don't advertise those aspects
When it comes to Pop!_OS, I really struggle to find any concrete pros anymore
It used to be that Pop!_OS would automatically install NVIDIA drivers and stuff, but Ubuntu does that now, too
they're developing their own DE, now
chat I MIGHT be on meth
I assume you mean Cosmic
Do you guys also run linux for work? I'm always a bit wary to learn too much of a distro becaeuse then skills are hardly transferable to the work Mac
I kinda heard COSMIC came as a response to a bit of a spat System 76 was having with GNOME upstream
who hasn't had a spat with GNOME upstream lol
Mac has basically the same shell as Linux, they both have zsh
but not all binaries from Linux are in Mac
something something System 76 did a lot of in-house changes and never contributed them, but I might have that story all wrong
sure but the way you manage your whole DE while developping on linux is complex to transfer to Mac
Because you cant change your DE on Mac
well, the caveat here is that not all distros come with zsh by default
of course, little of what you're doing on macOS is going to be zsh-specific
I struggle to think of any that do, actually
True, but most shells are interchangeable
I think it's some of the "user-friendly" distros that do
the smaller ones
maybe like Manjaro does
I don't use gnome because it's slow on my main laptop, i7 3rd gen lol
But on my main rig I use fedora
tbh it's a bit annoying to use anything other than GNOME on Fedora
Yup I know that. My trick so far has been to use i3 on linux, and something that gets close to it on Mac, like yabai or aerospace
I never used Mac tbh
I've had to use macOS 'cause someone contributed a Mac mini for a project I was working on
I don't think they were shipping modified GNOME sources, more like they were preinstalling their extensions. And they just felt that they were being restricted by only being able to make extensions to GNOME, and having those extensions break every update. It's not like GNOME upstream wanted that functionality themselves.
Ah you're lucky, I would love to also work from Linux
import sys
def container_size(container):
return sys.getsizeof(container)
# fyi this sill probably crash your system
def analyze_containers(sizes=(0, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000)):
results = { 'list': [], 'tuple': [], 'set': [], 'dict': [] }
for n in sizes:
data = list(range(n))
containers = {
'list': list(data),
'tuple': tuple(data),
'set': set(data),
'dict': {i: None for i in data},
}
for name, c in containers.items():
total = container_size(c)
per_item = total / n if n else total
results[name].append((n, total, per_item))
return results
def print_results(results):
for name, measurements in results.items():
print(f"\n{name.upper()} efficiency:")
total_bytes = 0
total_items = 0
for n, total, per_item in measurements:
print(f" n={n:<5} total={total:<8} bytes per-itemβ{per_item:.2f}")
total_bytes += total
total_items += n if n else 0
if total_items > 0:
overall_per_item = total_bytes / total_items
print(f" >>> Overall avg per-item β {overall_per_item:.2f} bytes")
if __name__ == "__main__":
results = analyze_containers()
print_results(results)```
it crashed my pc lol
It was probably a lot of things, I don't remember any of the specifics
I remember reading an argument either on a forum or a pull request or something
I wish I could find it but idek what to look up lol
btw ironically this experience was so like bad that it's my #1 reason for being a bit of a macOS hater
I literally could not figure out how to "uninstall" stuff lol
turns out uninstalling isn't really a thing, there's only deleting
when you remove all the ui gestures and shit it can feel better
um guys how do i install fedora on mint now π
what are you saying π
look
me holding down a button to try and figure out how to uninstall stuff
(the icons just start wiggling at me, as if to taunt me)
just install gnome
Fedora = distro
Mint = distro
you do not install distros within distros
make sure everything that is important to you is saved in another drive than your main and boot drives
qemu
yall got my question wrong entirely
fuck this
oh
well if you mean to replace your distro
let me introduce you to virtualbox
does it also have Windows? is there any important data on Mint that you would like to preserve? would you like to preserve the Mint install itself?
refer to my reply
yes
you can probably do that with the installer for Fedora
just installing over Mint
nope i wiped my drive clean of windows, theres no data on mint, i just installed a clean install of mint and decided maybe fedora would be a better pick for a newbie like me
the GUI installers usually have a built-in partition manager or something similar
even Windows does
alright then, get a usb
install ventoy to it
yeah then just put the Fedora ISO on the USB like you did for Mint, and the process is basically the same.
get the fedora iso
yeah, just install Fedora as you did Mint
it's really just that simple, especially if there's nothing on the drive you need/want to save
did he use rufus or ventoy
also what makes fedora easier for a beginner over mint , im not sure
gnome
thats about it
btw with the different package format do i just
sudo dnf install (package) or whats up
(the partition manager in Fedora's installer used to be unbelievably bad, but I tried it recently and they've completely overhauled it. it's really nice now)
or do i just keep mint for now
yeah
y'know someone told me that Ventoy kinda breaks SELinux
you can just do dnf help if youre stuck
false info, used it a multitude of times and never had any issues
π
i installed fedora with ventoy on a hard drive(!!!) and it didnt break selinux for me
tbf, I have no idea if any of us know what breaking SELinux even means
'cause I sure don't
only place I see SELinux being mentioned is XDA 
I just remember getting a little yelled at one time in the openSUSE Discord
less secure installation
SELinux literally means security enhanced Linux
this benchmark doesnt make much sense, atleast the "per item" and "overall average per item" stat
just go into the source code if you want to know the actual characteristics
how would Ventoy break SELinux after installation? 
I don't get the mechanism
yeah the total amount of bytes is what matters
this is severely affected by the growth pattern. the amount of bytes is the same for 100_000 as it is for, say, 162_144, because mutable collections overallocate to get O(1) ammortized appends
care to elaborate?
same here
oh, it might be just for persistence
oh yeah
I use persistence on an external HDD and never had any issues
rufus glazers would do anything to prevent multi-iso drives
https://github.com/ventoy/Ventoy/issues/874 that is a wild screenshot π nearly NSFW
tbf, I heard this from someone who doesn't even use Windows
oh good lord
what's worse is how much I want to wipe down that screen
how do you even fiund this π
I was just reading the linked issues from that first Ventoy issue...
do you see the part of the screen where there's no dust
you can tell someone just wiped their finger across there lol
I did actually know that Ventoy can break certain things
but it's more of a rare issue
some offline installers fetch packages from your USB, and can't do that when installed with Ventoy
i wonder if people rice on linux mint
now i wanna make my mint look cool too
it's not something that's specific to like Arch or anything
thank you lambda
very cool
literally absolutely nothing stopping you lol
yeah those rices look very cool
oh this is interesting
apparently Ventoy can break certain kernel cmdline parameters
'cause it does its own manipulations of them
hey what the flip why is my laptop still slow on linux mint!!!
so like if for whatever reason you need something like nomodeset, there's a decent enough chance you're just out of luck
????????? go test
lol no thanks
I did have it break many times on openSUSE though
I use Ventoy btw I'm not trying to get people to stop using Ventoy
ik ik
idk for me it crashes like every 5 seconds
uhh
well that sounds more like a sideeffect of something else being broken tbh
what distro is this again
mint
not a clue
I suppose there's always something like Vesktop
I've heard it works better on Linux for some people
by the way do linux users also get virusses?
its possible, but usually happens in different ways from windows
on linux you mostly use trusted open source software, but some packages can get infected and then, well, hope you dont have the infected version, and then you dont install/update them until the issue is fixed
obviously if you download a random executable from the internet it can still be malware
A few years ago I accidentally installed a malicious PyPI package. I was saved by the fact that it was only designed to work on Windows
alright im liking linux so far
why
goat?
that wallpaper is cool
ikr
"hey what's the arch linux command to remove unused packages"
"sudo pacman -Rns $(pacman -Qdtq)"
"oh okay"
who the hell decided that was fine
the stuff on the rhs looks so out of place
rhs?
right hand side
o yea
no i just added it in to track my cpu/ram usage
since this is a laptop i havent really used
you can expand them into long options
but because normal tasks in pacman need multiple flags unlike other package managers, most users write and communicate using the short forms
like -Syu can be --sync --refresh --upgrade, but that's really long compared to update && upgrade that other package managers have
how do you explain Qdtq
and why is -S uppercase
the uppercase one is the main mode
-Q is query
-R is remove
-S stands for "sync" iirc
--query --deps --unrequired --quiet
holy shit bro this laptops cpu gets to 100% real fast, any tips? its a celeron intel cpu
It's always made me laugh how like unreadable pacman flags are
one man's dist-upgrade is another man's -Syu
If the main modes would just be subcommands it might be easier to read.
pacman remove -ns, pacman query -dtq, ...
"dup" if you're cool
meanwhile apt-get has like 3 different upgrade commands
full-upgrade
oh full-upgrade
yea
isnt full-upgrade an alias for dist-upgrade anyway in modern apt versions
or like
they do the same thjg
dselect-upgrade apparently exists
send me ur wallpaper pls π
pacman has just -Su plus some flags to add behavior or whatnot
e.g. the -y flag syncs the db first
and those two compose
like -y is a sync local package db, -u is upgrade using the local db, -uy syncs the db and upgrades
tbf I'm mostly coming from openSUSE and we've really only got zypper update, zypper dist-upgrade, and uh... I think that's it lol
what are the semantics of those?
update is for singular packages
dist-upgrade basically just updates your repos (and updates your packages)
I think on Leap it's a different story
ok, all of those are part of the sync command in pacman
-S pkg1 pkg2 install/upgrade specific packages
-u effectively adds all out of date packages as targets
and it composes, so you could upgrade all packages and install some additional ones
it's pretty well designed imo
alias brick-os="pacman -Syu"
real
this only bricked me once in 2 years, was because new nvidia drivers were incompatible with a new kernel version
errored on hello world π₯
ur code is right the error is smth else though i cant tell what cuz the text is in a different language
do you actually have python installed?
it complains that it can't find the executable
that command looks like it was generated by VS Code's run button
at that path?
im.. just gonna install pycharm
it'd be weird if it did that without there being Python there
it thinks you have Python 3.13 installed at a certain path
but clearly you do not lol
erroring hello world must be an achievement of some sort
did you select the interpreter in VS Code?
it's easy to error anything if it's trying to run an executable that doesn't exist
doesnt matter now i just installed pycharm
its for learning python only anyways, ill probably likely maybe possibly perhaps i dunno fix vscode later on
Β―_(γ)_/Β―
(this is why I unironically recommend getting used to running python from a terminal)
gulp
less magic, less layers of bs that can go wrong
tbf it's not really an error with your code
or did you?
go to your installation folder
we should make a gamma cult @fossil hatch
bro can you please help me
i downloaded python
but the download folder
isnt showing up in program files
nevermind pycharm somehow found my interpreter
where have i gone wrong in my life
well, you don't have a variable named bro
you probably wanted a string, whose value is "bro"
bro is the value of the variable first_name
it thinks bro is the name of another variable
if you want a string, you need to wrap it in quotes
there's a difference between x = y and x = "y"
hello
hello
I saw two different species of squirrel fighting over a tree today
one was a small black one, and the other was a large brown with with an extremely bushy tail
and the big one was chasing the little one around in circles on the tree
until the little one finally left
aww
A quick look at the Google Mangle language.
π¬ Topics:
- Googleβs new Mangle language;
- Built on Datalog principles;
- Handling messy, scattered data;
- Deductive database programming;
- Queries across multiple sources;
- Built-in reasoning engine.
π Learn to Code with Scrimba (20% off Pro):
https://scrimba.com/?via=AwesomeCoding
chat I need more query languages
I need more
Is it another Prolog/Datalog dialect?
ayup
google, huh? so when are they gonna kill it?
next layoff is best bet usually
it's just a promo project anyway
this looks like some computer magic tbh
like they made his face big and buildings small?
what is the shortcut to delete a full line in mac
β + Backspace?
youre right
@bleak lintel i love your bio
Where's the guy who keeps posting the 6 7 gif
cc: @thick ore
It looked like this during the outage
just
I got this
pydis got really selective
I think there were only a few spots left for pydis members and that's why we had to put up an application process /j
What is 6 7 ?
13
literally no idea
!eval print(6*7)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
42
Congrats
smh do yall not remember your time tables
Now go to bed
I lost mine before I even got home from school that day
thank god it's 42
Not entirely sure a copy ever actually made it into my binder at all
I did just not with 100% certainty 
I wish I had kept mine
I donβt remember the day the teacher handed out the printed copies
But I very clearly remember the day we got asked to pull them out and I was the only kid that didnβt have one
oh no
that's so sad π’
I would've felt a bit self conscious at that age if I were the only kid with no times tables lmao
I hope I didn't wake you up mr doggo
But you had one in your brain, right?
Right??
How did google know i was gonna search up aluminum melting point?
I havent made any prior searches to aluminum, or melting.
While i was typing it out i whispered "melting point of aluminum" to myself and it heard it?
Does your search history indicate you will most likely ask about aluminum or was that a random out of no where question
Out of nowhere
i searched up stuff about my cat and driving ed test answers for 2 hours
interesting
The other day i was talking with my brother about the history of unix and then youtube recommended a video from AT&T archives about unix
theyre listening in bro
theyβre in my walls
sorry i borrowed your accounts and had to search some stuf up
ok but why did you think about aluminum?
because they can tell if, for instance, your friend was doing a project on what kinds of beams jet fuel can melt and then you had a ten minute whatsapp chat
or whatever
it doesn't necessarily mean they're listening in, but it sure can seem that way
there is enough data on you and your friends to target ads to you without needing to listen in
not that they are or aren't, but they really don't need to
Does anyone else make a todo list like this? lol
i was thinking about how practical making a car chassis out of aluminum is, with carbon carbon brakes (800-1000 C). and i wanted to see if it can theoretically handle that
i DID NOT write this down anywhere. sent to no friends, this was just a thought i had while playing a video game and i went to search it up
that to do list looks like it is made for cryptographers with 80 years experience in cryptography
are you writing a 3D rendering engine? haha
todos in code? No lol
Empty functions when building something out, yeah
TODO comments, not in the code file itself. I keep a To-Do list in OneNote for my work
yeah todo comments are nice
ruff has a cool lint rule that enforces you to link to a github issue when you add a TODO
I used to use todos in code, but have moved to github issues.
Co worker routine:
- break build
- "@devops your pipeline doesn't work "
In today's case, they migrated a pipeline and then kept using the old one
St. James's Square?
She's buried not far from where I was in Nottingham alongside Lord Byron
Yep
I used to eat lunch in this park for 10 months
I just saw this plaque now
That's from flake8-todos
Credit where credit's due, ruff didn't re-invent the wheel, it just gave it a lot of grease
you also wouldnt care if it was wrong, and given how many searches active internet users do, some of them will be guessed
Fair enough πβ though it's actually for my dumbass with 3 months of python experience
Hell no, I'm honestly way too dumb to ever do that. I am, however, writing an addon for Blender which works with 3D
It would be pretty crazy to write something like that in python though lmao
Writing an addon for Blender is something that's hard for me. I consider you a expert. But, then again, I don't use Python that much.
I'll keep that in mind! As a couple people have mentioned, GitHub issues/a separate todo file are possibilities. I do have a repo with my code on GitHub, so I imagine working online rather than uploading occasionally is the way to go?
I have a mental model of what I want to do with code. It stays with me.
Thank you, man! It's actually not that hard once you get down the basics, but it is a major switch of mindsets. Blender's python module (bpy) can turn it into more of an object based language which was the main thing for me
If you have previous experience with c++, I imagine it would be a lot easier to become acquainted with
I know the basics of Python. Looking at .obj import script is intimidating for me.
I do, and C# as well. My main language is G'MIC though.
I do the same thing to some degree, but usually when i take my addon for a proper test run, I encounter a lot of issues that I find hard to remember
It also lets me brag about bug fixes and new features in updates lol
That's actually really impressive! I don't have any experience with c++ or c#, but I know Arduino C
What kind of applications do you build?
None. I make image processing filters and stuff related to image processing.
Now that, is cool.
Yeah, this is one of the thing I made. Not just editing images:
for editing images, I do stuff like this:
i once wrote a little tool that picks up # TODO: <...> comments in your code and raises them as github issues for you
was fun
TODO comments get forgotten and turn into SHOULDHAVEDONE
do you know how many year+ old todo comments i see at work

True story
β grep '"1"' results.csv > ./results.csv
grep: input file βresults.csvβ is also the output
cmon gorp just copy it somewhere
ok on a second thought dont, this makes sense actually
smart grep
gerp
Yeah, it's not even possible
Grep doesn't get a chance to do it
Meanwhile, jq will overwrite the file without question
Sounds nice
Some modern linters also have lints like "TODO should mention an issue ID" which is nice to have (usually goes in the ignore list)
The whole todo goes in my ignore list
The shell will; jq gets no say
What is grep doing then?
Grep detects it's the same file. But by that time it's too late anyways; the file got truncated already
semgrep
yeah, the file was cleared
Incursion?
Where and by who
People need to chill
US blowing up boats
Israel bombing qatar
Whatever is happening in Nepal
Riots in indonesia
Some boomer just shot Charlie Kirk...
And missed
they're thinking its not the old guy
did you see the video dude literally got shot in the neck artery i think
charlie kirk
where's the bad part
Did he die
Kirk allegedly died?
Well, he got shot in the neck so (looks quite gnarly too).. I mean idk
More information to come I guess
Shoot him again
This is why you always double tap people
Class, take note
I've played metal gear solid
And hitman
lets not build an incriminating digital foot print
fair
Also i probably would have shot better
Never shot a gun but i have a feeling i'd be pretty good at it
there isnt much better than that
Got steady aim
All those years playing cod in internet cafes
They've prepared me well
he is confirmed dead
And also i had to go deal with bureaucrats π€’
confirmed by a reliable source
reliable source is cnn reporting on trump post
the conflictsthat happen on current event pages are insane
like if you dont submit within literally seconds you get in a conflict
yesterdayt i spent 10 mins trying to fix grammar
Low latency wiki editing
π
Is it me or do some of these newish anime shows have garbage intros
Also whats with the 3 min intro song bro
Its 25 mins total just get to the fucking point
ALIWMS
Fr?
It was so crazy i lowkey thought the video was fake
You think they need an actual digital footprint to arrest you?
Lol
triple tap them, even
social media has gone mental about itπ€£
oh that's pretty close
might as well be a 3d engine lol
it's sad
im looking at many places in the flight radar map with many government helicopters looking over us
civil war is a possibility
no, but it usually helps
it is
It tells which tool first and foremost on ever rule
yeah
I'm seeing parts of the debate and it seems he was literally saying just that when he got shot
doesn't make it right but we gotta start the story from the start when we talk about violence, the phrase "political violence is bad" obscures what made this happen in the first place
real
he died doing what he loved π
yep
it doesn't make you think that. You read a comment of someone else saying this online and are repeating it
<@&831776746206265384> can a moderator act on this
!silence
β silenced current channel for 10 minute(s).
Graphic descriptions of public deaths are not appropriate here, so I've cleaned that up
@tardy rain "shoot him again" isn't appropriate either, but I'm letting that slide since it's been a dozen hours and didn't lead to anything
This, however, is flamebait. You should know better
!unsilence
β unsilenced current channel.
π€·ββοΈ anyway
this one was arguably worse since it literally was a call to violence
And starting a flamewar helps how? You could have just pinged us


