Walking Randomly � Best source code comment ever?: "//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 32
//"
Friday, September 24, 2010
Wednesday, September 22, 2010
Javascript closure compiler error.
Google closure compiler converts
as
So don't declare your json ajax receptor before usage.
Revised according to comment:
Closure can start to do weird things if you include variable names in eval text.
This is a better solution from John:
var jsonvar;
eval('jsonvar = '+msg.d+');
for(var i = 0;i<jsonvar.length;i++)
{
dochicken(jsonvar[i].Chicken);
}
as
for(d = 0;d < (void 0).length;d++) {
dochicken((void 0)[d].Chicken);
}
So don't declare your json ajax receptor before usage.
Revised according to comment:
Closure can start to do weird things if you include variable names in eval text.
This is a better solution from John:
var jsonvar = eval("(" + msg.d+ ")");
for(var i = 0;i {
dochicken(jsonvar[i].Chicken);
}
CHIKEN();CHIKEN();
Monday, September 20, 2010
Thursday, September 16, 2010
Tuesday, September 14, 2010
Patrick Millard | Formatting Gaia � Blog Archive � Don’t Tell the Creative Department, but Software Can Produce Ads, Too
Patrick Millard | Formatting Gaia � Blog Archive � Don’t Tell the Creative Department, but Software Can Produce Ads, Too: "The software is called CAI, pronounced Kay, for Creative Artificial Intelligence."
Thursday, September 9, 2010
Decoding spoken words from brain signals | KurzweilAI
Decoding spoken words from brain signals | KurzweilAI: "University of Utah researchers translated brain signals into words using two grids of 16 microelectrodes implanted beneath the skull but atop the brain."
Wednesday, September 8, 2010
Underground Acid Water Could Take Over Johannesburg - TIME NewsFeed
Underground Acid Water Could Take Over Johannesburg - TIME NewsFeed: "rising at a rate of about three feet per day"
4037689-Drekkingarhylur_II_no_throwing_of_coins-Thingvellir.jpg (182�130)
4037689-Drekkingarhylur_II_no_throwing_of_coins-Thingvellir.jpg (182�130)
Tuesday, September 7, 2010
Monday, September 6, 2010
Saturday, September 4, 2010
Thursday, September 2, 2010
Wednesday, September 1, 2010
Subscribe to:
Posts (Atom)