Older blog entries for sness (starting at number 4516)

Limbic Media | real-time interactive media control technologies

Limbic Media | real-time interactive media control technologies: "We have been doing some audio-reactive lighting research at Limbic for some upcoming projects this year. Check out this video to see an audio-reactive LED sculpture by new Limbic Media team member Gabrielle Odowichuk followed by an audio-reactive beat-boxing performance by Manj Benning."

Syndicated 2012-10-05 21:50:00 from sness

Code Review with Gerrit, a mostly visual guide

Code Review with Gerrit, a mostly visual guide: "A while ago, when Paul, Jason and I worked together, I became a big fan of code reviews before merging code. It was no surprise really, we were the first to adopt Git at the company and our workflow was quite ad-hoc, the need to federate knowledge within the group meant code reviews were a pretty big deal. At the time, we mostly did code reviews in person by way of "hey, what's this you're doing here?" or by literally sending patch emails with git-format-patch(1) to the team mailing list so all could participate in the discussion about what merits "good code" exhibited versus "less good code." Now that I've left that company and joined another one, I've found myself in another small-team situation, where my teammates place high value on code review. Fortunately this time around better tools exist, namely: Gerrit."

'via Blog this'

Syndicated 2012-10-05 21:48:00 from sness

Tutorial — Disco v0.4.3 documentation

Tutorial — Disco v0.4.3 documentation: "from disco.core import Job, result_iterator

def map(line, params):
for word in line.split():
yield word, 1

def reduce(iter, params):
from disco.util import kvgroup
for word, counts in kvgroup(sorted(iter)):
yield word, sum(counts)

if __name__ == '__main__':
job = Job().run(input=["http://discoproject.org/media/text/chekhov.txt"],
for word, count in result_iterator(job.wait(show=True)):
print word, count"

'via Blog this'

Syndicated 2012-10-05 17:56:00 from sness

Setting up Disco — Disco v0.4.3 documentation

Setting up Disco — Disco v0.4.3 documentation: "Short Version
git clone git://github.com/discoproject/disco.git DISCO_HOME
bin/disco nodaemon"

'via Blog this'

Syndicated 2012-10-05 17:56:00 from sness

Radix sort - Wikipedia, the free encyclopedia

Radix sort - Wikipedia, the free encyclopedia: "Radix sort's efficiency is O(k·n) for n keys which have k or fewer digits. Sometimes k is presented as a constant, which would make radix sort better (for sufficiently large n) than the best comparison-based sorting algorithms, which are all O(n·log(n)). However, in general k cannot be considered a constant. In particular, under the common (but sometimes implicit) assumption that all keys are distinct, then k must be at least of the order of log(n), however other sorting methods become O(log (n) * log (n) * n) under similar constraints as they also need to step through an ever increasing number of symbols to do the comparisons."

Syndicated 2012-10-05 17:55:00 from sness

What does Google Closure Library offer over jQuery? - Stack Overflow

What does Google Closure Library offer over jQuery? - Stack Overflow: "“Closure is an ecosystem. It is not like jQuery where you just use it here and there to make accessing or manipulating the DOM easier. If you want to truly use Closure, you have to make a commitment to truly use it.”"

'via Blog this'

Syndicated 2012-10-05 16:07:00 from sness

Ask HN: JQuery vs Google Closure | Hacker News

Ask HN: JQuery vs Google Closure | Hacker News: "The flip side is that coding to Closure conventions is very verbose. It feels like Java, a lot of the time. If your app is going to have hundreds of thousands of lines and dozens of developers, this is the right move. If it's just you trying to bang out an interactive website in a couple weeks, JQuery will let you get the basics done in much less code."

'via Blog this'

Syndicated 2012-10-05 16:06:00 from sness

Rapture of the Nerds

Rapture of the Nerds: "Huw makes sure to wake up in his own bed the next morning. It’s ancient and creaky, the springs bowed to conform to his anatomy, and he wove the blankets himself on the treadle-powered loom in the back parlor that Mum and Dad left him when they ascended, several decades before. (Huw is older than he looks, thanks to an unasked-for inheritance of chromosomal hackery, and has for the most part become set in his ways: incurious and curmudgeonly. He has his reasons.) His alarm clock is a sundial sketched on the whitewashed wall opposite in bold lines of charcoal, slightly smudged; his lifestyle a work of wabi in motion."

'via Blog this'

Syndicated 2012-10-05 15:56:00 from sness

Create a landscape only iPad app with Phonegap - Google Groups

Create a landscape only iPad app with Phonegap - Google Groups: "[self.window addSubview:self.viewController.view];

replace it with

self.window.rootViewController = self.viewController;

At this point orientation is handled correctly, but for one problem: the webview doesn't appear to know the dimensions of the status bar, and tries to display content underneath it. I tried all sorts of things, and finally got this to work, in viewDidLoad: of MainViewController.m:

    [super viewDidLoad];

    // Do any additional setup after loading the view from its nib.


    self.webView.frame = CGRectMake ( 0, 20, self.view.frame.size.width, self.view.frame.size.height-20);


'via Blog this'

Syndicated 2012-10-03 19:32:00 from sness

underscore.js - obj.length === +obj.length in javascript - Stack Overflow

underscore.js - obj.length === +obj.length in javascript - Stack Overflow: "It's another way of writing if (typeof obj.length == 'number'). Why they do it that way, it's anyone's guess. Probably trying to be clever at the expense of readability. Which is not too uncommon these days, unfortunately..."

'via Blog this'

Syndicated 2012-10-03 18:14:00 from sness

4507 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!