Using prime numbers to make better backgrounds
designfestival.com
designfestival.com
pquerna's recent post about OpenSSL memory in node (and elsewhere) is another that comes to mind. http://news.ycombinator.com/item?id=2411144
keep 'em coming I say!
This article was truly awesome. I'm kicking myself for having not thought of it before because it seems like such a simple concept! Makes me wonder what else out there I haven't thought of... ;)
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. no "maybe good", only "definitely good.") I wouldn't mind even if it only had two or three new posts per day—fewer, guaranteed posts means I could actually stand to add it to my RSS reader, vs. the current HN which is more of a firehose: good to stick a bottle in every once in a while, not good to stand in front of.
Thinking on that, here's one way it could be implemented on top of the current HN: if there was some sort of "way, way up"-vote button that (besides being an actual "I wish I had N upvotes to give this" upvote-N-times button) worked as a sort of moral negative to flagging, such that when it had been hit [some threshold] times for an article, the article would get linked into the "/awesome" sublist, that might be enough to make it happen—if we trust the userbase to not abuse it.
If everyone started to way-way-up-vote everything they currently just up-vote, perhaps one could stick a CAPTCHA (or three) on it to make it just annoying enough to disuade abuse (at the cost of further false negatives from people now too lazy to use it.)
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.
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...
The least common multiple of two coprimes 'a' and 'b' is a*b.
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.
It's important to note that, for the cicada, they are not a staple diet but rather an opportunistic one that occurs only once in a few generations. This means that the predator's cycle would have to skip generations in order to be effective. This is unlikely, given that that cycle would have no evolutionary advantage in the intermediary, and would thus be diluted by more pressing concerns.
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.
Edit: See also -
http://www.cs.sunysb.edu/~vordonezroma/texturesynth.pdf
(There are some mind blowing generated images in the linked PDF.)
The bells are hung in such a way that they naturally want to swing with equal periods, so you don't have to disturb one too much to make it ring one place earlier or later in the cycle. (A bell is never moved by more than two places.)
I don't see any reason why a peal of bells couldn't be set up to produce the effect jws described, but it wouldn't be at all the same thing as change ringing.
Both produce music according to a simple algorithm, but the algorithms are different.
http://www.sitepoint.com/examples/primes/lego-bg1.jpg http://www.sitepoint.com/examples/primes/lego-bg2.png http://www.sitepoint.com/examples/primes/lego-bot1.png http://www.sitepoint.com/examples/primes/lego-bot2.png http://www.sitepoint.com/examples/primes/lego-headsb.png http://www.sitepoint.com/examples/primes/lego-heads-2.png http://www.sitepoint.com/examples/primes/lego-mids1.png http://www.sitepoint.com/examples/primes/lego-mids2.png
Also, I think the technique will work as long as the numbers are relatively prime, which may be a bit easier to design around.
Take a rhythm in 4/4 (say a standard rock snare backbeat, playing on the second and fourth note of a four note bar), layer on a cymbal pattern which repeats every three notes, then a bass drum pattern which repeats every five notes. The effect is fairly subtle because the snare keeps everything sounding like 4/4, but the feel of the rhythm is constantly shifting.
I found a nice YouTube video demonstrating this a while back, but unfortunately all I can find now is videos of polyrhythms where the loops all have the same duration but different numbers of beats per duration... which is an interesting technique in and of itself :)
1 is not a prime number. Also, the "simplest" possible set of primes would be 2, 3, and 5.
1. The most common cicadas come out every year or every other year.
2. The 17-year cicadas (for example) don't come out once every 17 years -- they come out every single year. Just in different broods (groups differing by phase). Some broods are much bigger than others of course, and broods are often located in different parts of the country, but many broods can and do overlap.
So I dunno. I'm guessing they're 13 and 17 year cicadas because that's how long it takes to develop.
What's interesting about that is how the broods might diverge to coprime emergence schedules to prevent competition.
That's a tautology. "A baby takes 9 months to be born because that's how long it takes to develop." Well, yes, but the question becomes, why does it take that amount of time to develop? Were there direct selection pressures acting on that length of time, or is that length of time mostly a function of other variables which are acted on directly by selection pressure?
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.
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.
Some articles trigger lots of ideas in my mind, this was one of them.
They also have an interactive tool that generates HTML/CSS: http://www.3x4grid.com
"That’s great. But wa/s/ has all this got to do with web design?"