Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DougBTX
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
661.
▲
by
DougBTX
10y ago
An unintended consequence of that approach is that to get two colours to match visually, they would need to be specified in the same colour profile. Say there is a background colour in sRGB and an image in P3, and both should display the sa
662.
▲
by
DougBTX
10y ago
Yes, in other words compression can move information from the content of the data (which is encrypted) to the size of the data (which is not encrypted).
663.
▲
by
DougBTX
10y ago
Thanks for these questions. Initially it wasn't clear to me what the difference was either, but now I understand the distinction a little more. The ORMs discussed in the article map a whole object model to a whole relational model. The
664.
▲
by
DougBTX
11y ago
> I imagine without CF law enforcement would be forced to charge you with a crime to remove illegal property from you. CF isn't generally used to take illegal goods, but to take otherwise legal goods. For example in a drink driving
665.
▲
by
DougBTX
11y ago
Regarding the hack to make function calls: if JSX elements start with a capital letter, then the pragma is ignored, and the element name is used as a local variable name instead, e.g.: transform("<Foo id = 'my-element
666.
▲
by
DougBTX
11y ago
> Micro payments cannot come soon enough. Any idea how to encourage quality content with micropayments? The naive implementation would be to charge on opening the article, but I suspect that would just encourage more click-bait headlines
667.
▲
by
DougBTX
11y ago
Would the rotation of the earth give some clues? Eg, the detectors are rotating, so the strength of the signal will change over time, assuming the signal lasts long enough.
668.
▲
by
DougBTX
11y ago
Typing makes it easier to write a "find all references" function. Types distinguish whether a call to foo.bar() is calling the same bar as baz.bar(), which makes it easier to rename Foo's bar wherever it is used, but leave Ba
669.
▲
by
DougBTX
11y ago
Unums could be interesting, more of a GPU answer than a CPU answer though https://github.com/tbreloff/Unums.jl/wiki/Unum-Summary-(in-p...
670.
▲
by
DougBTX
11y ago
The signature panel is not permanent either, on at least one of my cards it has rubbed off to reveal a strip of "void void void" underneath.
671.
▲
by
DougBTX
11y ago
Using TypeScript's user defined type guards instead of a switch looks promising here, inside the 'if' the actions are type checked.
672.
▲
by
DougBTX
11y ago
Interesting to compare with TypeScript, which runs into similar issues. Before TypeScript 1.1, the intelligence was quite slow, but is now fine even for large projects. Third party libraries often have type definitions in the DefinityTyped
673.
▲
by
DougBTX
11y ago
Further notes about half open intervals and why starting at zero is a good idea: http://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF
674.
▲
by
DougBTX
11y ago
> and failure to use the 'correct' terminology This one I can understand from a teaching perspective. Often new concepts come along with new terminology, but the up-front cost of learning the new concepts can be reduced by expr
675.
▲
by
DougBTX
11y ago
> The Jargon File, a compendium of hacker's lore, defines "bit rot" as a jocular explanation for the degradation of a software program over time even if "nothing has changed"; the idea being this is almost as if
676.
▲
by
DougBTX
11y ago
Here's a nice article to describe that transitive effect. http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y... Also applies to IDisposable etc.
677.
▲
by
DougBTX
11y ago
This article claims, > Last time we discovered that the brain of a woman is composed of two different types of cells. but if you actually read the last article, it has this example of mixed types of cells: > Surprisingly, there are s
678.
▲
by
DougBTX
11y ago
Components sharing styles is the same as functions sharing constants, so there isn't a fundamental difference here. One benefit of sharing constants is that you can use, eg, TypeScript to compile-time check that all of the constants ar
679.
▲
by
DougBTX
11y ago
> It's trivially easy to fool the user into finding a wrong rule. While that's true, the real thing being tested is the user's readiness to prove themselves wrong.
680.
▲
by
DougBTX
11y ago
That takes about eight months of practice apparently. https://m.youtube.com/watch?v=MFzDaBzBlL0
681.
▲
by
DougBTX
11y ago
You could say they "went all-in on that bet"
682.
▲
by
DougBTX
11y ago
> I don't see why the majority of online resellers would be concerned by being "reduced" to "back-end order takers". They may have outsourced that to Amazon Fulfilment already.
683.
▲
by
DougBTX
11y ago
Nice overview, I like how the article has the same code demo in Knockout and Angular to show how they both solve the same problem in slightly different ways. Would be nice to see the firstName + lastName demo in React too, I know the onCha
684.
▲
by
DougBTX
11y ago
Basically yes, though according to the article the fish is heating cold blood with warm blood, not the water passing through its gills. Like birds legs: http://askanaturalist.com/why-don’t-ducks’-feet-freeze/
685.
▲
by
DougBTX
11y ago
Git in six words: content addressable filesystem with linked revisions.
686.
▲
by
DougBTX
11y ago
Instead of scooping up the fuel, you could think of it as laying out the fuel in a line behind the car. All the fuel starts off in the fuel tank, and slowly drains out of the car. Fuel efficiency is how large the hole is that the fuel drain
687.
▲
by
DougBTX
12y ago
Yes, http://travel.state.gov/content/visas/english/study-exchange...
688.
▲
by
DougBTX
12y ago
So 19 presses too, that's got a nice "essential complexity" feel to it.
689.
▲
by
DougBTX
12y ago
The third sphere is the "more æsthetically pleasing pattern" example, so you're right that the second one is more randomly distributed (in the sense that each point on the second sphere is equally likely to appear anywhere on
690.
▲
by
DougBTX
12y ago
If it defaulted to yes, then running it would be, fuck<return><return> which is probably good enough. (Pressing the same key twice is pretty much the same as pressing one key, but pressing two different keys is harder.)
More ›