Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zeroimpl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
421.
▲
by
zeroimpl
8y ago
And if your app has any kind of online component, there's probably an HTTP request hitting your server whenever the user launches the app. So even without explicit telemetry in the app, you can easily get decent data from your web serv
422.
▲
by
zeroimpl
8y ago
You can do that all online with most cards. It's also likely extremely rare that your card number is stolen this way (it's never happened to me as far as I'm aware).
423.
▲
by
zeroimpl
8y ago
I look it at the opposite. As a user, the only thing Paypal protects is your credit card info. Your personal information (name and address) gets passed on to the merchant regardless. There's zero risk to us consumers for stolen credit
424.
▲
by
zeroimpl
8y ago
But it does, because HTTPS can ensure you always get up to date data. They have a solution involving timestamps for HTTP, but that is still clearly less secure than the guarantee from HTTPS.
425.
▲
by
zeroimpl
8y ago
They could also improve the download client to fix this. For example, if the download client uses the byte-range HTTP requests to download files in chunks, there is nothing stopping it from randomly requesting some additional bytes from the
426.
▲
by
zeroimpl
8y ago
In PostgreSQL, if you specify a decimal literal, it is assumed to be type NUMERIC (arbitrary precision) by default, as opposed to FLOAT or DOUBLE PRECISION. If you stored your values in table rows as DOUBLE PRECISION, you would of course ge
427.
▲
by
zeroimpl
8y ago
The string representation is for display purposes/information exchange only. I'm sure most implementations would internally store the data in a 16-byte form (eg the C implementation uses __uint128_t), where the data is essentially
428.
▲
by
zeroimpl
8y ago
I think this commenting only makes sense if the design is atypical. Probably 90% of the code I write is following design patterns already used throughout the code base.
429.
▲
by
zeroimpl
8y ago
Changing your password for a google account seems to involve going to myaccount.google.com (which is not the domain your login is associated with) - so clearly this needs to support redirects to different subdomains.
430.
▲
by
zeroimpl
8y ago
Not everybody agrees on the best way to draw text (some people like it blurry, others like it higher contrast), so I think the target users may matter to some level. It also varies by OS, and the OS even have options to let users influence
431.
▲
by
zeroimpl
8y ago
I tried your SQL in the demo, and it came out like this: SELECT field, other_field FROM TABLE WHERE some_thing IN ( SELECT id FROM other_t
432.
▲
by
zeroimpl
8y ago
Agreed. Having to support both the iPhone SE and the iPhone X aspect ratio is really difficult since they are on opposite extremes. I'm quite pleased with the removal of this size configuration - hopefully in about 2 years we won'
433.
▲
by
zeroimpl
8y ago
Thanks. I didn't read it carefully enough the first time but I see that mentioned now.
434.
▲
by
zeroimpl
8y ago
Did the mice which had access to food 24/7 eat more overall than the mice with restricted food access? If so, then the study seems useless because the results can entirely be explained as excessive eating leads to health problems. I do
435.
▲
by
zeroimpl
8y ago
I recalling seeing these referred to as modp (positive) and mods (symmetric) back in University. This seems to be the clearest way to distinguish them. I didn't realize different popular programming languages used different version
436.
▲
by
zeroimpl
8y ago
Right - would be great if more languages supported that, specifically Javascript.
437.
▲
by
zeroimpl
8y ago
This suggests the only safe portable way to represent hex is one of these? [1234567890abcdefABCDEF] or [\dabcdefABCDEF] That sucks. Fortunately I don't use C, but I'm worried about this finding its way into other languages...
438.
▲
by
zeroimpl
8y ago
The base HTML/javascript coming from the itty.bitty server does not make it smaller. As a matter of fact, it appears that the javascript provided by itty.bitty simply decompresses the URL fragment and then converts it into a data-URI a
439.
▲
by
zeroimpl
8y ago
You just add quotes around $dir. Bash understands the quotes properly/recursively. parent_dir = "$(basename "$dir")"
440.
▲
by
zeroimpl
8y ago
While this syntax looks decent to me, I'm curious why they didn't go with a heredoc approach, e.g.: String s = <<<TEXT <html> <body> contents </body> <&
441.
▲
by
zeroimpl
8y ago
Yes unless the websites are using a CDN with shared IP addresses. I wonder what % of the web that covers nowadays.
442.
▲
by
zeroimpl
9y ago
Nope but I will next time. This is quite clever. It's likely equivalent to using arbitrary precision numbers but probably performs a lot better.
443.
▲
by
zeroimpl
9y ago
I've run into this problem when keeping a single large (100000+) list sorted. In my case it was very important not to change the sort value on rows that didn't need to. I had considered most of the solutions listed in the article
444.
▲
by
zeroimpl
9y ago
As far as I can tell, there's really no advantage to using floating point/fractions at all. I've used an integer-based solution for this very problem in the past. You can apply the same logic of finding the midpoint between t
445.
▲
by
zeroimpl
9y ago
Seriously. Would be great if somebody could just declare a new mime-type such as "text/html5" that could be used to activate modern html rendering in email clients and would be shipped alongside the existing "text/h
446.
▲
by
zeroimpl
9y ago
You don't need to keep a master list of IP addresses up to date, you only have to test an IP when a request for a cert comes in from that IP.