2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 1y ago · link · parent
- umask was not 022, so installing pretty much anything with `sudo make install` would fail, as would some software.
- Running nmap caused an alert to phone home to IT, who would nag me on slack.
- Opening well-known ports to my LAN (like 22) caused an alert to IT.
- An "agent" program ran constantly, often using 100% of a CPU. The system overall had about 45 minutes of battery life.
- Various system settings were overridden by a sysctl.d/ file that was regenerated by the agent at boot. Fortunately I know how ASCII sorting works and could produce a file that overrode the overrides.
- Various capabilities (CAP_...) were disabled for my sudoer user.
It wasn't that bad, and IT was helpful, but it was a persistent annoyance. Maybe what happened is somebody googled "how to harden Linux" and then just made everything on the first page of results company policy.
comment 1y ago · link · parent
> If the file argument contains a slash character, the file argument shall be used as the pathname for this file. Otherwise, the path prefix for this file is obtained by a search of the directories passed as the environment variable PATH [...]
[1]: https://pubs.opengroup.org/onlinepubs/009695399/functions/ex...
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
Fair point, but if somebody were actually to say that to me during a disagreement, I would assume that they were not acting in good faith.
Now instead of disagreeing about politics or whatever, you're asking a rhetorical question that insinuates "you are unreasonable."
comment 1y ago · link · parent
html(['ul', {'class': 'foo'}, *(['li', item] for item in items)])
I guess template strings do make it more concise. Kind of like Racket's "#lang at-exp racket".The benefit of lisp-like representation is you have the entire structure of the data, not just a sequence of already-serialized and not-yet-serialized pieces.
comment 1y ago · link · parent
<https://oceanservice.noaa.gov/education/tutorial_tides/tides...>
comment 1y ago · link · parent
> Even if it works, the method will not generate energy from thin air. It would tap Earth’s kinetic energy and, in doing so, cause the planet’s spinning to slow over time — although only slightly. If the technique provided all of Earth’s electricity needs, which was around 11 trillion watts in 2022, this would slow the planet’s spin by 7 milliseconds over the next century, the authors calculate. This is similar to the change in speed caused by natural phenomena such as the Moon’s pull and changing dynamics inside the planet’s core.
comment 1y ago · link · parent
> In short ways, four forces of change – Kerala’s reintegration with the global economy, remittances from the Persian Gulf, strong welfare policies from a legacy of Leftist government, and private investment from individuals and businesses who shared the remittance flows – have combined to form the structure of Kerala’s miracle of human wellbeing with economic growth.
comment 1y ago · link · parent
comment 1y ago · link · parent
If I'm sitting at a desk at home anyway, I prefer to plug things in. Power: don't have to think about battery life or power saving modes. Ethernet: don't have to think about wifi. Headset: don't have to think about bluetooth, codecs, or battery. Keyboard: low latency, has followed me through four jobs.
I do use one of those wireless logitech mice, though. The AA battery gives it a nice weight.
comment 1y ago · link · parent
Namespaces are used to qualify tags and attributes in XML elements. But they're also used by XSD to qualify the names of types defined in the schema. A sequence element's type is indicated by the value of its "type" attribute. The attribute value is a string that is the namespace-qualified name of the type.
So, if you want to change the alias of an XML namespace in an XSD schema, you can't just use your XML library's facilities for namespace management. You also have to go find the "type" attributes (but not all of the "type" attributes), parse their values, and do the corresponding alias change in the type name.
Don't use a string for a thing that is not a string! I guess in XML attributes you have no choice. XAML improved on the situation a bit.
[1]: https://github.com/dgoffredo/stag/tree/master/src/stag/xsd-u...