Implementation Technical Background Research

Posted on April 19, 2012


Nodejs Server Research

Implemented a TCP server in nodejs, however, it was discovered that a TCP server may not be the best technology for AgNetPro, as the server opens a connection to the server and listens for messages on the server, therefore, the initial request will only open a socket rather than trigger a request.

The Nodejs TCP server was implemented due to problems of message being rebroadcasted when using Nodejs HTTP server with Socket IO – this was discovered when testing and debugging code.  This was later resolved by using a straight nodejs HTTP server without Socket IO.  It was also discovered that Socket IO was not necessary for sending and receiving messages between FrontlineSMS and Nodejs.

Google Search Nodejs TCP Server: [accessed 18-04-2012]

Nodejs .NET Manual and Documentation: [accessed 18-04-2012]

Nodejs TCP Socket Programming: [accessed 18-04-2012]

Benchmarking TCP Server with Nodejs: [accessed 18-04-2012]

Nodejs TCP Server Application (dotcloud questions):  [accessed 18-04-2012]

Nodejs Simple Examples:  [accessed 18-04-2012]

Simple TCP Based Chat Server: [accessed 18-04-2012]

Book on using Nodejs:[accessed 18-04-2012]

Connections, the Event Loop and the One and Only JS Thread (nodejs google group): [accessed 17-04-2012]

Threads and asynchronous connection

Threads-A-GoGo  Javascript Threads for Nodejs: [accessed 17-04-2012]

Libeio Event Based Fully Asynchronous I/O Library for C:  [accessed 17-04-2012]

Taking Baby Steps with Nodejs: [accessed 17-04-2012]

Keeping HTTP Connection Alive (nodejs google group): %5Baccessed 17-04-2012]

Code Academy Javascript Glossary: [accessed 17-04-2012]

Connect Static Cache (connect module for nodejs): [accessed 17-04-2012]

Node Templates: %5Baccessed 17-04-2012]

Nodejs Natural Language library for implementing artificial intelligence

Natural Language Processing Library for Nodejs: %5Baccessed 17-04-2012]

Natural Language Processing Library Git Repository: [accessed 17-04-2012]

Using Natural – Natural Language Processing Library for Nodejs: %5Baccessed 17-04-2012]

Chris Umbel – Natural Language Processing Nodejs: %5Baccessed 17-04-2012]

Developers NLTK Guide: [accessed 17-04-2012]

Request – Simplified HTTP Request: %5Baccessed 17-04-2012]

XML Parser was needed for parsing weather data from google weather api, as one of the user requirement included retrieving weather conditions.  All of the XML libraries seemed to work of the node-expat or libxml library which was throwing errors.  Therefore, the data information is currently being retrieved from google but not being parsed.  This feature will be available in future release.

LibXML to JS Nodejs Module: [accessed 17-04-2012]

List of Nodejs Modules:  [accessed 17-04-2012]

Google Search Nodejs Reading XML Page:…702l17741l0l17938l27l26l2l1l2l0l209l1849l17j3j1l21l0. [accessed 17-04-2012]

JSDOM – Implementation of HTML5 DOM in Javascript: [accessed 17-04-2012]

Nodejs JSDOM Error on Stackoverflow (received similar error when trying to use node googleweather module which relies on the JSDOM module to parse xml data):  [accessed 17-04-2012]

Error Message logged in JSDOM Issues on Git: [accessed 17-04-2012]

Libexpat XML Sax parser binding for node.js (Node-Expat):  [accessed 17-04-2012]

The Expat XML Parser: %5Baccessed 17-04-2012]

Node-XML2JSON Library for Nodejs: %5Baccessed 17-04-2012]

LibXMLjs – LibXML binding for javascript v8 library: %5Baccessed 17-04-2012]

XML C Parser :  [accessed 17-04-2012]

LibXML Downloads: %5Baccessed 17-04-2012]

Waf Meta Build System: [accessed 17-04-2012]

Node- GoogleWeather module for nodejs: [accessed 17-04-2012]

JSDOM Use Cases (Stackoverflow): %5Baccessed 17-04-2012]

Javascript JSDOM: %5Baccessed 17-04-2012]

Node-Iconv Nodejs Iconv bindings: [accessed 17-04-2012]

Javascript NPM Registry: %5Baccessed 17-04-2012]

Libxml2 – XML parser and markup toolkit repository:  %5Baccessed 17-04-2012]

LibXML LibXSLT Binaries: [accessed 17-04-2012]

Understanding Mac OSX environment variable for setting node path.

Understanding Mac Environment Variables:×900  [accessed 17-04-2012]
How to Edit Path Environment Variables: [accessed 17-04-2012]
Google Search Mac Environment Variables:  [accessed 17-04-2012]
NPM Local vs Global Install:  [accessed 17-04-2012]
Node XML2JS-Expat: [accessed 17-04-2012]
Manipulating JSON and XML with Nodejs: [accessed 17-04-2012]
Node-Mysql Javascript Client Implementing MYSQL: [accessed 17-04-2012]
Most Important Nodejs Modules (blog): [accessed 17-04-2012]
Google Search  nodejs bindings mac osx:…16102l20161l0l20454l17l17l5l0l0l0l233l1170l6j1j2l9l0. [accessed 17-04-2012]
Six Must Have Nodejs Modules (Nodejitsu blog): [accessed 17-04-2012]
Node-GoogleWeather.js:  [accessed 17-04-2012]
Nodejs Email Handling: [accessed 17-04-2012]
24 Ways to Have a Field Day With HTML5 Forms: [accessed 14-04-2012]

Disabling Favicon request in Nodejs [accessed 20-04-2012]