Skip to content

Instantly share code, notes, and snippets.

View hoodoos's full-sized avatar

Leonid Ryaboshtan hoodoos

View GitHub Profile
@hoodoos
hoodoos / expat_cdata
Created December 2, 2010 13:16
supports cdata start/end for node-expat
diff --git a/node-expat.cc b/node-expat.cc
index fbd6b0a..d39dcbe 100644
--- a/node-expat.cc
+++ b/node-expat.cc
@@ -10,6 +10,7 @@ using namespace v8;
using namespace node;
static Persistent<String> sym_startElement, sym_endElement,
+ sym_startCdataElement, sym_endCdataElement,
sym_text, sym_processingInstruction,
hoodoos@imwithstupid:~/builds/npm$ ./cli.js
node.js:63
throw e;
^
Error: Cannot find module 'constants'
at loadModule (node.js:275:15)
at require (node.js:411:14)
at Object.<anonymous> (/home/hoodoos/builds/npm/lib/utils/exec.js:13:17)
at Module._compile (node.js:462:23)
Attempting to restart script through sudo -u riak
RPC to 'riak@127.0.0.1' failed: {'EXIT',
{{function_clause,
[{gen,call,
[[],'$gen_call',reload_vms,infinity]},
{gen_server,call,3},
{rpc,'-handle_call_call/6-fun-0-',5}]},
{gen_server,call,[[],reload_vms,infinity]}}}
Attempting to restart script through sudo -u riak
RPC to 'riak@riak01.twiket' failed: {'EXIT',
{{function_clause,
[{gen,call,
[[],'$gen_call',reload_vms,infinity]},
{gen_server,call,3},
{rpc,'-handle_call_call/6-fun-0-',5}]},
{gen_server,call,
[[],reload_vms,infinity]}}}
riak.client.add([['clientinfo', key], ['clientzonesinfo', key]])
.map(function(v, keydata, args){
if(v.values){
var result = {}
if(v.bucket == args.clientBucket){
var keysToGet = [];
result.clientInfo = Riak.mapValuesJson(v)[0];
result.clientInfo.gds.forEach(function(gds){
=ERROR REPORT==== 3-Mar-2011::20:30:32 ===
webmachine error: path="/riak/twiket_request_stats_pre/monitoring_user:1303MOWMAD:-:2011030319:92415485-be12-44d3-b1d1-e2682b335aed"
{error,{case_clause,{error,notfound}},
[{riak_kv_wm_raw,delete_resource,2},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3},
{webmachine_decision_core,resource_call,1},
{webmachine_decision_core,decision,1},
{webmachine_decision_core,handle_request,2},
{webmachine_mochiweb,loop,1},
var filters = ["and",
[['tokenize', ':', 3], ['string_to_int'], ['greater_than_eq', fromMillis]],
[['tokenize', ':', 3], ['string_to_int'], ['less_than_eq', toMillis]],
[['tokenize', ':', clIdIdx], ['eq', clientInfo.login]]
];
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 20
file size (blocks, -f) unlimited
pending signals (-i) 16382
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
code:
var httpsAgent = https.getAgent(parameters.url.host, parameters.url.port);
httpsAgent.maxSockets = 1000;
console.log(parameters.url);
console.log(https.getAgent(parameters.url.host, parameters.url.port));
output:
{ protocol: 'https:',
=ERROR REPORT==== 17-May-2011::07:14:40 ===
** State machine <0.10632.679> terminating
** Last event in was {inputs,[<<"KRISGroup">>]}
** When State == executing
** Data == {state,1,riak_kv_map_phase,
{state,false,
{javascript,
{map,
{jsanon,
<<"function (v, keydata, args){\n\t\tif(v.values){\n\t\t\tif(v.bucket == args.bspBucket){\n\t\t\t\tvar bspInfo = Riak.mapValuesJson(v)[0];\n\t\t\t\treturn [[args.pgBucket, bspInfo.pg], [v.bucket, v.key]];\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn [[v.bucket, v.key]];\n\t\t\t}\n\t\t}\n\n\t\treturn [];\n\t}">>},