This file contains hidden or 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
debug - websocket received data packet 5:3+::{"name":"subscribe","args":[{"key":"test","client_id":"test","service":"geo"}]} | |
MessagingService::subscribeToExchange geo-broadcasting-exchange fanout test function () { | |
console.log(clientId + " subscribed to location updates"); | |
} | |
debug - sending data ack packet | |
debug - websocket writing 6:::3+[null,{"status":200,"statusText":"OK"}] | |
/home/santiago/Projects/reflector/geo-server/node_modules/server-framework/services/messaging/service.js:476 | |
callbackFunction('error'); | |
^ |
This file contains hidden or 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 should = require("should"); | |
io = require("socket.io-client"); | |
require('../../lib/touch_on_node'); | |
require('../../lib/touch/sencha-touch-all-debug.js'); | |
require('../../lib/io/sencha-io-debug.js') | |
// | |
// The test requires: | |
// - messaging server |
This file contains hidden or 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 should= require("should"); | |
io = require("socket.io-client"); | |
require('../../lib/touch_on_node'); | |
require('../../lib/touch/sencha-touch-all-debug.js'); | |
require('../../lib/io/sencha-io-debug.js') | |
describe("Geo", function() { | |
Ext.io.setup({ | |
logLevel:'debug', |
This file contains hidden or 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
Error: HTTP error 500: Error: | |
{precommit_fail,{hook_crashed,{riak_search_kv_hook,precommit,error,badarg}}} | |
at HttpClient.<anonymous> (/home/santiago/Projects/reflector/geo-server/node_modules/server-framework/node_modules/riak-js/lib/http_client.js:346:78) | |
at IncomingMessage.<anonymous> (/home/santiago/Projects/reflector/geo-server/node_modules/server-framework/node_modules/riak-js/lib/http_client.js:10:95) | |
at IncomingMessage.emit (events.js:81:20) | |
at HTTPParser.onMessageComplete (http.js:133:23) | |
at Socket.ondata (http.js:1231:22) | |
at Socket._onReadable (net.js:677:27) | |
at IOWatcher.onReadable [as callback] (net.js:177:10) |
This file contains hidden or 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
// Express | |
app.post('/location', checkLocation, function(req, res){ | |
server.getService('geo', function(geo) { | |
var location= [req.lat,req.lon]; | |
geo.delegate(req.key, location, function(data) { | |
res.send(data, 200); // ---> data is NOT undefined | |
}); | |
}); | |
}); |
This file contains hidden or 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
root@bug20:/usr/lib/connman/test# cat /etc/buildinfo | |
BUG Linux Build Information | |
Version: 3.0.1117111154 | |
Build Host: Linux darner 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64 GNU/Linux | |
Build User: root | |
Build Time: Thu Nov 17 16:54:17 UTC 2011 | |
Revision: 715c6bf | |
========================================================================================== |
This file contains hidden or 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
$ netstat -nr | |
Routing tables | |
Internet: | |
Destination Gateway Flags Refs Use Netif Expire | |
default 192.168.0.1 UGSc 170 116 en1 | |
127 127.0.0.1 UCS 0 0 lo0 | |
127.0.0.1 127.0.0.1 UH 51 1257 lo0 | |
169.254 link#5 UCS 0 0 en1 | |
172.16.49/24 link#7 UC 1 0 vmnet1 |
This file contains hidden or 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
/* | |
* wireless_qual_to_percent | |
* | |
* Convert an iw_quality structure from SIOCGIWSTATS into a magical signal | |
* strength percentage. | |
* | |
*/ | |
static int | |
wireless_qual_to_percent (const struct iw_quality *qual, | |
const struct iw_quality *max_qual) |
This file contains hidden or 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
{ | |
"name":"message", | |
"args":[ | |
{ | |
"presence":{ | |
"from":"[email protected]/00:50:c2:69:c8:2f", | |
"to":"[email protected]/web-5381537717767061316796752054", | |
"id":"8bY69-8", | |
"xmlns":"jabber:client", | |
"xmlns:stream":"http://etherx.jabber.org/streams", |
This file contains hidden or 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 arr= [0,1,2] | |
> arr | |
[ 0, 1, 2 ] | |
> arr['hola']= 'oe' | |
'oe' | |
> arr | |
[ 0, 1, 2, hola: 'oe' ] | |
> arr.hola | |
'oe' |