Manage entire Python projects and even Python itself with a single unified tool.astral.sh
An OG in 3D printing is taking on a new, but highly successful, upstart in the industryJeff Butts (Tom's Hardware)
Eh, it isn't so bad as long as you take precaution.
Wear gloves and a mask, and make sure to keep your tools separate.
Vice President Harris and President Biden will make their first joint campaign trip next week since he dropped out of the 2024 presidential race, the White House announced Friday morning.
…
Politico reported that Harris now wants Mr. Biden's support in battleground states such as Pennsylvania and Michigan, where he's still popular, especially with older white voters.
But he would ensure that the spotlight stayed on Harris, embarking mainly on a limited campaign schedule in the fall, the outlet said.
Vice President Harris and President Biden will make their first joint campaign trip next week since he dropped out of the 2024 presidential race, the White House says. They'll head to Maryland.CBS News
Fallout: London is a must-play. The marriage of Fallout 4’s more modern gameplay and New Vegas’ exemplary role-playing mechanics is a match made in heaven, one that occasionally surpasses Bethesda’s 2015 game.
Fallout: London carries along all the important Fallout aspects, but at the end of the day it's new in all the right ways — like no Fallout game yet.Trone Dowd (Inverse)
Hey all, I'm British so I don't really know the ins and outs of the US healthcare system. Apologies for asking what is probably a rather simple question.
So like most of you, I see many posts and gofundmes about people having astronomically high medical bills. Most recently, someone having a $27k bill even after his death.
However, I have an American friend who is quick to point out that apparently nobody actually pays those bills. They're just some elaborate dance between insurance companies and hospitals. If you don't have insurance, the cost is lower or removed entirely. Supposedly.
So I'm just asking... How accurate is that? Consider someone without insurance, a minor physical ailment, a neurodivergent mind and no interest in fighting off harassing people for the rest of their life.
How much would such a person expect to pay, out of their own pocket, for things like check ups, x rays, meds, counselling and so on?
Minetest 5.9.0 has been released with performance improvements for rendering and map generation, new graphical effects, and much more.luatic (Minetest)
It’s a nice shot of nostalgia if you’ve dropped out of Minecraft for a while. I didn’t realize how hard the game was haha. Died so many times just trying to build a base.
Had wood floors down and came back onto the server to find a lightning storm caused a fire and burnt down all my trees and exposed wood floors 😭
I’m in Canada and I’ve had opticians do this. They are full of shit. You need your distance between pupils and prescription (and possibly cylinder measurements if you have astigmatism) to buy glasses. They are preventing you from buying from other people and are trying to convince you that you must buy from them.
Email them asking for the prescription and cc their head office if they have one. If they refuse, tell them that what they are doing is illegal in Canada. An optician MUST give a patient their prescription but it does not require the distance between pupils.
cross-posted from: https://lemm.ee/post/39437325
SanDisk introduces the first 8TB SD and 4TB microSD cardsBrad Linder (Liliputing)
SDUC supports up to one hundred and twenty eight Terabytes
Who in the world requires so much Storage on a tiny SD card?!
Luckily there is a m.2 slot in the deck 😉
And in general as well, does it make more sense to use m.2 Type-2230 SSD instead of SD cards, these days. Way faster and way more robust.
Not really super feasible for the average user to crack apart the plastic casing and reformat the new m.2 slot (since there is only one) with a new SteamOS partition.
I think you’ll find 95% of all steam deck users will prefer popping in a microsd than doing some pc building.
It's not too hard. Make a direct copy of the old drive to an external drive. Install the new drive. Do a direct copy back onto the new drive from the external. Expand the partition to the new size.
Or you can install the new drive and reinstall steam os.
Kamala Harris is calling for raising the corporate tax rate to 28%, her first major proposal to raise revenues and finance expensive plans she wants to pursue as president.Sahil Kapur (NBC News)
Techlore is educating people about digital rights, privacy, security, digital control, and other important topics to push the world towards a safer internet.Techlore
Ho bisogno di un aiuto:
sto programmando di cambiare smartphone per prenderne uno che abbia un os Android senza i servizi Google.
Ho guardato un po' in giro e mi sembra che il fairphone 5 venduto sul sito murena con il loro sistema operativo sia una buona scelta. Ho anche visto il sito di calyxos, che ti vende un google pixel 8 con il loro os appunto, ma non saprei.
Ma il telefono costa uno sproposito, ed è abbastanza bruttino esteticamente.
la mia domanda è: conoscete siti dove acquistare smartphone con queste caratteristiche?
recap:
-os degoogolato
-batteria rimovibile (preferibile)
-budget intorno ai 500 (anche meno se possibile)
Avatar
crosspostato da: https://feddit.it/post/10225346
Ho bisogno di un aiuto:sto programmando di cambiare smartphone per prenderne uno che abbia un os Android senza i servizi Google.
Ho guardato un po' in giro e mi sembra che il fairphone 5 venduto sul sito murena con il loro sistema operativo sia una buona scelta. Ho anche visto il sito di calyxos, che ti vende un google pixel 8 con il loro os appunto, ma non saprei.
Ma il telefono costa uno sproposito, ed è abbastanza bruttino esteticamente.
la mia domanda è: conoscete siti dove acquistare smartphone con queste caratteristiche?recap:
-os degoogolato
-batteria rimovibile (preferibile)
-budget intorno ai 500 (anche meno se possibile)
Avatar
Supported Android versions Android 8.0 – 8.1 (Oreo) Android 9.0 (Pie) Android 10 ("Q" - Quince Tart) Android 11 ("R" - Red Velvet Cake) Android 12 ("S" - Snow Cone) Android 13 ("T" - Tiramisu) And...GitHub
Su F-Droid è presente una versione libera e open source di Wordle, si chiama Gurgle e ha anche il dizionario italiano!skariko (Le Alternative)
Probably better to post in the github issue rather than replying here.
https://github.com/LemmyNet/lemmy/issues/4967
Question I'd like to hear everyone's thoughts on possibly making votes public. This has been discussed in a lot of other issues, but here's a dedicated one for discussion. Positives Could help figh...GitHub
Democratic candidate 2.1 points over Trump in FiveThirtyEight’s national averageMartin Pengelly (The Guardian)
Cool. Doesn't matter.
Vote.
Make a plan to vote.
Get your friends and family to vote.
Help your friends and family plan to vote.
Legitimate targets for what?
Who! not what, we are people too.
Legitimate targets for anyone with honor and dignity. People normally don't like foreign soldiers strutting around their land or water. I know you wouldn't tolerate Chinese or Russian navies doing the same. Don't expect us to accept what you wouldn't.
Who wants to fight the US Navy?
Lots do. Even if the means are limited.
https://en.wikipedia.org/wiki/USS_Cole_bombing
My question was for what actions? Do you seriously think you can sink a US warship? At least pretend to be credible when making inane threats.
That said, the last foreign army occupying my homeland was Russian, depending on whether you consider foreign Chinese policemen on your streets a foreign army.
Python package made to extract products and theirs related suppliers informations from Alibaba.com based on user keywords through a user friendly CLI, and store it into a local database (SQLite o...GitHub
Last night Organic Maps was removed from the Play Store without any warnings or additional details due to "not meeting the requirements for the Family Program".Telegram
All'interno di questo articolo troverete molte valide alternative a Google Docs, tutte molto semplici da utilizzare e sicure!skariko (Le Alternative)
Principia è un divertente gioco a livelli basato sulla fisica. Superate puzzle oppure divertitevi a giocare ai livelli creati dalla comunità!skariko (Le Alternative)
Come da titolo, se utilizzate il browser Brave su GrapheneOS, con o senza i servizi di Google attivi, quasi certamente non vi funzionerà l'autofill del vostro password manager.
Non è del tutto chiaro di chi sia la colpa, anche se probabilmente di Brave dato che l'autofill dei password manager funzionano bene sugli altri browser su GrapheneOS (compreso Vanadium).
Detto questo ho scoperto come far funzionare il tutto anche senza i servizi di Google attivi.
Enable the setting to provide a virtual view structure for Autofill
Enabled Without Compatibility Check
Ora andando in Impostazioni trovate un campo senza icona chiamato Autofill Options
Da qui selezionate Use Other Providers
.
Ora dovrebbero funzionare tutti gli autofill dei password manager senza problemi! ✌️
⚠️ AVVISO
❗️Stiamo migrando https://peertube.uno su un nuovo server, al momento è in fase di test e ricomincerà a funzionare senza prolemi solo a lavori completati.
❓Peertube Uno è la prima istanza video italiana del fediverso, ha 5 anni e circa 600GB di video caricati, ma il server che ci ospitava non riusciva più a fornire un servizio completo da almeno un anno.
🚀Stiamo spostando Peertube su un server più performante che finalmente risolverà tutti i problemi e i limiti che avevamo finora.
➡️ Aggiornamenti a breve 🙏
PeerTube Uno Italia, è la prima piattaforma video italiana federata con il fediverso. Utilizza il protocollo ActivityPubper distribuire i video fra le persone nel fedivero in maniera decentralizzata.peertube.uno
Doodle Dudette è un gioco molto semplice per permettere ai bambini di scarabocchiare e colorare con facilità su smartphone.skariko (Le Alternative)
🔥 Unlock the secrets of the DHT11 sensor with arduino! 🌡️ Discover its powerful features for your arduino projects. Click now to dive in! 🚀slyautomation (Sly Automation)
Pandas supports Copy-on-Write, an optimization technique that helps improve memory use, particularly when working with large datasets.Sachin Pal (GeekPython - Python Programming Tutorials)
The Proton Duo plan makes it easy for two people to protect their privacy. Get encrypted email, 1 TB of storage, and more.Anant Vijay (Proton)
Volevo segnalare e condividere questo video di @kenobit@livellosegreto.it abbastanza interessante dove viene mostrato in tutto il suo splendore anche GrapheneOS.
Il video in sé non è incentrato su Graphene ma ha diversi spunti interessanti su come vivere senza Google, e più in generale senza le Big Tech, e l'ansia da notifica.
A livello personale non condivido alcune opzioni come ad esempio Spotify crackato (secondo me è meglio sfruttare RiMusic o simili) ma in linea generale penso che il video sia interessante anche per come ha pensato di strutturare i vari profili d'uso e il modo con cui viene utilizzato lo smartphone.
Un breve video, registrato in presa diretta, per raccontare come ho ripensato il mio smartphone e documentare il punto di partenza del mio tentativo di degooglizzare il mio telefono e di difendermi dalle dinamiche predatorie delle piattaforme. No alla reperibilità perenne.
Il video è su PeerTube.
Abbiamo testato e utilizzato per qualche giorno il sistema operativo alternativo ad Android chiamato GrapheneOS, ecco come è andata!skariko (Le Alternative)
The Python Steering Council has decided to suspend a core Python developer for three months for alleged Code of Conduct violations.Citing the recommendation of the Code of Conduct Working Group, Python developer Thomas Wouters revealed on behalf of the Steering Council that the unidentified developer was deemed to have repeatedly violated the Python Software Foundation (PSF) Code of Conduct.
The suspended developer is Tim Peters, who told The Register it was fine to name him but declined to comment – beyond observing that one of his objections to the governance process is the secrecy involved.
Code of Conduct violations include allegations that posts created 'atmosphere of FUD'Thomas Claburn (The Register)
Thanks Ned! Yes, that is a great way to put the fundamental point in words. Some people seem to want a very specific list of what is and isn’t allowed, perhaps out of fear that they’ll cross a line.Discussions on Python.org
So the discussion about behaviors that mirror the suspension is not about the guy that was suspended? Come on.
In reference to the sexual harassment item:
If somebody hears "discussed sexual harassment" and immediately says, "You must mean Tim Peters," I think the context of the whole thread is pretty clear.
In the same comment from Smith:
I want to assure everyone that the points we made in the original post were so pointed exactly because of the complaints we received from community members.
The "points" being three of the items that appeared on the suspension. This is specifically about Tim Peters.
So to sum up: they received complaints specifically about Peters. Then said people (plural) complain and that's how they hear about it. If that's not clear, it's not the author's fault.
The same comment touches on several topics, replying to 2 different people. These two statements being in the same comment is not evidence of them being about the same thing, and if the author expected readers to get that from it, it is absolutely the author's fault if their words got misinterpreted.
And in the next paragraph:
We importantly chose not to call anyone out by name in the there because our expectations aren’t about one person. All of us need to be aware of what is and isn’t okay and a lot of people were involved in the problematic threads, even if Tim, as self-identified here, was one big part
Again referring to multiple people.
Referring to multiple people, Tim being a big part of those people. So it's primarily about Peters. You put it right there. Claiming it's not just about him in pedantics and weak af.
I can't tell if you picked up on my meaning when I mentioned the author's fault. If you didn't, maybe you're not great at interpretation.
Having read the comment in context, I think Gregory was reaching. Tim generally communicates in a disarming manner and simply observed that he doesn't like how "sexual harassment training" sounds and prefers not to use that phrase.
It's also not clear if posts have been deleted or altered, so I might be missing something.
So either you agree with what it's called or you're "disruptive" and should be banned? Hmm.
I read a load of his comments and they seem quite reasonable. A million miles from ban-worthy.
If you "made light of sexual harassment training" at your job like this you would be fired?
And I lost count of how many times an executive at a startup I’ve worked for was charged with sexual harassment. The outcome was always the same: nothing actually happened to them, but the entire company was sentenced to days of “sexual harassment prevention” training, as part of the deal the bigwig cut to get off easy. By now I must be one of the most highly trained people on Earth in that specialty :wink:.
Jesus you should leave now! That's not ok. (At least in countries with proper labour laws; I guess in America they can fire you for anything.)
I mean I wouldn't advise writing that on your company Slack, but nowhere I have ever worked would fire you for it.
In any case the Python community isn't a company & as far as I understand it Peters isn't getting paid.
You seem to be giving a lot more leeway to interpretations of Peters’ words than my comparison. Odd.
It doesn't require any leeway. It's a totally mainstream opinion supported by actual research. It's only in woke CoC teams that comments like that are objectionable.
he’s also dismissing that it’s worthwhile to try and have an environment free from sexual harassment.
Complete misunderstanding of his comment. Read it again.
Gracefully accepting constructive criticism.
Lol the irony is overpowering.
Trainings’ use of ‘cartoonish, unrealistic’ examples could be partially to blame for men’s subsequent dismissal of allegations, says Berkeley professorSam Levin (The Guardian)
woke
There it is. Thanks for finally being explicit about the kind of person you are. People like you are the reason cocs have to be made in the first place. Don't bother responding, I'll be blocking you.
Thanks for finally being explicit about the kind of person you are.
As if wokeness isn't a thing 🙄
wow. Someone besides either author got all the way here in the thread to downvote the guy saying open source communities shouldn't keep people around who make volunteers uncomfortable. Like, what exactly was lost here? A guys right to do free labor? Python is just about the worst language for any task you can imagine anyway, yet someone is going around spending their free time picking 3rd party fights about the community that manages it.
question for the downvoters:
Why do you care? Personally, I like having women and racial minorities in computer science. That's why I care.
But why would you defend Tim? Please note that I'm not saying you shouldn't-- it's just clear that this was never an argument in good faith.
From Peters in the thread:
Nobody talked about demographic markers because they didn’t matter to anyone.
That reads to me that things were better before inclusive language was around.
I think this also is a good response to a different point to made about being rational:
It seems like we're doing the human thing and interpreting things differently.
I read all of these comments in context on Discourse and came to my previous conclusions. The ban still seems out of place to me.
This piqued my curiosity after witnessing recent issues in the Nixpkgs community, so I poked around Discourse for a few minutes.
Wow... Tim seems like one of the nicest folks on the face of the planet. I don't get it.
Did I miss something? It seems like they're shooting themselves in the foot here.
Were the mods upset about this community discussion after Karl was banned?
Easy to ask, but maybe hard to answer honestly: are neurodivergent people welcome in the PSF? On our Discourse? They’re conspicuous by absence in our current CoC’s enumeration of protected classes: Every member of our community has the right to ha…Discussions on Python.org
Imagine you created your very first app. You developed the concept, workedtirelessly on the key features, design, tested it and fixed the bugs. Themoment has...f-droid.org
Può l’ignoranza delle tecnologie essere utilizzata per trasformare le persone in schiavi? Si, purtroppo, e Cassandra è qui per spiegarvi come.Marco Calamari (Le Alternative)
https://www.chefblogger.me/2024/08/12/webdesign-idee-team-seite-mit-html-und-css/
GIL or Global Interpreter Lock can be disabled in Python version 3.13. This is currently experimental.Python 3.13 brings major new features compared to Python 3.12 and one of them is free-threaded mode, which disables the Global Interpreter Lock, allowing threads to run more concurrently.
The GIL will be disabled when you configure the Python with the
--disable-gil
option which is nothing but a build configuration (free threading build) at the time of installation.This will allow optionally enabling and disabling GIL using the environment variable
PYTHON_GIL
which can be set to 1 and 0 respectively.It will also provide a command-line option
-X gil
which can also be set to 0 (disable) and 1 (enable).
Python does not follow semver.
https://docs.python.org/3/faq/general.html#how-does-the-python-version-numbering-scheme-work
Contents: General Python FAQ- General Information- What is Python?, What is the Python Software Foundation?, Are there copyright restrictions on the use of Python?, Why was Python created in the fi...Python documentation
Is that a real problem? I've never considered that a python package manager should be or could be faster.
To be fair, I don't use python professionally.
requirements.txt
, Poetry, and the differentconda
s there’s a ton of fragmentation, and none of them do everything you’d want in an ideal way. above and beyond speed, i thinkuv
is another attempt at it. but it could just be another classic xkcd moment where now there’s just another standard to deal withuv
is a drop-in replacement forpip
. There's no extra standard. It's pareto better. Honestly the Python community would do the world a favour if the deprecated pip and adopted uv as the official tool, but you can guess how likely that is...pnpm
at work), and a drop in replacement is not without quirks. they wouldn’t have made a different tool altogether if it was really a 1:1 replacement. just because the commands are the same doesn’t mean it behaves the same. i.e. i doubt one person on the team could be usinguv
while everyone else sticks topip
Why not? It's 10x faster.
I think it might have some other new features but you don't need to use those.
This is exactly what we do at work. There's no way I could convince everyone to switch to
uv
so I just switch between them based on an environment variable.It even supports random stuff like
pip install --config-settings editable_mode=compat --editable foo
which is required for static tooling to work (e.g. Pyright).pip install
takes about 60 seconds and replacing it withuv
reduces that to about 7 seconds. That's a very significant improvement. Much less annoying interactively and in CI we do this multiple times so it saves a significant chunk of time.pip install
?I dunno maybe once a week or so? We don't actually have a system that detects if your
pip install
is out of sync withpyproject.toml
yet so I run it occasionally just to make sure.And it runs in CI around a dozen times for each PR. Yeah not ideal but there are goodish reasons which I can explain if you want.
No, that makes perfect sense. Thank you for explaining.
I like hearing about other people's environments, because it gives perspective.
The performance is just a "nice to have".
Python package management, especially at scale is infuriating. At work we use python microservices in docker containers and it infuriates me trying to update the one our team is responsible for.
I always like to rant that python 3rd party package management tools are a mistake. We should've gone for an "as simple as possible" setup instead of all this.
So I'm sceptical of UV on principle since it's yet another 3rd party package manager but if it can do all of this and not be a nightmare I'll be ok with it.
uv
is fantastic. I would highly recommend it. I've used it in a quite complex environment, with no issues (quite an achievement!) and it's about 10x faster than pip.I mean... I guess it's not surprising given
uv
is written in Rust and pip is written in Python, but even so given pip is surely IO bound I was expecting something like 4x improvement. 10x is impressive.The actual dependency resolution part, so where you figure out which versions of the dependencies can be used together, is actually notoriously CPU-bound.
At least as far as I'm aware, you generally use a SAT solver for dependency resolution (unless you don't care for correctness), and as Wikipedia puts it:
There are quite sophisticated algorithms at this point, making use of heuristics and whatnot, but they're still just backtracking algorithms at their core. And as Wikipedia puts it so fittingly again:
You know shit's inefficient, when the best thing to compare it to, is just randomly trying solutions.
algorithm
Contributors to Wikimedia projects (Wikimedia Foundation, Inc.)Actually Go's dependency system is specifically designed to avoid the need for global constraint solvers. Go has the most modern and elegant dependency versioning system that I'm aware of. Python was designed before people realised that it's dependency style was a mistake.
https://research.swtch.com/vgo-principles
research!rsc: The Principles of Versioning in Go (Go & Versioning, Part 11)
research.swtch.comI'm on the uv team. I am quite partial to this approach as well. Alas, it's difficult culturally to pull this off in a pre-existing ecosystem. And in the case of Python at least, it's not totally clear to me that it would avoid the need for solving NP hard problems. See my other comment in this thread about simplifying PEP 508 marker expressions.
Other than avoiding needing a SAT solver to resolve dependencies, the other thing I like about Go's approach is that it makes it very difficult to "lie" about the dependencies you support. In a maximal environment, it's very easy to "depend" on
foo 1.0
but where you actually needfoo 1.1
without issues appearing immediately.Oo hello. Didn't know that's what you were doing these days! Hope it goes well, though I'd be nervous about a realistic business plan.
Anyway, yeah bit too late for Python.
Interestingly, dependency resolution is not the only NP hard problem uv tries to solve. During development, it also became clear that we needed some way to simplify PEP 508 marker expressions and ask questions like, "are these marker expressions disjoint?"
See: https://github.com/astral-sh/uv/blob/72bd12716225ae48d1e46ec6254d7daf134bdc94/crates/pep508-rs/src/marker/algebra.rs
uv/crates/pep508-rs/src/marker/algebra.rs at 72bd12716225ae48d1e46ec6254d7daf134bdc94 · astral-sh/uv
GitHubObligatory “there are now 15 competing standards”
For real though, this looks interesting. I am a long time poetry user, I’ve been mostly happy with it but I do think it could stand to be a little faster. I’ll have to try this out sometime.
Having used it for work, I really don't understand the appeal, especially when compared to tools like Poetry. Uv persists in the dependency on requirements.txt, doesn't streamline the publishing process, and contrary to the claims, it's not a drop-in replacement for pip, as the command line API is different.
It's really fast, which is nice if you're working on a nightmare codebase with 3000 dependencies, but most of us aren't, and Poetry is pretty damned fast.
If uv offered some of what Poetry does for me, if at the very least we could finally do away with requirements.txt and adopt something more useable -- baked into pyproject.toml of course -- then I'd be sold. But this is just faster pip.
uv 0.3 introduces a cross platform lock file: https://docs.astral.sh/uv/concepts/projects/#lockfile
More precise details on the compatibility of
uv pip
withpip
are documented here: https://docs.astral.sh/uv/pip/compatibility/Projects - uv
docs.astral.shIt's written in Rust.
All jokes about the Rust Evangelism Strike Force aside, various parts of the industry are finally starting to think that "If it's written in Rust, we have less to worry about with respect to that thing, so we won't torture the devs and force them to sneak it in the side door anyway."
It's a thing that I've been seeing at work for the last few years.
Looking forward to this. One of the blind spots of poetry was to ignore the issue of managing python versions themselves. I'm happy to see they're covering so many aspects of dependency management and replicability.
uv
being used as a package manager/resolver inrye
? I'm usingrye
for my new projects and it's nice becauseruff
andpytest
are being unified in it too.Rye's developer on their plans for Rye in the context of uv's latest release:
https://lucumr.pocoo.org/2024/8/21/harvest-season/
Rye and uv: August is Harvest Season for Python Packaging
lucumr.pocoo.orgThis is great!
@burntsushi@programming.dev, do you know is Astral is working with prefix.dev and their Pixi project? They seem to now have overlapping concerns.