Better HN
topnewbestaskshowjobs
Log inSign up

pixl8ed

5 karma · joined Dec 14, 2011 (14y ago) · 7 submissions

Interested in making stuff, physical computing, motion control, juggling... Oh, and robots!
Submissions

comment 3y ago · link · parent

Could have been the plot for the movie "Consuming Passions"

A satire about what happens when three men are accidentally shoved into a vat of chocolate in a confectionery factory, and chocolate lovers favour the resulting confections.

comment 11y ago · link · parent

http://www.mathematische-basteleien.de/snakecube.htm

http://stackoverflow.com/questions/11622068/snake-cube-puzzl...

comment 12y ago · link · parent

http://codeascraft.com/2010/07/09/batch-processing-millions-... is a writeup of a similar task at Etsy to resize 135 million images.

comment 13y ago · link · parent

Doh -- of course... Many thanks for the explanation & the links!

comment 13y ago · link · parent

I'm not convinced that there's two loops -- aren't the .css() methods chained together, and would be executed right after each other for each step through the implied loop?

In $(".widget").css("color", "green").css("font-size", "16px"); does the color of all the widgets change, and then the fontSize, or does the color/fontSize change together for each widget? I suspect the latter...

comment 13y ago · link · parent

Is it re-looping? Doesn't the .css setter return a jQuery object that is used by the next method in the chain? So it's actually only going through an implicit loop of $( ".widget" ) once?

comment 14y ago · link · parent

I've been patiently waiting for adafruit to get the BeagleBone in stock to play around with this... http://www.adafruit.com/products/513