Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
penteract
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
penteract
2y ago
COM files have been used maliciously due to confusion with urls [0]. I think I've heard of antivirus software preventing COM files from being run because of this. [0] https://en.wikipedia.org/wiki/COM_file#Maliciou
92.
▲
by
penteract
2y ago
In a desktop linux terminal, Ctrl-^ or Ctrl-~ work for me. In a tty, I need to press Ctrl-V before them.
93.
▲
by
penteract
2y ago
> As soon as you have validation or escaping, having a record separator character loses its entire purpose. The existence of the character is predicated on the idea that you don't have to do that, and that idea is false. I disagree
94.
▲
by
penteract
2y ago
> No, they'll be right exactly as often, 0% of the time. > But their mistake will show up less frequently, causing more problems when it does. Enough people use CSVs (and have limited, small-scale use-cases) that I'd be will
95.
▲
by
penteract
2y ago
The record separator isn't on people's keyboards, so it's less likely to show up where it's not expected. Also it's less likely to legitimately occur in something like a name, so there are many users of CSVs who can
96.
▲
by
penteract
2y ago
We might have different ideas about what constitutes a tutorial. Online tutorials vary massively in quality, but something like the official Python tutorial https://docs.python.org/3/tutorial/ is a fine resource.
97.
▲
by
penteract
2y ago
Tutorials include some code which is intended to be exemplary and simple enough for a new programmer to make sense of, so I wouldn't discount it as a part of reading code. Practical code does not always have those properties, although
98.
▲
by
penteract
2y ago
> There is no substitute for doing. Less tutorials, more coding. This may be good advice for yourself in the past, and for many people at lots of times, but I'd hesitate to give it as general advice. Reading code others have written
99.
▲
by
penteract
2y ago
I think you misread their claim - they said that generic list/set would have to be classes, not modules (generic modules are a specific thing in OCaml and aren't the same as a module of generic classes).
100.
▲
by
penteract
2y ago
Because the beam coming from your eyes and hitting a shadow would never reach a light source (you could say it gets absorbed before it reaches a light source).
101.
▲
by
penteract
2y ago
Until you can observe that light doesn't travel instantaneously, it would be consistent to believe that a beam leaves your eyes, bounces off a surface, and informs you (as though it were a limb, perhaps) when it hits a light source.
102.
▲
by
penteract
2y ago
From section 4: > The present study used an Australian sample of European origin. These results were comparable to those reported in black South Africans, their white counterparts and Malaysians of similar birth years; all these groups h
103.
▲
by
penteract
2y ago
Scratch (page for educators: https://scratch.mit.edu/educators/ ) is very good.
104.
▲
by
penteract
2y ago
I agree with you up to a point, although the level of essay writing needed be an engineer and the level of mathematics needed to understand progressive taxation shouldn't need to be taught at university by experts in a field. Not every
105.
▲
by
penteract
2y ago
I've never completely understood why most American universities insist on a broad range of subjects (by comparison, in the UK it's common to begin to specialise aged 16, after which you might never need to academically write an es
106.
▲
by
penteract
2y ago
I'm not sure it's true to say that that task requires the exact same reasoning - There are various logically equivalent ways of phrasing the rule such as "No card has a D on one side and a number other than 3 on the other&quo
107.
▲
by
penteract
2y ago
In less rural northern England, it was faintly visible to me. If I hadn't been looking for the aurora specifically, I would have assumed it was a weird cloud. After walking a bit away from street lights I could make out a south facing
108.
▲
by
penteract
2y ago
I'd read "moving in one direction with Brown motion" to mean Brownian motion plus a linear term. If margin trading causes you to lose the asset, its value goes to zero, hence log of that could be said to be negative infinity.
109.
▲
by
penteract
3y ago
That's great. What's the first guess? And does this prove that there is no way of identifying the answer in 2 guesses? I tried running a version of your code across all targets, but my current machine isn't up to it (and ther
110.
▲
by
penteract
3y ago
I wouldn't be surprised if there is a way of doing it in 4 guesses (3 to identify and a 4th that's known to be right), although you probably need to adjust the later guesses based on the results of the first. It wouldn't be i
111.
▲
by
penteract
3y ago
The score is floor(100*(1-distance/max_distance)) where max_distance is the greatest distance to the target from any point in the cube. This means that the spheres used in triangulation look funny. Rounding also gets in the way, but yo
112.
▲
by
penteract
3y ago
Here's the code to generate the object and check that it works: https://gist.github.com/penteract/8957d7d18a60f021d8d74ef2f4...
113.
▲
by
penteract
3y ago
I didn't have a formula, just a Javascript object with 4096 keys. You could try to use a formula, but the rounding would make it quite blurry, so an "exact" answer wouldn't necessarily be right.
114.
▲
by
penteract
3y ago
It's calculating distance in 3D space, scaled by the longest distance available. Without the scaling (and ignoring the rounding for the moment), distances from the target to any 3 non-collinear points would narrow it down to at most 2
115.
▲
by
penteract
3y ago
I swear that #516 looks darker than #505 (although perhaps only against a background of #505 with #808 next to it). Something interesting is going on there with my perception of saturation.
116.
▲
by
penteract
3y ago
The Balrogs were Maiar, a category that includes the wizards (Gandalf, Saruman, etc.) and Sauron. The Balrog Gothmog is there, but not the one that appears in the Fellowship of the Ring, possibly because it isn't given a name.
117.
▲
by
penteract
3y ago
Alongside a link to Google's explanation of why they do it, that's a very reasonable and helpful reply. "Changing the queuing method from the standard first-in, first-out (FIFO) to last-in, first-out (LIFO) [...] can reduce l
118.
▲
by
penteract
3y ago
I observed it in the playground.
119.
▲
by
penteract
3y ago
For me (Firefox; Linux; X11) right-clicking on the background when editing a visual flow causes to a menu to appear then disappear almost instantly. Everything else seems to work (clicking run, adding nodes from the menu, right-clicking on
120.
▲
by
penteract
3y ago
both - staircase style.
More ›