Meta-data identifies the specifics of the coverage information, as well as the file versioning information.
{
meta: {
generator: 'vowsjs',
generated: 'Fri Aug 05 2011 22:45:56 GMT-0700 (PDT)',
root@raspberrypi:~/node/out/Release# ldd ./node | |
/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so (0x40311000) | |
libssl.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 (0x401bd000) | |
libcrypto.so.1.0.0 => /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 (0x4031a000) | |
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x4007b000) | |
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x400f2000) | |
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x4020c000) | |
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x400fd000) | |
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x4016e000) |
jerry@pi:/tmp/redis-2.4.15$ make -j 2 | |
cd src && make all | |
make[1]: Entering directory `/tmp/redis-2.4.15/src' | |
MAKE hiredis | |
MAKE jemalloc | |
make[2]: Entering directory `/tmp/redis-2.4.15/deps/hiredis' | |
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c | |
checking for xsltproc... no | |
checking for gcc... gcc | |
checking whether the C compiler works... yes |
These instructions should be deprecated at this point. | |
Start following https://github.com/TooTallNate/node/tree/pi for a more straightforward node installation on the pi. | |
---- | |
These instructions work for the Raspberry Pi running Raspbian (hard float), and include a working NPM: | |
1. Install Raspbian - http://www.raspbian.org/PiscesImages |
// vows requires access to the module in order to create exports | |
vows(module, { | |
'vows/subject test 1': { | |
'Should add and execute the first test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, |
/*jslint browser: true, nomen: true */ | |
/*global jQuery, console */ | |
(function ($) { | |
'use strict'; | |
var timer, timer_delay = 250, next_id = 0, selectors = {}; | |
/** | |
* Keep checking the DOM for new selectors | |
*/ |
jerry@Jerrys-MacBook-Air:~/work/node/eventreactor$ make test | |
✓ exports version number | |
✓ has event | |
✓ subscribe to every given event | |
✓ capture non listening events | |
✓ multiple event listeners | |
✓ idle fires callback |
webserver: webserver.c libuv/uv.a http-parser/http_parser.o | |
gcc -I libuv/include \ | |
-lrt -lm -lpthread -o \ | |
webserver webserver.c \ | |
libuv/uv.a http-parser/http_parser.o | |
libuv/uv.a: | |
$(MAKE) -C libuv | |
http-parser/http_parser.o: |
var url = require('url'); | |
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
var parsed = url.parse(req.url, true); | |
var pathname = parsed.pathname; | |
res.end('Hello World, you asked for: ' + pathname + '\n'); | |
}).listen(1337, "127.0.0.1"); |
node::Buffer *slowBuffer = node::Buffer::New(len); | |
memcpy(node::Buffer::Data(slowBuffer), get, len); | |
v8::Local<v8::Object> globalObj = v8::Context::GetCurrent()->Global(); | |
v8::Local<v8::Function> bufferConstructor = v8::Local<v8::Function>::Cast(globalObj->Get(v8::String::New("Buffer"))); | |
v8::Handle<v8::Value> constructorArgs[3] = { slowBuffer->handle_, v8::Integer::New(len), v8::Integer::New(0) }; | |
v8::Local<v8::Object> actualBuffer = bufferConstructor->NewInstance(3, constructorArgs); | |
return scope.Close(actualBuffer); |