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
Apache CouchDB 1.6.0 (LogLevel=info) is starting. | |
[error] [<0.101.0>] {error_report,<0.31.0>, | |
{<0.101.0>,crash_report, | |
[[{initial_call,{couch_file,init,['Argument__1']}}, | |
{pid,<0.101.0>}, | |
{registered_name,[]}, | |
{error_info, | |
{exit, | |
{{badmatch,{error,eacces}}, | |
[{couch_file,init,1}, |
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
gyp info it worked if it ends with ok | |
gyp verb cli [ 'node', | |
gyp verb cli '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js', | |
gyp verb cli 'rebuild' ] | |
gyp info using node-gyp@1.0.2 | |
gyp info using node@0.10.32 | linux | x64 | |
gyp verb command rebuild [] | |
gyp verb command clean [] | |
gyp verb clean removing "build" directory | |
gyp verb command configure [] |
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
// had to allocate this or the SetBasicAuth below causes a panic | |
headers := make(map[string][]string) | |
hostPort := fmt.Sprintf("%s:%d", hostname, port) | |
fmt.Fprintf(os.Stderr, "adding hostPort:%s:%d:path:%s:\n", hostname, port, path) | |
req := &http.Request{ | |
Method: "HEAD", | |
// Host: hostPort, // takes precendence over URL.Host | |
URL: &url.URL{ | |
Host: hostPort, | |
Scheme: "http", |
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
var Weed = require("weed-fs"); | |
var Promise = require('bluebird'); | |
try { | |
var weedfs = new Weed({ | |
server: "badName", | |
port: "9333" | |
}); |
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
var Weed = require("weed-fs"); | |
var Promise = require('bluebird'); | |
var weedfs = new Weed({ | |
server: "wmaster1", | |
port: "9333" | |
}); | |
var weedWrite = Promise.promisify(weedfs.write, weedfs); | |
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
bash-3.2$ ls /Users/bmcquee/include/ | |
leptonica | |
bash-3.2$ ls /Users/bmcquee/include/leptonica/ | |
allheaders.h arrayaccess.h bmf.h dewarp.h gplot.h jbclass.h morph.h queue.h regutils.h watershed.h | |
alltypes.h bbuffer.h bmp.h endianness.h heap.h leptwin.h pix.h readbarcode.h stack.h | |
array.h bilateral.h ccbord.h environ.h imageio.h list.h ptra.h recog.h sudoku.h | |
bash-3.2$ ls /Users/bmcquee/include/leptonica/allheaders.h | |
/Users/bmcquee/include/leptonica/allheaders.h | |
bash-3.2$ go get -x github.com/GeertJohan/go.leptonica | |
WORK=/var/folders/9q/3j0vn7j52qd78qv49ldsw4cj6wf43f/T/go-build434004654 |
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
2014-08-06 17:46:12,271 Stage-1 map = 100%, reduce = 100%, Cumulative CPU 139744.3 sec | |
MapReduce Total cumulative CPU time: 1 days 14 hours 49 minutes 4 seconds 300 msec | |
Ended Job = job_201407101051_696940 | |
MapReduce Jobs Launched: | |
Job 0: Map: 201 Reduce: 274 Cumulative CPU: 139771.56 sec MAPRFS Read: 3061443943304 MAPRFS Write: 2788170101492 SUCCESS | |
Total MapReduce CPU Time Spent: 1 days 14 hours 49 minutes 31 seconds 560 msec |
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
function(doc) { | |
if (doc.matchedItem && doc.timeStamp) { | |
var dint = parseInt(doc.timeStamp) * 1000; | |
var ss = new Date(dint); | |
emit([ss.getFullYear(), ss.getMonth(), ss.getDate(), ss.getHours(), ss.getMinutes()], null); | |
} | |
} |
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
{paths, ["apps", "deps"]}. | |
{default_release, jammer, "0.1.0"}. | |
%% comment this line for a release that ships its own Erlang VM | |
%%{include_erts, true}. | |
%% uncomment this line to ship a release without the source code included | |
{include_src, false}. | |
{release, {jammer, "0.1.0"}, |
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
I run it like this: | |
ERL_LIBS=deps erl -pa ebin -run jammer | |
which brings me to the prompt where I do jammer:jam(). | |
I want a supervisor of some kind to make sure the thing is always running. | |
I've got a start function which starts everything as a suprvisor would: |
NewerOlder