Category Archives: sips

Just a sip of thought

Dojo Memory and Observable Classes

I’m new in Dojo. However, I’m very lucky that the new 1.6 version introduces Memory and Observable classes. Memory is part of the dojo.store namespace and it provides a data store that is implemented to store data in runtime. Together … Continue reading

Posted in javascript, sips | Leave a comment

Installing Node on AWS Linux AMI

Here are the steps to install node, npm and express on Amazon 32 bit Linux AMI: sudo yum install gcc-c++ make sudo yum install openssl-devel wget http://nodejs.org/dist/node-v0.4.7.tar.gz (Pick the latest stable version available) tar -zxvf node-v0.4.7.tar.gz cd node-v0.4.7 export JOBS=2 … Continue reading

Posted in nodejs, sips | Tagged , , , | 9 Comments

Layout of my Node.js + Express Project

One thing I like about Express is that it provides the most important features for web development with a very smooth learning curve. (Of course a lot of credit should also go to Connect middleware on top of which Express … Continue reading

Posted in nodejs, sips | Tagged | 3 Comments

Doing partial updates with Mongoose

I use Mongoose on top of mongodb native driver for Node.js. With Mongoose you can create ORM like objects in Javascript. However, Mongoose is in development stage, that is, not all functions documented are available, yet. One of these functions … Continue reading

Posted in sips | Leave a comment

Javascript Everywhere

Decided to use/learn nodejs + express and mongodb in my toy project, I enjoy using Javascript in every level of my code. I program with Javascript in frontend, webserver and database logics. All my data is either a JS object … Continue reading

Posted in javascript, nodejs, sips | Tagged | Leave a comment

Node.js + MongoDB = Mongoose

Mongoose is a ORM like library that helps a lot when you want to access your collections defined on MongoDB from Node.js. You can use it without schemas but by defining ORM objects the code becomes much easier to read. … Continue reading

Posted in nodejs, nosql, sips | Tagged , | 1 Comment

Vim, Textmate, Emacs and Butterflies

Real Programmers: http://xkcd.com/378/ This comic becomes really true when you try to learn different editors. I have some experience on Emacs and was using TextMate for a while. However, after making an evaluation between them recently TextMate became my favorite. … Continue reading

Posted in sips | Tagged , | Leave a comment

Mockups…

In my spare time, I’m working for the mockups of my toy project, goaljuice.com. I try to make it as if it’s functional. Mockups help you to understand the requirements you need on both the frontend and backend. In that … Continue reading

Posted in nodejs, sips | Leave a comment

Tools for my toy project

I have finalized my toolset to play with. I will use nodejs, express, redis, mongodb and riak for my toy project. My purpose is to see how these five technologies work together. This way, instead of barely talking about new … Continue reading

Posted in nodejs, sips | Leave a comment

Fast and painless installation of nodejs and npm

Nodejs community usually uses npm (simple package manager for nodejs) to distribute their projects. In other words, you should have npm installed on your dev/prod machine to move fast in deployment phase. Although both nodejs and npm installations are really … Continue reading

Posted in sips | Leave a comment