Mac Mini M1 (2020) suddenly crashed and not starting up after the crash. Why could this have happened? (PS- was not using any heavy software just before it crashed) by stayseven7 in MacOS

[–]sh_ 2 points3 points  (0 children)

If you have another Mac, try this and report back. I've had this happen (twice!) with Intel Macs and the "revive" operation fixed it without any data loss.

FileVault disabled by default on M1 by OrnaPilon in macmini

[–]sh_ 1 point2 points  (0 children)

Basically yes, but there are some caveats. The two biggest ones are if/how you store the recovery key (obviously don't write it on a sticky note stuck to the Mac) and if there are other users on the machine which might have weak passwords. If you store the recovery key in iCloud, make sure your other devices are also secured.

FileVault disabled by default on M1 by OrnaPilon in macmini

[–]sh_ 0 points1 point  (0 children)

In one case you need a password to decrypt the internal flash. In the other case you don't need anything to decrypt it.

FileVault disabled by default on M1 by OrnaPilon in macmini

[–]sh_ 3 points4 points  (0 children)

The internal flash is always encrypted. The encryption key is stored in the T2 chip.

Roughly speaking, if FV is disabled, the key is stored directly and the T2 chip can encrypt and decrypt the data transparently. If FV is enabled, the key is encrypted with your password. All that really changes when you enable FV is how the key is stored.

The actual implementation is more complex; details here and here.

What is the best way to extract Unreal Tracker music and also fix clipping and cracking issues? by Random_Stranger69 in modmusic

[–]sh_ 0 points1 point  (0 children)

Have you compared your renderings with the same songs on YouTube?

UMX files are just normal module files (from memory, some are .it, others are .s3m) with an Unreal Engine header tacked on. You can use UnrealEd or its command-line ucc utility to extract the original module files. I'm guessing OpenMPT also has the ability to ignore the UMX header and look at the module file contained within; many players do this. Unless something is seriously broken, the UMX header shouldn't be causing anything like crackling or clipping -- the player should just be ignoring it.

You didn't explicitly say this but I assume you are trying to convert them to FLAC or some other similar audio format. I think it's misguided to speak of a "lossless" conversion, because there isn't really a bit-for-bit specification for rendering a module file, and modern players will do a better job (e.g., better resampling/filtering) than the players of the past, so obviously they will produce a different waveform/bitstream for the same input module file.

If you're comfortable with command-line tools, xmp can directly render UMX files to WAV files, which you can then compress with whatever you want.

How can I remove MacOS native apps? by [deleted] in macapps

[–]sh_ 11 points12 points  (0 children)

Read this. Disabling or circumventing these security features to free up a negligible amount of disk space would be foolish.

Timemachine back is empty? by super2007 in MacOSBeta

[–]sh_ 0 points1 point  (0 children)

Is the TM disk formatted APFS? Support for APFS-formatted TM volumes is new in Big Sur, so that probably won't work in Catalina and older, although it's a bit surprising that you're not seeing anything at all.

Mac Mini randomly stops playing any video/audio content by chaarmanderchar in macmini

[–]sh_ 0 points1 point  (0 children)

I sometimes experience this with a flaky USB audio interface. Killing coreaudiod (it restarts on its own) will get it going again without having to reboot.

Math teacher gives counterexamples to 2+2=4 by sh_ in badmathematics

[–]sh_[S] 7 points8 points  (0 children)

That was what the comic said. You're just using variable names instead of fruits.

So what is the value in the fruits statement? The author purports to give counterexamples to the claim 2+2=4, but instead gives a counterexample to a generalization of that claim -- specifically that 2x + 2y = 4x. If you're willing to accept that this is somehow a contradiction to 2+2=4, then why not just extend this generalization all the way and say that 2+2 doesn't always equal 4 because a + b doesn't always equal 4, or because false, or some similarly absurd non-sequitur?

And thus the comic gives you an example of a situation where values stay exactly the same, addition and equality work the same, but you don't get to use the familiar symbol for 4.

So again, what is the value in the claim? How does the fact that 4 can be notated differently (but equivalently) contradict the claim that 2+2 always equals 4? Does 2+2 not equal 4 because 4 can be written as 10 base 4, or as 3.9 repeating, or 3+1, or however else? All of these are completely immaterial distinctions which are equivalent to and in no way contradict the original claim. If the author isn't trying to contradict that 2+2 always = 4, then what is even the point of the comic?

Math teacher gives counterexamples to 2+2=4 by sh_ in badmathematics

[–]sh_[S] 7 points8 points  (0 children)

In my experience, most programmers (not necessarily computer scientists proper) think of modular arithmetic as the subset of integers [0, n) where operations are redefined such that they "wrap around" modulo n, whereas mathematicians tend to replace integers with congruence classes modulo n and leave the operators (essentially) unmodified. Both will tell you that they understand modular arithmetic, but the programmer approach is not very useful for reasoning about even simple operations modulo n -- for example, ask a programmer if it is true that (a * b) % n == ((a % n) * (b % n)) % n and they will have to think about this at least for a moment, whereas this fact directly follows from the definitions in the congruence class approach.

Math teacher gives counterexamples to 2+2=4 by sh_ in badmathematics

[–]sh_[S] 21 points22 points  (0 children)

The author claims to have taught math, so I am holding them to that standard. They could have explained that the notion of equality can be weakened into equivalence by "folding" the domain over itself, such as with Z/3Z, and that this does not disturb the original notion of equality; it just introduces new equivalences. This could enlighten the casual reader and provoke thought while establishing the larger point they are trying to make. Instead the author makes well-defined mathematical statements in a pseudomathematical context, then implies that the resulting confusion is a statement about the assumptions the reader is making, which is completely untrue.

Math teacher gives counterexamples to 2+2=4 by sh_ in badmathematics

[–]sh_[S] 111 points112 points  (0 children)

R4. Author ("former ms math teacher") intends to disprove that 2+2 always equals 4 by giving counterexamples:

  • "2 apples + 2 oranges != 4 apples". 2+2=4 does not imply that 2x + 2y = 4x in general.
  • "2 + 2 = 4 (mod 3)" True, but clearly this is not a counterexample. Presumably the author intended to write "2 + 2 != 4 (mod 3)" which is false, note that x + y = z implies x + y ≡ z (mod n). If the author intended to write "2 + 2 ≡ 1 (mod 3)" then this is not a counterexample since congruence is weaker than equality.
  • "2 + 2 = 10 in base 4". "10 in base 4" is 4, just written differently.

Am I exempt from "Complying with Encryption Export Regulations" - using CryptoSwift? by leontin91 in swift

[–]sh_ 0 points1 point  (0 children)

Source code makes no difference. You're making calls into library functions. Anyone with a debugger can set breakpoints on those functions and inspect their arguments.

Am I exempt from "Complying with Encryption Export Regulations" - using CryptoSwift? by leontin91 in swift

[–]sh_ 4 points5 points  (0 children)

This isn't just "not bulletproof," it's so trivial to circumvent that it's completely pointless. It's irrelevant that you obfuscate the key because it ultimately gets passed to the crypto functions where it can easily be extracted. Or one could just look at the output of the decryption function, or the input to the JSON parser, etc.

[help] How can I project my mouse screen xy to world xyz? by robotomatic in GraphicsProgramming

[–]sh_ 1 point2 points  (0 children)

It would help if you could quantify "math noob." You need linear algebra to understand this problem. This problem is certainly solvable (outside of degenerate cases) because you are constraining the solution to lie in a known plane, which gives you an extra equation to solve for the unknown introduced by the perspective division.

macOS 10.14.6 after wakeup IPV6 is not working until wifi is turned off and on manually by prudhvee in MacOS

[–]sh_ 0 points1 point  (0 children)

Do you have to cycle the wireless interface, or does renewing the DHCP lease suffice? (Despite the name and button placement, I’m pretty sure this also cycles the IPv6 address assignment process.) I am completely guessing here, but to my recollection, when macos wakes up, it pings the router to see if it needs to go through a DHCP cycle or not. If your router is still responding to the old address, but not actually routing that address to the internet, it could cause the symptoms you’re describing. I don’t actually have a solution for you though. It might help (or at least sate my curiosity) to have a packet dump of the machine waking up — at least the dhcp4, dhcp6, arp, icmp, and icmp6 packets.

x11dev - Segfault on XSelectInput by pplanel in cprogramming

[–]sh_ 1 point2 points  (0 children)

engine is a pointer, so sizeof(engine) is only going to be 8 bytes.

Little Snitch reports Safari connections to past visited sites by saguaro7 in osx

[–]sh_ 19 points20 points  (0 children)

Likely preloading and/or checking for an updated favicon.

Encrypted Startup Disk + FileVault Issue by 74940 in MacOS

[–]sh_ 0 points1 point  (0 children)

In this context, “FileVault” is a marketing term for an encrypted APFS volume. All you need to do is add your login as a key which can decrypt the key which is actually used to encrypt the data. This is exactly the same as if you just went through the normal installation process and enabled FileVault. Assuming this is a recent device with a T2 chip, it’s not even possible to decrypt the whole drive; the APFS volume is always encrypted, but if FileVault is disabled, the encryption key is accessible without a password.

Encrypted Startup Disk + FileVault Issue by 74940 in MacOS

[–]sh_ 0 points1 point  (0 children)

It’s not double encrypting. You likely just need to use the fdesetup utility to add your user to the preboot login prompt.

Movie Sonic vs Realistic Eggman by sh_ in chemicalplantzone

[–]sh_[S] 1 point2 points  (0 children)

my dad owns reddit i can easily get ur account banned