| website | http://ianhenderson.org |
| website | http://ianhenderson.org |
My version of a very nice, rather difficult, dissection puzzle β of unknown origin β that has been circulating for many years, but of which I learnt only recently.
(Please at least spoiler-tag any hints, clues, guesses, context, speculation, or attempted solutions; and consider DMing them to me rather than posting publicly at all. This is a hard puzzle, and if it's easy to cheat then the temptation will be powerful.)
If you dual-license your software in such a way that it requires a paid license for commercial use, here are two code blobs for you. macOS pub fn mdm_enrollment() -> eyre::Result<(bool, Option<String>)> { let mut command = Command::new("/usr/bin/profiles"); command.args(["status", "-type", "enrollment"]); let stdout = command.output()?.stdout; let output = std::str::from_utf8(&stdout)?; if output.contains("MDM enrollment: No") { return Ok((false, None)); } let mut server = None; for line in output.lines() { if line.starts_with("MDM server") { server = Some(line.trim_start_matches("MDM server: ").to_string()) } } Ok((true, server)) } Windows pub fn mdm_enrollment() -> eyre::Result<(bool, Option<String>)> { let mut command = Command::new("dsregcmd"); command.args(["/status"]); let stdout = command.output()?.stdout; let output = std::str::from_utf8(&stdout)?; if !output.contains("MdmUrl") { return Ok((false, None)); } let mut server = None; for line in output.lines() { if line.contains("MdmUrl") { let line = line.trim().to_string(); server = Some(line.trim_start_matches("MdmUrl : ").to_string()) } } Ok((true, server)) } Looking at mobile device management (MDM) enrollment is not a silver bullet for identifying corporate devices running your software, but it is a good start.
However you feel about AI, it's a big part of the modern software landscape. @[email protected] is hiring a two-year AI engineering fellow in collaboration with @[email protected]. We're not cheerleaders or naysayers; we want to explore ways that it might support the newsroom, while remaining anchored in real human problems and strongly adhering to our values, standards, and strict need for safety. https://job-boards.greenhouse.io/propublica/jobs/4563500006 #media #journalism #ai