node.js,socket.io,appfogRelated issues-Collection of common programming errors
user787738
java android node.js sockets socket.io
I followed the fix in this post: Error connecting an Android Client to a socket server in NodeJSHad problem connect to socket server nodeJS but the problem is a fix, now the client connecting my log console of nodeJS throw me this:debug – client authorizedinfo – handshake authorized Qs-he8QJbJYA4zlAw2YnBut now I get the following errors, please help!02-04 18:34:03.288: W/dalvikvm(2769): Unable to resolve superclass of Lio/socket/WebsocketTransport; (850) 02-04 18:34:03.288: W/dalvikvm(2769): L
Gates VP
node.js windows-7 socket.io npm windows-7-x64
I am new to Node and NPM. I am using Node v0.10.0 and when I run the npm install socket.io command I get the following error:C:\Users\USER\AppData\Roaming\npm\node_modules\socket.io\node_modules\socket.io- client\node_modules\ws>node “C:\Users\USER\AppData\Roaming\npm\node_modules\npm\ bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js” rebuild C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29 7,5): warning MSB8003: Could not find WindowsSDKDir variabl
Nevik Rehnel
node.js heroku npm
I’m so baffled. I tried to push a change to heroku and all of a sudden it won’t update. The change was inside a string. Nothing weird programmy.Something similar happened once before, but I tried again a few minutes later and it just worked. Not so this time.I tried adding an npm engine to my package.json, and I tried adding the node_modules folder, but neither had an effect.Installing dependencies npm http GET https://registry.npmjs.org/querystring npm http GET https://registry.npmjs.org/mongoo
user1335014
node.js emacs swank-js
I tried to install swank-js on emacs (24) by following guides at https://github.com/swank-js/swank-js and http://www.idryman.org/blog/2013/03/23/installing-swank-dot-js/I then tried to validate the installation by:1) Starting swank-js: user@user-VirtualBox:~/proj_dir$ swank-js/usr/local/lib/node_modules/swank-js/swank-handler.js:290this.context = Script.createContext();^ TypeError: Object function ContextifyScript() { [native code] } has no method ‘createContext’at new DefaultRemote (/usr/local/
gaggina
node.js heroku socket.io
I’m having some issues in compiling a socket.io app on heroku.Thats the app.js filevar app = require(‘express’).createServer(), io = require(‘socket.io’).listen(app.listen(process.env.PORT || 5000));app.get(‘/’, function (req, res) {res.sendfile(__dirname + ‘/index.html’); });var users = [];io.configure(function () { io.set(“transports”, [“xhr-polling”]); io.set(“polling duration”, 10); });io.sockets.on(‘connection’, function (socket) {socket.on(‘message’,function(data,time,username){socket.bro
James Billings
node.js mongodb backbone.js
I’m building my first app using the above technologies. I’ve spent the last couple of weeks using Backbone and now I’m trying to build an api using express on node with mongo db. (note, I’m just using the native node mongo module at the moment.)When I fill my backbone collection with data from mongo, by default it comes with the _id field. Not a problem until I try and update the document in mongo. Backbone passes back the _id as a string and it should be a object id. Mongo fails the update beca
Asya Kamsky
javascript node.js mongodb express mongoose
I am developing a web application with Node.js and MongoDB/Mongoose. Our most used Model, Record, has many subdocument arrays. Some of these, for instance, include “Comment”, “Bookings”, and “Subscribers”. In the client side application, whenever the user hits the “delete” button it fires off an AJAX request to the delete route for that specific comment. The problem I am running into is that, when many of these AJAX calls come in at once, Mongoose fails with a “Document not found” error on some
jribeiro
postgresql node.js upsert pg
I’m trying to do an insert or update in a postgres database using node.js with pg extension (version 0.5.4).So far I have this code: (…)client.query({text: “update users set is_active = 0, ip = $1 where id=$2”,values: [ip,id]}, function(u_err, u_result){debug(socket_id,”update query result: “,u_result);debug(socket_id,”update query error: “,u_err);date_now = new Date();var month = date_now.getMonth() + 1;if(!u_err){client.query({text: ‘insert into users (id,first_name,last_name,is_active,ip,da
mikrowelt
node.js arduino firmata
I bought this range finder http://www.dfrobot.com/wiki/index.php/URM37_V3.2_Ultrasonic_Sensor_(SKU:SEN0001)And now I’m having difficulties to make it work on nodeJS. My setup is Arduino UNO and nodeJs using “firmata” library.What have i tried: 1. I tested the Rangefinder with native Arduino IDE and it worked. 2. Then i wrote data to EEPROM from Arduino IDE(code exmaple below):int cmmd1[]={0x44,0x00,0x10,0x54};//low byte stored in the sensor for the distance threshold. int cmmd2[]={0x44,0x01,0x00
Alex
javascript c++ node.js
I have a node c++ addon that I am calling which is connecting to a database for me. It is using an internal c++ library for the connection and it is on one of this library’s calls that I get failure, this is the printed trace: before conn zsh: abort (core dumped) node test_connection.jsI can’t reveal all the inner workings of my class but just to make sense of the trace this is the line where it is failing: std::cout << “before conn” << std::endl; <library>ConnectionP
user787738
java android node.js sockets socket.io
I followed the fix in this post: Error connecting an Android Client to a socket server in NodeJSHad problem connect to socket server nodeJS but the problem is a fix, now the client connecting my log console of nodeJS throw me this:debug – client authorizedinfo – handshake authorized Qs-he8QJbJYA4zlAw2YnBut now I get the following errors, please help!02-04 18:34:03.288: W/dalvikvm(2769): Unable to resolve superclass of Lio/socket/WebsocketTransport; (850) 02-04 18:34:03.288: W/dalvikvm(2769): L
Gates VP
node.js windows-7 socket.io npm windows-7-x64
I am new to Node and NPM. I am using Node v0.10.0 and when I run the npm install socket.io command I get the following error:C:\Users\USER\AppData\Roaming\npm\node_modules\socket.io\node_modules\socket.io- client\node_modules\ws>node “C:\Users\USER\AppData\Roaming\npm\node_modules\npm\ bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js” rebuild C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29 7,5): warning MSB8003: Could not find WindowsSDKDir variabl
gaggina
node.js heroku socket.io
I’m having some issues in compiling a socket.io app on heroku.Thats the app.js filevar app = require(‘express’).createServer(), io = require(‘socket.io’).listen(app.listen(process.env.PORT || 5000));app.get(‘/’, function (req, res) {res.sendfile(__dirname + ‘/index.html’); });var users = [];io.configure(function () { io.set(“transports”, [“xhr-polling”]); io.set(“polling duration”, 10); });io.sockets.on(‘connection’, function (socket) {socket.on(‘message’,function(data,time,username){socket.bro
guypursey
linux node.js express socket.io
I’ve just installed Node JS (v0.10.0) on a netbook running Linux Peppermint Three. I have a file to run which has the following at the top:var app = require(‘express’).createServer(),io = require(‘socket.io’).listen(app);app.listen(8080);// routing app.get(‘/’, function (req, res) {res.sendfile(__dirname + ‘/index.html’); });The problem is that when I visit localhost:8080 I get the following:TypeError: Arguments to path.join must be stringsat path.js:360:15at Array.filter (native)at exports.join
user1602245
windows node.js socket.io nowjs
Running on a Windows 7 Home Premium 64-bitsDownloaded:node.js (0.8.7-x64) as a windows msi from the official site make-3.81 from http://gnuwin32.sourceforge.net/packages/make.htm (Complete package, except sources) Microsoft visual Studio 2012 Express for webAnd then followed the steps at http://blog.nowjs.com/running-nowjs-natively-on-windows, which implied on:installing the Microsoft Visual C++ Runtime (I got the x64 version) grabbing a ‘fixed-for-windows’ version of now.js from github.com/Flot
Silas Rosenkranz
node.js socket.io
I have installed NodeJs and the module ‘express’. Now I want to istall socket.io, but it doesn’t work. I’ve tried differend NodeJS versions, but all installations failed.Here is the log: http://pastebin.com/T8ZZRTMLHere is a screenshot: http://www10.pic-upload.de/31.01.13/ld98apo58e.jpg
ILikeWater
java sockets io socket.io serversocket
I have a server program running on my laptop, same router and same code. It work’s fine and clients can connect. However when I copied the workspace to my PC and when I run it, I get this nonsense:IO error java.net.SocketException: select failedHere is the code…public static void main(String[] args) {System.out.println(“running server!”);int nreq = 1;try{ServerSocket sock = new ServerSocket(7331);for(;;){Socket newsock = sock.accept();System.out.println(“Creating thread…”);//Thread t = new T
Seeker
node.js websocket socket.io
I am trying to install socket.io using npm on a beaglebone (linux angstrom)/> npm install socket.ioit worked great on older versions of node with older kernel. I am using node v0.6.18 now.There seems to be a problem when npm tring to install ws which is supposed to install with socket.ioI get the same error if I try:npm install ws –ws:verboseHere is the result:root@beaglebone:~# npm install ws –ws:verbose npm http GET https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/ws npm
user2547522
javascript node.js socket.io
js. Currently I have done several tests successfullyHello world server-client communication with events many roomsBut i can’t send the client, to the clients, i use socket.ioThe reason I want to do this, is to have a list of current clientsEDIT:I need to store information for each user in server sidei try usevar io = require(‘socket.io’); var socket = io.listen(9876); socket.on(‘connection’, function(client) {client.join(‘room’); console.log(‘new client ‘ + client.toString());client.in(‘room’).e
CNCPTS
javascript node.js websocket socket.io
I have a tracking app built with Node that is accessed by other sites in our network. They will access the app thru the head of their html files like so:<title>Test</title> <meta name=”generator” content=”TextMate http://macromates.com/”> <script src=”http://mynetwork.com:1337/tracker.js?pid=publisher1&ps=home”></script> </head> <body>The tracker.js file uses socket.io to connect to app.js which stores some data in MongoDB. For some reason when start
user1913779
cloudfoundry appfog
I’m having trouble installing caldecott on osx mountain lion. I keep getting this error:$ sudo gem install caldecott –no-rdoc –no-riERROR: Error installing caldecott:ERROR: Failed to build gem native extension./Users/Jay/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rbchecking for main() in -lssl… * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration optio
user1460015
windows gem appfog
I’ve been following the instructions provided by Development Kit for the rubyinstaller https://github.com/oneclick/rubyinstaller/wiki/Development-KitWhen I try the last step I get the following error: ERROR: Failed to build gem native extensionHere is the log file. http://pastebin.com/mLUCCVd3I have been following the troubleshoot section with no avail.Running windows7x64 This all started because I want to get the appfog tunnel workingAny help is appreciated
tonymx227
appfog
I get a problem when I try to bind MySQL service to my App (AppFog).Message : name: VmcError, endpoint: POST:/services, statusCode: 502, code: 503, description: Unexpected response from service gatewayWhat is the issue?Anthony
spryno724
java apache solr appfog
I am very new to Apache Solr and I am trying to deploy it on Appfog application running the Java runtime. I can deploy the start page: sga-search.aws.af.cm, but nothing else will work. Could someone please direct me as to how can I go about deploying this???Note: Appfog does not permit SSHing into the server.Thank you for your time!
user2962455
ruby-on-rails ruby rubygems gem appfog
I wrote an application in RoR, then i tried to deploy it on appfog. I created application, but after pushing i got this error:Uploading Application:Checking for available resources: OKProcessing resources: OKPacking application: OKUploading (2M): OK Push Status: OK Stopping Application ‘otj’: OKStaging Application ‘otj’: OK Starting Application ‘otj’: .. Error: Application [otj] failed to start, logs information below. ====> /logs/migration.log <====/var/vcap.local/dea/apps/otj-0-93de4f27
coool
appfog
In Appfog how to install the latest version of Nodejs/ and on the services provided, can Mongodb be upgraded to 2.4.x
Marty Pitt
java spring appfog
It seems that when deploying my Spring app to AppFog, that the environment variables are not being detected.I have the environment variables declared in my console:And I try to reference these from within my app code, like so:<context:property-placeholder location=”classpath:server.common.properties,classpath:server.${concorde-env}.properties”/>However, this generates an error:Caused by: java.io.FileNotFoundException: class path resource[server.${concorde-env}.properties] cannot be opened
Gus Shortz
ruby sinatra route modular appfog
I have started writing my Sinatra apps using a modular style, suggested in this stackoverflow answer, and have successfully deployed it on Heroku, but when trying to deploy to AppFog (identical code except for datamapper mysql/postgres gems) I get “Not Found” errors for every route I have defined.== Sinatra/1.3.3 has taken the stage on 47195 for production with backup from Thin myIP, 127.0.0.1 – – [08/Dec/2012 21:28:53] “GET / HTTP/1.0” 404 18 0.0030 myIP, 127.0.0.1 – – [08/Dec/2012 21:28:54] “G
beef jerky
ruby-on-rails deployment appfog
I’m trying to deploy a Rails app (2.3.8) on AppFog using the commands:af login af update app_nameI’m using update because the app is already existing on AppFog. However, I keep getting this error:Error (JSON 503): <?xml version=”1.0″ encoding=”u…It happens after uploading the files. Running af update usually gives me that error. In fact, I’ve only ran that command successfully once in around a hundred times. I’ve tried deploying on different times around the clock, but no success. I’ve also
user1076412
grails appfog
I am getting some errors in my Grails in in AppFog, but I am not sure how to get to the bottom if it.C:\Users\me>af logs myapp [WARNING] DL is deprecated, please use Fiddle Error (JSON 404): Not FoundC:\Users\me>af crashes myapp [WARNING] DL is deprecated, please use Fiddle Error (JSON 404): Not FoundI read this could help, but I am not sure where to put it?app.debug = TrueAny ideas how I can troubleshoot please?
Web site is in building