Older blog entries for sness (starting at number 4512)

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:

After
    [super viewDidLoad];

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

add

    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

CAP Twelve Years Later: How the "Rules" Have Changed

CAP Twelve Years Later: How the "Rules" Have Changed: "In its classic interpretation, the CAP theorem ignores latency, although in practice, latency and partitions are deeply related. Operationally, the essence of CAP takes place during a timeout, a period when the program must make a fundamental decision-the partition decision:

cancel the operation and thus decrease availability, or

proceed with the operation and thus risk inconsistency."

'via Blog this'

Syndicated 2012-10-03 06:46:00 from sness

CAP Twelve Years Later: How the "Rules" Have Changed

CAP Twelve Years Later: How the "Rules" Have Changed: "The CAP theorem states that any networked shared-data system can have at most two of three desirable properties:

consistency (C) equivalent to having a single up-to-date copy of the data;
high availability (A) of that data (for updates); and
tolerance to network partitions (P).
"

'via Blog this'

Syndicated 2012-10-03 06:09:00 from sness

4503 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!