Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LK5ZJwMwgBbHuVI
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Problem is, plenty of software doesn't actually look at the match but rather just validates that there was a match (and then continues to use the input to that match).
2.
▲
by
LK5ZJwMwgBbHuVI
3y ago
> In theory yes, in practice no. That's like "in theory we need 4 bytes to represent Unicode, but in practice 3 bytes is fine" ( glances at universally-maligned utf8mb3 )
3.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Yes, languages really need some sort of "raw string" feature like Python (or make regex literals their own syntax like Perl does). That's the solution here, not using weird characters...
4.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Factually incorrect.
5.
▲
by
LK5ZJwMwgBbHuVI
3y ago
It doesn't indicate the start of a new line, or files would start with it. Files end with it, which is why it is a line terminator. And it is by definition: by the standard, by the way cat and/or your shell and/or your te
6.
▲
by
LK5ZJwMwgBbHuVI
3y ago
That's a relatively recent invention compared to tools like `wc` (or your favorite `sh` for that matter). See also: https://perldoc.perl.org/functions/chop wherein the norm was "just cut off the last characte
7.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Why don't you go ask? $ echo -n foo | wc -l 0
8.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Yes. That's why time_t is signed, after all. Do you need to represent times before 1901? Then use 64 bits! Oh, and does it matter? You could just as well store the number of days and have more than enough precision with regard to event
9.
▲
by
LK5ZJwMwgBbHuVI
3y ago
<input type="datetime-local"> (plus some JS to turn it into a timestamp in UTC, since HTML is stupid)
10.
▲
by
LK5ZJwMwgBbHuVI
3y ago
> 12:30 PM eastern to arizona 12:30 PM Tuesday, Eastern Time (ET) is 10:30 AM Tuesday, in Phoenix, AZ
11.
▲
by
LK5ZJwMwgBbHuVI
3y ago
That's absolutely what standard time means. As opposed to local mean time. YOU are creating confusion.
12.
▲
by
LK5ZJwMwgBbHuVI
3y ago
> Misconception #11: A country stays in the same time zone during Daylight Saving Time In which he claims that DST must be a distinct timezone from standard time, followed shortly by > Misconception #15: There is always an unambiguo
13.
▲
by
LK5ZJwMwgBbHuVI
3y ago
... yeah? I know? "In practice though the only way to "fix" DNS that would've worked in the 80s would've probably been to require the request be padded to larger than the response..." It's not as complex a
14.
▲
by
LK5ZJwMwgBbHuVI
3y ago
We could have prevented the replay/amplification dos attacks that use DNS by making DNS use TCP. In practice though the only way to "fix" DNS that would've worked in the 80s would've probably been to require the req
15.
▲
by
LK5ZJwMwgBbHuVI
3y ago
It's much easier to bring your wife to understanding your personal preferences for interruptions, than to bring literally everyone in your life. In my experience, my wife (like many in our generation) doesn't like talking on the p
16.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Me: going into the store after finishing up a call, call my wife to try and find her My wife: phone on silent Me: wander around the store for 5 minutes to find her My wife: oh sorry my phone was on silent
17.
▲
by
LK5ZJwMwgBbHuVI
3y ago
I despise the feeling of wearing a watch (or almost anything else around my wrists). They're also a significant added expenses that many can't afford, and not nearly useful enough to actually justify that expense.
18.
▲
by
LK5ZJwMwgBbHuVI
3y ago
It's not even about pockets. I will NOT feel my phone vibrate in most cases, even if it's in my pocket and I'm sitting down so my phone is laying on top of my leg.
19.
▲
by
LK5ZJwMwgBbHuVI
3y ago
Why isn't wireless physical? Perhaps it's not massive :)