Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
421.
▲
by
sltkr
4y ago
By default, GCC ignores trigraphs in C code too. You have to explicitly pass -std=c17 (or whatever) to get standard-conforming behavior including trigraphs.
422.
▲
by
sltkr
4y ago
Link those two images please? (And why would you make a comment like that without actually linking which images you're talking about?) edit : I think this is the one that is aligned: https://www.airdomainintelligence.mil&#x
423.
▲
by
sltkr
4y ago
Personally I'm mostly offended how stale and unoriginal a lot of these jokes are, but I can definitely see why the censors took offense at some of them. For example, the joke about the Chinese restaurant ("I'd be more concern
424.
▲
by
sltkr
4y ago
Posting screenshots to Twitter has to be the least convenient way to share code online (short of actual trolling).
425.
▲
by
sltkr
4y ago
Try replacing twitter.com with nitter.net or twiiit.com in the URL. The latter is a proxy for various Nitter instances, which is useful if nitter.net itself is overloaded, which is happening more and more these days because obviously it
426.
▲
by
sltkr
4y ago
So I guess the real story is that Twilio does not require second-factor authentication for employees that have access to user data? It seems like hardware-based 2FA with something like FIDO/U2F would have easily stopped this attack and
427.
▲
by
sltkr
4y ago
> The second comment touches on how just because the limit of something approaches 0, you can't treat it as 0. I think this one is a little more subtle. You can definitely treat the limit of something as an exact value. If you split
428.
▲
by
sltkr
4y ago
Not to turn this into a language debate, but I think it's worth pointing out that Dart is a completely new language that has a more succinct syntax and more sensible semantics than JavaScript. TypeScript is different in that it intenti
429.
▲
by
sltkr
5y ago
That code doesn't even swap the floats.
430.
▲
by
sltkr
5y ago
All permutations are solvable. To swap two horizontally adjacent elements and leave the other cells unchanged, place the cursor on the left element and enter 'dsdwdsddw'.
431.
▲
by
sltkr
5y ago
This is described in more detail here: https://support.mozilla.org/en-US/kb/configuring-networks-di... Part of it is doing a test DNS query to a canary domain to see if it's intercepted, but the domain is use
432.
▲
by
sltkr
5y ago
Anyone can upload their content to Archive.org if they want to preserve it for posterity.
433.
▲
by
sltkr
5y ago
Kagi requires users to sign up (even though it's currently free?) which is 1000x more user-hostile than anything Google does and makes it a nonstarter as far as I'm concerned.
434.
▲
by
sltkr
5y ago
It's called Lingo. Apparently it was invented in the USA, but had a bunch of national variants: https://en.wikipedia.org/wiki/Lingo_(American_game_show) It was pretty popular in the Netherlands as well: https:&#x
435.
▲
by
sltkr
5y ago
Isn't the site entirely static, including the word list and daily answer? You should be able to download a local copy for yourself and play that from now on.
436.
▲
by
sltkr
5y ago
So what was the deal with the Scottish flag?
437.
▲
by
sltkr
5y ago
The counterargument to this is that the kernel can make decisions based on nonlocal information about the system. If your database server is the only process in the system that is using significant memory, then sure, you might as well manag
438.
▲
by
sltkr
5y ago
Sounds like those would provide rather biased samples because changing your DNS server from whatever you get from your ISP via DHCP is something that approximately no normal person would ever do.
439.
▲
by
sltkr
5y ago
That's a very US-centric view. There are many countries in the world where median wages are below $1000/month, and then $10/month is 1% of your income, which is a significant expense. Increasing the price even further means t
440.
▲
by
sltkr
5y ago
> See, now you have 3 files, the .h/.c file pair of the library, and your own implementation source file with the configuration which includes a .c file. The third source file is what the library authors suggested; I'd just cre
441.
▲
by
sltkr
5y ago
> In general, STB-style headers simplify C/C++ build system shenanigans. Too vague. How is it better, concretely? > E.g. one benefit is that you can configure the implementation via preprocessor defines without the defines leakin
442.
▲
by
sltkr
5y ago
So what's the compelling reason to ship these as a single source file, instead of using the more logical and standard solution of a single header and a single source file? Unlike C++ header-only libraries, C libraries like this still n
443.
▲
by
sltkr
5y ago
> Because of this hash the algorythm seems to do something else than first described though. Instead of "a running array of the 64 pixels it previously encountered", it's actually the previous 64 pixel _values_ previously
444.
▲
by
sltkr
5y ago
You're probably thinking of the "First Click Free" program, which was intended mainly for news sites, and required those sites to present users with the full content of an article if they arrived on it by clicking on a Google
445.
▲
by
sltkr
5y ago
Why do you assume they make no money off that? A 10TB HDD costs about $250. At $7/month, they earn that back in 3 years, way below the mean time to failure. Of course there's overhead too, but a lot of that goes down with scale, s
446.
▲
by
sltkr
5y ago
You're conflating two separate use cases. The point of the numerical-offset notation is exactly to denote a fixed point in time. For the birthday party example: it's not a given that I want to reschedule it when the local time zon
447.
▲
by
sltkr
5y ago
This won't actually compile, even if you format it correctly, because a label must be followed by a statement.
448.
▲
by
sltkr
5y ago
He has not quitting. He's making a comeback. The title refers to the ten-year break he took. This is clear if you don't comment on just the headline but take the time to read literally the first sentence below it.
449.
▲
by
sltkr
5y ago
Have bad actors set up automation to watch all commits to all Github repositories to detect mistakes like this? Otherwise, how can the mistake be exploited in 5 minutes? And if so, maybe Github should deploy some countermeasures? Like, bloc
450.
▲
by
sltkr
5y ago
This is possible, but typically this is not done for generic hash tables because it requires keys to be ordered (i.e. there must be a function that can tell whether one key is less than, greater than, or equal to another) while the current
More ›