
<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.2" -->
<rss version="0.92">
<channel>
	<title>eXpand yOur cReativity</title>
	<link>http://blog.bhushangahire.net</link>
	<description>by Bhushan G Ahire</description>
	<lastBuildDate>Wed, 17 Feb 2010 06:22:49 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Setup Capistrano to deploy Rails application on Amazon EC2 with Git</title>
		<description>1: Create a new Rails app - we'll call is 'deploytest'
$ rails deploytest
$ cd deploytest
2: Create a local Git repository for it
$ git init
$ git add *
$ git commit -a -m 'initial commit'
$ git status
3: Create a couple of Capistrano files
$ capify .
4: Edit config/deploy.rb
# The name of your app
set ...</description>
		<link>http://blog.bhushangahire.net/2010/02/17/setup-capistrano-to-deploy-rails-application-on-amazon-ec2-with-git/</link>
			</item>
	<item>
		<title>Installing PostgreSQL on Snow Leopard 10.6</title>
		<description>
Installing PostgreSQL 8.3
First, you’ll need to install Xcode if you haven’t already. This is available on the Snow Leopard DVD in the Optional Installs directory.
Second, if you aren’t already using it, download Mac Ports for Snow Leopard and install it. Mac Ports has come a long way in the last ...</description>
		<link>http://blog.bhushangahire.net/2010/02/15/installing-postgresql-on-snow-leopard-10-6/</link>
			</item>
	<item>
		<title>Send SMS from Ruby On Rails application using web service, SOAP API</title>
		<description>SOAP4R is a Ruby library for accessing Web Services via SOAP. Recently I had a chance to explore SOAP4R. Here's how to get started with it.    Installation  Although Ruby 1.8.x comes with SOAP4R in its standard library, it is an old, buggy version. I highly recommend ...</description>
		<link>http://blog.bhushangahire.net/2010/01/15/send-sms-from-ruby-on-rails-application-using-web-service-soap-api/</link>
			</item>
	<item>
		<title>Paypal Instant Payment Notification in Rails with Active Merchant</title>
		<description>Active Merchant makes it extremely simple to use Paypal IPN. Here is a simple guide for getting IPN up and running.

Sign up for a Paypal sandbox account
Paypal provides a sandbox environment that mimics their production environment, with the exception that it doesn’t actually process the transactions.  This is extremely ...</description>
		<link>http://blog.bhushangahire.net/2009/08/05/paypal-instant-payment-notification-in-rails-with-active-merchant/</link>
			</item>
	<item>
		<title>Step-By-Step setup slicehost server (fedora) for rails application.</title>
		<description>







Hi all as I worked on setting up 4 to 5 servers, I thought its better to document the stuff so that I/developers can refer it, So I am documenting the step-by-step process for setting up the slicehost server for rails application work with nginx as a web server and ...</description>
		<link>http://blog.bhushangahire.net/2009/07/22/step-by-step-setup-slicehost-server-fedora-for-rails-application/</link>
			</item>
	<item>
		<title>How to use Google Apps mail configuration with rails application.</title>
		<description>








I am using google apps for my domain www.bhushangahire.com

For one of my rails application I am using this domain mail account setup for sending mails.

But I am not able to send the mail with the default smtp setings we use for sending mail.

So I search on net and I found ...</description>
		<link>http://blog.bhushangahire.net/2009/07/22/how-to-use-google-apps-mail-configuration-with-rails-application/</link>
			</item>
	<item>
		<title>Grant privileges to all tables in a database for postgresql</title>
		<description>Grant privileges to all tables in a database (select, update, insert, delete)
Eg:( Creating a read-only user in postgres)
–Function to grant access(select,insert,update,delete) to users

CREATE FUNCTION pg_grant(TEXT, TEXT, TEXT, TEXT)
RETURNS integer AS '
DECLARE obj record;
num integer;
BEGIN
num:=0;
FOR obj IN SELECT relname FROM pg_class c
JOIN pg_namespace ns ON (c.relnamespace = ns.oid) WHERE
relkind in (''r'',''v'',''S'') ...</description>
		<link>http://blog.bhushangahire.net/2009/06/17/grant-privileges-to-all-tables-in-a-database-for-postgresql/</link>
			</item>
	<item>
		<title>Transperent div for all browser</title>
		<description>if (b.ie)
 {
  var filter = this.element.style.filter.replace(/alpha\s*\(\s*opacity\s*=\s*[0-9\.]{1,3}\)/, '');
  this.element.style.filter = filter + 'alpha(opacity=' + parseInt(ht * 100, 10) + ')';
 }
 else
 {
  this.element.style.opacity = ht;
 }
 this.element.style.visibility = 'visible';
 this.element.style.display = 'block'
} </description>
		<link>http://blog.bhushangahire.net/2009/05/26/transperent-div-for-all-browser/</link>
			</item>
	<item>
		<title>Get location from IP address in Ruby On Rails for free&#8230;.</title>
		<description>Find below the code for finding location from IP address using IP location tools.
require 'net/http'
require 'rexml/document'
include REXML

class MapsController < ApplicationController
	def index
		@location = locateIp()

	end

	def locateIp
		ip = request.remote_ip
		ips = ip.to_s
		url = "http://iplocationtools.com/ip_query.php?ip="+ips

		xml_data = Net::HTTP.get_response(URI.parse(url)).body

                xmldoc = REXML::Document.new(xml_data)

		# ...</description>
		<link>http://blog.bhushangahire.net/2009/05/20/get-location-from-ip-address-in-ruby-on-rails-for-free/</link>
			</item>
	<item>
		<title>Install and Configure FTP Server in Amazon EC2 instance</title>
		<description>For many users, running FTP Sever in Amazon EC2 instance is headache at the first time. You need to experiment before being able to transfer data. The main problems are Ingress firewall in Amazon environment and NAT traversal.
Here I’m using vsftp (vsfptd) Server, which is one of the most popular ...</description>
		<link>http://blog.bhushangahire.net/2009/04/15/install-and-configure-ftp-server-in-amazon-ec2-instance/</link>
			</item>
</channel>
</rss>
