<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rajahmundry (రాజమండ్రి) &#187; Development</title>
	<atom:link href="http://satyavolu.org/category/development/feed" rel="self" type="application/rss+xml" />
	<link>http://satyavolu.org</link>
	<description>The Satyavolu Family Website</description>
	<lastBuildDate>Sun, 23 May 2010 22:46:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Installing MySQL gem on Mac OS X Leopard</title>
		<link>http://satyavolu.org/installing-mysql-gem-on-mac-os-x-leopard</link>
		<comments>http://satyavolu.org/installing-mysql-gem-on-mac-os-x-leopard#comments</comments>
		<pubDate>Sat, 04 Jul 2009 15:54:51 +0000</pubDate>
		<dc:creator>schwark</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.satyavolu.org/?p=325</guid>
		<description><![CDATA[Installing the MySQL gem on Leopard was much more painful than I thought. I had the 64-bit version of MySQL already installed. So I had to uninstall MySQL on Leopard, which was a challenge all on its own. Here is what I did (after stopping MySQL, and backing up my databases first, of course): sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Installing the MySQL gem on Leopard was much more painful than I thought. I had the 64-bit version of MySQL already installed. So I had to uninstall MySQL on Leopard, which was a challenge all on its own. <a href="http://akrabat.com/2008/09/11/uninstalling-mysql-on-mac-os-x-leopard/">Here</a> is what I did (after stopping MySQL, and backing up my databases first, of course):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>StartupItems<span style="color: #000000; font-weight: bold;">/</span>MySQLCOM
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>PreferencePanes<span style="color: #000000; font-weight: bold;">/</span>My<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>MySQL<span style="color: #000000; font-weight: bold;">*</span>
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hostconfig <span style="color: #666666; font-style: italic;"># remove the line MYSQLCOM=-YES-</span></pre></div></div>

<p>Then I had to install the 32-bit version of MySQL for Mac OS X. After that is installed, I had to use the following to get the gem to compile:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">ARCHFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386&quot;</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql <span style="color: #660033;">--</span> \
<span style="color: #660033;">--with-mysql-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #660033;">--with-mysql-lib</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>lib \
<span style="color: #660033;">--with-mysql-include</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>include</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://satyavolu.org/installing-mysql-gem-on-mac-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone UI for Rails applications</title>
		<link>http://satyavolu.org/iphone-ui-for-rails-applications</link>
		<comments>http://satyavolu.org/iphone-ui-for-rails-applications#comments</comments>
		<pubDate>Sat, 06 Jun 2009 22:20:29 +0000</pubDate>
		<dc:creator>schwark</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.satyavolu.org/?p=315</guid>
		<description><![CDATA[I knew something like this should and would exist &#8211; nice work.. Will try and incorporate into the next Rails thing we do! Slash Dot Dash � Blog Archive � iPhone on Rails &#8211; Creating an iPhone optimised version of your Rails site using iUI and Rails 2.]]></description>
			<content:encoded><![CDATA[<p><a rel="external nofollow" href="http://www.flickr.com/photos/45122173@N00/1507255625"><img class="alignleft" style="border: 0pt none; margin-right: 8px; margin-left: 8px;" src="http://farm1.static.flickr.com/233/1507255625_c21a8b7402_m.jpg" border="0" alt="iPhone - I got the key." hspace="8" width="156" height="240" align="left" /></a></p>
<p>I knew something like this should and would exist &#8211; nice work.. Will try and incorporate into the next Rails thing we do!</p>
<p><a href="http://www.slashdotdash.net/2007/12/04/iphone-on-rails-creating-an-iphone-optimised-version-of-your-rails-site-using-iui-and-rails-2/">Slash Dot Dash � Blog Archive � iPhone on Rails &#8211; Creating an iPhone optimised version of your Rails site using iUI and Rails 2</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://satyavolu.org/iphone-ui-for-rails-applications/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Gmail as SMTP Relay on Elastix</title>
		<link>http://satyavolu.org/configuring-gmail-as-smtp-relay-on-elastix</link>
		<comments>http://satyavolu.org/configuring-gmail-as-smtp-relay-on-elastix#comments</comments>
		<pubDate>Sun, 12 Apr 2009 22:33:25 +0000</pubDate>
		<dc:creator>schwark</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.satyavolu.org/?p=299</guid>
		<description><![CDATA[Elastix uses Postfix, and getting Postfix configured to use Gmail as a SMTP Relay has been incredibly painful to do. This should not be as difficult as it turned out to be, but here is what I had to do to get things working. Edit the /etc/postfix/main.cf file nano /etc/postfix/main.cf Change these lines to your [...]]]></description>
			<content:encoded><![CDATA[<p>Elastix uses Postfix, and getting Postfix configured to use Gmail as a SMTP Relay has been incredibly painful to do. This should not be as difficult as it turned out to be, but here is what I had to do to get things working.</p>
<p>Edit the /etc/postfix/main.cf file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>main.cf</pre></div></div>

<p>Change these lines to your external domain and the name of your elastix server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">################################</span>
<span style="color: #666666; font-style: italic;">#Ingresado por yb-webadmin</span>
mydomain = myrealdomain.gotdns.org
myhostname = elastix.myrealdomain.gotdns.org</pre></div></div>

<p>Change the following line</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#relayhost = [an.ip.add.ress]</span></pre></div></div>

<p>to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">relayhost = <span style="color: #7a0874; font-weight: bold;">&#91;</span>smtp.gmail.com<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">587</span></pre></div></div>

<p>Create a new file /etc/postfix/sasl_passwd and put the following line in it</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>smtp.gmail.com<span style="color: #7a0874; font-weight: bold;">&#93;</span>:<span style="color: #000000;">587</span>       loginname<span style="color: #000000; font-weight: bold;">@</span>gmail.com:password</pre></div></div>

<p>Then run the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">postmap <span style="color: #7a0874; font-weight: bold;">hash</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>sasl_passwd</pre></div></div>

<p>Create a directory /etc/postfix/certs. Generate a self-signed certificate as follows</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>certs
openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-x509</span> <span style="color: #660033;">-keyout</span> cakey.pem <span style="color: #660033;">-out</span> cacert.pem <span style="color: #660033;">-days</span> <span style="color: #000000;">365</span>
openssl genrsa <span style="color: #660033;">-out</span> gm.key <span style="color: #000000;">1024</span>
openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-key</span> gm.key <span style="color: #660033;">-out</span> gm.csr
openssl ca <span style="color: #660033;">-cert</span> cacert.pem <span style="color: #660033;">-keyfile</span> cakey.pem <span style="color: #660033;">-out</span> .<span style="color: #000000; font-weight: bold;">/</span>gm.pem <span style="color: #660033;">-infiles</span> gm.csr</pre></div></div>

<p>If you get an error that says something like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Could not open directory ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>CA<span style="color: #000000; font-weight: bold;">/</span>newcerts</pre></div></div>

<p>then do the following before you run the commands above</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>CA<span style="color: #000000; font-weight: bold;">/</span>newcerts
<span style="color: #c20cb9; font-weight: bold;">touch</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>CA<span style="color: #000000; font-weight: bold;">/</span>index.txt
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;01&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>CA<span style="color: #000000; font-weight: bold;">/</span>serial</pre></div></div>

<p>and after you are done, you can remove the above directory using</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>CA</pre></div></div>

<p>Add the following lines to /etc/postfix/main.cf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">smtp_sasl_auth_enable = <span style="color: #c20cb9; font-weight: bold;">yes</span>
smtp_sasl_password_maps = <span style="color: #7a0874; font-weight: bold;">hash</span>:<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>sasl_passwd
smtp_sasl_security_options =
&nbsp;
smtp_use_tls = <span style="color: #c20cb9; font-weight: bold;">yes</span>
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = <span style="color: #c20cb9; font-weight: bold;">yes</span>
tls_random_source = dev:<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom
smtp_tls_scert_verifydepth = <span style="color: #000000;">5</span>
<span style="color: #007800;">smtp_tls_key_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>gm.key
<span style="color: #007800;">smtp_tls_cert_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>gm.pem
smtpd_tls_ask_ccert = <span style="color: #c20cb9; font-weight: bold;">yes</span>
smtpd_tls_req_ccert =no
smtp_tls_enforce_peername = no</pre></div></div>

<p>And finally run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">postfix reload</pre></div></div>

<p>Check your setup by sending a test email</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mail myself<span style="color: #000000; font-weight: bold;">@</span>myemail.com</pre></div></div>

<p>And check the logs for anything going wrong</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>maillog</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://satyavolu.org/configuring-gmail-as-smtp-relay-on-elastix/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Social Networking in a box</title>
		<link>http://satyavolu.org/social-networking-in-a-box</link>
		<comments>http://satyavolu.org/social-networking-in-a-box#comments</comments>
		<pubDate>Thu, 08 Jan 2009 06:42:55 +0000</pubDate>
		<dc:creator>schwark</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.satyavolu.org/?p=121</guid>
		<description><![CDATA[I have been looking for a while for a bunch of social networking functionality to use out of the box &#8211; it is ridiculous that you have to build all the same basic things over and over again. I think I found exactly what I was looking for &#8211; Community Engine can be used as [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="external nofollow" href="http://www.flickr.com/photos/22498907@N02/2595051813"><img class="alignleft" style="border: 0pt none; margin-left: 8px; margin-right: 8px;" src="http://farm4.static.flickr.com/3143/2595051813_c4bba49555_m.jpg" border="0" alt="communities already exist" hspace="8" width="240" height="160" align="left" /></a>I have been looking for a while for a bunch of social networking functionality to use out of the box &#8211; it is ridiculous that you have to build all the same basic things over and over again. I think I found exactly what I was looking for &#8211; Community Engine can be used as is, but is designed as a plugin as opposed to as an application. Very nice. One of these days, I might actually try it out. Now this is the kind of stuff that makes it harder to go with Django &#8211; community is more vibrant on the Rails side.</p>
<p><a href="http://www.communityengine.org/documentation.html">Community Engine &#8211; Documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://satyavolu.org/social-networking-in-a-box/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
