This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-define(maybe(Bool, Exprs), | |
if (Bool) -> (Exprs), ok; | |
true -> ok | |
end). |
This is a purely in-browser demo of Riak 2.0's sets datatype. The application code uses React.js and jquery.
To get started, make a 5-node devrel
cluster of the 2.0 preview using these instructions. After your cluster is built, make a bucket-type for sets:
cd dev/dev1
bin/riak-admin bucket-type create sets '{"props":{"datatype":"set","allow_mult":true}}'
bin/riak-admin bucket-type activate sets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ack legacy src | |
src/riak_core.erl | |
75: join(riak_core_gossip:legacy_gossip(), node(), Node, false, Auto). | |
78: legacy_join(Node); | |
85: %% doesn't define legacy_gossip will be handled | |
86: %% in standard_join based on seeing a legacy ring. | |
93: case riak_core_ring:legacy_ring(Ring) of | |
108: case riak_core_ring:legacy_ring(Ring) of | |
110: legacy_join(Node); | |
153:legacy_join(Node) when is_atom(Node) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Undefined symbols for architecture x86_64: | |
"_N_alloc", referenced from: | |
___eqc_c_address_of_N_alloc in __eqc_tmp1391428562644481_wrapper-09UJnj.o | |
___eqc_c_wrapper_N_alloc in __eqc_tmp1391428562644481_wrapper-09UJnj.o | |
(maybe you meant: ___eqc_c_address_of_N_alloc, ___eqc_c_wrapper_N_alloc ) | |
"_delete_one_or_all", referenced from: | |
___eqc_c_address_of_delete_one_or_all in __eqc_tmp1391428562644481_wrapper-09UJnj.o | |
___eqc_c_wrapper_delete_one_or_all in __eqc_tmp1391428562644481_wrapper-09UJnj.o | |
(maybe you meant: ___eqc_c_wrapper_delete_one_or_all, ___eqc_c_address_of_delete_one_or_all ) | |
"_get_first_eq_node", referenced from: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/dev/riak/deps/riak_core R16B02-basho3 [(detached from 699324c)@699324c] | |
$ ./rebar list-deps deps_dir=.. | grep -v "==>" | sort | uniq | |
basho_stats BRANCH develop git://github.com/basho/basho_stats.git | |
bear TAG 0.1.3p1 git://github.com/basho/bear.git | |
cuttlefish BRANCH develop git://github.com/basho/cuttlefish.git | |
eleveldb BRANCH develop git://github.com/basho/eleveldb.git | |
folsom TAG 0.7.4p4 git://github.com/basho/folsom.git | |
getopt TAG v0.4.3 git://github.com/jcomellas/getopt.git | |
goldrush TAG 0.1.5 git://github.com/DeadZen/goldrush.git | |
lager TAG 2.0.1 git://github.com/basho/lager.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> urllib.URLopener().open('https://www.howsmyssl.com/a/check') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 208, in open | |
return getattr(self, name)(url) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 437, in open_https | |
h.endheaders(data) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 969, in endheaders | |
self._send_output(message_body) | |
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 829, in _send_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DS.RESTAdapter.reopen({ | |
fetchBatchSize: 25, | |
findMany: function(store, type, ids, owner){ | |
var root = type.typeKey, | |
batchSize = this.get('fetchBatchSize') || ids.length, | |
batch, | |
rest = ids, | |
promises = [], | |
key = this.pathForType(root); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./riak_test -t validate_nval_etc -c rtdev | |
Tests to run: [{validate_nval_etc,[{id,-1}, | |
{platform,<<"local">>}, | |
{version,<<"riak-2.0.0pre9-develop">>}, | |
{project,<<"riak">>}]}] | |
13:52:55.013 [info] Application lager started on node nonode@nohost | |
13:52:55.014 [info] These modules are not runnable tests: [] | |
13:52:55.060 [info] Skipping cover, no modules included | |
13:52:55.544 [info] Stopped Node... /Users/sean/rt/riak/riak-1.4.6/dev/dev1/bin/riak stop ~ wasn't running. | |
13:52:55.587 [info] Stopped Node... /Users/sean/rt/riak/current/dev/dev1/bin/riak stop ~ wasn't running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> neotoma (compile) | |
Compiled src/neotoma_parse.erl | |
Checking whether the PLT neotoma.plt is up-to-date... yes | |
Proceeding with analysis... | |
peg_includes.hrl:85: The created fun has no local return | |
peg_includes.hrl:86: Fun application will fail since P :: none() is not a function of arity 2 | |
peg_includes.hrl:201: The created fun has no local return | |
neotoma.erl:52: Guard test not(is_atom(ModName::atom())) can never succeed | |
neotoma.erl:124: Function bootstrap/0 has no local return | |
done in 0m2.41s |