236 karma · joined Feb 9, 2019 (7y ago) · 52 submissions
comment 1y ago · link · parent
The best use case I know of for these kinds of things is as a way to prevent sql injection. SQL injection is a really annoying attack because the "obvious" way to insert dynamic data into your queries is exactly the wrong way. With a template string you can present a nice API for your sql library where you just pass it "a string" but it can decompose that string into query and arguments for proper parameterization itself without the caller having to think about it.
comment 1y ago · link · parent
> and reality does not collapse immediately
How do you know that reality does not collapse immediately? At any given instant you could be a fresh brain that just came into existence, all your previous memories which imply a life lived up to this point also formed in that same instant.
comment 2y ago · link · parent
The voting and flagging systems, along with the work of the moderators, are perfectly capable at managing the comments. No need to try to police them yourself.
comment 2y ago · link · parent
What you will find is that the modules form a set of binary counters (chains of flip flops), with a number encoded into them via whether they are connected to a "hub" node of the chain (a conjunction).
You can parse the module structure and traverse the graph to extract that number. The connections to the hub are the bits of the number (1 if module is connected, 0 if not). Do that for all the counters and LCM (or multiply since they are all coincidentally co-prime) them together to get your answer.
No simulation required.
comment 2y ago · link · parent
comment 2y ago · link · parent
https://blog.kagi.com/unlimited-searches-for-10
> We’re thrilled to announce that unlimited search is now included in our $10/month Professional plan and our Ultimate, Family, and Duo plans.
comment 3y ago · link · parent
HATEOAS is for humans
I haven't really thoughy about REST in relation to all the recent ML advancements. REST (With HATEOAS) might actually be a good way to expose APIs to these agents since they now have some ability to "reason" about responses beyond a hardcoded set of handlers
comment 3y ago · link · parent
From my understanding Roy Fieldings dissertation was a description and formalization of the web as it has been built, not just prescriptive advice on software architecture. To say it's not useful is to ignore how humans browse the web.
comment 3y ago · link · parent
comment 3y ago · link · parent
Mobile experience is poor, I suggest not trying to use your phone.
comment 3y ago · link · parent
comment 4y ago · link · parent
> Unfortunately, and for reasons that are still unclear, this triggered YouTube's auto-detect system for spam. Hundreds of accounts in Mark's 'community' have been banned. ... Being banned from your YouTube account is one thing; ... However, these fans' Google accounts were banned, meaning they lost access to their emails, ...
The accounts may have eventually been reinstated, but to me it showed a willingness to ban an entire google account from a minor infraction in some individual service, which I was just not comfortable taking the risk on.
Not exactly the same as what you're responding to, but very similar.
comment 4y ago · link · parent
comment 4y ago · link · parent
Is there some common source for Kobo-compatable rust code that you both drew from, or was plato the original source?
EDIT: Nevermind, should have looked closer, you already called out that you drew from plato
> The code responsible for rendering to the eInk display is written by baskerville and taken from https://github.com/baskerville/plato
comment 4y ago · link · parent
I've been running Tailscale on all my devices for a couple months now, and I haven't noticed any impact on battery life. I just checked my phone (Android) and it's reporting 1% usage.
I would report an issue if you're seeing numbers that high.
comment 4y ago · link · parent
- 18F https://github.com/18f
- GDS https://github.com/alphagov
- CDS https://github.com/cds-snc
I do agree with the sentiment, it's absurd that any software developed through public means is not available to the public.
comment 5y ago · link · parent