Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gregmac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
361.
▲
by
gregmac
5y ago
> For example: instead of memcache/redis, set aside a ~100 MB of memory in your app process for an LRU cache. When an object is requested, hit the DB with an indexed query for just the 'updatedAt' timestamp (should be a su
362.
▲
by
gregmac
5y ago
> because of some flakey third-party service I've started building in auto retries to the CI scripts for this type of thing, at least once it annoys me to a certain extent. The most glaring and unavoidable ones that come to mind acr
363.
▲
by
gregmac
5y ago
I was going to put ethernet surge protectors on both sides. My plan was a PoE switch (Ubiquiti flex) with two cameras and an AP, powered by my main switch which is on a UPS. How much safer is using fiber, and giving up on battery backup? I&
364.
▲
by
gregmac
5y ago
I recently moved into an all-brick house, it's really quite amazing to me just how much it kills 5 GHz wifi. I knew it was a thing that happened, but it was interesting to walk around with a signal tester and observe it first-hand. Eve
365.
▲
by
gregmac
5y ago
There's a good comparison on the Scoop wiki [1]. Chocolatey is a mixed bag. Since it is basically just wrapper scripts around upstream installers, it very much depends on what the upstream installer does. To me, it acts less like a pac
366.
▲
by
gregmac
5y ago
Your Windows instructions/process needs work. > curl https://dl.dagger.io/dagger/install.ps1 -OutFile install.ps1 This uses the `curl` alias, which is really `Invoke-WebRequest`. It also makes the incorrect as
367.
▲
by
gregmac
5y ago
Google started doing leap second smearing [1] in 2008, which basically slows down each second over a 24-hour period, noon to noon UTC. ntpd also supports this [2], though I'm not sure how popular it is in practice. Anyone making use of
368.
▲
by
gregmac
5y ago
> see also counting of the 'popular vote' for US president, a ballot which has never been tried, and whose results are unknowable. I don't follow this point. I'm not an American, but my understanding is counting via s
369.
▲
by
gregmac
5y ago
Seconded. This is a very compelling read, and a great graphic novel style. One of the things Joe says several times is how part of the design of the elan program is to be so absolutely insane that it literally sounds unbelievable if describ
370.
▲
by
gregmac
5y ago
Totally agree. I've been doing this for over a decade. I've barely used my actual Gmail address for anything. I've gone through many incarnations of email, but at some point Gmail was just a solid enough UI, had the best spam
371.
▲
by
gregmac
5y ago
Does Fossil have a unique or killer feature that makes it a good alternative to git, other than "simpler to use"? I don't like the monoculture either, but at this point some knowledge of git is an essential skill. In fact p
372.
▲
by
gregmac
5y ago
I think my first intro to this was from a Not Just Bikes video on speed limits [1], and that profoundly affected my opinion on this stuff. I now think a lot of road design is just utterly broken, and it includes speed limits, what that chan
373.
▲
New class of RAM test coming to MemTest86
(twitter.com)
18 points
by
gregmac
5y ago
|
3 comments
374.
▲
by
gregmac
5y ago
Like so many things, this is just all about trade-offs. Self-host is not a silver bullet, it just swaps in a different set of problems. Risk is part of it. Cloud service disappearing, discontinuing, failing, changing pricing, or modifying p
375.
▲
by
gregmac
5y ago
I'd argue there are better API patterns for this though -- keeping in mind this values code readability (and correctness) over micro-optimization: .setPriceInCents(100); .setMassInKilograms(2); .setTimeoutInMilliseconds(3
376.
▲
by
gregmac
5y ago
Totally agree, but then I would expect the code would be: request.setConnectTimeout(getDefaultTimeoutFromEnvironment()) with getDefaultTimeoutFromEnvironment() returning a Duration. Ideally this is consistent throughout the codebas
377.
▲
by
gregmac
5y ago
request.setConnectTimeout(getDefaultTimeoutFromEnvironment().seconds) This is actually a very good example of what not to do, with the mistake being in whoever implemented setConnectTimeout() I actually don't know this partic
378.
▲
by
gregmac
5y ago
They do: .ToUnixTimeSeconds() .ToUnixTimeMilliseconds() DateTimeOffset.FromUnixTimeSeconds(Int64) DateTimeOffset.FromUnixTimeMilliseconds(Int64) https://docs.microsoft.com/en-us/dotnet/api&#x
379.
▲
by
gregmac
5y ago
This doesn't work looking at a PR. It also doesn't make a unit error stick out, as you have to take the time to specifically hover to check. What I mean by this is consider you've opened a mature code base and are browsing ar
380.
▲
by
gregmac
5y ago
There's a performance penalty which happens if you don't need async (eg, if the innermost thing is actually using Task.FromResult), and I've never tested but there's probably some cutoff point where if an awaited operati
381.
▲
by
gregmac
5y ago
Most of the problems I've seen of this sort are from easy-to-make design issues, like constantly reassigning a string value to modify it (lots of allocations, with lots of GC), or using an IEnumerable with .count() then iterating with
382.
▲
by
gregmac
5y ago
I agree with what you're saying as far as framing it around "don't say hello": it's really saying "don't just say hello and wait", but that's not as catchy. If you ignore the literal "no h
383.
▲
by
gregmac
5y ago
Yeah, this is a good idea. I'd add a tip: start writing your notes in the speaker notes and leave the slides blank, instead of the other way around (which is kind of what PowerPoint's UI pushes you towards). Only create the actual
384.
▲
by
gregmac
5y ago
> Why not just set $TERM to dumb or xterm without color support? Or change all color definitions in the terminal to print the same color? > The terminal is capable of color and should be able to print color when instructed. NO_COLOR i
385.
▲
by
gregmac
5y ago
10 years ago I sold a house that had only a couple smart switches, and I took them out before we listed and replaced them with regular switches. A few months ago I sold a house a house with lots of Insteon stuff, and I left almost all of it
386.
▲
by
gregmac
5y ago
Another is why they lock when you pull them out all the way: I discovered this accidentally as a kid, but just learned the lesson "don't do that" and didn't really think about it further. It wasn't until I had to in
387.
▲
by
gregmac
5y ago
> but instead Google would rather serve irrelevant results that show ads. Does showing Google Adsense ads actually result in a higher ranking in organic search results? It makes total sense for their business model, to the detriment of u
388.
▲
by
gregmac
5y ago
One of the issues is the battery is the heaviest part of the car, and tend to be pretty large. Most EVs today are basically built around the battery, using it as a foundation that everything else attaches to. Making it replaceable means sac
389.
▲
BreakingFormation: AWS CloudFormation Vulnerability
(orca.security)
90 points
by
gregmac
5y ago
|
28 comments
390.
▲
by
gregmac
5y ago
> If there's a permanent Moon base - so what? Does anything really change? How? (What - in practical and economic terms, as opposed to symbolically - did the ISS change?) There are a lot of benefits from the ISS: There's the jo
More ›