58 karma · joined Nov 1, 2010 (16y ago) · 20 submissions
comment 8mo ago · link · parent
Independent of the lines dropped, there are eight (2n) ways to pick adjacent points and sixteen (n^2) different combinations of points.
There are four (n) adjacent points iif the points lie on the same half of the circle (proof by interactive visualization).
So the answer is eight sixteenths (2n/2^n).
comment 2y ago · link · parent
I think the meaning of "Agreed" or "Right on" is rare and more implicit. Like saying "therefore" might mean "I accept the premise".
As a question, "donc?", like "so?", can mean "and then?", "then what?", "meaning what?", "what next?" or "so what?"
As an interjection or at the beginning of a sentence, "donc", like "so", can mean "now then", "that said", "moving on" or "without further ado".
comment 9y ago · link · parent
Programming can seem like a slow process because the bulk of the process happens in our minds. Keeping our focus on our precious mental models makes us more productive.
Keyboard shortcuts become mechanical. When we're in the middle of editing code, whether we type "F8" "C-c C-l" or ":make", we can keep your focus where it belongs. But if we use a mouse to click on the "Build" button instead, we lose part of our focus looking for and aiming at the button. Menus and file explorers are especially bad at this: when opening a menu item or looking for a nested file, every single subfolder or submenu steals more of our focus away.
I know a few programmers who never use auto-completion for file names or methods. It surprised me and frustrated me a lot at first. Typing long file names without tab completion can be so. much. slower. But then I realised we can be much more efficient that way! Auto-completion interrupts our focus. We need to take in new information and make decisions. It's all about eliminating the step where we ask ourself "Why did I open this file?" or "What goes next?". It is easier to think about what arguments we want to pass to a method when we're not focused on selecting that method from a drop-down list. That is also why precise touch-typing is so important. We don't want to focus on either the pointer or the keyboard, we want to focus on our code.
The mouse itself isn't the problem, in fact some editors such as ACME or Blender make very good use of the mouse. The problem is inefficient UI design that interrupts our concentration.
comment 9y ago · link · parent
6.
Hosting a website on IPFS(atnnn.com ↗)
3 points · by atnnn · 10y ago · discuss
comment 10y ago · link · parent
The proper way to use libuv would be to replace those abstractions with libuv's own, which would affect a lot more code and possibly break a lot of implicit invariants.
In retrospect, perhaps we should have given alternatives like libuv, libevent or boost::asio more consideration.
comment 11y ago · link · parent
What you shudder to think of could be expressed as
row('species').contains(function(s){ r.expr(['Saiyan', 'Human', 'Android']).contains(s) })
Or also as: row('species').setIntersection(['Saiyan', 'Human', 'Android']).isEmpty().not()
The succintness of ReQL depends on that of the host language. JavaScript's bulky syntax for functions and lack of operator overloading make queries a lot more cluttered.comment 11y ago · link · parent
The code in the demo does this by performing a separate `between` query.
comment 12y ago · link · parent
It looks like the lucid package is no longer compatible with wheezy.
You may have better luck using precise, trusty or saucy instead of lucid in your sources.list
I will run some tests and update the docs on rethinkdb.com.
comment 13y ago · link · parent
It already is! Each expression is a simple wrapper around a monad, similar to this datatype:
data Expr = Expr (QueryM Term)
Where QueryM is the monad that helps build the query and Term is the raw protobuf expression that gets sent to the server.
comment 15y ago · link · parent
It is one of the central ideas behind bitcoin and leaves no doubt about the anonymity of the transactions.
It is a well publicised idea and it is even mentioned on the main page of the bitcoin wiki (http://bitcoin.it).