Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
missblit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
181.
▲
by
missblit
7y ago
There is (I'm assuming you mean to the web, not to the browser). On Firefox: Options -> Language -> Choose your preferred language for displaying pages
182.
▲
by
missblit
7y ago
Caveats: Won't protect against scrapers that execute JS (like ones based on headless browsers -- This includes some modern search engines!) Won't protect against anyone who takes some time to read their 80-some lines of minified &
183.
▲
by
missblit
7y ago
The days of everything being hand-optimized assembly are behind us. It still has it's niche, but for anything outside hot inner loops or extremely frequently called functions (like malloc), straightforward C++ will be just as fast. Mea
184.
▲
by
missblit
7y ago
As long as we're providing website critiques: * "Google want to automate us" should be "Google wants to automate us" * They should consider making the page about why not to use chrome in particular more discoverable
185.
▲
by
missblit
7y ago
Baidu will serve the script over HTTPS (though firefox complained about a bad certificate), the issue is that it will also serve it over HTTP, and some 3rd party pages request the HTTP version.
186.
▲
by
missblit
7y ago
> I'm a bit too tired right now to see a solution which isn't straight up eugenics, but it's an interesting problem to ponder about. Public record? Forced sterilization? Abortion? Of whom, carriers and affected or affected
187.
▲
by
missblit
7y ago
I just tested, and Bing Video Search returns non-Youtube sites even with strict SafeSearch. This is easiest to check by using the "-site:youtube.com" parameter, but they also show up for certain queries (try "news") or i
188.
▲
by
missblit
7y ago
I got frustrated after my previous mouse stopped clicking, but never remembered having trouble with mice "back in the day". So I decided to get an old ball mouse to see how long it would last. So far so good.
189.
▲
by
missblit
7y ago
This appears to be from the book How Products are Made: An Illustrated Guide to Product Manufacturing (Volume 5, ISBN 0787624446). Which as far as I can tell was published in 1999.
190.
▲
by
missblit
7y ago
One thing both this article and the last one did was conflate their system's built in WC program with the C programming language. They also compared a bare-bones wc program that only needs to care about the happy path versus one that n
191.
▲
by
missblit
7y ago
Why I'm using it to write a Qt desktop program of course. Actually a bit frustrating, since Qt is very opinionated in a way that hasn't aged well with newer C++ standards, but it is probably one of the best cross platform UI libra
192.
▲
by
missblit
7y ago
Not sure I'd recommend the C++ standard for learning the language for a couple of reasons: * It's gosh darn huge * While not the hardest standard to read, it is still a standard, so has to be focused on really really low level det
193.
▲
by
missblit
7y ago
It's possible I'm just used to it, but I've never found std::string more complicated than, say, python (what's up with unicode in 2 vs 3?) or JavaScript (UTF-16 = surrogate pair pain). It's essentially a std::vector
194.
▲
by
missblit
7y ago
You can try to get a rough idea by doing web searches for various random integers of different lengths (courtesy of random.org, which graced me with lots of 7's). 7 - A lucky number 92 - How old Lady Gaga wants to be when she retires 4
195.
▲
by
missblit
7y ago
Having bug-free code in production is secondary to having a working system. So it's arguably irrelevant that A was the buggy version, because A was also the only known-good battle-tested version. As a developer who's also in charg
196.
▲
by
missblit
7y ago
Was rotating with CSS transforms an option? That way you'd only need to read the EXIF data, but wouldn't need to go all the way to rotating the pixels yourself.
197.
▲
by
missblit
7y ago
> Terminals vulnerabilities are a bit more serious: It means don't anything involving PII on any remote computer either, from "that computer". I'm not sure I understand the distinction. If someone's taken control
198.
▲
by
missblit
7y ago
I just always did homework in class. More productive than zoning out. Though in meetings I always pay attention, this may sound weird, but I like the social aspect of meetings.
199.
▲
by
missblit
7y ago
Per [1] it sounds like it should be usable with "position: fixed". Though I can't test it right now. There's some interesting (hopefully not outdated) discussion in the Chromium bug here [2][3] which helps explain why th
200.
▲
by
missblit
7y ago
From the article: > The 11-digit codes [...] are hard to memorise and a single mistyped digit would send a courier to the wrong address. The plus codes FAQ [1] mentions that they thought checksums weren't important for a couple of r
201.
▲
by
missblit
7y ago
I have some unicode string truncation code at work. It just mindlessly chops off any codepoints that won't fit in N bytes. No worrying about grammar, combining characters, multi-codepoint-emoji, etc. This is because the output doesn&#
202.
▲
by
missblit
7y ago
See also: https://graphics.stanford.edu/~seander/bithacks.html#CountBi...
203.
▲
by
missblit
7y ago
Might as well just use strtok_r everywhere and not worry about if you're using strok safely or not.
204.
▲
by
missblit
7y ago
True to form, there's multiple forms of const in C++. const on a methond says "I won't mutate the state of this class (except for members explicitly marked as mutable) A const reference says I won't mutate this (unless I
205.
▲
by
missblit
7y ago
Didn't Heartbleed rely on reading uninitialized data? I'd assume memory safety includes preventing code from reading uninitialized data.
206.
▲
by
missblit
7y ago
Bing also renders JavaScript [1][2]. Though there's not a lot of information out there about the details like what browser engine they use. [1] https://blogs.bing.com/webmaster/october-2018/bingbot-Series...
207.
▲
by
missblit
7y ago
I'm not familiar with writing code to wipe memory, but couldn't you just use volatile keyword? Volatile writes are not supposed to be optimized away, and pointers to non-volatile types can be cast to pointers to volatile types. Ed
208.
▲
by
missblit
7y ago
But nothing ensures that domain name will always point to localhost. So why should browsers trust it more than other HTTP domains? It's owned by one person, so DNS registration could lapse even with the best intentions.
209.
▲
by
missblit
7y ago
> How do you detect the modifications? We compute the hashes of the files regularly. If only one character in a file changes, his hash will change. Does this include HTTP headers? For instance a yay.js framework that helps people print &
210.
▲
by
missblit
7y ago
As an old(?) person who does everything by the book in C++, I couldn't really relate to it. At least at my company it's hard to get hired to a programming position on soft skills alone. I've interviewed some very nice people
More ›