<?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></title>
	<atom:link href="http://weblog.bitlasoft.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblog.bitlasoft.com</link>
	<description>Web Development Simplified with Ruby on Rails</description>
	<lastBuildDate>Fri, 13 Aug 2010 16:45:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu Linux &#8211; Disk Full 100% What to do?</title>
		<link>http://weblog.bitlasoft.com/2010/08/ubuntu-linux-disk-full-100-what-to-do/</link>
		<comments>http://weblog.bitlasoft.com/2010/08/ubuntu-linux-disk-full-100-what-to-do/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 16:45:40 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/08/ubuntu-linux-disk-full-100-what-to-do/</guid>
		<description><![CDATA[&#160;
When the DISK is full – lot of things stops functioning.
Here is a way to find and clear the log files.
1) Check the Disk Usage using sudo df -h
testserver: sudo df -h    Filesystem&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Size&#160; Used Avail Use% Mounted on    /dev/xvda&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 30G&#160; 746M&#160;&#160; 30G&#160;&#160; 100% /    tmpfs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>When the DISK is full – lot of things stops functioning.</p>
<p>Here is a way to find and clear the log files.</p>
<p>1) Check the Disk Usage using <strong>sudo df -h</strong></p>
<p>testserver: <strong>sudo df -h</strong>    <br />Filesystem&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Size&#160; Used Avail Use% Mounted on    <br />/dev/xvda&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 30G&#160; 746M&#160;&#160; 30G&#160;&#160; <strong>100%</strong> /    <br />tmpfs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 513M&#160;&#160;&#160;&#160; 0&#160; 513M&#160;&#160; 0% /lib/init/rw    <br />varrun&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 513M&#160;&#160; 56K&#160; 513M&#160;&#160; 1% /var/run    <br />varlock&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 513M&#160;&#160;&#160;&#160; 0&#160; 513M&#160;&#160; 0% /var/lock    <br />udev&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 513M&#160; 108K&#160; 512M&#160;&#160; 1% /dev    <br />tmpfs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 513M&#160;&#160;&#160;&#160; 0&#160; 513M&#160;&#160; 0% /dev/shm</p>
<p>&#160;</p>
<p>2) Finding the largest size FOLDER </p>
<p><strong>sudo du -hc &#8211;max-depth=1 /</strong></p>
<p>201M&#160;&#160;&#160; /var   <br />118M&#160;&#160;&#160; /home    <br />2.9M&#160;&#160;&#160; /etc    <br />4.0K&#160;&#160;&#160; /tmp    <br />4.0K&#160;&#160;&#160; /media    <br />4.0K&#160;&#160;&#160; /boot    <br />4.9M&#160;&#160;&#160; /sbin    <br />28K&#160;&#160;&#160;&#160; /root    <br />4.0K&#160;&#160;&#160; /mnt    <br />108K&#160;&#160;&#160; /dev    <br />4.0K&#160;&#160;&#160; /srv    <br />4.0K&#160;&#160;&#160; /selinux    <br />336M&#160;&#160;&#160; /usr    <br />12M&#160;&#160;&#160;&#160; /lib    <br />0&#160;&#160;&#160;&#160;&#160;&#160; /sys    <br />4.9M&#160;&#160;&#160; /bin    <br />4.0K&#160;&#160;&#160; /opt    <br />1.1G&#160;&#160;&#160; /proc    <br />16K&#160;&#160;&#160;&#160; /lost+found    <br />1.7G&#160;&#160;&#160; /    <br />1.7G&#160;&#160;&#160; total</p>
<p>Mostly you will fine the issue with the log files in <strong>/var/log</strong> folder</p>
<p>3) Clearing the log files</p>
<p>Go to bash </p>
<p>testserver: <strong>sudo bash</strong></p>
<p>go to the problem folder</p>
<p>testserver: <strong>cd /var/log</strong></p>
<p>testserver /var/log: <strong>ls -l</strong></p>
<p>Go to bash and run the command <strong>&gt; mail.log (NOTE: </strong>greater than symbol followed by the file name)</p>
<p>This will override the file with blank by keeping all the permissions of the file intact!</p>
<p>testserver /var/log: <strong>&gt; mail.log</strong></p>
<p>testserver /var/log: <strong>&gt; mail.info</strong></p>
<p>testserver /var/log: <strong>&gt; syslog</strong></p>
<p>&#160;</p>
<p>you can also do &#8211; <strong>sudo cat /dev/null &gt; /var/log/syslog</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/08/ubuntu-linux-disk-full-100-what-to-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOAP4R and ActionWebServices Conflicts and the FIX</title>
		<link>http://weblog.bitlasoft.com/2010/08/soap4r-and-actionwebservices-conflicts-and-the-fix/</link>
		<comments>http://weblog.bitlasoft.com/2010/08/soap4r-and-actionwebservices-conflicts-and-the-fix/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 16:52:21 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/08/soap4r-and-actionwebservices-conflicts-and-the-fix/</guid>
		<description><![CDATA[&#160;
SOAP4R and ActionWebServices doesn’t get along very well – due to conflicts in their naming convention.
SOAP4R is used to connect to any Web Services based third party clients – may or may not be based on rails. SOAP4R works fine when its used independently. 
&#160;
If you have to offer your own Web Services using ActionWebServices [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>SOAP4R and ActionWebServices doesn’t get along very well – due to conflicts in their naming convention.</p>
<p>SOAP4R is used to connect to any Web Services based third party clients – may or may not be based on rails. SOAP4R works fine when its used independently. </p>
<p>&#160;</p>
<p>If you have to offer your own Web Services using ActionWebServices – independently it works fine without SOAP4R being used.</p>
<p>&#160;</p>
<p>When used together – the following exception is thrown – when wsdl URL is accessed related to your ActionWebServices!</p>
<p><font color="#804040"><strong>NameError (uninitialized constant SOAP::XSDNamespaceTag):</strong>      <br />&#160;&#160;&#160; /vendor/rails/activesupport/lib/active_support/dependencies.rb:442:in `load_missing_constant&#8217;      <br />&#160;&#160;&#160; /vendor/rails/activesupport/lib/active_support/dependencies.rb:77:in `const_missing&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/protocol/soap      <br />protocol/marshaler.rb:160:in `qualified_type_name&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac      <br />ion_controller_dispatcher.rb:231:in `to_wsdl&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa      <br />ure_types.rb:205:in `each_member&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa      <br />ure_types.rb:204:in `each&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/support/signa      <br />ure_types.rb:204:in `each_member&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac      <br />ion_controller_dispatcher.rb:229:in `to_wsdl&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac      <br />ion_controller_dispatcher.rb:228:in `to_wsdl&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing&#8217;      <br />&#160;&#160;&#160; D:/s/InstantRails/ruby/lib/ruby/gems/1.8/gems/datanoise-actionwebservice-2.2.2/lib/action_web_service/dispatcher/ac      <br />ion_controller_dispatcher.rb:227:in `to_wsdl&#8217;</font></p>
<p>&#160;</p>
<p>You must have already included <strong>gem &#8217;soap4r&#8217;</strong> to make your WebServices Client code working.</p>
<p>To fix this problem … add the following code to your <strong>environment.rb</strong> file and restart your server. Now both should be working.</p>
<p>&#160;</p>
<p><font color="#804040"><strong>module SOAP       <br />&#160;&#160;&#160; SOAPNamespaceTag = &#8216;env&#8217;        <br />&#160;&#160;&#160; XSDNamespaceTag = &#8216;xsd&#8217;        <br />&#160;&#160;&#160; XSINamespaceTag = &#8216;xsi&#8217;        <br />end</strong></font></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/08/soap4r-and-actionwebservices-conflicts-and-the-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install and configure Postfix in Ubuntu</title>
		<link>http://weblog.bitlasoft.com/2010/07/how-to-install-and-configure-postfix-in-ubuntu/</link>
		<comments>http://weblog.bitlasoft.com/2010/07/how-to-install-and-configure-postfix-in-ubuntu/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:10:55 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/07/how-to-install-and-configure-postfix-in-ubuntu/</guid>
		<description><![CDATA[&#160;
Postfix is the default Mail Transfer Agent (MTA) in Ubuntu. It attempts to be fast and easy to administer and secure. It is compatible with the MTA sendmail. This section explains how to install and configure postfix. It also explains how to set it up as an SMTP server using a secure connection (for sending [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><strong>Postfix</strong> is the default Mail Transfer Agent (MTA) in Ubuntu. It attempts to be fast and easy to administer and secure. It is compatible with the MTA <strong>sendmail</strong>. This section explains how to install and configure <strong>postfix</strong>. It also explains how to set it up as an SMTP server using a secure connection (for sending emails securely).</p>
<p>&#160;</p>
<h5>Installation</h5>
<p>To install <strong>postfix</strong> run the following command: </p>
<pre><strong>sudo apt-get install postfix</strong></pre>
<p>&#160;</p>
<p>Simply press return when the installation process asks questions, the configuration will be done in greater detail in the next stage. </p>
<h5><a></a>Basic Configuration</h5>
<p>To configure <strong>postfix</strong>, run the following command: </p>
<pre><strong>sudo dpkg-reconfigure postfix</strong></pre>
<p>The user interface will be displayed. On each screen, select the following values: </p>
<ul compact="compact">
<li>
<p>Ok</p>
</li>
<li>
<p>Internet Site</p>
</li>
<li>
<p>NONE</p>
</li>
<li>
<p>mail.example.com</p>
</li>
<li>
<p>mail.example.com, localhost.localdomain, localhost</p>
</li>
<li>
<p>No</p>
</li>
<li>
<p>127.0.0.0/8, 192.168.0/24</p>
</li>
<li>
<p>Yes</p>
</li>
<li>
<p>0</p>
</li>
<li>
<p>+</p>
</li>
<li>
<p>all</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/07/how-to-install-and-configure-postfix-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to reconfigure Postfix?</title>
		<link>http://weblog.bitlasoft.com/2010/07/how-to-reconfigure-postfix/</link>
		<comments>http://weblog.bitlasoft.com/2010/07/how-to-reconfigure-postfix/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 09:10:41 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/07/how-to-reconfigure-postfix/</guid>
		<description><![CDATA[&#160;
Once Postfix is installed, reconfiguration can be done using the following command.

sudo dpkg-reconfigure postfix

&#160;
The user interface will be displayed. On each screen, select the following values: 


Ok

Internet Site

NONE

mail.example.com

mail.example.com, localhost.localdomain, localhost

No

127.0.0.0/8, 192.168.0/24

Yes

0

+

all


You may have to edit /etc/postfix/main.conf to update the mail hostname!!
&#160;
&#160;
&#160;
]]></description>
			<content:encoded><![CDATA[<h5>&nbsp;</h5>
<p>Once Postfix is installed, reconfiguration can be done using the following command.</p>
<p><strong><font size="2"></font></strong>
<pre><strong>sudo dpkg-reconfigure postfix</strong>
</pre>
<p>&nbsp;</p>
<p>The user interface will be displayed. On each screen, select the following values: </p>
<ul compact>
<li>
<p>Ok</p>
<li>
<p>Internet Site</p>
<li>
<p>NONE</p>
<li>
<p>mail.example.com</p>
<li>
<p>mail.example.com, localhost.localdomain, localhost</p>
<li>
<p>No</p>
<li>
<p>127.0.0.0/8, 192.168.0/24</p>
<li>
<p>Yes</p>
<li>
<p>0</p>
<li>
<p>+</p>
<li>
<p>all</p>
</li>
</ul>
<pre><strong><font face="Arial" size="2">You may have to edit /etc/postfix/main.conf to update the mail hostname!!</font></strong></pre>
<pre><strong><font face="Arial" size="2"></font></strong>&nbsp;</pre>
<pre><strong><font face="Arial" size="2"></font></strong>&nbsp;</pre>
<pre>&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/07/how-to-reconfigure-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning HTML5 and CSS3 by example</title>
		<link>http://weblog.bitlasoft.com/2010/05/learning-html5-and-css3-by-example/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/learning-html5-and-css3-by-example/#comments</comments>
		<pubDate>Sat, 15 May 2010 19:03:06 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/05/learning-html5-and-css3-by-example/</guid>
		<description><![CDATA[&#160;
Check out an excellent presentation &#38; Live Demo – written in HTML5, CSS3 and JS APIs for demonstrating the capabilities of HTML5, CSS3 and JS APIs.
&#160;
Check it out … 
http://apirocks.com/html5/html5.html
]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Check out an excellent presentation &amp; Live Demo – written in HTML5, CSS3 and JS APIs for demonstrating the capabilities of HTML5, CSS3 and JS APIs.</p>
<p>&#160;</p>
<p>Check it out … </p>
<h4><a title="http://apirocks.com/html5/html5.html" href="http://apirocks.com/html5/html5.html">http://apirocks.com/html5/html5.html</a></h4>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/learning-html5-and-css3-by-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to HTML5 &amp; CSS3</title>
		<link>http://weblog.bitlasoft.com/2010/05/introduction-to-html5-css3/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/introduction-to-html5-css3/#comments</comments>
		<pubDate>Sat, 15 May 2010 18:59:00 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[jQTouch]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/05/introduction-to-html5-css3/</guid>
		<description><![CDATA[How to build a html5 websites.v1
View more presentations from Bitla Software.

Canvas Demos
Checkout the DEMOs here … 
http://www.canvasdemos.com/type/applications/
http://code.edspencer.net/Bean/index.html
http://www.xarg.org/project/chrome-experiment/
http://www.canvasdemos.com/2010/05/06/catch-it/
SVG Demos
http://code.google.com/p/svgweb/&#160;
http://codinginparadise.org/projects/svgweb/samples/demo.html
http://codinginparadise.org/projects/svgweb/samples/javascript-samples/svg_dynamic_fancy.html
Geo-Location Demo
http://www.mozilla.com/en-US/firefox/stats/
&#160;
jQTouch Demo
http://jqtouch.com/preview/demos/main/
&#160;
Finally, an excellent Demo on all the latest features from HTML5, CSS and the JavaScript APIs, This presentation itself is an HTML5 one page website. 
http://apirocks.com/html5/html5.html
&#160;
Some screens from the Demo:
 
     
]]></description>
			<content:encoded><![CDATA[<div id="__ss_4110513" style="width: 425px"><strong style="display: block; margin: 12px 0px 4px"><a title="How to build a html5 websites.v1" href="http://www.slideshare.net/bitlasoft/how-to-build-a-html5-websitesv1">How to build a html5 websites.v1</a></strong><object id="__sse4110513" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=howtobuildahtml5websites-v1-100515134000-phpapp01&amp;stripped_title=how-to-build-a-html5-websitesv1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed name="__sse4110513" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=howtobuildahtml5websites-v1-100515134000-phpapp01&amp;stripped_title=how-to-build-a-html5-websitesv1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding-right: 0px; padding-left: 0px; padding-bottom: 12px; padding-top: 5px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/bitlasoft">Bitla Software</a>.</div>
</p></div>
<h2>Canvas Demos</h2>
<p>Checkout the DEMOs here … </p>
<p><a href="http://www.canvasdemos.com/type/applications/">http://www.canvasdemos.com/type/applications/</a></p>
<p><a href="http://code.edspencer.net/Bean/index.html">http://code.edspencer.net/Bean/index.html</a></p>
<p><a href="http://www.xarg.org/project/chrome-experiment/">http://www.xarg.org/project/chrome-experiment/</a></p>
<p><a href="http://www.canvasdemos.com/2010/05/06/catch-it/">http://www.canvasdemos.com/2010/05/06/catch-it/</a></p>
<h2>SVG Demos</h2>
<p><a href="http://code.google.com/p/svgweb/">http://code.google.com/p/svgweb/</a>&#160;</p>
<p><a href="http://codinginparadise.org/projects/svgweb/samples/demo.html">http://codinginparadise.org/projects/svgweb/samples/demo.html</a></p>
<p><a href="http://codinginparadise.org/projects/svgweb/samples/javascript-samples/svg_dynamic_fancy.html">http://codinginparadise.org/projects/svgweb/samples/javascript-samples/svg_dynamic_fancy.html</a></p>
<h2>Geo-Location Demo</h2>
<p><a title="http://www.mozilla.com/en-US/firefox/stats/" href="http://www.mozilla.com/en-US/firefox/stats/">http://www.mozilla.com/en-US/firefox/stats/</a></p>
<p>&#160;</p>
<h2>jQTouch Demo</h2>
<p><a title="http://jqtouch.com/preview/demos/main/" href="http://jqtouch.com/preview/demos/main/">http://jqtouch.com/preview/demos/main/</a></p>
<p>&#160;</p>
<h2>Finally, an excellent Demo on all the latest features from HTML5, CSS and the JavaScript APIs, This presentation itself is an HTML5 one page website. </h2>
<p><a title="http://apirocks.com/html5/html5.html" href="http://apirocks.com/html5/html5.html">http://apirocks.com/html5/html5.html</a></p>
<p>&#160;</p>
<p><strong>Some screens from the Demo:</strong></p>
<p><a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="102" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb.png" width="707" border="0" /></a> </p>
<p><a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image1.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="191" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb1.png" width="244" border="0" /></a> <a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image2.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="188" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb2.png" width="244" border="0" /></a> <a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image3.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="189" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb3.png" width="244" border="0" /></a> <a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image4.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="189" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb4.png" width="244" border="0" /></a> <a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image5.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="189" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb5.png" width="244" border="0" /></a> <a href="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image6.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="183" alt="image" src="http://weblog.bitlasoft.com/wp-content/uploads/2010/05/image_thumb6.png" width="244" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/introduction-to-html5-css3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Passenger passenger-install-apache2-module: command not found</title>
		<link>http://weblog.bitlasoft.com/2010/05/installing-passenger-passenger-install-apache2-module-command-not-found/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/installing-passenger-passenger-install-apache2-module-command-not-found/#comments</comments>
		<pubDate>Sat, 15 May 2010 18:31:00 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Passenger]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/05/installing-passenger-passenger-install-apache2-module-command-not-found/</guid>
		<description><![CDATA[&#160;
If you are installing/upgrading Phusion Passenger (a.k.a mod_rails/mod_rack) and facing the following error at the second step when you run passenger-install-apache2-module

sudo: passenger-install-apache2-module: command not found

That means gems bin directly is no in the PATH. Either you can add this to the PATH or You can simply run the command with the full path to passenger-install-apache2-module.
&#160;
In [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>If you are installing/upgrading <a href="http://www.modrails.com" target="_blank">Phusion Passenger</a> (a.k.a mod_rails/mod_rack) and facing the following error at the second step when you run <code>passenger-install-apache2-module</code></p>
<p><em></em></p>
<p><em>sudo: passenger-install-apache2-module: command not found</em></p>
<p><em></em></p>
<p>That means gems bin directly is no in the PATH. Either you can add this to the PATH or You can simply run the command with the full path to passenger-install-apache2-module.</p>
<p>&#160;</p>
<p>In our case, we use enterprise ruby and the command looks like as below:</p>
<p><em>sudo /opt/ruby-enterprise-1.8.7-2010.01/bin/passenger-install-apache2-module</em></p>
<p>&#160;</p>
<p>You can find the bin path to the gems by issuing the following command – note the bold blue text:</p>
<p><font face="Courier New">server5 ~: gem environment     <br />RubyGems Environment:      <br />&#160; &#8211; RUBYGEMS VERSION: 1.3.5      <br />&#160; &#8211; RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux]      <br />&#160; &#8211; INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8      <br />&#160; &#8211; RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby      <br />&#160; &#8211; EXECUTABLE DIRECTORY: <strong><font color="#000080">/opt/ruby-enterprise-1.8.7-2010.01/bin</font></strong>      <br />&#160; &#8211; RUBYGEMS PLATFORMS:      <br />&#160;&#160;&#160; &#8211; ruby      <br />&#160;&#160;&#160; &#8211; x86_64-linux      <br />&#160; &#8211; GEM PATHS:      <br />&#160;&#160;&#160;&#160; &#8211; /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8      <br />&#160;&#160;&#160;&#160; &#8211; /home/username/.gem/ruby/1.8      <br />&#160; &#8211; GEM CONFIGURATION:      <br />&#160;&#160;&#160;&#160; &#8211; :update_sources =&gt; true      <br />&#160;&#160;&#160;&#160; &#8211; :verbose =&gt; true      <br />&#160;&#160;&#160;&#160; &#8211; :benchmark =&gt; false      <br />&#160;&#160;&#160;&#160; &#8211; :backtrace =&gt; false      <br />&#160;&#160;&#160;&#160; &#8211; :bulk_threshold =&gt; 1000      <br />&#160;&#160;&#160;&#160; &#8211; :sources =&gt; [&quot;</font><a href="http://gems.rubyforge.org/&quot;"><font face="Courier New">http://gems.rubyforge.org/&quot;</font></a><font face="Courier New">, &quot;</font><a href="http://gems.github.com&quot;]&#8220;><font face="Courier New">http://gems.github.com&quot;]</font></a>    <br /><font face="Courier New">&#160; &#8211; REMOTE SOURCES:     <br />&#160;&#160;&#160;&#160; &#8211; </font><a href="http://gems.rubyforge.org/"><font face="Courier New">http://gems.rubyforge.org/</font></a>    <br /><font face="Courier New">&#160;&#160;&#160;&#160; &#8211; </font><a href="http://gems.github.com"><font face="Courier New">http://gems.github.com</font></a></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/installing-passenger-passenger-install-apache2-module-command-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading to Phusion Passenger 2.2.11</title>
		<link>http://weblog.bitlasoft.com/2010/05/upgrading-to-phusion-passenger-2-2-11/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/upgrading-to-phusion-passenger-2-2-11/#comments</comments>
		<pubDate>Sat, 15 May 2010 18:19:57 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[Passenger]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/05/upgrading-to-phusion-passenger-2-2-11/</guid>
		<description><![CDATA[&#160;
When under high load, Apache was freezing and stop responding to requests in 2.2.10 &#38; 2.2.9 version of Passenger. 
More information about the problem can be found at the following discussion thread: 
http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0
&#160;
Its worth while to upgrade to the latest version of Phusion Passenger 2.2.11
&#160;
How to upgrade to 2.2.11?
&#160;
Via a gem
&#160;
Install it with the following [...]]]></description>
			<content:encoded><![CDATA[<h4>&nbsp;</h4>
<p>When under high load, Apache was freezing and stop responding to requests in 2.2.10 &amp; 2.2.9 version of Passenger. </p>
<p>More information about the problem can be found at the following discussion thread: </p>
<p><a href="http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0">http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0</a></p>
<p>&nbsp;</p>
<p>Its worth while to upgrade to the latest version of <strong>Phusion Passenger 2.2.11</strong></p>
<p>&nbsp;</p>
<h4>How to upgrade to 2.2.11?</h4>
<h5>&nbsp;</h5>
<h5>Via a gem</h5>
<p>&nbsp;
<p>Install it with the following command:
<pre>gem install passenger</pre>
<p>&nbsp;
<p>Next, run:
<pre>passenger-install-apache2-module</pre>
<p>&nbsp;
<p>Or, if you’re an Nginx user:
<pre>passenger-install-nginx-module</pre>
<pre>&nbsp;</pre>
<pre>&nbsp;</pre>
<p>On successful installation – you will see something like – for Apache:</p>
<p><font color="#808000">The Apache 2 module was successfully installed. </font></p>
<p><font color="#808000">Please edit your Apache configuration file, and add these lines: </font></p>
<p><font color="#808000"><font face="Courier New">LoadModule passenger_module /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so<br />PassengerRoot /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.11<br />PassengerRuby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby</font> </font></p>
<p><font color="#808000">After you restart Apache, you are ready to deploy any number of Ruby on Rails<br />applications on Apache, without any further Ruby on Rails-specific<br />configuration!</font></p>
<p>&nbsp;
<p>Copy &amp; paste the above three lines into Apache config /etc/apache2/conf.d/passenger and restart the Apache /etc/init.d/apache2 restart server..</p>
<p>&nbsp;
<p>For further details &#8211; <a title="http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/" href="http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/">http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/upgrading-to-phusion-passenger-2-2-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deserializing an object failed in ActiveRecord</title>
		<link>http://weblog.bitlasoft.com/2010/05/deserializing-an-object-failed-in-activerecord/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/deserializing-an-object-failed-in-activerecord/#comments</comments>
		<pubDate>Thu, 06 May 2010 20:59:00 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Serialization]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/2010/05/deserializing-an-object-failed-in-activerecord/</guid>
		<description><![CDATA[&#160;
This can happen when the rails dependency system doesn’t load the serialize referenced objects before deserialize happens. We killed some time figuring this out – here is what you can do if you see any such issue:
For example:
The following code could create deserialization errors when Employee object is loaded.
class Employee &#60; ActiveRecord::Base
  serialize :job_roles
 [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>This can happen when the rails dependency system doesn’t load the <font face="Courier New">serialize</font> referenced objects before deserialize happens. We killed some time figuring this out – here is what you can do if you see any such issue:</p>
<p>For example:</p>
<p>The following code could create deserialization errors when Employee object is loaded.</p>
<pre>class Employee &lt; ActiveRecord::Base
  serialize :job_roles</pre>
<pre>  belongs_to :company</pre>
<pre>end</pre>
<pre>&nbsp;</pre>
<pre>class JobRole
  attr_accessor :role_type, :job_role, :description
  def initialize(role_type, job_role, description)</pre>
<pre>     @job_role= job_role
     @role_type= role_type</pre>
<pre>     @description = description </pre>
<pre>  end

  ......
end</pre>
<p>&nbsp;</p>
<p>You can fix this issue either by loading <font face="Courier New">JobRole</font> class in <font face="Courier New">environment.rb</font> or just load it in the respective <font face="Courier New">ActiveRecord</font> class itself.</p>
<pre>class Employee &lt; ActiveRecord::Base</pre>
<pre><strong>  JobRole</strong></pre>
<pre>
  serialize :job_roles</pre>
<pre>  belongs_to :company</pre>
<pre>end</pre>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/deserializing-an-object-failed-in-activerecord/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails: Serializing and DeSerializing Ruby objects</title>
		<link>http://weblog.bitlasoft.com/2010/05/ruby-on-rails-serializing-and-deserializing-ruby-objects/</link>
		<comments>http://weblog.bitlasoft.com/2010/05/ruby-on-rails-serializing-and-deserializing-ruby-objects/#comments</comments>
		<pubDate>Wed, 05 May 2010 20:44:00 +0000</pubDate>
		<dc:creator>Dash</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Serialization]]></category>

		<guid isPermaLink="false">http://weblog.bitlasoft.com/?p=21</guid>
		<description><![CDATA[&#160;
Serialization in Ruby comes very handy at times, it really helps in several cases especially when dealing with:

persisting Ruby objects onto a disk or to the database
transferring the Ruby objects over the network
session persistence
complex data structure storing in the database with ActiveRecord
and lot more … 

The Object Serialization can be done in Ruby in two [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Serialization in Ruby comes very handy at times, it really helps in several cases especially when dealing with:</p>
<ul>
<li>persisting Ruby objects onto a disk or to the database
<li>transferring the Ruby objects over the network
<li>session persistence
<li>complex data structure storing in the database with ActiveRecord
<li>and lot more … </li>
</ul>
<p>The Object Serialization can be done in Ruby in two ways and its directly built into the language itself, and its quite straight forward to use this. One is Binary Serialization, where the object will be serialized to a Binary Format and the Other One is Human-Readable Serialization using YAML. Apart from this you can use third party libraries like JSON serialization too – which needs bit more setup, coding etc.</p>
<p>Here will cover the default Ruby serialization mechanisms:</p>
<h2>Binary Serialization</h2>
<p>This is achieved using the <a href="http://ruby-doc.org/core/classes/Marshal.html"><em>Marshal</em></a> class.</p>
<pre>&nbsp;</pre>
<pre>class Hello&nbsp;&nbsp; def initialize(str)&nbsp;&nbsp;&nbsp;&nbsp; @str = str&nbsp;&nbsp; end</pre>
<pre>&nbsp;&nbsp; def sayHello&nbsp;&nbsp;&nbsp;&nbsp; @str&nbsp;&nbsp; end
end
</pre>
<pre>hello = Hello.new("Hello World")
puts hello.sayHello</pre>
<pre>&nbsp;</pre>
<pre># Serialize using Marshal.dump - Binary
serialized_object = <strong>Marshal.dump</strong>(hello)</pre>
<pre>&nbsp;</pre>
<pre># DeSerialize using Marshal.load</pre>
<pre>hello = <strong>Marshal.load</strong>(serialized_object)</pre>
<pre>puts hello.sayHello</pre>
<pre>&nbsp;</pre>
<pre><em><strong>Result:</strong></em></pre>
<pre>Hello World</pre>
<pre>Hello World</pre>
<pre>&nbsp;</pre>
<p>We cannot make out any meaningful content from the serialized object, hence its not shown here.</p>
<p>As you notice above the values printed are same after serialization and de-serialization using the Binary mechanism using the <a href="http://ruby-doc.org/core/classes/Marshal.html"><em>Marshal</em></a> class.</p>
<p>Use this:</p>
<ul>
<li>when you want a high performance serialization and de-serialization process</li>
<li>when you do not need to read the contents of the serialized object</li>
</ul>
<h2>Human-Readable Serialization</h2>
<p>Lets use the same <font face="Courier New">Hello</font> class as defined above. This is achieved using the built it YAML class, and its very straight forward to use.</p>
<p>&nbsp;</p>
<pre>require ‘yaml’</pre>
<pre>&nbsp;</pre>
<pre>hello = Hello.new("Hello World")
puts hello.sayHello</pre>
<pre>&nbsp;</pre>
<pre># Serialize using YAML.dump – Human Readable
serialized_object = <strong>YAML.dump</strong>(hello)</pre>
<pre>puts serialized_object</pre>
<pre>&nbsp;</pre>
<pre># DeSerialize using YAML.load
hello = <strong>YAML.load</strong>(serialized_object)</pre>
<pre>puts hello.sayHello</pre>
<pre>&nbsp;</pre>
<pre><em><strong>Result:</strong></em></pre>
<pre>Hello World</pre>
<pre>&nbsp;</pre>
<p><font face="Courier New">&#8212; !ruby/object:Hello<br />str: Hello World</font></p>
<pre>Hello World</pre>
<pre>&nbsp;</pre>
<p>As you can notice the serialized object is Human Readble format.</p>
<p>Use this:</p>
<ul>
<li>when you really need to have the serialized object contents in the human readable format</li>
<li>at the cost of performance impact in serialization and de-serialization process</li>
<li>to save into the files and send across the YAML serialized files over the nework</li>
</ul>
<p>Another alternate Human-Readable serialization is via JSON. </p>
<p>You will have to install the following Gems and write the necessary code to serialize into JSON objects and de-serialize to create the Objects.</p>
<pre>gem install json-pure</pre>
<pre>&nbsp;</pre>
<pre>OR</pre>
<pre>&nbsp;</pre>
<pre>gem install json</pre>
<p>&nbsp;</p>
<p>Look our for an other article on how to use JSON for serialization.</p>
<p>&nbsp;</p>
<p>Similarly you can also do Human-Readable serialization is via XML.</p>
<h2>ActiveRecord Serialization Support</h2>
<p>Active Records support different types of <a href="http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html" target="_blank">serialization</a>s. </p>
<p>JSON, XML and YML serializations are supported by the ActiveRecords.</p>
<p>Default serialization method used by Rails is YML.</p>
<pre>&nbsp;</pre>
<pre>class Employee &lt; ActiveRecord::Base
  serialize :job_roles</pre>
<pre>
  belongs_to :company</pre>
<pre>
end</pre>
<p>&nbsp;</p>
<pre>class JobRole
  attr_accessor :role_type, :job_role, :description
  def initialize(role_type, job_role, description)</pre>
<pre>     @job_role= job_role
     @role_type= role_type</pre>
<pre>     @description = description </pre>
<pre>  end

  ......
end</pre>
<pre>&nbsp;</pre>
<p>Here the <font face="Courier New">serialize</font> converts the <strong>job_roles</strong> array into YAML before saving to the database and de-serializes the YAML string into an Array of JobRole objects on loading from the database.</p>
<p>Quite useful when storing complex data structures.</p>
<p><strong><u>Pit Falls:</u></strong></p>
<p>Not advised to store big serialized objects – as it can have major performance impact.</p>
<p>Do your tests for performance and scalability before you use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblog.bitlasoft.com/2010/05/ruby-on-rails-serializing-and-deserializing-ruby-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

