Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
progval
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
511.
▲
by
progval
4y ago
It does: what Python calls lists are actually (dynamic) arrays. There is also this module, which provides unboxed arrays: https://docs.python.org/3/library/array.html
512.
▲
by
progval
4y ago
Ropes do this too; each node is labeled the size of its subtree. If you want to compute line numbers as well, add them as another label
513.
▲
by
progval
4y ago
https://en.wikipedia.org/wiki/Rope_(data_structure)
514.
▲
by
progval
4y ago
It depends whether you interpret "23:59:59" as being an instant (1 second before the end of most days) or a duration (the last second of most days). 23:59:59.500 is after 23:59:59 when interpreted as an instant, but it is part of
515.
▲
by
progval
4y ago
> but if someone is harassing you in PRIVMSG there's often nothing you can do The large majority of IRC networks are centrally managed these days, so you can talk to the network operators so they ban the person from the network. >
516.
▲
by
progval
4y ago
UnrealIRCd also supports this chathistory extension. And both UnrealIRCd and InspIRCd support replaying the last handful of messages to clients which don't support the extension. https://www.unrealircd.org/docs/Cha
517.
▲
by
progval
4y ago
Not for forks https://github.com/dependabot/dependabot-core/issues/2804
518.
▲
by
progval
4y ago
It's not, but there is a 2-3s startup and shutdown delay, which I find too annoying for CLIs
519.
▲
by
progval
4y ago
> I like Android's system of per-app uid/gid. But AFAIK it's not implemented by any mainstream Linux kernel or distro. You can create users manually for each app. For GUI apps, https://firejail.wordpress.com
520.
▲
by
progval
4y ago
It will survive it until someone touches the affected blob, then they'll converge to the version that person has.
521.
▲
by
progval
4y ago
The JVM has a similar feature since in the early 2000s: https://www.flux.utah.edu/janos/jsr121-internal-review/java/... I don't know how popular it was in Java's heydays, but it doesn't seem us
522.
▲
by
progval
4y ago
untrustworthy server that runs malicious JS: potentially half the links one clicks on HN or Reddit short secrets which aren't mitigated by MFA: session cookies, TLS client certificates, secret keys of e2ee IM apps (eg. Element), Zerobi
523.
▲
by
progval
4y ago
> give me XHTML You can still use XHTML; just send "Content-Type: application/xhtml+xml". You can express the same things as an HTML document, but with a saner parser mode.
524.
▲
by
progval
4y ago
Looks like a typical PR from young programmers who are learning English, which is consistent with the rest of the profile.
525.
▲
by
progval
4y ago
I was replying to someone who said everyone should switch to Matrix, and calling "uncooperative" anyone who doesn't, as if Matrix was somehow objectively superior to every other IM protocol. I agree it is better than most (ma
526.
▲
by
progval
4y ago
> i don't think anyone wants bridges...its merely an artifact of others not cooperating Matrix itself does not cooperate with others. They could have avoided XMPP bridging by building on top of XMPP instead of creating their own p
527.
▲
by
progval
4y ago
SDKs should typically return a lazy iterator in languages which support it, so caller do not even care about pagination and just iterate on it until they don't want any more data; while the SDK fetches new pages when needed. In pseudo-
528.
▲
by
progval
4y ago
> intentionally hiding content with explicit commands no one would ever use Try browsing the web with JS and/or CSS disabled, you may be surprised to see how common it is to use <body hidden> and equivalents. Just by disabling
529.
▲
by
progval
4y ago
Being an open standard certainly slows down progress of IRC; but the main reason IMO is that barely anyone is paid to work on it. This is were Element excels: they managed to get investors on board, allowing them to get hundreds people paid
530.
▲
by
progval
4y ago
Reusing datetime.timezone would not make sense. datetime.timezone represents fixed UTC offsets, while ZoneInfo objects represent IANA timezones (which generally don't have a fixed offset).
531.
▲
by
progval
4y ago
Containers do not sanitize what programs send to the terminal emulator
532.
▲
by
progval
4y ago
It can happen by accident, eg. https://www.openwall.com/lists/oss-security/2016/11/04/12 Archived version of the linked commit: https://archive.softwareheritage.org/browse/revis
533.
▲
by
progval
4y ago
https://news.ycombinator.com/newsfaq.html#dead
534.
▲
by
progval
4y ago
For what it's worth, Debian packagers check signatures when downloading from PyPI.
535.
▲
by
progval
4y ago
It's not a new one. https://news.ycombinator.com/item?id=30403848 was exactly the same exploit.
536.
▲
by
progval
5y ago
> JSON has no namespaces Causing all extensible JSON-based protocols to eventually reinvent them: * https://www.w3.org/TR/json-ld11/#compact-iris * "If new events are added, the event type key SHOULD follo
537.
▲
by
progval
5y ago
I don't know about this proposal in particular, but it is common for garbage-collected languages to use the highest bit to distinguish pointers and integers; which means integers cannot use it.
538.
▲
by
progval
5y ago
> The only thing left intact is the raw Git commit history.
539.
▲
by
progval
5y ago
When you do, just make sure you use the `--directory` option of `mktemp` to use the same directory as the final file. This makes sure both files are on the same filesystem, so `mv` is atomic (and faster).
540.
▲
by
progval
5y ago
The OP release notes announced "As we value safety, these new features come with their own moderation tools–nothing will show up in trends unless reviewed by one of the server’s moderators first." Just a week later, here is a pull
More ›