148 karma · joined Mar 20, 2025 (1y ago) · 59 submissions
comment 1y ago · link · parent
So what happens when synesthetes watch a movie that is showing blue colors, but the score that they are hearing at that time is making them see red. Do they perceive that as a dissonance?
comment 1y ago · link · parent
comment 1y ago · link · parent
There was also residual suspicion of European industry among US airliners. [...]
Against this backdrop, Airbus did everything it could to deemphasize its European heritage as it toured the US.
The European tech industry on the other hand managed to curb that suspicion by becoming a complete non-threat.comment 1y ago · link · parent
There you can find a recursive macro expansion implementation (as a gcc hack) that fits on a slide:
#2""3
#define PRAGMA(...) _Pragma(#__VA_ARGS__)
#define REVIVE(m) PRAGMA(push_macro(#m))PRAGMA(pop_macro(#m))
#define DEC(n,...) (__VA_ARGS__)
#define FX(f,x) REVIVE(FX) f x
#define HOW_MANY_ARGS(...) REVIVE(HOW_MANY_ARGS) \
__VA_OPT__(+1 FX(HOW_MANY_ARGS, DEC(__VA_ARGS__)))
int main () {
printf("%i", HOW_MANY_ARGS(1,2,3,4,5)); // 5
}
It sounds like the one in the article works for more compilers, but there doesn't seem to be a copy-pasteable example anywhere to check for myself. Also, the "Our GitHub Org" link on the site just links to github.com.comment 1y ago · link · parent
[0] apparently using this https://icculus.org/mojosetup/
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
You would think the very idea of years of your work being rendered unplayable in an instant would be enough incentive to signal boost any effort against this industry practice.
Instead, developer discourse has revolved around just how hard it would be to do what this is petition is asking for. You are an engineer for crying out loud. If you solved a problem but a new constraint arrives in the form of a law, you figure out how to solve the problem under the new constraint. Just because something is hard, doesn't mean it's not worth doing.
It's almost like flexing your skills and signalling your elite knowledge is more important to people than simply defending what's right.
comment 1y ago · link · parent
This has been one of the key programs for me to move 90% of my "timeline" into an rss reader.
If you self-host it, you can also pass it authentication tokens to RSSify things like:
- your twitter timeline
- github notifications, issues, commits
- discord messages
- youtube subscriptions
- spotify/twitch/steam/etc.
comment 1y ago · link · parent
Why not push/pop warnings to ignore in the library?
_Pragma("GCC diagnostic push")
_Pragma("GCC diagnostic ignored \"-Wshadow\"")
int a = 1;
{
int a = 2;
}
_Pragma("GCC diagnostic pop")comment 1y ago · link · parent
Seems to be a myth: "There is an often repeated myth that the many witnesses to the accident did not dare to touch the queen, a capital offense—not even to save her life. However, this was not the case; the King's diary records that boatmen dived into the water, pulled the queen and her daughter from the entangling curtains, and carried them to another boat, where attendants worked in vain to resuscitate them."
comment 1y ago · link · parent
comment 1y ago · link · parent
I always considered the time aspect to be the more important "factor" of TOTP in practice. E.g., if somebody managed to peek over your shoulder or film you while typing in your password. With TOTP, they have under a minute to capitalize on that information. I still have that base covered with my password manager handling the secret key, so I never saw the appeal of tying TOTP to a phone.