Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
darkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
darkr
7y ago
Cats with claws absolutely do cause damage to furniture (mine is ruined). If you care about your furniture you shouldn’t have a cat. I believe the morality laws around surgery on pets are something like “It’s ok to perform surgery on pets a
182.
▲
by
darkr
7y ago
> Castration is a bit of a brute force for population control. No reason we couldn't also give cats vasectomies. Male un-neutered cats, somewhat like some of their human un-neutered counterparts, are prone to aggressive, overly sexu
183.
▲
by
darkr
7y ago
There’s no need to confuse things with metaphors as anyone with elementary understanding of maths should be able to understand it: A cryptographic hash function is an algorithm that: Given an input, it returns a very large number. Given a b
184.
▲
by
darkr
7y ago
We wrote a tool that pulls in several open source tools, the most important of which is sqitch[1] - a beautifully simple Perl based tool for managing migrations that supports rollbacks and verifications - all written in SQL. All hooked up i
185.
▲
by
darkr
7y ago
why?
186.
▲
by
darkr
7y ago
As with RDS Postgres, it's Amazon's fork of Postgres. With Aurora, the storage layer is swapped out entirely for a distributed storage engine, that I believe is based upon DynamoDB. The wire protocol and server interface are much
187.
▲
by
darkr
7y ago
At a wild guess, I’d imagine getting something working probably took about 18 hours, with the rest of the time spent writing tests and defining behaviour of the legacy system to prove that the port actually worked
188.
▲
by
darkr
7y ago
Yep. Facebook chat was originally based on ejabberd. Source: https://web.archive.org/web/20121224094022/http://cufp.galoi...
189.
▲
by
darkr
7y ago
In my personal and subjective experience, working beyond 55 hours in a week is very doable... But it's absolutely not sustainable. I've found that doing it for more than 2-3 weeks in a row will generally result in declining produc
190.
▲
by
darkr
7y ago
The nonce shouldn’t be regarded as secret. Typically you’d generate a random nonce per encrypt action and pack it within the first few bytes of the output
191.
▲
by
darkr
8y ago
As a tool for rough approximations, spreadsheets are amazing. Beyond that though: * Lack of unit (or any) testing * Lack of good versioning practices and code review (e.g emailing around a sheet that's been doing the rounds for 15 year
192.
▲
by
darkr
8y ago
CPython doesn't have a JIT. It compiles to bytecode, which is then "interpreted" by a stack based VM.
193.
▲
by
darkr
8y ago
The problem with ESBs in my opinion is one of tight coupling; all of these distributed systems that know about and depend upon each other. The solution to this is to loosen coupling whilst formalising interfaces/contracts/schemas,
194.
▲
by
darkr
8y ago
Personally I’d like to be able to filter based upon people who filter based upon SAT scores
195.
▲
by
darkr
8y ago
We run several million sorted sets, but they are all short sets (100s), but do thousands of writes/sorts per second without issue. From memory - there was a setting to turn on/off gzip compression for a list once it went beyond a
196.
▲
by
darkr
8y ago
The lack of automated result > data model mappers is kind of by design with statically typed languages. IMO, Go's structs approach is much more lightweight than languages like Scala where large amounts of time can be spent defining
197.
▲
by
darkr
8y ago
> Go just isn't designed to make serverside-rendered database-backed websites especially pleasant to write. Citation needed. I’ve had a very nice time. It’s statically typed, has excellent templating support, and is generally very p
198.
▲
by
darkr
8y ago
¯\_(ツ)_/¯ People are free to do whatever the fuck they want with their time and creative energy. Here’s to anyone who ever scratched an itch, created something and then gave away the fruits of their labour for free. A thousand more dis
199.
▲
by
darkr
8y ago
The advice we were given, and my general understanding is that you absolutely have the right to use IP addresses for network diagnostic and [anti-] abuse purposes. What you can’t do is leave those IP addresses lying around unsecured, share
200.
▲
by
darkr
8y ago
For passwords, yes, this is generally best practice. Also, the salt is normally stored with the hashed password, as it’s not regarded as a secret. Modern GPUs can manage several thousand million SHA256 hashes/sec, so even with a salt p
201.
▲
by
darkr
8y ago
Many accountancies (at least in the UK) will, for a small fee let you use their address as your registered company address, and some will either receive mail on your behalf that you can, or forward it onto you.
202.
▲
by
darkr
8y ago
Oh but it does. And even when it’s not great, it’s usually a less horrendous task to refactor into something better.
203.
▲
by
darkr
8y ago
I used to hate Java, but years of experience later, I would gladly inherit a well maintained/architected and modern Java codebase over anything written in Python or Ruby (even a well maintained one)
204.
▲
by
darkr
8y ago
^^This, exactly. First see how far you can push a decent relational DB, then try harder. When you really can’t push it any harder, or it becomes uneconomical to do so, _then_ look at graph solutions.
205.
▲
by
darkr
8y ago
Personalised recommendations can be a very slippery problem to solve.
206.
▲
by
darkr
8y ago
Not cross provider obviously, but EC2 autoscaling has supported this for years: https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedu...
207.
▲
by
darkr
8y ago
Oh I inherited a similar Perl/php/shell script mess a few years ago. A fun twist was that the codebase started off as a commercial groovy/grails application, and had this Frankenstein thing surgically attached, reading and wr
208.
▲
by
darkr
8y ago
Still have to request it AFAIAA
209.
▲
by
darkr
8y ago
Not a particularly easy solution, but you can use dynamo streams to achieve this by loading fast into a temporary table, trickle-feeding via a stream into another table. When it’s caught up, stop writes on the import table then swap over to
210.
▲
by
darkr
8y ago
You mean both Johns? (Carmack & Romero)
More ›