bensheldon + nodejs 11
How to quickly start a single-page application with Node.js « Gelblog, addicted to the web
27 days ago by bensheldon
A problem I experienced while starting coding with NodeJS environment and Express framework is that I had difficulties to quickly make a well structured app. I spent too much time on organizing my modules and writing helpers. Paradoxally with Express, I like the fact that I am free to do what I want and don’t encounter too much constraints due to the framework. At last, it was harder to design front end code than back end code.
To deal with that, I used two tools that fit in my requirements :
RailwayJS : a lightweight framework on top of express. It offers the structure and the vital functions I need to write a good backend and configure express properly.
Brunch : an application assembler to organize and build cleanly my front-end code.
nodejs
java
To deal with that, I used two tools that fit in my requirements :
RailwayJS : a lightweight framework on top of express. It offers the structure and the vital functions I need to write a good backend and configure express properly.
Brunch : an application assembler to organize and build cleanly my front-end code.
27 days ago by bensheldon
Lessons learned building a multiplayer game in NodeJS and WebGL
5 weeks ago by bensheldon
I've uploaded Hoverbattles to its own server on EC2, and it has been running fine with an uptime of over 96 hours so far, and this is great!
http://hoverbattles.com
I've wanted to share a few of the mistakes/lessons learned writing and deploying a multiplayer game built entirely with JavaScript on top of NodeJS and WebGL for a while and this represents an opportune moment to do so.
I've gone with a brain-dump of various related learnings, as well as a couple of periphery items - first off, we'll go with the reason I couldn't keep Hoverbattles up on the old server.
nodejs
games
javascript
http://hoverbattles.com
I've wanted to share a few of the mistakes/lessons learned writing and deploying a multiplayer game built entirely with JavaScript on top of NodeJS and WebGL for a while and this represents an opportune moment to do so.
I've gone with a brain-dump of various related learnings, as well as a couple of periphery items - first off, we'll go with the reason I couldn't keep Hoverbattles up on the old server.
5 weeks ago by bensheldon
All about node.js: Using node.js and jquery to scrape websites
5 weeks ago by bensheldon
I will write a simple application to capture details from various websites. The beautiful thing is Javascript has been handling DOM objects for years. In fact Javascript was created to handle DOM objects. No wonder that it’s more mature than any other html parsing library. Also, given that there are many elegant frameworks like Prototype, Mootools, JQuery etc. available to use, scraping websites with Node.js should be easy and fun. Let’s do it. Let’s write an application to collect data from various book selling websites.
Create a basic searcher.js module. It would provide the fundamental skeleton for writing website specific tool.
nodejs
Create a basic searcher.js module. It would provide the fundamental skeleton for writing website specific tool.
5 weeks ago by bensheldon
The Node Beginner Book » A comprehensive Node.js tutorial
10 weeks ago by bensheldon
The aim of this document is to get you started with developing applications with Node.js, teaching you everything you need to know about "advanced" JavaScript along the way. It goes way beyond your typical "Hello World" tutorial.
nodejs
10 weeks ago by bensheldon
Blog rolling with mongoDB, express and Node.js - How To Node - NodeJS
11 weeks ago by bensheldon
In this article I hope to take you through the steps required to get a fully-functional (albeit feature-light) persistent blogging system running on top of node.
The technology stack that we'll be using will be node + express + mongoDB all of which are exciting, fast and highly scalable. You'll also get to use jade and stylus for driving the templated views and styling! We will be using npm to ease the package management and installation issues.
This article will be fairly in-depth so you may want to get yourself a rather large mug of whatever beverage you prefer before you settle down :)
nodejs
javascript
The technology stack that we'll be using will be node + express + mongoDB all of which are exciting, fast and highly scalable. You'll also get to use jade and stylus for driving the templated views and styling! We will be using npm to ease the package management and installation issues.
This article will be fairly in-depth so you may want to get yourself a rather large mug of whatever beverage you prefer before you settle down :)
11 weeks ago by bensheldon
NaturalNode/natural - GitHub
february 2012 by bensheldon
"Natural" is a general natural language facility for nodejs. Tokenizing, stemming, classification, phonetics, tf-idf, WordNet, and some inflection are currently supported.
nodejs
webdevelopment
february 2012 by bensheldon
Cloud9: Node.js Environment Variables - Google Groups
february 2012 by bensheldon
Here's how I would do it... I'd have a config file that's always loaded in my app,
config = require('./config')(express)
Then I have my config file which has something like:
module.exports = function(express) {
var host = 'yourhost.com'
var port = '1234'
if (process.env.C9_PORT) {
this.db = createClient( host, port, '213j23jk4hhjlks99wi3');
} else if (process.env.NODE_ENV == 'production') {
this.db = createClient( host, port, process.env.DB_PASS);
} else if (process.env.NODE_ENV == 'test') {
// test db or mock db connection
} else {
// maybe local db settings?
}
return this;
};
oh and I just passed express because when I did something like this with a config file, I had some additional server configuration that needed it
nodejs
config = require('./config')(express)
Then I have my config file which has something like:
module.exports = function(express) {
var host = 'yourhost.com'
var port = '1234'
if (process.env.C9_PORT) {
this.db = createClient( host, port, '213j23jk4hhjlks99wi3');
} else if (process.env.NODE_ENV == 'production') {
this.db = createClient( host, port, process.env.DB_PASS);
} else if (process.env.NODE_ENV == 'test') {
// test db or mock db connection
} else {
// maybe local db settings?
}
return this;
};
oh and I just passed express because when I did something like this with a config file, I had some additional server configuration that needed it
february 2012 by bensheldon
Scraping Made Easy with jQuery and SelectorGadget - David Trejo's Thoughts
february 2012 by bensheldon
A few days ago I was doing a TON of scraping, and as you know, without the right tools, scraping can be a REAL pain. Out of my pain comes your pleasure — here’s a list of scraping tools and resources which will make your life MUCH easier the next time you need some information from a crufty old website. If you’re short on time, skip to the end and read the tl;dr.
nodejs
javascript
jquery
scraping
february 2012 by bensheldon
Using HAML templates in JavaScript - How To Node - NodeJS
september 2011 by bensheldon
Ok, now that we know how to make layout templates by passing the result of one template as a variable to another, let's learn how to do partials. Partials are pieces of templates that are shared between several pages.
webdevelopment
nodejs
september 2011 by bensheldon
Copy this bookmark: