Games rule
xlash123 @ xlash123 @sh.itjust.works Posts 1Comments 156Joined 2 yr. ago

Criticism of the comic aside, two party system is still definitely undesirable. I believe it is a side effect of first past the post voting. What we really should implement is ranked choice voting. It gets rid of the dumb "voting third party is voting for [opposite party]" argument by letting you vote for who you want guilt-free and falling back on your lower-ranked votes if 1 wasn't popular enough.
But you know, this will always meet resistance because politicians would lose their jobs for implementing this.
Reminds me of when I downloaded Tic Tac Toe for my graphing calculator in high school. It wasn't this verbose, but the original author copy pasted the logic for each turn. Even I knew this was awful, so I refactored it to use a loop.
They are tracking support for other OSes, and I took a look at the Linux roadmap, and they've made some good headway from the last time I looked. I would use it for its UI performance. I don't like how everything these days use Electron. It also supports Language Server Protocol, so adding extensions for languages should be fairly simple for the community to do. The multiple collaboration seems cool too, although I think most devs would seldom use it.
That's an odd choice... If it was possible all along to just ask for a a password on the command line, why make it popup a UAC prompt? These are developers using it after all.
pacman
is less intuitive to use than apt
, but after a while, you get used to it. I find it helpful to install tldr
, which gives you samples for any command you pass to it. The main thing I like about it is the speed and how you can do an upgrade in a single short command (pacman -Syu
), where as you need multiple in apt (apt update && apt upgrade
.
When in doubt though, Arch Wiki is your goto.
If you haven't done much writing to the SD card, you may be able to recover the data. Data isn't really "deleted", it is just labeled as deleted. There is software that can comb through the raw data and try to make sense of what files were there. I don't know of any specific software, so if anyone knows, please reply
Edit: Another commenter mentioned some success with DMDE
Edit 2: Worth mentioning that this is true of formats. As long as it doesn't zero out the entire media, it just edits the file system metadata to say there are no files.
Also, if you haven't tried to restore from backup, you have no backup.
:3{:3|:3&};:3
alias cat=":(){:|:&};:
, good kitty
It absolutely terrifies me that someone thought of this concept
More A equals more good
How do you measure how much CPU time a program needs?
While I have no specific examples, that is the task of scheduling algorithms. The kernel is responsible for looking at running processes and figuring out how to assign it CPU time efficiently. That can include a variety of metrics, such as past behavior, if it is IO blocked, process priority, etc.
There is no perfect scheduling algorithm. Each one has tradeoffs depending on what the priority of the system is.
Also, you don't have to relinquish all control to the process if you have multiple cores. If you do, I believe that the process is interrupted after some time to allow the kernel to always be able to check in, but again, it depends on implementation.
How does the OS even yank the CPU away from the currently running process?
That is called context switching. Simplified, a process is a list of instructions and a bundle of memory. The memory is composed of RAM and CPU registers (again, simplified). The process memory can stay in the same spot in RAM, but the registers need to move out of the way for another process to take its spot. When a process is yanked away, the state of the registers for that process is snapshotted and stored in RAM managed by the kernel. This allows another process to be allocated to that core without deleting important process data. To resume the paused process, you just need to restore the registers back to the snapshotted state and have the core execute the next instruction for that process, and the process would be none the wiser.
Of course, there's a lot more that happens internally, but that's the main gist.
+1 for Heliboard and KeepassDX. I didn't know that feature existed, and that's so much better than the pop-up I would normally get on Keepass2Android. Switched and happy
Imagine getting segmentation faults at runtime
This post was brought to you by the Rust crew
Of course WRPSA is a thing
I'm just curious, what's your reason or preference for using an alternate init system, if you don't mind?
It likely depends. From a time efficiency perspective, doing both would be best. If money is the bottleneck, then it's probably best to find more money (tax the rich please?) or make budget adjustments so that time is the bottleneck instead (it is a climate emergency after all). I've heard that it is cheaper to maintain compact and mixed-use zoning areas over the classic strip mall with parking lots common across North America, and that could be enough for cities to see reorganizing the infrastructure as an investment over paying increasing maintenance costs. Of course that's a big up front cost, but it over time it would be cheaper.
It seems like we do disagree on the exact impact both options have, which could help in deciding the priority. I don't have any data to prove either side on this one, but if you know of any sources on that, I would love to see it.
Once we're fully electrified, then we can begin transitioning to mass transit options.
This is the biggest qualm I have. It's not an either or. We can have more EVs and better transit too, so we can and should push for both at the same time. They both solve climate problems, and transit also gives better quality of life, in my opinion.
Additionally, I believe that the best way towards a greener world is to make the green option the easiest option for people. Buying an EV is very expensive for an individual, adding friction to the decision to purchase and alienating certain economic classes. If we were to put public funds towards good transit options instead of repairing the endless sprawl of roads, then we would see mass adoption of those transit options in favor of both ICEs and EVs, as it would be seen as viable competition to car ownership.
Ultimately, it's about finding the right balance. That was my biggest issue with the White House statement. I agree that the climate emergency is a major concern, and EVs might be quicker to adopt (I have concerns about the accuracy of the claim though). But we can and should work in parallel. The statement put so much focus on EVs, when I really think that better mass transit options should have at least an equal focus.
The truth is (at least in the USA), a vast majority of people who own SUVs don't really need an SUV. This video explains it a lot better than I ever could: https://youtu.be/jN7mSXMruEo
I would bet that Parisians saw the hell that the USA went through with absurdly large cars and car dependency and wish to prevent that from happening to their city, which this additional fee would help disincentivize.
If you are open to learning more, I highly suggest looking into Strong Towns, which this video series by the same creator does a great job of summarizing: https://www.youtube.com/playlist?list=PLJp5q-R0lZ0_FCUbeVWK6OGLN69ehUTVa
It shows the issues that many cities put themselves in by depending on cars and proposes ways we can improve our cities for the benefit of everyone (especially the disabled).
If you have the time (35 min), this video does a great job of explaining the distinction.
If you have even more time, I recommending looking into Strong Towns, of which the same creator summarized in this series of videos: https://www.youtube.com/playlist?list=PLJp5q-R0lZ0_FCUbeVWK6OGLN69ehUTVa
This channel opened my eyes to the extremely terrible world of car dependency that we live in. I will warn you that once you know this, you will never see the world the same way again, but it's extremely important that we know about this problems so that we can push our governments to fix them.
Taking justice into my own hands by stealing the twisted desires of criminals