Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
grogers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
grogers
5y ago
If actually getting paged is rare them just bring your laptop to dinner, that's what I always used to do. Sure, it might be that time you are unlucky and have to work through dinner which sucks a lot. But it shouldn't happen much.
152.
▲
by
grogers
5y ago
Honestly I don't mind this too much as long as it's yubikey only, that literally is just reach up, tap, hit enter: 1-2 seconds if you know it's coming. If they require to reenter a password it's more like 10-30 seconds d
153.
▲
by
grogers
5y ago
I'm too lazy to deal with remapping it, so I typically pry the caps lock key off my keyboards. My kids always say that my keyboard is broken and try to fix it...
154.
▲
by
grogers
5y ago
Once you have the delta encoding scheme, do you actually gain anything by splitting into 26 lists by first letter? It seems like the wrapping delta from a->b, b->c, etc would take similar space as the 2 byte pointer in the table, but
155.
▲
by
grogers
5y ago
The solution to get paged at off hours a lot is rarely to hire additional teams to cover those times for you, at least not long term. For things you can control, you should fix the root causes of those issues. For things you can't cont
156.
▲
by
grogers
5y ago
Even better, it's embarrassingly parallel!
157.
▲
by
grogers
5y ago
Wouldn't you just show your N most recent W2s to your bank? Why would they care about your comp breakdown?
158.
▲
by
grogers
5y ago
Aren't most reciprocal? So they can't disclose info about you that you reveal, just like you can't disclose info they reveal. As a non-lawyer lay person that seems like it would be enough.
159.
▲
by
grogers
5y ago
You might like liquibase. It's basically exactly what you describe - each changeset has a forward and rollback, written in SQL. It stores which changesets have been run in a special table in the DB itself.
160.
▲
by
grogers
5y ago
In practice what happens in this case is that the query slows down over time, often days or weeks after deploying the thing that makes the query worse. It takes time to fill up the data that slows things down. This gives you plenty of time
161.
▲
by
grogers
5y ago
Please don't do this. 1. If you are scanning the (clustered) primary key, this is no better than "normal" offset pagination. You need another index with a smaller record size, without all the ancillary fields of the PK, to ma
162.
▲
by
grogers
5y ago
I think the point was that they wanted to return more data than 64kB in the response but couldn't.
163.
▲
by
grogers
5y ago
You can always convert in the DB when selecting if you want the date. Dates/times in general are kind of horrible in all DBs and programming languages so I don't think using unix seconds (or milliseconds, etc) is obviously wrong.
164.
▲
by
grogers
5y ago
I recently went through two interview loops at big tech companies and the DSA questions are not very hard. The typical question starts super easy and then layers on more complexity as time and skill allows. If you are nervous about intervie
165.
▲
by
grogers
5y ago
Yes! This and other charset oddities almost make me want to store all strings as varbinary and handle any conversions to/from a string type to utf8 bytes client side. It makes ad-hoc query access from a shell much more annoying though.
166.
▲
by
grogers
5y ago
In case anyone wants to read more about the RMW variant, this is called CASPaxos: https://arxiv.org/abs/1802.07000 I first learned about this as a project called gryadka and I had trouble believing that extending Paxos
167.
▲
by
grogers
5y ago
Yeah, derive macros in rust are very similar to lombok and other annotation processing code generators in Java. Any of the trait function implementations could be written manually, but it saves work and makes it more robust to use the deriv
168.
▲
by
grogers
5y ago
Wow, that's a fantastic feature for development! I remember once we explored various approaches to resetting the DB, because resetting the DB between tests was about half the time of the test suite. In our case the static data wasn
169.
▲
by
grogers
5y ago
Infinitely many IIRC. Era isn't sent in the protocol, it's determined implicitly - if you know the time correctly to within a few dozen years you know the right era
170.
▲
by
grogers
5y ago
The big question is that after the fed raises rates and markets crash some point later, will the fed go right back to easy money or keep rates high? Everybody seems to be assuming the former...
171.
▲
by
grogers
5y ago
While this is technically true it's quite misleading. The VM itself uses cooperative scheduling, but the Erlang compiler emits something akin to yields appropriately, such the net effect is preemptive scheduling. You can break it by ca
172.
▲
by
grogers
5y ago
Ironically, on a previous team I had switched our log4j2 log formats over to %m{nolookups} like 8 months ago... I didn't realize the whole jndi issue, what we ran into was the O(n^2) behavior of its string substitution. While deploying
173.
▲
by
grogers
5y ago
How are you measuring this? Remember that cloudwatch was apparently also losing metrics, so aggregating CW metrics might show that kind of drop.
174.
▲
by
grogers
5y ago
Shenandoah is keeping pace nicely with ZGC, especially important to make this into the jdk 17 release since that will be what most users target for the next few years. Given the similar feature sets, does anyone with experience running both
175.
▲
by
grogers
5y ago
I don't know about specifically to your brain (that seems implausible), but there is NEAT: non-exercise activity thermogenesis. Your body adjusts energy expenditure by hundreds of calories up or down by subconsciously making you fidget
176.
▲
by
grogers
5y ago
Wormholes aren't true FTL travel, they change the geometry of space such that there's a new shortest path for light to travel from A to B. Setting up a wormhole between two points requires slower than light travel to extend the wo
177.
▲
by
grogers
5y ago
Wow, 10 minutes to start reading the code from scratch and find the vulnerability. Then just another 20 minutes to confirm the bug with an exploit, some of which were spent fighting with a broken dev environment. That is impressive!
178.
▲
by
grogers
6y ago
Use a linked list when you need to store iterators into a container while mutating it. E.g. if you are making a super naive LRU cache, you could use a map<K, list<pair<K,V>>::iterator> and a list<pair<K,V>>. Th
179.
▲
by
grogers
6y ago
One reason is that you "can't" CNAME your apex domain. So redirecting foo.com to www.foo.com might give you a little more deployment flexibility. The servers hosting the redirect don't need to be super beefy like your ma
180.
▲
by
grogers
6y ago
If you have old clients that expect that field you are removing to be there in a meaningful way, you still have to update all clients before you can stop setting it. Having the protobuf schema itself use optional or required doesn't ch
More ›