Sticking little lights to trains. Lots and lots of lights. I wish GRL had positioned another camera at the next station, so we could see more of the glowing trains in motion.
A colon (":") before the "Category" prefix, e.g., [[:Category:NameOfCategory]], will allow you to include a link to a category page without actually adding the article to that category.
A thread where it is explained that, if you want to run a command in the shell and then use the output for something, then you don't want backticks at all. Rather, use open() to tie the commands output to a filehandle, and then work with the filehandle.
Explanation of why Adobe's fix for the "click twice" ActiveX/Flash bug, must be loaded from a remote file: "When loaded from external script files, these controls do not display a prompt."
Interesting post from the Wooster Collective: "What September 11th did for us was to force us to be outside and to see our city in a completely different light. We became aware. Hyper aware. And as we became more aware of what was around us, we began disc
"You get the benefit of my interviews and research about the company - about ten hours of work per company - for reading just one lengthy post per week!"
NY1's reporter catches the big import of this story: "Unlike a typical news broadcast that comes from independent journalists, the information on the NYPD podcast comes directly from the NYPD."
Demonstrates how to do Perl-ish things with JS. A companion to the book "Higher-Order Perl." To me, this seems complementary to D. Crockford's "The Little JavaScripter" site, which shows how JavaScript is like Scheme.
Douglas Crockford explains how to use closures to encapsulate and protect private data in JavaScript. This is one of the more important pages to become familiar with in the current JavaScript development milieu.
Neat little example of a useful JavaScript closure
I just picked up the 5th edition of David Flanagan's JavaScript, the Definitive Guide. I find it amusing that that book is the only JavaScript book officially recommended at comp.lang.javascript.
Closures are a powerful feature of JavaScript. However it's often hard to explain in a few words, just what is useful about closures. Well, here on page 131 of the Rhino book, is the recipe for a unique ID generator that doesn't require a global counter.
One thing that I personally enjoy about the Flanagan book is that he says things like "don't pollute the global namespace." :) This technique does not pollute the global namespace.
var uid = (
function(){
var id=0;
return function(){
return id++ ;
};
}
)();
//then just say:
alert(uid());
This example might become important if I were hiring someone to work with me, and I wanted to establish quickly that they had an intermediate skill level in JavaScript. While the example is quite trivial technically, it is quite incomprehensible to the typical "Web" designer.
Of course, I would like to hire someone who is a little of both (designer and engineer), so I would also ask questions like:
What are two colors that are complementary?
What is an Icon?
What is the difference between an icon and some other type of graphic, say a photograph?
Again, I think these questions are trivial for a designer to answer, but much harder for "server-side" programmers.
Nice blog entry by IxDA board member Dan Safer on "So You Want to Be an
Interaction Designer 2006". Worth sharing with those who don't know what we
do.