How to access all linux command in simple way?
1) Open the new terminal 2) Press Esc key 5 times, it will display an message in prompt as “Display … Continue reading How to access all linux command in simple way?
1) Open the new terminal 2) Press Esc key 5 times, it will display an message in prompt as “Display … Continue reading How to access all linux command in simple way?
require ‘timeout’ require ‘net/http’ def search_videos(id) begin timeout(60) do url = “http://ws.tripfilms.com/search-ws-0.0.1?id=#{id}” response = Net::HTTP.get(url) return response end rescue TimeoutError … Continue reading How to handle web service timeout in Ruby on Rails
Code in Model acts_as_ordered_tree Code in View Code in Helper def display_categories(categories) ret = “” for category in categories if … Continue reading acts_as_tree category sub-category display
@findings = VideosHelper.search_videos_for_keywords(@search_terms) Continue reading How to access helper method in controller?
The Apache module mod_rewrite provides a powerful mechanism for hiding, redirecting, and reformatting request URLs. I just finished implementing a … Continue reading Apache Rewrite Rules.
Just use Two commands. ===================================== ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.0 ===================================== Simplest Way for Backup, Samba server, rsync … Continue reading How to login in a remote server using SSH and no password?
First of all you need to login to server using following command ssh username@server-ip-address then, login to mysql database: mysql … Continue reading Access remote mysql database.
You may find good documentation of cPanel/WHM installation and configuration on below link. http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WebHome Continue reading Cpanel/WHM Documentation.
What We Need ? and What We Recommended. Ingredient For Deployment Recipes. Linux: CentOs 5x (Recommended). Kernel 2.6.x Flavor of … Continue reading Ruby on Rails Deployment With Open Source Technology.
Please follow step-by-step success is your’s : LOL Copy production.rb to staging.rb in config/environments cd /app/config/environments/ cp production.rb staging.rb Add … Continue reading Configure staging environment for Phusion Passenger!!