Mechanical Windows? I still have Windows 11. How do I upgrade to mechanical Windows?
I changed the cargo home/cache directory so it's easier to clean up. The disk space pollution of Rust is insane.
I did a small project project that resulted in an 8 MB executable. And had dozens of gigabytes to clean up.
Even more confusing was how closing VS Code lead to 11 GBs being freed. I initially had three or four projects open for reference in APIs and API usage. But my primary partition ran full quickly. In the end I used Rover and minimized IDE usage to two instances. And after my work, removed target and cargo build data again so I actually have space to work with on my primary partition.
I actually prefer this over a bad translation
Surely it read ahead and had to roll back because it made a wrong prediction. 😏
distro hoping
I too hope on my distros :D
One of the principles of the Pythonic style is: simple is better than complex.
But is it when you consider ambiguity and expressiveness too?
len(mylist)
tells me it's definitely a list and not null or whatever. It also tells me the intent of whoever writes the code was checking length.
If it requires a long article to explain, I'd certainly be hesitant to use and prefer. The question is, is it surprising or intuitive that the truthy becomes a length check. What do you want to express with your code. And who will read it, and what expectations and requirements do you want to require of them.
For sequence type objects, such as lists, their truth value is False if they are empty.
While the 2nd approach is not wrong, the first method is considered more Pythonic. Many people don’t agree, but I’ve already put forward my points in a previous article on that debate.
Does Pythonic mean best practice in the python community or "good python"?
If "many people don't agree", how can they claim it to be "pythonic"? Isn't that contradictory?
adding some clarifications to the winget portions:
However, the graphical windows for the various installed dependencies still show up, making it obvious that all winget is doing is run the regular setup scripts under the hood.
winget does some default best effort of and on common installer tech to show the least UI necessary. If a UI shows up after all, that indicates to me that the manifest (the article talks about Neovim) does not have the appropriate flags included, or that the installer that the publisher uses does not support it.
Most, but not overwhelmingly, of the stuff I install and upgrade does not show installer windows.
which often leaves your computer full of background processes that only exist to routinely check for updates to a lot of programs in the background
The services are not only for updating in the background and unprompted, but also for installing with admin permissions without asking the user for admin. Stuff installed into C:\Program Files
is elevated on admin permissions rather than having user modify permissions, which is a security feature. A consequence is that a convenient update process needs a Windows Service that may install them without requiring the user to have and approve elevated permissions.
As a matter of fact, after installing Neovim, there was actually no way to run it!
This may also be an issue of manifest information for instructing the installer, or installer defaults. Or maybe the installer itself does not provide this?
Either way, of course these things are inherent shortcomings and efforts of integrating third party installers. I just wanted to clarify.
Regarding bad winget experiences: I assume this is not the case anymore, but installing a LibreOffice featureversion upgrade leading to an automatic system reboot without warning or confirmation sucked. lol This was relatively early on in the winget release cycles though.
[Nix] allows users to reliably reproduce the same state coming from any other state, which is also used for safe rollbacks.
What does that mean for configuration? How does configuration and customization play into Nix declarations?
I'm thinking of what would usually be in /etc/
, and what classic package managers like apt/dpkg would deliver a default of but not replace if already existing. Where you make your specific program and service configuration that is independent of the theoretically immutable package program data.
They were talking about hosting the git repository via sftp - so bare file transfer - a bare repository. And how that was enough for them.
While that is also hosted, and hosted through a service, it's only a file transfer service and hosting.
That means specifically without a hosted service like a forge or gerrit.
Which is why I was interested in how they handle stuff that is usually done through such forges and services / hosted software.
I've always followed the "only one h1
per page" guidance. I had no idea this was a thing.
Seems like a good simplification.
The fact that it is being done and how breaking changes like that are handled is interesting - specifically in the context of messy mixed html parsing and contexts and usage. The least specificity selector :where(h1)
is also interesting as guidance.
Why not? You mean instead of the opposite? There's two "common" coordinate systems with opposing Z.
https://en.wikipedia.org/wiki/Cartesian_coordinate_system#Orientation_and_handedness