Archives de Catégorie: Node.JS

Detect graph cycle, in Javascript

After searching for some times, I start making my own graph cycle algorithm. The idea is to have a lightweight code, both in terms of performance and size, to be able to ship it in browser directly. The code use

Detect graph cycle, in Javascript

After searching for some times, I start making my own graph cycle algorithm. The idea is to have a lightweight code, both in terms of performance and size, to be able to ship it in browser directly. The code use

Demystify the Qooxdoo properties system

One of the great -maybe the best- feature of Qooxdoo system, is the properties system. Basically a property will looks like a traditionnal java bean : you have an internal name (never exposed), and manipulate only getter and setter from

Demystify the Qooxdoo properties system

One of the great -maybe the best- feature of Qooxdoo system, is the properties system. Basically a property will looks like a traditionnal java bean : you have an internal name (never exposed), and manipulate only getter and setter from

Node.JS basic memory store class

Using the Node.JS singleton structure, i create a basic memory store : As always I put this source as LGPLv3 feel free to use it everywhere (including commercial app). To do so, just include the file and play with :

Node.JS basic memory store class

Using the Node.JS singleton structure, i create a basic memory store : As always I put this source as LGPLv3 feel free to use it everywhere (including commercial app). To do so, just include the file and play with :

Linking Socket.IO to Qooxdoo

Qooxdoo is a great framework, but sometimes you need to add extra content to it, and this is not so simple. Here is a basic class and idea to link Socket.IO client API to Qooxdoo framework : Before playing Before

Linking Socket.IO to Qooxdoo

Qooxdoo is a great framework, but sometimes you need to add extra content to it, and this is not so simple. Here is a basic class and idea to link Socket.IO client API to Qooxdoo framework : Before playing Before

Node.JS + WebSocket = near real offline/online check

The problem is well know : the online/offline state is not reliable on many browser, this create a difficult situation for developers who wants to create an offline solution : if you don’t know when the client is online or

Node.JS + WebSocket = near real offline/online check

The problem is well know : the online/offline state is not reliable on many browser, this create a difficult situation for developers who wants to create an offline solution : if you don’t know when the client is online or

Node.JS redirect console stdout stderr

Recently i was facing a problem, this usual code : was working only in the main module (in fact the place where i write it down). Inside some (not all) module, the system was not raising this event, the result

Node.JS redirect console stdout stderr

Recently i was facing a problem, this usual code : was working only in the main module (in fact the place where i write it down). Inside some (not all) module, the system was not raising this event, the result

Node.JS Singleton structure

I was searching using a singleton to create a kind of garbage class which allow me to create a multi room chat easily by manually connecting socket into room (with socket.io). Here is a basic singleton module I create to

Node.JS Singleton structure

I was searching using a singleton to create a kind of garbage class which allow me to create a multi room chat easily by manually connecting socket into room (with socket.io). Here is a basic singleton module I create to