Cool, but these numbers don't have to be primes. They just have to be coprimes (like (8,9)). The least common multiple of two coprimes 'a' and 'b' is a*b. http://en.wikipedia.org/wiki/Coprime
Not for the cicada example, but yes for the web aspect. In the cicada example the point is that one predator would evolve to align its boom cycle so that it had a common divisor with the cycle of the cicada. Since the predator's cycle is variable, it is evolutionarily optimal if the cicada only comes out every prime number of years.
Using prime numbers to make better backgrounds
51–57 of 57 posts
Re: Using prime numbers to make better backgrounds
#52Earlier quoted context omitted.
Not for the cicada example, but yes for the web aspect. In the cicada example the point is that one predator would evolve to align its boom cycle so that it had a common divisor with the cycle of the cicada. Since the predator's cycle is variable, it is evolutionarily optimal if the cicada only comes out every prime number of years.
Coprimality is still the relevant property. But if one number can be adjusted, then the only way to guarantee coprimality is for the other number to be a prime.
The other relevant barrier we have is probably that a 6-year wasp has difficulty stretching its cycle by a factor of 3--much more difficult than a single year or two.
Re: Using prime numbers to make better backgrounds
#53There's a typo in the title of the second 'chapter'. "That’s great. But wa/s/ has all this got to do with web design?"
Re: Using prime numbers to make better backgrounds
#54Earlier quoted context omitted.
Hey guys, I actually mocked up a woodgrain test page while I was developing the article but I ended up preferring the lego and curtain examples. But if your interested: http://www.sitepoint.com/examples/primes/woodgrain.html It's not bad, but I don't think it's killer yet. I've got a very raw maze generation example somewhere if anyone's interested.
This is HN. Almost everyone's interested, so post away!
The graphics are a bit nasty but the concept is works. There seems to be a diagonal pattern emerging, but a fourth layer would certainly break that.
Re: Using prime numbers to make better backgrounds
#55Re: Using prime numbers to make better backgrounds
#56This is the perfect Hacker News article. I learned something new and mathematically-interesting about the natural world, the author came up with a clever hack to enliven backgrounds, and we learn how to apply that to improve our own designs.
In summary, this article is far from what I would upvote. A good indicator of the relative weakness of it is the few interesting comment it triggered.
In fact, some month ago I would come to HN, and read the comments, and find a lot of savoury meat for my curiosity hunger, without even bothering to get check the original article that was only the starting point of high-level exchanges of views on the matter.
PS: Recent articles seem to focus on visual design (pixels and colors), which is very surprising on a website that is so obviously anti-design...
Re: Using prime numbers to make better backgrounds
#57Earlier quoted context omitted.
It's interesting that it's almost impossible to pin down a verbal guideline for what people should be submitting (besides "anything that gratifies one's intellectual curiosity") but pretty easy to point to a given article and say that, yes, this definitely is Hacker News. It'd be pretty awesome if we could have an HN that's just this sort of stuff (with a strong tendency toward false-negatives vs. false-positives—i.e…
You can filter the homepage for submissions with a minimum number of votes: http://news.ycombinator.com/over?points=200 HN has loads of hidden features. I suggest judicious use of google's search operators to find them all.
Somebody should really put together a guide to all these half-hidden features, either as a wiki or an individual effort.