How do I get started using OpenSeadragon?

I was wondering how to get started with OpenSeadragon. I have it installed through node.js according to the repository readme on github. Then I was looking at the API and it looks like you have to use the OpenSeadragon.Viewer function. But that is as far as I got. I just want to create a simple […]

Send command to running node process, get back data from inside the app

I start a node.js app per commandline in linux. I see the app running, e.g. by entering “top”. Is there a way to send some command to the running app (maybe to the pid?) and get back info from inside it (maybe listen for some input and return requested info)?

Querying Winston Logs

I am using winston for logging in a node.js application. I see there are options to query it. The example shows how to use options from and to. My question is What are the other options ? How do I specify what file should be queried ?

Swig (node.js) Include a File and pass an object

I am facing this problem. I’ve got a page with an include of another like this: index.html {{ set pets = { pets : petsObject } }} {{ include pets.html }} petsObject is an object like this petsObjects: [ { name : “cat” }, { name : “dog” } ] When I try to render […]

How to set tarball url of node-gyp via environment variable

I want to use custom node tarball to build node modules via node-gyp, is there any way to set it via environment variable or some config files for node-gyp or npm?

nodejs + nodemon + forever give me an error

I just installed forever globally (-g). Before that I used to run with $ npm start Now after installed forever, I tried to lunch the node app $ NODE_ENV=development forever nodemon server.js but I receive this error warn: –minUptime not set. Defaulting to: 1000ms warn: –spinSleepTime not set. Your script will exit if it does […]

How to backup my Node.js setup when upgrading

I want to upgrade Node.js on Ubuntu, but I want to make sure that if anything goes wrong I could revert back my source code, installed modules and node binary to the working setup. How to achieve that?

base64 encode binary string in NodeJS and Python

I am trying to base64 encode a binary string in NodeJS and python and I’m getting 2 different values. Note that the value is i is 16 random bytes generated in python using os.urandom(16) NodeJS > var i = ‘>e\x93\x10\xabK\xbe\xfeX\x97\x9a$\r\xef\x8f3’; > var s = new Buffer(i).toString(‘base64’); > console.log(s); PmXCkxDCq0vCvsO+WMKXwpokDcOvwo8z Python >>> import base64 >>> i […]

How does mounting apps in Express work

So I’ve seen TJ’s guide to creating modular Express-apps, followed it to good effects, but want to know more about the details of how it works, however a search gives me no answers. In short I am wondering: When mounting apps in Express, what parts of the apps are shared and what parts are not? […]

Socket.io – how to use listeners

I’ve looked around for an answer regarding this question, I am not sure if I am going about this the right way. I have a node.js application that uses socket.io to push and receive data from the node server to the client. Most of the requests sent to nodejs are through HTTP Requests while the […]

Node.js is the Best Javascript runtime in the world.