Older blog entries for sness (starting at number 4509)

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

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

Magical Burning Man 2012 sunrise-footage with Lee Burridge @ Robot Heart (where else??) - YouTube

Magical Burning Man 2012 sunrise-footage with Lee Burridge @ Robot Heart (where else??) - YouTube: "