Older blog entries for sness (starting at number 4511)

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

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

CAP theorem - Wikipedia, the free encyclopedia

CAP theorem - Wikipedia, the free encyclopedia: "In theoretical computer science, the CAP theorem, also known as Brewer's theorem, states that it is impossible for a distributed computer system to simultaneously provide all three of the following guarantees:[1][2]
Consistency (all nodes see the same data at the same time)
Availability (a guarantee that every request receives a response about whether it was successful or failed)
Partition tolerance (the system continues to operate despite arbitrary message loss or failure of part of the system)"

'via Blog this'

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

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