Monthly Archives: August 2011

to install yum on ubuntu

sudo aptitude install yum  above command not worked . http://www.linuxquestions.org/questions/fedora-35/yum-celementtree-python-485194/   so download rp m file from here http://rpm.pbone.net/index.php3/stat/4/idpl/2845611/com/yum-2.6.1-0.fc5.noarch.rpm.html   and for installing by rpm file we need alien on ubutnu system so installed alien apt-get install alien alien -iv yum-2.6.1-0.fc5.noarch.rpm Ref … Continue reading

Posted in Ubuntu/Linux | 1 Comment

Installing java 1.6

For liliy i needed to install java 1.6 .  sudo apt-get install openjdk-6-jre For checking the version java -version Ref : http://openjdk.java.net/install/ http://www.jthink.net/jaikoz/jsp/download/checkjavalinux.jsp  

Posted in Ubuntu/Linux | Leave a comment

August last week

Install monit was fun this week. Capturing and triggering event in iframe is not going good. http://stackoverflow.com/questions/2490825/how-to-trigger-event-in-javascript This link has how we can dispatch event in   if you change the model property silently , the it will not trigger … Continue reading

Posted in Uncategorized | Leave a comment

Emacs commnad

      For deleting the selected text <C-w>Cut the currently selected text, also copy it.   http://www.syntaxpolice.org/lectures/emacs-talk2/Basic-Editing.html

Posted in Ubuntu/Linux | Leave a comment

Installing Monit on ubuntu

sudo emacs  /etc/monit/monitrc sudo /etc/init.d/monit start sudo monit status Ref : http://howtonode.org/deploying-node-upstart-monit http://www.ubuntugeek.com/monitoring-ubuntu-services-using-monit.html http://www.darkcoding.net/software/setting-up-monit-on-ubuntu/ http://mmonit.com/monit/documentation/monit.html#name This screenshot was really helpful : http://fosscasts.com/screencasts/6-System-Monitoring-With-Monit I got this code from above screen shot : /etc/monit/monitrc file I used: set daemon 20 set logfile /var/log/monit.log … Continue reading

Posted in Node.js, Ubuntu/Linux | Leave a comment

how to column select in notepad++

Notepad++, is a great open source editor similar to EditPlus and UltraEdit. One of the features that I really appreciated in EditPlus, was the capability to select a column of data. I checked if NotePad++ has a similar feature and found the following … Continue reading

Posted in Project Management | Leave a comment

How to start with cake php

    Ref : http://www.phpeveryday.com/articles/CakePHP-Installation-Quick-Start-P624.html  

Posted in PHP | Leave a comment

How to enable mod_rewrite in apache

how to check which modules are loaded in apache apachectl -t -D DUMP_MODULES Ref : http://adminuser.wordpress.com/2008/06/12/list-all-the-loaded-modules-apache/ how to enable mod_rewrite in apache2 cd /etc/apache2/mods-enabled touch rewrite.load gedit rewrite.load (you may use any editor to edit this file) now paste this … Continue reading

Posted in Apache | Leave a comment

how to make api server and call an api from node.js

making server for api interface var sys = require(“sys”), http = require(“http”), url = require(“url”); http.createServer(function(request, responsehttp) { responsehttp.writeHead(200, {“Content-Type”: “text/html”}); console.log(request.url); var url_parts = url.parse(request.url, true); var query = url_parts.query; console.log(query); var msg={ ‘success’:true, ‘message’:’your request is sent to … Continue reading

Posted in Node.js | Leave a comment