Posts

Check If host is up

Yah, we will use >>> sudo nmap -sP xxx.xxx.xxx.1-254 -sP: Ping Scan - go no further than determining if host is online

The Story from Proteus's Productivity seeker

Proper install guide I try to install psycopg2 (2.4.1 bcoz 2.4.2 does not work with django 1.3) on Ubuntu Natty today and got ImportError: can't import mx.DateTime module . Hmm... weird. I googled around and found a sequence of command to do a proper installation of psycopg2. $ sudo apt-get build-dep python-psycopg2 $ virtualenv ENV $ source ENV/bin/activate $ easy_install psycopg2 $ easy_install egenix-mx-base ref: http://www.saltycrane.com/blog/2009/07/using-psycopg2-virtualenv-ubuntu-jaunty/ Damn mx and psycopg2==2.4.1 The sequence of commands above did not fix my ImportError: can't import mx.DateTime module . I wasted a day searching until i found its defect on psycopg2 issue tracker . In sum, if you try $ ls /usr/include/python2.6/ | grep mx and you found that you have mx folder there, you're screwed. Psycopg2 will try to use this damn mx instead of default datetime package and that will prevent you from installing psycop...

Supervisord and Celery

For setting up supervisord >>> sudo pip install supervisor  note:     Please take care supersivord.conf For setting up celery >>> pip install celery For setting up rabbitmq >>> sudo apt-get install rabbitmq-server

Django : create migration script

Django : create migration script >>> python manage.py schemamigration --initial # for first create migration >>> python manage.py schemamigration --auto # for second and more *** folder migration will be created in Thank, Pam 

Mid night shift - with Intrastructure and Project manager

New Knowledge - Removing package   >> aptitude purge # do remove lib or package. - Be looking for pid file, because its keep pid. - Kill supervisor process and its children   >> supervisorctl -c /etc/ shutdown Thank Joe , PPam

Return Code 127

Exit codes and kill-job signals The exit code from a batch job is a standard Unix termination status, the same sort of number you get in a shell script from checking the " $? " variable after executing a command. Typically, exit code 0 (zero) means successful completion. Codes 1-127 are typically generated by your job itself calling  exit()  with a non-zero value to terminate itself and indicate an error. In BaBar we don't make very much use of this. The most common such value you might see is 64, which is the value used by Framework to say that its event loop is being stopped before all the requested data have been read, typically because time ran out. In recent BaBar releases you might also see 125, which we use as a code for a generic "severe error"; the job log should contain a message stating what the error was. Exit codes in the range 129-255 represent jobs terminated by Unix " signals ". Each type of signal has a number, and what's r...

Some Tips for setting up xampp on windows 7 ( and skype )

for command line >> netstat -a -no # look for PID which take port 80, 433 >> tasklist # match app with PID very thank for  http://www.netshinesoftware.com/component/option,com_myblog/Itemid,65/show,Apache-wont-start-on-XAMPP.html/