Skip to content

Instantly share code, notes, and snippets.

View andywenk's full-sized avatar

Andreas Wenk andywenk

View GitHub Profile
@andywenk
andywenk / blog-email
Last active August 29, 2015 14:03
informal-email-regarding-blog
Dear developers and users,
as you may have noticed, you did not receive the CouchDB Weekly News
in the last two weeks. This is due to a longer standing problem with
the blog software used at https://blogs.apache.org/couchdb/. We are
aware of the problem and the good folks at ASF-Infra are working on it
which we highly appreciate and want to thank them for.
Still, we discussed on marketing@ how to deal with this, especially
regarding continuous Marketing efforts. We found a solution that will
@andywenk
andywenk / index.html
Last active August 29, 2015 14:01
example for global configuration settings in parsley
<html>
<head>
<title>parsley</title>
</head>
<body>
<h1>Welcome to parsley</h1>
<script type="text/javascript" src="parsley.js"></script>
</body>
@andywenk
andywenk / rebar-eunit.txt
Created May 25, 2014 18:03
rebar-eunit.out
DEBUG: Evaluating config script "/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/rebar.config.script"
DEBUG: Rebar location: "/usr/local/bin/rebar"
DEBUG: is_rel_dir(/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3) -> false
DEBUG: is_app_available, looking for App couch_log with Path "/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/couch_log"
DEBUG: Consult config file "/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/couch_log/src/couch_log.app.src"
INFO: Looking for couch_log-.* ; found couch_log-@version@ at /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/couch_log
DEBUG: is_app_available, looking for App config with Path "/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/config"
DEBUG: Consult config file "/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/config/src/config.app.src"
DEBUG: vcs_vsn: Primary vcs used for /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch-3/src/config
INF
./test_bigcouch.py
Running tests
Creating db(201): http://localhost:15986/test_all_docs
Creating db(201): http://localhost:15984/test_all_docs
Created doc on db(201): http://localhost:15986/test_all_docs
Created doc on db(201): http://localhost:15984/test_all_docs
Created doc on db(201): http://localhost:15986/test_all_docs
Created doc on db(201): http://localhost:15984/test_all_docs
Created doc on db(201): http://localhost:15986/test_all_docs
Created doc on db(201): http://localhost:15984/test_all_docs
curl http://localhost:15984/bigcouch_is_awesome/_design/big/
{"_id":"_design/big","_rev":"1-1405e501441096482d6216e789ed3d15","language":"javascript","views":{"all":{"map":"function(doc) {\n emit(null, doc);\n}"}}}
curl http://localhost:15984/bigcouch_is_awesome/_design/big/_view/all
{"error":"function_clause","reason":null,"stack":["chttpd:send_delayed_error/2 L629","couch_mrview_http:view_cb/2 L291","fabric_view_map:handle_message/3 L65","rexi_utils:process_mailbox/6 L36","fabric_view_map:go/6 L42","couch_httpd:etag_maybe/2 L567","chttpd_view:design_doc_view/5 L55","chttpd:handle_request/1 L209"]}
(node1@127.0.0.1)4> mem3_shards:for_docid(<<"bigcouch_is_awesome">>, <<"c8a55fcca56537f0029e476aa60018a4">>).
[{shard,<<"shards/40000000-7fffffff/bigcouch_is_awesome.1400099010">>,
'node1@127.0.0.1',<<"bigcouch_is_awesome">>,
[1073741824,2147483647],
undefined},
{shard,<<"shards/40000000-7fffffff/bigcouch_is_awesome.1400099010">>,
'node2@127.0.0.1',<<"bigcouch_is_awesome">>,
[1073741824,2147483647],
undefined},
{shard,<<"shards/40000000-7fffffff/bigcouch_is_awesome.1400099010">>,
@andywenk
andywenk / create_db_shards
Created May 14, 2014 20:27
curl -XPUT http://localhost:15984/bigcouch_is_awesome\?q\=4\&n\=5
~ ❯❯❯ curl -XPUT http://localhost:15984/bigcouch_is_awesome\?q\=4\&n\=5
{"ok":true}
~ ❯❯❯ curl http://localhost:15984/_all_dbs
["_replicator","bigcouch_is_awesome","rnewson_is_the_boss"]
~ ❯❯❯ curl http://localhost:15986/_all_dbs
[
"_replicator",
"_users",
"dbs",
"nodes",
@andywenk
andywenk / ps
Created May 14, 2014 20:03
ps -ef | grep erlang
ps -ef | grep erlang
501 67185 1 0 9:55PM ?? 0:00.01 /usr/local/Cellar/erlang/R16B03-1/lib/erlang/erts-5.10.4/bin/epmd -daemon
501 67169 67164 0 9:55PM ttys017 0:04.61 /usr/local/Cellar/erlang/R16B03-1/lib/erlang/erts-5.10.4/bin/beam.smp -K true -A 16 -Bd -- -root /usr/local/Cellar/erlang/R16B03-1/lib/erlang -progname erl -- -home /Users/andwen -- -name node1@127.0.0.1 -setcookie monster -kernel error_logger silent -sasl sasl_error_logger false -noshell -noinput -couch_ini /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/dev/lib/node1/etc/default.ini /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/dev/lib/node1/etc/local.ini -reltool_config /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/rel/reltool.config -parent_pid 67164 -pa /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/dev -pa /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/src/* -s boot_node
501 67170 67164 0 9:55PM ttys017 0:03.97 /usr/local/Cellar/erlang/R16B
@andywenk
andywenk / unicode-error
Created May 14, 2014 19:39
BigCouch merge error
Compiling priv/couch_js/util.c
Compiling /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/src/couch/priv/icu_driver/couch_icu_driver.c
/Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/src/couch/priv/icu_driver/couch_icu_driver.c:27:10: fatal error: 'unicode/ucol.h' file not found
#include "unicode/ucol.h"
^
1 error generated.
ERROR: compile failed while processing /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/src/couch: rebar_abort
make: *** [compile] Error 1
@andywenk
andywenk / warnings from .configure
Created May 14, 2014 19:36
BigCouch merge ./configure && make && dev/run
WARN: Expected /Users/andwen/project/couchdb/couchdb-1843-feature-bigcouch/src/couch_log to be an app dir (containing ebin/*.app), but no .app found.