News for hackers. Stuff that matters.

jnspts

Re:Few lesser known tricks, quirks and features of C on Saturday July 01, 2023 @02:20PM (#36553274)

  C11 added _Generic to language, but turns out metaprogramming by inhumanely abusing the preporcessor is possible even in pure C99: meet Metalang99 library.
I'm actually working on a library doing just that! It's still in very (very) early development, but maybe someone may find it to be interesting. [1]

Link [2] is the implementation of a vector. Link [3] is a test file implementing a vector of strings.

[1]: https://github.com/jenspots/libwheel

[2]: https://github.com/jenspots/libwheel/blob/main/include/wheel...

[3]: https://github.com/jenspots/libwheel/blob/main/tests/impl/st...

Re:TypeScript 5.2's New Keyword: 'using' on Monday June 19, 2023 @09:14AM (#36390701)
It's not an array, but a way of using a variable as a key in an object.

const name = "key"

const example = { [name]: "value" };

This would result in

const example = { key: "value" };

Depending on the model, the camera might be physically disabled when the lid closes. [1]

In general, if you don't trust a device one hundred percent, you shouldn't use it anyway. You have no way of knowing whether or not your company enabled the root user and added some shady, untraceable-to-you software prior to giving you the device. Also, Apple MDM software is zero-configuration, so they wouldn't even have to open the box. [2]

Why not just ask your employer what kind of tracking they do, though? I would totally understand them tracking the location of the device for insurance reasons, as long as they are transparant about it. It's still company property. "Listening" to the microphone seems a major breach of privacy whether you're at work or at home, and I'm sure your local laws prevent you against that kind of corporate behavior. Also, who would want to work for a company that does that, anyway?

I'd just use my personal device for personal stuff.

[1]: https://support.apple.com/en-gb/guide/security/secbbd20b00b/... [2]: https://www.apple.com/business/docs/site/Mac_Deployment_Over...

Re:Orion Browser on Friday June 03, 2022 @05:16AM (#31605983)
Interesting for sure. But it’s not FOSS, which really is a shame. Can’t know for sure that it’s not phoning home unless you’re sniffing packets 24/7.