Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
missblit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
211.
▲
by
missblit
7y ago
Yep not a bug. Or at least if it's a bug, it's a bug in the HTML spec. But really I think it's pretty reasonable behavior. Short answer is standard says to parse the contents of <style> elements as text. Long answer is
212.
▲
by
missblit
7y ago
What does PC-engineer mean? How does politically-correct hiring select for them?
213.
▲
by
missblit
7y ago
Not unfixable, but there was a fun story about a game that shipped without the ability to be patched, so the developers later "patched" it by buffer overflowing their own EULA: https://www.gamasutra.com/view/f
214.
▲
by
missblit
8y ago
I believe Coinhive was actually webassembly, with a fallback to JavaScript.
215.
▲
by
missblit
8y ago
Fixed except when the user enables android split-screen mode! I believe split-screen mode implies the height of the browser window can change at runtime (in a JS visible way), but haven't looked at it recently.
216.
▲
by
missblit
8y ago
Scaling down the largest size isn't always appropriate (though would probably work in most cases). One example might be a set of images where the smaller images wrap text more agressively to work better on a screen that's not as w
217.
▲
by
missblit
8y ago
> the shift from old-school servers to rented cloud storage has made it tougher than ever to fund upgrades They do know that it's still possible to run old-school servers, right? There must be some upside or need to switch to cloud
218.
▲
by
missblit
8y ago
Naming Your Measures / Mandates.
219.
▲
by
missblit
8y ago
Did you get deep enough into WebKit to see that the namespace for the utility functions is called WTF? :) I also like how there are at least five string classes (to be fair, there are good reasons for most of them): String, AtomicString, St
220.
▲
by
missblit
8y ago
Is it just me or does outline.com not work at all half the time in any browser besides Chrome because it checks for the nonstandard `window.chrome` property?
221.
▲
by
missblit
9y ago
It's to prevent reading cross-origin images through JavaScript. A canvas is considered tainted if it contains data from a cross origin image that was loaded without CORS approval. Tainted canvases cannot be read from by JavaScript. I d
222.
▲
by
missblit
9y ago
That would have some downsides. You to browser behavior to url in a way that never been done before, it doesn't really account for mime types or content encoding, it isn't backwards compatible at all, it doesn't allow you to
223.
▲
by
missblit
9y ago
> (Second one is that there is no way to make specific queries to return results only in a certain language It's a little hidden away but advanced search can do this. For example: https://www.google.com/search?as_q=猫
224.
▲
by
missblit
9y ago
Boost asio has async IO that uses coroutines. I only ever used it for toy code, but it seemed to work pretty well.
225.
▲
by
missblit
9y ago
It's all fun and games until one of your appointmets is specified in rfc2550 format, and the meeting room is on a big ship crossing the international date line on the same day daylight savings time changes for the ship's country w
226.
▲
by
missblit
9y ago
And array over-runs are just the beginning! (friends don't let friends use idices over iterators) Had a fun bug at work once where we somehow accidentally built against two subtly incompatible versions of the same library. This actuall
227.
▲
by
missblit
9y ago
I found them useful when using the Boost Asio C++ networking library. I needed to read some bytes, make a decision, read some more bytes, make another decision, etc. This started out as callback hell since every read was asynchronous, which
228.
▲
by
missblit
9y ago
This actually reminds me of "es-operating-system"; an experimental operating system copyrighted by Nintendo (yes, Nintendo!), where "every system API is defined in Web IDL". AFAIK it never went anywhere, but maybe buildi
229.
▲
by
missblit
10y ago
Yep. Pulseaudio works similarly with enough poking and prodding. I was able to do stuff like watch cat videos on youtube with sound at full speed (though presumably not hardware accelerated).
230.
▲
by
missblit
10y ago
From the source code it looks like brew uses a UUID generated locally (e.g. from a source like /proc/sys/kernel/random/uuid). I don't see how it could be correlated with anything in the browser. In terms of the
231.
▲
by
missblit
11y ago
Ah thanks, I missed the isxdigit(s[2])
232.
▲
by
missblit
11y ago
I didn't look too closely, but I think it will fail when the string is "0x".
233.
▲
by
missblit
11y ago
Edit: I was responding to someone saying `(INT_MAX+1)` was implementation defined so couldn't go skynet; and I was asking honestly because the C standard is twisty as heck and maybe they knew something I didn't. ___ Isn't it
234.
▲
by
missblit
11y ago
> Weren't these the guys that famously wrote a blog post saying that culture is everything, and that people that come to interviews in suits are automatically denied? https://web.archive.org/web/20140618142018&#
235.
▲
by
missblit
11y ago
Not only can the compiler make it false. It can assume that the code would never make the comparison in the first place, and optimize away any cases where the undefined behavior is guaranteed to be triggered. So in a sense undefined behavio
236.
▲
by
missblit
11y ago
Google Code Search RIP :-(
237.
▲
by
missblit
12y ago
I have CentOS 7 installed on my desktop computer! There are dozens of us! Dozens! But I honestly don't have any major complaints. 1. Packages aren't THAT out of date (firefox is the latest ESR, gcc is 4.8) 2. Things tend to be nic
238.
▲
by
missblit
12y ago
Yes I agree completely. I was thinking about that after I wrote my comment, the code is only safe relative to the original sample, and it's only a band-aid for the lack of more comprehensive lifetime guarantees. Of course you can jump
239.
▲
by
missblit
12y ago
In C++ if the string is a rvalue reference you could std::move it into part of the return value. Think a signature like template<typename T> std::pair<std::string, std::vector<std::string_view>> tokenize_stri
240.
▲
by
missblit
12y ago
No, types are completely determined before link time. An auto return type means the type is inferred from the type of the expression that the function returns, so it's known from that.
More ›