Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drodgers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
drodgers
9y ago
Oh, yeah, we just ran into this recently when rolling-out parameter store. For anyone else having this problem, the trick was to use the GetParametersByPath API method ( https://docs.aws.amazon.com/systems-manager/latest
122.
▲
by
drodgers
9y ago
I'm pretty sure they mean operations on the block storage layer (EBS) as reported by AWS CloudWatch monitoring. It's a standard measure: https://en.wikipedia.org/wiki/IOPS
123.
▲
by
drodgers
9y ago
Bitcoin: a bargain at $40 per transaction in fees! Edit: And several hours to clear
124.
▲
by
drodgers
9y ago
It's not just naive though, it's wrong; it won't even give you new objects although it seems like it's meant-to: a = [1, {foo: "bar"}]; b = a.slice(0); b[1].foo = "baz"; console.lo
125.
▲
by
drodgers
9y ago
I believe that it's faster, but only because it's not actually deep-cloning. This: value.slice(0); is a shallow clone; it makes a new array, but doesn't clone it's contents.
126.
▲
by
drodgers
9y ago
Yes. Volumes: https://docs.docker.com/engine/admin/volumes/volumes/ Mount a directory from your local filesystem as a volume and file changes within that directory will appear immediately in the containe
127.
▲
by
drodgers
9y ago
I'm not a fan of over-regulation, but there are definitely some public good issues with plumbing in particular which justify some scrutiny by the state. For example, a bad/ignorant plumber could build a system where small quantiti
128.
▲
by
drodgers
9y ago
The best data I could find is here: http://www.ga.gov.au/scientific-topics/minerals/mineral-reso... That document lists 51GT of 'accessible economically demonstrated' iron ore, with an production rate of
129.
▲
by
drodgers
9y ago
Yeah, but the vast majority of Australia's economy (just like the US and all other developed countries) is services, not resources or manufacturing or farming. We just talk about resources because they're a distinguishing feature.
130.
▲
by
drodgers
9y ago
What? No. You just bring-up a replica, compact that (or do any other slow operation you want), wait for it to catch-up, then fail-over, making the replica the new master. There's no excuse for doing slow, blocking maintenance operation
131.
▲
by
drodgers
9y ago
Collections with tens of Gigabytes and hundreds of millions of records can take a few hours per-node to build an index. You'll need to think about index migration strategies before that point though. I'd guess that once you have g
132.
▲
by
drodgers
9y ago
> I don't have to deal with database migrations We've actually just started having the pain of Mongo migrations; adding indexes to large collections. If you just create the index on the primary and let it propagate throughout t
133.
▲
by
drodgers
9y ago
I do the same, but instead of switching/patching the JSON parser, I replace it with a YAML one. YAML was designed to be a superset of JSON precisely so that it could be used as an upgrade path. It also allows comments and neat multilin
134.
▲
by
drodgers
9y ago
Honestly, I don't know why Apple don't implement U2F on the secure enclave (activated via the TouchId sensor); it seems like such an obvious move. Maybe they're trying to get iCloud and Safari support all ready to release at-
135.
▲
by
drodgers
9y ago
Yep. John Deere will collect all of the recognition data and not allow their customers to see anything except high-level statistics (for an additional fee). Then they'll use it to train next year's model and charge for the upgrade
136.
▲
by
drodgers
9y ago
I'd wager that some will survive by: 1) Getting very close to the crops and intertwining with them to make weeding very hard 2) Looking almost exactly like real crops (as-in, to the point where most humans can't tell the differenc
137.
▲
by
drodgers
9y ago
The best part? Weeds will still evolve resistance — just like they do for herbicides — but they'll do it by growing into shapes that the ML models misclassify.
138.
▲
by
drodgers
10y ago
Python was already strongly typed; the new type annotations just allow it to be explicitly typed too.
139.
▲
by
drodgers
10y ago
I totally agree: small specialised modules are great. Underscore is only worthwhile if you need some significant fraction of it (but it makes for an easy example). I think 4. it actually really important — regardless of whether you're
140.
▲
by
drodgers
10y ago
> I don't use a library to merge attributes on objects. I cut and paste one of a few snippets or write from scratch. Sometimes you want to mutate an object, sometimes you want a copy, sometimes you want to shallow copy or keep a ref
141.
▲
by
drodgers
10y ago
If you're in a multithreaded context, then you need to handle locking of shared mutable memory; Ruby doesn't fix that for you (but it does make it pretty easy with stdlib Mutex and block syntax). MRI happens to make many basic o
142.
▲
by
drodgers
10y ago
I love this blog, but I'm not sure that I agree with this: > In my mind, I’d just rather not have a reject! at all, and callers who need to mutate an array in-place can figure out how to do safely with respect to their own use cases
143.
▲
by
drodgers
10y ago
> The other problem I have with all of these articles/arguments is this image being painted that the US would be dumb as a rock if it weren't for the influx of immigrants. That's a silly straw-man. The reasonable form of t
144.
▲
by
drodgers
10y ago
That the free speech arguments are going ahead is nice, but the judge also hammered another nail into the coffin of the 4th amendment: Robart rejected the tech giant’s argument that the so-called sneak-and-peek searches amount to an unlawf
145.
▲
by
drodgers
10y ago
Or perhaps we could help experienced and inexperienced TA's alike with some kind of standardised analysis tools.
146.
▲
by
drodgers
10y ago
Human error causes >90% of car crashes ( https://cyberlaw.stanford.edu/blog/2013/12/human-error-cause... ), so brake maintenance is a very inefficient way to reduce insurance risk. Instead, insurers penalise
147.
▲
by
drodgers
10y ago
"the private plan without subsidies... was $250" But that plan was only available to healthy people without any pre-existing conditions. Now, the $780 version of that plan is available to everyone. You are a healthy person who cou
148.
▲
by
drodgers
10y ago
If the password is stored properly, (i.e. bcrypt) then there does need to be some length limit or it becomes too easy to DoS a service by sending it hundreds of megabytes of password to bcrypt. There's no reason for that length limit t
149.
▲
by
drodgers
10y ago
Last time I needed an iphone repaired (a 1 hour in-store screen replacement), they asked me to write down my passcode on the repair authorisation form! They also seemed really offended when I said I'd rather erase it instead. Apple cou
150.
▲
by
drodgers
10y ago
I think registry he means is the proposed registry of all muslims in the US. Trump also mentioned that it should be illegal for muslims to not report their neighbors, family and friends for registration too.
More ›