Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
harg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
harg
5y ago
From my understanding this should work as the schema is introspected ahead of time. This gives all the type information needed for the `useQuery` hook to work properly. Just the queries themselves are generated at runtime; there shouldn
62.
▲
by
harg
5y ago
indeed, the point the parent comment was making is that effective email validation need not perfectly implement the RFC. dotless domains are going to be so rare in practice (unless your project has some niche use-case) that you can probably
63.
▲
by
harg
5y ago
> Whether the problem is worth solving is very often not your call as an engineer. IMO well functioning teams do consider the thoughts of their technical members when deciding which problems to solve. The person "making the call&quo
64.
▲
by
harg
5y ago
I don't believe this is true. There's an installation of 9 1MW turbines (perhaps quite small in comparison to the largest ones around today) near where I live that I frequently cycle past (within ~50m). Even in strong winds they a
65.
▲
by
harg
5y ago
Sure, if you're validating some data there're loads of better ways to do it than a bunch of conditionals. I was purely commenting on the switch(true) pattern vs some "if"s. That approach looks nice though. On that subjec
66.
▲
by
harg
5y ago
I think the post doesn't give a fair comparison as in the if/else case there's no need to use "else" blocks if you're throwing an error or returning. In this case I think simple "if" statements are cl
67.
▲
by
harg
6y ago
I think op is pricing correctly (installed capacity rather than energy generated). A typical domestic solar installation in the UK costs around £6000 for a 4kW system, which works out at around £1500 per kW installed capacity. This makes th
68.
▲
by
harg
6y ago
One thing that stood out to me was they wouldn't need necessarily need to optimize for performance if they didn't choose a stack whose costs increase massively as you scale. In many applications things like having a testable, easy
69.
▲
by
harg
6y ago
It’s for these situations that I tend to use pass phrases rather than long random strings of different special characters. Much easier to type 4 or 5 words
70.
▲
by
harg
6y ago
Or, even better, the product of Watts and time (Watt-hours). mA-hours doesn't mean much if you don't know the battery's voltage.
71.
▲
by
harg
6y ago
I'm a pretty happy VSCode user but I do find it pretty heavy and startup is pretty slow, even on my M1 Mac. I used to love Sublime Text but it looks like it hasn't received much dev input recently, although it is perfectly service
72.
▲
by
harg
6y ago
How do you feel about the examples given in the thread like autocomplete suggestions overlaying a datepicker? Surely that's not great for anyone. It may well be that disabling autocomplete is open to abuse, but it's not up to the
73.
▲
by
harg
6y ago
Some older fobs do recharge when in the car’s ignition. My old bmw did this and it was recommended to swap the keys from time to time to make sure they didn’t run out off battery. I guess this can’t be the case with the “keyless” keys thoug
74.
▲
by
harg
6y ago
> 131.4-liter, single-turbo diesel V12s making some 1,950 horsepower I'm sure this engine has been optimized for different factors, and it's likely a fairly old locomotive, but that's about 14hp/litre which seems pret
75.
▲
by
harg
6y ago
I think you’re confusing hydro with pumped storage. Hydro is easily comparable with wind/solar assuming the scheme has a steady inflow (river, rain, snow etc)
76.
▲
by
harg
6y ago
You’d probably be better bringing a diesel generator and a big tank of fuel. In fact, I wouldn’t be surprised if that isn’t being done by the authorities to help make up the shortfall
77.
▲
by
harg
6y ago
I believe most people will be on fixed rate tariffs so it shouldn’t affect their bills (aside from lower usage due to the outages). This will hit the suppliers as they need to buy the energy for their customers on the wholesale market. I do
78.
▲
by
harg
6y ago
LastPass is trash software. We use it at my company and it’s universally hated. Full of bugs, terrible ui and bloated extensions that slow web pages. I wouldn’t voluntarily use it even if it were totally free. Nowadays there are so many bet
79.
▲
by
harg
6y ago
I don't think Iran is as oppressive a regime as you make it out to be. AFIAK the act of using (or attempting to use) Signal is not illegal. The resources required to trace an IP and track down the user simply because they used a messag
80.
▲
by
harg
6y ago
If all the traffic going via the proxies is e2e encrypted is there much that can happen?
81.
▲
by
harg
6y ago
Just to nitpick your numbers a bit. 6MW, while a lot of power, is still a lot less than your average nuclear reactor, even a small one (The reactors on the French aircraft carrier Charles de Gaulle are 150MW each), and Hydro schemes are oft
82.
▲
by
harg
6y ago
Surely it’s better to give doses to low risk groups than to throw them away. The main hurdles with vaccine rollouts seem to be logistics problem rather than scarcity of the vaccine itself
83.
▲
by
harg
6y ago
That’s assuming that all the planes manufactured in Alabama are not exported outside the USA. E.g. to airlines registered in Mexico, Canada, S America. I imagine that at least some are exported so moving manufacturing outside the USA would
84.
▲
by
harg
6y ago
I think it’s more of a last line of defence in case your password manager gets compromised. Especially if your pw manager also handles your TOPTs. But if your pw manager gets compromised then that’s a pretty big problem so probably best to
85.
▲
by
harg
6y ago
The higher spec air has 8 gpu cores as well
86.
▲
by
harg
6y ago
From reading many of the comments both in the original article and the HN post there is a clear theme: HP printers seem to be the source of many people's frustrations. Perhaps printers wouldn't have such a bad rep if it wasn'
87.
▲
by
harg
6y ago
Isn't this problem orthoganal to storing hashed email addresses? You'll always have access to the email address the user typed in when you want to send a transactional email so you can perform whatever sanitization needs to be don
88.
▲
by
harg
6y ago
I'm sure the tube wasn't the deciding factor when it comes to the anxiety, but as someone who (pre-covid) commutes daily in London I find my cycles to and from work are a great release and make the experience much more tolerable.
89.
▲
by
harg
6y ago
That’s not the case at all. Everyone has electricity at their home. You can charge basically any electric car from a domestic wal socket and higher power chargers are easily available. Commercial charge points only really need to be used fo
90.
▲
by
harg
6y ago
All of those seem like valid criticisms against UBI, but is it an argument not to do it? Are those issues non-existant without UBI? Take your third point - what do we do with people who spend all their UBI on drugs and gambling? Even though
More ›