Monthly Archives: November 2011

Memory Usages

At a command line, type df -a This will list each device and usage information. You might find df -h more readable, since it gives quantities in Gb or Mb, etc. Use some combination of the commands and options: … Continue reading

Posted in Ubuntu/Linux | Leave a comment

naming convention

Classes : Class names should be nouns, e.g. class Raster; class ImageSprite Methods : Methods should be verbs, e.g. run(); runFast(); getBackground(); Variable names should be short yet meaningful Ref :

Posted in Project Management | Leave a comment

setting git

Setting Git : Step 1 Check for SSH keys. Have an existing key pair? You can skip to Step 4. First, we need to check for existing ssh keys on your computer: $ cd ~/.ssh Step 2 Add your SSH … Continue reading

Posted in Project Management | Leave a comment

setting cron job

for running a url after every 10 min in crontab -e */10 * * * * /usr/bin/lynx http://server/?command=execute&filename=nodejs/commitsolr.js -dump > /dev/null   REf:

Posted in Ubuntu/Linux | Leave a comment

gettting start with neo4j

Ref : very good article of making table use this to create tinker grap and use the commands : good one          

Posted in lily | Leave a comment

to create ssh configurations

ssh-keygen -t rsa check with ssh localhost  Ref :    

Posted in Ubuntu/Linux | Leave a comment

Login form in node.js with session mangement

connect( connect.cookieParser() , connect.session({ secret: ‘keyboard cat’, cookie: { maxAge: 60000 }}) , connect.favicon() , function(req, res, next){ var sess = req.session; if (sess.views) { res.setHeader(‘Content-Type’, ‘text/html’); res.write(‘<p>views: ‘ + sess.views + ‘</p>’); res.write(‘<p>expires in: ‘ + (sess.cookie.maxAge / 1000) … Continue reading

Posted in Node.js | 2 Comments