Better HN
topnewbestaskshowjobs
Log inSign up

digsmahler

77 karma · joined Oct 31, 2012 (14y ago) · 42 submissions

Submissions

comment 4y ago · link · parent

Enlightened people, very boring at parties.

comment 7y ago · link · parent

I had the same question, the piano is already a well developed and standardized instrument from centuries of revision and engineering. Returning to one string seems like a step back into the past. The video is really nice though, explaining how they came to this idea, and now I want to hear one of these one-string pianos! From Nils Frahm:

"It really felt like a brilliant new instrument, it was so nice. First time in my life to have kind of like a new piano. It sits in between a clavichord, guitar and a harp, and that was exactly what I wanted."

comment 7y ago · link · parent

Oooh, I like that idea! I'm gonna try to figure that out today.

comment 7y ago · link · parent

One of the great beauties of working with scripting languages, they work just fine on lighter laptops. The MacBook Air is a great machine for the node/python/php programmer on the go.

comment 7y ago · link · parent

> It turns out what they had tried to do was harder than expected

Literally every business/engineering project ever.

comment 7y ago · link · parent

Brain hack: Formulate your thinking in terms of positive statements.

Example:

* Negative statement: Don't use object inheritance, it leads to confusing code.

* Positive statement: Try to make your inheritance tree flatter, this helps make more straightforward code.

The negative statement is both discouraging and ambiguous. When you tell someone or yourself to not do a thing, it begs the question, "What should be done instead?" Meanwhile, the positive statement is incisive and gives the listener better direction.

If you can spot something to not do, you can probably come up with something to do as well. This shift in thinking seems small, but has had a profound impact on how I interact with the world, and improved my outlook on life, work and relationships.

comment 7y ago · link · parent

There are also way fewer cars in those photos that anywhere comparable in LA today. Maybe these things are related?

comment 8y ago · link · parent

Thank you, that really helps! The original article alone is pretty confusing.

comment 8y ago · link · parent

Yes! This makes me so happy that Miyazaki would unretire and make more movies!

comment 8y ago · link · parent

The "where is this child" query is unaffected by the ordering, whether Z-order, Hilbert, or other. However querying "which children are in this area" requires that you come up with corresponding ranges along the curve. This is where the Hilbert curve is slightly better because in many cases the same area can be covered by fewer ranges.

Follow up questions: How do the number of ranges compare with the different orderings? How much does having fewer range segments affect database query performance? Does it make up for the added computational complexity of Hilbert curves? I've not answers, but these can be answered by science.

comment 8y ago · link · parent

> Instead of projecting the Earth directly onto a single square, it projects the Earth onto the 6 faces of a cube enclosing the Earth and then applies an extra non-linear transformations to reduce even more the deformations. Each cell in s2 is in fact part of one of six quadtrees that describe the whole planet.

That's a super cool detail! I once implemented a 2D index using a Z-Order curve that directly translated lat/lon coordinates to a linear ordering. It works well enough because nobody really lives at the poles--the search regions with a single projection get really obtuse there. Projecting the earth onto a 6-sided die is a really elegant solution to that problem! Go go Google engineering!

comment 8y ago · link · parent

Yes! So much covered in so few words. This ordering works shockingly well for constructing robust solutions to complex problems.

Keep it simple. Do what needs to be done now, leave off for later everything else. By the time later arrives, what the project needs will have gone in new and surprising directions. Refactoring complex and coupled code into logical discrete units pays off in multiples down the road. Removing that which is no longer needed is like giving your whole team extra time to breath and new room to think. For all the times that simplifying also solved the two other problems, we used that time for making more cool stuff.

comment 8y ago · link · parent

First, it must be said that this is super cool, and I love it so much!

I've got questions...

1. What is the relationship between the bottom colored dots and the colored notes? I'm looking in the "scalar" tool, key of C. It looks like the bottom dots are for coloring a cross-fretboard position. I would have expected the red bottom dot to mark the position from C on the 8th fret for all the scales, as it does for pentatonic minor to dorian. However pentatonic and blues major are on the 5th fret position, and major is in open position.

2. The pentanizer, what is it? I also don't understand the relationship between the colored and numbered dots and the fretboard coloring. The UI has a strange way of switching the numbers if I switch the scales. E.g. select pentatonic major, red dot, and 1 dot. Then switch to pentatonic minor, and it auto-switches to 5 dot. Overall, it's pretty disorienting the relationship between these design elements and the scales. Or I've fundamentally misunderstood the tool.

3. What tools did you use to make this? Will you open source?

Thank you, you're really killing it!

comment 8y ago · link · parent

Two weeks. I refer to it as the cussing period because it's full of situations where I know something is possible and easy, but I have to figure out how to find the right documentation and put together the peculiarities of the new language in my mind. Usually that feeling of frustrated helplessness goes away after two weeks.

comment 8y ago · link · parent

In my circle of peers, and perhaps beyond, we use "clever" as a pejorative. It roughly means what you said in the last sentence, "more of a display of cleverness than actual cleverness." In other words, calling a piece of code clever, indicates that it was made too complicated to easily grok. We also have an explicit goal of making code not clever.

comment 9y ago · link · parent

Nice! This is definitely an important tool when creating a site traffic in images to be displayed across a variety different sized screens. Having worked on this type of project before I'll mention a few challenges you have not yet addressed.

At some scale point, your single DynamicServer server will have more resize requests than it has CPU cycles to serve. The straightforward solution will be to add more DynamicServer instances. This means that your source image directory will have to be accessible from both instances. It also duplicates your cache directory, meaning a single image size could get generated on both servers. You might solve that by having a shared image cache network directory. Another solution could be to use a hash mechanism to determine a particular backend server from the load balancing layer, so any particular image would always be generated on the same instance.

Something interesting happens when people upload an image to their newsfeed. If it's a public newsfeed, there can be a good many requests of the image within the next several seconds at upload. This means that you can get multiple cache miss requests at the same time coming into your DynamicImage server. Your PHP processes are vertically partitioned, so your server will be simultaneously generating the resize. For users with only a few friends, this is a small waste of CPU cycles, but for users with massive user bases (e.g. Britany Spears), a single upload could grind your DynamicImage server to a halt just because of simultaneous duplicated work. Varnish (and other load balancers) can solve this by collapsing multiple requests to the same resource into a single HTTP call (https://varnish-cache.org/docs/3.0/tutorial/handling_misbeha...).

comment 9y ago · link · parent

Here is an interesting development contradicting edA-qa mort-ora-y's premise, AI Software Learns To Make AI Software: https://www.technologyreview.com/s/603381/ai-software-learns...

comment 9y ago · link · parent

I really love this article about Fan Hui and AlphaGo, [The Sadness and Beauty of Watching Google's AI Play Go](https://www.wired.com/2016/03/sadness-beauty-watching-google...). It's the first time I've read a balanced intimation of what it can be like interacting with artificial intelligences. I come away from this and the Kasparov article feeling that AIs will be friends as well as partners.

comment 9y ago · link · parent

It's not boorish. I only learned about this practice of new American slavery from a friend who had come out of prison recently. Not enough people are talking about it, so nobody knows this is what's going on. Please, keep talking about it!

comment 9y ago · link · parent

I wonder if this list comes out any differently today, 12 years later.

comment 9y ago · link · parent

It's a secondary work, "The function of criticism: On T. S. Eliot’s essay on the evaluation of literature" by Denis Donoghue.

comment 9y ago · link · parent

Paul Feyerabend argues as much in [Against Method](https://en.wikipedia.org/wiki/Against_Method), that "science is an anarchic enterprise." Our greatest innovations were created by people who were claiming "irrational" things against the backdrop of the knowledge of their time.

comment 10y ago · link · parent

I'm a 40-something programmer learning to weld. It's really fun! You can do it too.

comment 10y ago · link · parent

We should send even smaller nano-probes that would be even easier to accelerate and would have the capability to collect dust and build it into larger probes that would talk back to us when they come online!

comment 10y ago · link · parent

An oblique point, but we apparently have more in common with apes than monkeys. Admittedly, you could have just as easily compared us with wolverines. Nicely written!

comment 10y ago · link · parent

lol. ty!

comment 10y ago · link · parent

Ironically, the article linked, "Writing good code: how to reduce the cognitive load of your code", itself has a high cognitive load. It's grammatically irksome. The opening sentence has no verb, "Low bug count, good performance, easy modification." Further it uses poor non-examples of the points the author is trying to make. For example, Yoda conditionals are quirky, but do not increase cognitive load. They were also called out as a good habit in Code Complete, the very book the author sites as the long form of what he's writing about.

OTOH, the gist has a low cognitive load provided one understands funtional notation. I can look at his four lines of code and see that this is a correct solution, because each atom of the function can be reasoned about separately and then composed into the whole. The same is much more difficult with the looping solutions that have been presented as peers to this comment. These solutions have a higher cognitive load because proving correctness requires a full trace of the algorithm, while keeping all of the variables in working memory as you go.

tl;dr; The OP presented a clear and clever solution. I'll allow it. ;)

comment 10y ago · link · parent

Love it! That's a really clever use of the Set collection type to pair down non-solutions.

comment 10y ago · link · parent

This is a really touching open response to an inner demon that I, and many people, wrestle with. Like Alan, I too have childishly and bitterly demanded recognition from what seems like a cold and uncaring world. But seeing the system from within, it's just a bunch of people like me, working to make and find awesome things as best they can. It fills me with hope to know that our communities, online and otherwise, are created by and for ourselves. We don't have to be separate and lonely Alans, instead with some nurturing and care we can enjoy our time in the company of peers.
12