Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

run

Simple Bash Script To Work As A Daemon
Friday, 02 December 2011 11:40

Simple Bash Script To Work As A Daemon

If you need some snippets or codes to run for ever, but not more that one instance, you need to rapidly check the code, or script and if it has died! It's the time to run it again. To be sure of this function, just add the following lock handler at the top of your script

Read more: http://www.howtoforge.com/simple-bash-script-to-work-as-a-daemon

 
Capistrano: Deploy rails twice to the same machine
Friday, 28 October 2011 09:38
Capistrano is oriented so it deploys to the same directory on several machines. This means you can't deploy to two different locations on the same machine. The following recipe in Capfile will allow you to duplicate your main rails app in a second directory. You can schedule it to run automatically with every deploy or just do it manually. I included database migrations by default. Remove the shared config line if you don't have it. Edit the directories to match yours.

namespace :yournamespace do
desc "Synchronize main_app to second_app"
task :sync_apps, :roles => [:app, :db, :web] do
puts "synchronizing main_app to second_app"
run "rsync -a /var/rails/main_app/ /var/rails/second_app --exclude=/shared --delete"
run "for file in `find /var/rails/second_app -type l`; do TARGET=`readlink $file | sed -e \"s/main_app/second_app/\"`; rm $file; ln -s $TARGET $file; done;"
run "cp /var/rails/second_app/shared/config/* /var/rails/second_app/current/config";
run "cd /var/rails/second_app/current; /usr/local/bin/rake RAILS_ENV=production db:migrate;"
run "touch tmp/restart.txt"
end
end

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/0gixztl3Jys/13823

 
How To Install VMware Player On Ubuntu 11.04/Linux Mint 11
Wednesday, 31 August 2011 11:43

How To Install VMware Player On Ubuntu 11.04/Linux Mint 11

This tutorial provides step-by-step instructions on how to install VMware Player on an Ubuntu 11.04 or Linux Mint 11 desktop system. With VMware Player you can create and run guest operating systems ("virtual machines") such as Linux, Windows, FreeBSD, etc. on your desktop, i.e., you can run multiple operating systems on the same hardware which saves a lot of money.

Read more: http://www.howtoforge.com/how-to-install-vmware-player-on-ubuntu-11.04-linux-mint-11

 
Flush the DNS cache in Microsoft Windows
Wednesday, 24 August 2011 14:07
To flush the DNS cache, launch the command prompt (you might need to run it as administrator) and type the following command:


ipconfig /flushdns

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/oKYoMyB8Pyc/13585

 
Start
Prev
1


Page 1 of 2
Taxonomy by Zaragoza Online