wpears
wpears on Hacker News
I took the parent comment to be making the assumption that politically attractive options for responding to emissions and climate change tend to be "market-based" solutions or activities that are picking winners between industries (say solar manufacturers and installers vs. coal plant workers). If there is a choice where there is a "winner" with money on the line there will also be lobbying money put toward that effort and so consensus building is easier.
There isn't necessarily anything nefarious about this, just that it may be incapable of dealing with the enormity of climate climate and also, as OP intimates, there may be a class of solutions that are better/cheaper/more efficient from a policy perspective, but that don't have anyone positioned to gain financially from them and so are harder to garner support for.
Where x can be any combination of letters of any length?
If the DNA in a seed is still in good enough shape to support blooming after being frozen 30,000 years, perhaps a seed frozen in a meteorite [1] could also survive long enough to be spread between solar systems.
[1] maybe after glancing off a planet or created by the collision of two large objects
Posted by
wpears on Tuesday May 03, 2016 @04:24PM
from the kimbia.com dept.
Ruby. Rails is the web framework, Ruby is the language and thus the thing that is interpreted.
BST is O(n) in the worst case (when a tree is completely unbalanced and is essentially a linked list)
The video at the "byzantine regulatory framework" link[1] is worth a watch (at least the first 10 minutes to get a taste). One of the most valuable offerings of cloud.gov is (hopefully) the ease with which it can go through the ATO and FISMA processes because it was designed with them in mind.
[1]https://www.youtube.com/watch?v=T1S52B1-NT4
His second bind example is incorrect.
function handleClick(i) {
this.innerHTML = i;
}
for (i = 0; i < elems.length; i++) {
elems[i].addEventListener("click", handleClick.bind(this, i));
}
In the for loop, the
this value refers to the global object. To get the desired effect, it should be changed to elems[i] (this piece of code is trying to bind a handler to an element).
You mixed up your definitions of function declaration and function expression. In this case, if the '!' weren't there, it would indeed be a function declaration, but with improper syntax (removing the '!' would result in a syntax error).
What makes a function either an expression or declaration is simply whether the parser expects an expression or declaration in the given context. The grouping operator '()' and the NOT operator '!' both are parameterized by expressions, and so the Javascript parser treats functions passed to them as expressions. Unless located where an expression is expected, functions will default to declarations.
Posted by
wpears on Wednesday March 12, 2014 @06:30PM
from the github.com dept.
You're quite correct that cadence is diminished, though that can be mitigated by adding a delay to each word based on its length.
Similar to what I did with the chrome extension Spree [1]. Though I find your pauses on periods to be a bit much. Code for Spree available on github [2]. The IIFE in spree.js can also function as a bookmarklet.
Also, Spree doesn't walk to an element's parent, which usually keeps it from getting into JS and ads, while still reading all of, say, a news article.
On another tack, quite a lovely site.
1. https://chrome.google.com/webstore/detail/spree/aehoaolhojlm...
2. https://github.com/wpears/spree
If the socket is terminated mid-command (thus emitting 'close'), one would want the process to be killed. Also, the socket doesn't know that no more transmission is required just because one particular stream is over. That is why close is called manually on the socket after the stream emits a 'close'.
This all provided you use a streaming web socket module like https://github.com/maxogden/websocket-stream
The getter is wrapped in a try/catch, so the circular reference hits the max call stack size and errors out silently.