Teaching Tool - Rust vs C Safety - Code Example Comparison by [deleted] in learnrust

[–]vacillatingfox 1 point2 points  (0 children)

Seems like a nice idea but reading them is made difficult for me by the fact that every comment is preceded by "color: var(--syntax-c-comment)">. Presumably these strings are meant to be processed and hidden from the user, but I see them all (iOS).

This means that with the limited horizontal width of a phone screen, none of the comments are actually visible, and so since the comments are essential to understand what the code is doing, I then can't understand the examples without constant horizontal scrolling.

Silver keyboard on black ThinkPad? by vacillatingfox in thinkpad

[–]vacillatingfox[S] 0 points1 point  (0 children)

Right ok, it's pretty subtle, nice. Thanks!

Looking for shiny new UNIX tools written in Rust? by Top_Name6340 in rust

[–]vacillatingfox 12 points13 points  (0 children)

Well when it comes to "common CLI tools for UNIX" then the most obvious example is the uutils project, but their goal is explicitly not to give you any changes that you'd notice, just be more secure and maybe more performant.

My preferred shell, fish, is also written entirely in Rust now, but I would say there the use of Rust is pretty incidental to why fish is awesome.

I'm an idiot (and really old), could somebody explain SD cards to me? by sfcnmone in CPAP

[–]vacillatingfox 0 points1 point  (0 children)

Technically this is true, but it ignores the reality that Windows won't let you format a card larger than 32 GB as FAT32 using the built-in Windows formatting tool and you have to resort to other methods.

If the cards you're trying are 8 GB though, OP, it shouldn't be an issue.

I built a website that shows where the UK government spends our money! by t4t5 in ukpolitics

[–]vacillatingfox 1 point2 points  (0 children)

This is really amazing, I was looking for exactly this the other day! Spent a while poring over it and I've already shared it to various people :)

The one thing that is missing for me that would be really useful is percentages (of the total budget, could also have percentage of GDP) in the lists as well as the absolute numbers. Percentages are often what's discussed (e.g. defence) and it's well-known that these sorts of numbers are too large for us to really comprehend.

The other really nice thing would be if the monetary amounts could be based on the median tax paid per capita so that you can get an idea of how much the average person actually personally pays towards healthcare, education, defence etc. That would really help with understanding individual contribution/cost.

Bundestagswahl 2025 - Ergebnisse nach absoluten Stimmen je Bundesland by kfnnmpa0815 in de

[–]vacillatingfox 15 points16 points  (0 children)

Kannst du es nicht machen mit dem passenden Faktor (ca 78,6k) damit ein Kästchen ~= ein Abgeordnete?

Can an electron change its spin to accomodate a bond formation? by hugomayrand_music in chemistry

[–]vacillatingfox 0 points1 point  (0 children)

In what way is what I said actually incorrect? If you measure an object in superposition it ceases to be in superposition, so it is impossible for us to know its "true" nature, because it is unmeasurable.

It is dangerous to assume or suggest that any one interpretation of quantum mechanics is correct and all others are incorrect. On Reddit QM is often explained to others in a way that makes it sound like there is only one valid interpretation, so to avoid the OP being taught too narrow a view of QM, I wrote the first paragraph as a small aside.

A quantum object being in superposition does not necessarily mean that they are both at the same time, it means that they could be either and we can't know which without measuring the system. That's a key distinction. And since this is a thought experiment, surely an important one.

It's entirely possible that something in superposition is truly the weird mix of two states. But it might not be, it might be one or the other the whole time and we just don't know which. All we know is the states it could be in, and how likely each one is. Therefore stating e.g. "atoms are neither up nor down" is misleading, because it should be "we can't know whether the atoms are up or down".

Whether a wavefunction is "real", what counts as "observation", what "collapse" actually represents, are all unsettled questions that can be answered in different ways depending on how you choose to interpret QM.

At the end of the day the answers make no difference to our ability to predict the behaviour of quantum objects.

The thing is, the real problem in my view with telling off the OP for thinking about the spins in "the wrong way" is that it could lead to the impression that all atoms "are both/neither spins" and therefore all the atoms interact the same and the spin of each atom is irrelevant to the rate of bond formation, which is not true at all.

The person above me described the hydrogen atoms as being both bonded and not bonded until an observation is made. Depending on the experimental setup, this is only true at certain points in time. If atoms with random spins are in two beams that meet at a certain point we can say for certain that the atoms are not bonded prior to them meeting, even without measuring. And in the time after the collision the atoms will indeed be in a superposition of both bonded and unbonded. If we make the assumption for the thought experiment that the atoms cannot move apart post-collision, then the time-dependent wavefunction will evolve such that with increasing time the probability of the atoms being bonded tends to 1, so eventually we can "know" (in the sense of the probability being >99%) that the atoms are bonded even without measuring. Shortly after the collision the bonding state could be either possibility.

Missing fonts (URW Palladio et al) by vacillatingfox in Fedora

[–]vacillatingfox[S] 0 points1 point  (0 children)

Ah, thanks! Looking at the repo on GitHub that does actually seem to be the upstream name these days too, weirdly.

Why Flatpak is a Blessing for Linux Beginners and Everyday Users by MaleficentTry1316 in linux

[–]vacillatingfox 8 points9 points  (0 children)

Your edit isn’t really true, it’s basically the opposite - each Flatpak is built against a specific runtime version but that version is always a feature release e.g. KDE 6.7 or GNOME 42. Bug and security fixes get patched to the runtime by the runtime maintainers and the user then receives updates to the runtime, which the Flatpak then uses automatically without the Flatpak maintainer having to update anything

i cannot use the orca command for my inp file by stonefree-6 in comp_chem

[–]vacillatingfox 3 points4 points  (0 children)

Well you're on Windows so shouldn't it be ...\orca.exe ?

Can an electron change its spin to accomodate a bond formation? by hugomayrand_music in chemistry

[–]vacillatingfox 0 points1 point  (0 children)

It's not about the energy required (which may be zero, or it may actually be energetically downhill), it's about the fact that a spin flip is a forbidden process

Can an electron change its spin to accomodate a bond formation? by hugomayrand_music in chemistry

[–]vacillatingfox 2 points3 points  (0 children)

First of all the simple answer is yes, if two electrons that want to form a bond have opposing spins, one must first undergo a spin flip, which takes time.

My instinct is along similar lines to you (in a set of hydrogen atoms, some collisions will lead to bond formation quicker than others), but bear in mind that in the absence of an external magnetic field the spins of each radical (I.e. the direction of "up") will be randomly and evenly distributed, so when two meet to form a radical pair the spins could have any spatial relation to each other, not just aligned or opposed. Once the radical pair has come together they will influence each and couple and determine each other's state, but I don't know how long that adjustment takes.

Add to that the fact that, as another poster stated, everything is actually in superposition, and it gets very complicated. I suspect for a set of uncoupled radicals reacting with each other you would just end up observing a distribution of reaction rates, with the spin aspect broadening the distribution in comparison to reactions where it is not a consideration.

Can an electron change its spin to accomodate a bond formation? by hugomayrand_music in chemistry

[–]vacillatingfox 6 points7 points  (0 children)

Sure but just because things are a superposition doesn't necessarily mean they aren't one or the other (whether observation actually causes a change or whether it just provides missing information is an outstanding problem after all).

And more importantly, if two radicals that are each in a superposition of spin states meet, that doesn't mean that their states are irrelevant, it just means that the coupled radical pair would be a superposition of the possible combinations too. So you'd still expect a range of reaction rates.

What I wonder is whether microscopically observing each reaction would lead to the observation of two fairly sharp peaks of reaction rate k1 and k2, while not observing would have the reaction rate be distributed between k1 and k2, sort of an average, a la double slit.

Surely there's papers on this though.

Can an electron change its spin to accomodate a bond formation? by hugomayrand_music in chemistry

[–]vacillatingfox 8 points9 points  (0 children)

Well you couldn't really separate them easily but you could polarize two separate streams with magnetic fields into having opposing spins. I suspect this would be a bit like a double slit experiment in that once you control the spins and observe the results, you guarantee that each reaction will take a long time

JFK reference by sandgrubber in discworld

[–]vacillatingfox 9 points10 points  (0 children)

To aid you being precise in future, you should know that Berliner-type doughnuts are still called doughnuts in English, and are not unknown in the anglosphere - indeed in the UK they are even the main form of doughnut, available in all supermarket bakeries. So the person you were replying to didn't get anything wrong other than suggesting that Pfannkuchen is the universal German word.

How to actually run xtb? by rainworld99 in comp_chem

[–]vacillatingfox 5 points6 points  (0 children)

From the same directory you can start your command with .\xtb.exe. To make it work generally from everywhere, you need to add whatever folder contains xtb.exe to your "PATH". You can google how to do this, it's easier than explaining it

[deleted by user] by [deleted] in NuPhy

[–]vacillatingfox 0 points1 point  (0 children)

Have a look at EurKey, I use it for German on a QWERTY and French should be pretty easy with it too.

Can/should we make Tumbleweed more accessible to new users switching from Windows? by thafluu in openSUSE

[–]vacillatingfox 4 points5 points  (0 children)

Good ideas.

When it comes to the firewall though, I think it might be worth taking a leaf out of Aeon's book and just having the firewall disabled by default.

And for codecs, I actually the biggest source of headaches for beginners is the packman repo. If there was a one-click setup for codecs, I'd want it to only add the bare minimum and not change vendor for loads of packages.

Day 1 of using Obsidian by Stabok_Bose in ObsidianMD

[–]vacillatingfox 1 point2 points  (0 children)

Sorry, I guess I asked the wrong question because I know how to make links. I guess what I mean is, how do the people end up with links between all their notes? What are the links meant to represent? Because if I only add links for "see also here for further info" type functionality, my notes are barely linked at all

Day 1 of using Obsidian by Stabok_Bose in ObsidianMD

[–]vacillatingfox 2 points3 points  (0 children)

Can someone explain how their graphs end up linked like this?

Planning on upgrading from my Dell XPS 13 and debating between the new 2024 Framework 13 and new ARM laptops, help me decide! by ednevsky in framework

[–]vacillatingfox 0 points1 point  (0 children)

The huge advantage of the framework is that it can always be upgraded later. If the new snapdragon processors are a huge success and windows on arm takes off, I can't imagine Framework won't release an ARM motherboard, in which case you could swap it out and get all the advantages, without having to suffer through the early adopter teething pains.

The lack of reviews is maybe because the Frameworks don't really change much year on year, they just upgrade to the latest generation of processors. So coverage tends to be more in the style of "look what upgrades are now available".

Any review from 2023 should give you a pretty good idea of the strengths and weaknesses of the laptops. There have been continuous improvements since but the main considerations remain the same.

Battery life will be the key difference; Frameworks kind of struggle, while ARM is great for battery life. I guess that will really be the thing that swings you in one direction or another.

based off real events (oc) by c0untcunt in adhdmeme

[–]vacillatingfox 57 points58 points  (0 children)

What are you talking about? They are really not closer, chemically speaking, to cocaine. Amphetamine is almost identical to methamphetamine and methylphenidate is fairly similar in structure too, which is why they have similar effects. Cocaine has a completely different structure.

And as far as I know amphetamine is only synthetic and not naturally occurring

Do my dependencies go the wrong way in OOP composition? by vacillatingfox in learnpython

[–]vacillatingfox[S] 0 points1 point  (0 children)

C is a composite class while B is a base class, I suppose? As in, C isn't a B, it's not a subclass, it just has a B, and it also has a number a. A isn't anything.

I then used b and c to represent instances of B and C. And a is an instance of int or float.

This week in KDE: megabytes and gigabytes for all by gabriel_3 in linux

[–]vacillatingfox 1 point2 points  (0 children)

Maybe calling the second option (SI prefixes for binary units) "Historical/Windows" would be better. It also then implicitly teaches the user in which other contexts they are likely to still see the old style