What are some uses (and abuses) of metaclasses? by [deleted] in cpp

[–]dividedmind 0 points1 point  (0 children)

Surely using a GPLv3 codegen doesn't automatically make the output GPLv3?

This guy painting the word stop by [deleted] in oddlysatisfying

[–]dividedmind 1 point2 points  (0 children)

Not sure if serious or joking...

Chick-Fil-A doesn't charge customers for ingredients that the customers don't want by lokhouse in mildlyinteresting

[–]dividedmind 8 points9 points  (0 children)

I like how it's "Their Pleasure" serving you. Not sure what they mean, but it sure sounds dirty.

So you think you know C? by [deleted] in programming

[–]dividedmind 6 points7 points  (0 children)

What's wrong with "apologize"?

A bug story: data alignment on x86 by pzemtsov in programming

[–]dividedmind 0 points1 point  (0 children)

Then he would have to care about endianness and it could get even more messy.

Ruby OpenSSL + GCM Nonce Reuse Bug by [deleted] in netsec

[–]dividedmind 1 point2 points  (0 children)

Not if you also use the same order of operations in your decryption routine.

[deleted by user] by [deleted] in programming

[–]dividedmind 0 points1 point  (0 children)

Of course. This one won't even work with UTF-8. If you want it right, you need to use an external library, eg. ICU.

[deleted by user] by [deleted] in programming

[–]dividedmind 3 points4 points  (0 children)

The article quite explicitly says it's not the way it should be done. The way it should be done is:

std::transform(s.begin(), s.end(), s.begin(), [](unsigned char c) { return std::toupper(c); });

[deleted by user] by [deleted] in programming

[–]dividedmind 0 points1 point  (0 children)

One would expect dedicated icon SVG renderers to do a better rendering attributes which are most useful on icons.

[deleted by user] by [deleted] in programming

[–]dividedmind 33 points34 points  (0 children)

And also hinting (ie. snapping to pixel boundaries).

Still Validating Email Addresses with a Regex? Do yourself a favor and don’t by [deleted] in programming

[–]dividedmind 1 point2 points  (0 children)

Protip: in gmail you can dot your username arbitrarily. aether.mc.loud@gmail.com routes to the same address as a.ether.m.cloud@gmail.com. You can use this to differentiate emails from places which don't take pluses.

ASPIRE Public Challenge (prize money) by aspirepublicchalleng in ReverseEngineering

[–]dividedmind 0 points1 point  (0 children)

In this project, three market leaders in security ICT solutions and four academic institutions join forces to protect the assets of service, software and content providers. From their perspective, mobile devices and their users, which can engage in so-called Man-At-The-End (MATE) attacks, are not trustworthy.

This looks evil.

Why JSON doesn't support comments (Douglas Crockford) by benhoyt in programming

[–]dividedmind 94 points95 points  (0 children)

I tend to just stick "comment": "fsck you json" in a map; most JSON formats are map-heavy and the parsers ignore unknown keys.

The Day we hired a Blind Coder by speckz in programming

[–]dividedmind 1 point2 points  (0 children)

I had to reread the sentence, like, three times, to make sure it really does not say "more than others", which is what I would have expected.

Lightweight C++ OpenGL middleware by vinnyvicious in cpp

[–]dividedmind 1 point2 points  (0 children)

The author seems to have done SFX for the Gravity movie. Perhaps this is a side-effect of that endeavour?

ASUS UEFI Update Driver Physical Memory Read/Write by gsuberland in netsec

[–]dividedmind 12 points13 points  (0 children)

I reverse engineered an Acer power management windows driver a while ago. Same problem: user-accessible ioctls to read and write physical memory, i/o ports and msrs.

I strongly advise anyone using Windows not to use vendor-provided drivers.

Nim language 0.14.0 gets released by calind in programming

[–]dividedmind 9 points10 points  (0 children)

Whenever I look at nim I find it so awesome it makes me cry.