Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbostock
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
211.
▲
by
mbostock
12y ago
Thanks. - Ideally, no mapping is necessary; controls should be naturally suited to their application. The problem here is that scrolling is designed for homogeneous content (such as a long column of static text), while web pages increasingl
212.
▲
by
mbostock
12y ago
This essay is my attempt to synthesize a few general rules from recent work with custom scrolling. Scroll-based effects can be contentious, but I believe a lot of that comes violating reader’s expectations and breaking direct manipulation.
213.
▲
How To Scroll
(bost.ocks.org)
233 points
by
mbostock
12y ago
|
75 comments
214.
▲
by
mbostock
12y ago
You can transition the stroke-dasharray property and use element.getTotalLength to determine the total length of the path. Here’s a bl.ock: http://bl.ocks.org/mbostock/5649592 And here’s an older graphic that demonstra
215.
▲
by
mbostock
12y ago
http://bl.ocks.org/mbostock/76da6085849bff8b6e03 http://bl.ocks.org/mbostock/aa7edeac67253ea5de7f
216.
▲
by
mbostock
12y ago
Sure, it’s a bit field, which is an efficient way to store multiple booleans (bits) in a single number. https://en.wikipedia.org/wiki/Bit_field The maze is defined as a rectangular grid of cells, where each cell is bit
217.
▲
by
mbostock
12y ago
1. Ah, but how to define an “edit”? The git repo for the talk had 69 commits, but they varied greatly in size. There’s also the history of the individual examples (which could be crawled from GitHub Gist), the history of the write-up (which
218.
▲
by
mbostock
12y ago
I haven’t done much with neural networks, but Christopher Olah wrote a fantastic post on visualizing low-dimensional ones: http://colah.github.io/posts/2014-03-NN-Manifolds-Topology/
219.
▲
by
mbostock
12y ago
Re. Canvas, yes and no. On the one hand, D3 (data-driven documents) is intrinsically tied to the DOM and I don’t want to compete with standard representations like HTML, SVG and CSS. On the other hand, D3 supports Canvas for geographic proj
220.
▲
by
mbostock
12y ago
Thanks for the feedback. There’s a similar idea I also want to try, which is to use color cycling for the mazes. Like this: http://www.effectgames.com/demos/canvascycle/ Varying the rotation length sounds interest
221.
▲
by
mbostock
12y ago
Thanks. The textbooks I used in school were /Algorithms in C/ by Robert Sedgwick (now just /Algorithms/) and /Introduction to Algorithms/ by Cormen et al. For visualization, I mentioned /Readings in Inform
222.
▲
by
mbostock
12y ago
Writing always takes longer than I expect. The issue wasn’t technical (it wasn’t too hard to take my examples from bl.ocks.org and embed them on a page). It just required more thought to take my speaker notes and translate them into prose.
223.
▲
by
mbostock
12y ago
I’ve made a couple starts on books but so far haven’t been able to stick with it long enough to finish; it becomes too tempting to release content as examples or smaller articles. And while those are useful, too, piecemeal content lacks the
224.
▲
by
mbostock
12y ago
Yes, you can consider light a discrete signal, too. I glossed over this because resampling a discrete signal is harder to explain than sampling a continuous signal; I think about it as first reconstructing a continuous signal (typically by
225.
▲
by
mbostock
12y ago
Ha, thank you. The trick to appearing awesome is to surround yourself with people doing awesome things, and then figure out how to synthesize their ideas into something new and (hopefully) transformative. Most of the ideas & forms in my
226.
▲
by
mbostock
12y ago
Author here, ask me anything. And don’t miss the related work section at the end — there’s a ton of links there to inspiring work.
227.
▲
by
mbostock
12y ago
If you all you care about is being cheaper than a given rent $X, then just look at the How Long Do You Plan to Stay? chart. When the equivalent rent drops below $X, then you’ve “broken even”. (That’s in terms of buying being cheaper than re
228.
▲
by
mbostock
12y ago
Definitely. We actually designed something like that, but due to time constraints weren’t able to ship it (yet). One complication is that a reasonable range for a given variable can depend on other variables. But hopefully we’ll figure it o
229.
▲
by
mbostock
12y ago
We’re not currently including mortgage insurance, no. You could approximate it by increasing the mortgage rate, but the tax treatment of mortgage insurance payments may be different and so that may not be accurate. Perhaps this is something
230.
▲
by
mbostock
12y ago
I don’t think it’s a coincidence — those default values reflect the current market, and it’s a reflection of the market being fairly efficient. For example, if investment return rates were consistently higher, you could expect mortgage rate
231.
▲
by
mbostock
12y ago
https://twitter.com/felixsalmon/status/469311904582627329
232.
▲
by
mbostock
12y ago
Thanks, that’s a good suggestion. There are additional tax considerations with second homes (and business properties), but it’d be nice to include these in the model.
233.
▲
by
mbostock
12y ago
Interest payments are only part of the story. The equivalent rent we calculate provides a much more direct comparison.
234.
▲
by
mbostock
12y ago
Thanks, that’s good to hear. There’s always a risk releasing a new version of a popular tool. For those that still want to use the old one I think we’ll find a new home for it, too.
235.
▲
by
mbostock
12y ago
Author here. Thought I’d highlight my favorite, perhaps non-obvious feature: the slope of the charts tells you whether the variable is positively or negatively correlated with the cost of buying. And depending on the settings, that slope ca
236.
▲
by
mbostock
12y ago
Surely you jest! The previous version was four years ago (in 2010) and was implemented in Flash. Screenshot: https://twitter.com/driven_by_data/status/469498632027537408
237.
▲
by
mbostock
12y ago
Yes, there is a unique path between every pair of nodes because the maze is also a spanning tree. Here’s another view which shows the path between the node under the mouse and the root of the tree: http://bl.ocks.org/mbostoc
238.
▲
by
mbostock
12y ago
It’s the paths. You can see another example of a maze here: http://bl.ocks.org/mbostock/11357811 I made the paths thin (1px instead of 4px) to make it easier to see the tree on top of the maze. But to avoid the path&#x
239.
▲
by
mbostock
12y ago
I spoke to Jamis Buck on Twitter. It’s called “Randomized Prim’s” on Wikipedia [1], but of course Wikipedia is not authoritative. It does seem confusing to call it a variant of Prim’s given how different the behavior is. [1] http:/&#x
240.
▲
by
mbostock
12y ago
Yes, this is not intended to be a visualization; it is merely something pretty. D3 supports Lab and HCL color spaces [1] which are perceptually uniform; I could use those to improve the accuracy of the distance encoding, but I’d have to sac
More ›