<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0"><channel><title>Genlinux</title><link>http://www.genlinux.org/</link><description>Ruby on rails tutorials</description><language>en</language><managingEditor>gen@blogger.com (Gen.lostwarrior)</managingEditor><lastBuildDate>Wed, 04 Nov 2009 09:06:57 PST</lastBuildDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">199</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://feeds.feedburner.com/genlinux2?format=skin</thespringbox:skin><itunes:owner><itunes:email>gen@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>Genlinux technical blog about web development, XHTML CSS Templates and about Linux</itunes:subtitle><creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/genlinux2" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">genlinux2</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bloglines.com/sub/http://feeds.feedburner.com/genlinux2" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:feedFlare xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fgenlinux2" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Nil objects in Ruby</title><link>http://www.genlinux.org/2009/10/nil-objects-in-ruby.html</link><category>Reference</category><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Thu, 29 Oct 2009 07:18:37 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-4317099918314523104</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-29T07:18:37.049-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>If everything is an object, what happens when you do not really have an object? For exactly those occasions, Ruby supplies us with a special object that represents the idea of not having an object, of being utterly object-less, sans object. This special

value is nil.



Everything in Ruby is an object, and so it is: nil.we can get the class of nil:

irb(main):011:0&gt; nil.class

=&gt; NilClass

This turns out to be something very predictable,There is only one instance of NilClass (called nil) and you cannot make any new instances of NilClass.&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pYzLat9VujZdbOHst86nHSzYTkw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pYzLat9VujZdbOHst86nHSzYTkw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pYzLat9VujZdbOHst86nHSzYTkw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pYzLat9VujZdbOHst86nHSzYTkw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=KNsf2MZ3lVc:fFmEu3NABdA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=KNsf2MZ3lVc:fFmEu3NABdA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=KNsf2MZ3lVc:fFmEu3NABdA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=KNsf2MZ3lVc:fFmEu3NABdA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/KNsf2MZ3lVc" height="1" width="1"/&gt;</description></item><item><title>Binding objects in ruby</title><link>http://www.genlinux.org/2009/10/binding-objects-in-ruby.html</link><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Thu, 29 Oct 2009 03:53:36 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-6430582288160101336</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-29T03:53:36.956-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>The RDOC(standard Ruby documentation format)page for ERB states that the result method of an ERB instance takes a Binding object.



Binding doesn't support any methods beyond those provided by Object.Binding objects are used to represent the visible scope from some location or we can say encapsulate the execution context at some particular place in the code and retain this context for future use.They have no methods because they are intended to be opaque.We can capture the current bindings at any time with the binding kernel method.



mybinding=binding()



This binding can be passed to a very few other methods, one which is eval.



def binding_with_ex

ex = 21

return binding

end



ge=binding_with_ex

eval("ex")

will return the error NameError: undefined local variable or method `b' for main:Object

eval("ex",ge)

=&amp;gt;21



class Genbinder

def initialize(n)

@val=n ** 2

end

def fetchbind

return...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kZBirJvYd4B2VzuQJshMnWg0laE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kZBirJvYd4B2VzuQJshMnWg0laE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kZBirJvYd4B2VzuQJshMnWg0laE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kZBirJvYd4B2VzuQJshMnWg0laE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ixqIxf3AqCA:73L9mJRWiRI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ixqIxf3AqCA:73L9mJRWiRI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ixqIxf3AqCA:73L9mJRWiRI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ixqIxf3AqCA:73L9mJRWiRI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/ixqIxf3AqCA" height="1" width="1"/&gt;</description></item><item><title>Ruby on Rails interview questions</title><link>http://www.genlinux.org/2009/10/ruby-on-rails-interview-questions.html</link><category>Reference</category><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Wed, 28 Oct 2009 07:52:03 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-459501618496124570</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-28T07:52:03.506-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><description>1.Difference between html.erb &amp;amp; rhtml

It's just a change of philosophy between Rails 1 and Rails 2.Before Rails 2, we had file.rhtml, file.rxml and file.rjs.In Rails 2.0, that changed to file.content_type.template_engine. So with file.html.erb,the content type is html and the template engine is ERB. rxml is now xml.builder and rjs should now (mostly) be js.rjs.2.What is dynamic database



3.Difference between dynamic hasfinder and hasfinder

Most common operations in many applications is to simply query based on one or two columns, Rails has an easy and effective way to do these queries

without having to resort to the conditions parameter of find.Dynamic finder methods begin with find_by_name or find_all_by_name, indicating whether you want a single value or array of results returned. The semantics are simi-

lar to calling find with the :first versus the :all option.



&gt;&gt; City.find_by_name("Hackensack")

=&gt; # "Hackensack", "latitude" =&gt;"40.8858330000", "id" =&gt; "15942",...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iEGEsMeEGq2bTgOKwYCGtlU0Lvo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iEGEsMeEGq2bTgOKwYCGtlU0Lvo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iEGEsMeEGq2bTgOKwYCGtlU0Lvo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iEGEsMeEGq2bTgOKwYCGtlU0Lvo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=q5H0qSedEmM:a26bK6GnC1s:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=q5H0qSedEmM:a26bK6GnC1s:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=q5H0qSedEmM:a26bK6GnC1s:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=q5H0qSedEmM:a26bK6GnC1s:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/q5H0qSedEmM" height="1" width="1"/&gt;</description></item><item><title>How to add a favicon in Blogger</title><link>http://www.genlinux.org/2009/10/how-to-add-favicon-in-blogger.html</link><category>Blogger</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Tue, 20 Oct 2009 06:37:05 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-279649337434604402</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T06:37:05.198-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Adding favicon in blogger is very easier, by default blogger will have the default favico.If you know how to use Gimp or Photoshop, then you can use your own creativity to create favico.Or there plenty of sites out there that generates a favicon for you when you upload an image.Do a Google Search for "free favicon Generator" and plenty of sites would come up

I used to create my images in png format, earlier i used to upload my images in Google page creator.Currently Google page creator is getting deprecated, so i have start uploading my images in code.google.com

Now in your blogger go to Layout -&gt; Edit HTML

Now click 'Expand Widget Templates'

Now place

&amp;lt;link href='you url' rel='shortcut icon' type='image/x-icon'/&amp;gt; after

&amp;lt;title&amp;gt;&amp;lt;data:blog.pageTitle/&amp;gt;&amp;lt;/title&amp;gt;

*Note : Please be sure you should place your link href after &amp;lt;title&amp;gt;&amp;lt;data:blog.pageTitle/&amp;gt;&amp;lt;/title&amp;gt;, otherwise you will get the default blogger favico&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PGcPa6osqSrxFFz9NvJkDu0f81E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PGcPa6osqSrxFFz9NvJkDu0f81E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PGcPa6osqSrxFFz9NvJkDu0f81E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PGcPa6osqSrxFFz9NvJkDu0f81E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=SKtvea72008:HqlgfCNWaqM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=SKtvea72008:HqlgfCNWaqM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=SKtvea72008:HqlgfCNWaqM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=SKtvea72008:HqlgfCNWaqM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/SKtvea72008" height="1" width="1"/&gt;</description></item><item><title>Ruby on Rails - Short Summary</title><link>http://www.genlinux.org/2009/10/metaprogramming-in-ruby-on-rails.html</link><category>Reference</category><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Sat, 10 Oct 2009 04:06:52 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-541856847827439994</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-10T04:06:52.332-07:00</app:edited><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_k5UMhaxQDqQ/StBqsDMpZeI/AAAAAAAAF8s/1lnKUxVE0Dc/s72-c/rails.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This article is for my own reference, my honourable thanks to the author  Alanbradburne





Models: ActiveRecord

ActiveRecord is what is known as an Object/Relationship Mapping (ORM) library. An ORM library maps the data stored in a database to a class in your application. This  allows you to access your data without having to worry about the SQL queries or even exactly how the data is accessed. The rows in each database table become instances of an object. Although this sounds complex, in practice, it makes working with a database incredibly simple and easy.

In a Rails application, all of the interaction with the database is performed through ActiveRecord, so learning how to get the most from it is important.







Views and Controllers: ActionPack

ActionPack is simply a collection of libraries and tools to help you build web applications.These provide the “view” and “controller” of the MVC stack.

The view part of ActionPack is used to create the web pages themselves. Since...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ci_ClRA8p53jbVf9PjaPV11awcM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ci_ClRA8p53jbVf9PjaPV11awcM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ci_ClRA8p53jbVf9PjaPV11awcM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ci_ClRA8p53jbVf9PjaPV11awcM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ULXNSBN1_RA:3vSw7t7lWyA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ULXNSBN1_RA:3vSw7t7lWyA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ULXNSBN1_RA:3vSw7t7lWyA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ULXNSBN1_RA:3vSw7t7lWyA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/ULXNSBN1_RA" height="1" width="1"/&gt;</description></item><item><title>Equal height columns with prototype</title><link>http://www.genlinux.org/2009/09/equal-height-columns-with-prototype.html</link><category>Prototype</category><category>Jquery</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Wed, 30 Sep 2009 07:47:57 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-5226858328252895305</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-30T07:47:57.707-07:00</app:edited><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_k5UMhaxQDqQ/SsNlqTHQlPI/AAAAAAAAF7E/X57h91BgJ9g/s72-c/Screenshot-1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>As i am beginner to learn jquery, i surfed in web and got newbie's Equal height columns with jquery.Its seems to be simple and cool.Then i started doing this technique using prototype.I have checked in firebox browsers, it seems to be working fine.



Thanks to the author Rob Glazebrook from Newbie

Server side script from  Newbie(Jquery)

&amp;lt;script language="javascript" type="text/javascript" src="jquery-1.3.2.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script&amp;gt;

function equalHeight(group) {

tallest = 0;

group.each(function() {

thisHeight = $(this).height();

if(thisHeight &amp;gt; tallest) {

tallest = thisHeight;

}

});

group.height(tallest);

}

$(document).ready(function() {

equalHeight($(".column"));

});

&amp;lt;/script&amp;gt;



Server side script from me(Prototype)

&amp;lt;script language="javascript" type="text/javascript" src="prototype-1.6.0.3.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script language='javascript'&amp;gt;

function equalHeight(group) {

tallest = 0;

group.each(function(c) {

thisHeight =...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OtYBaEYadJfb19166avbFZpc9kM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OtYBaEYadJfb19166avbFZpc9kM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OtYBaEYadJfb19166avbFZpc9kM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OtYBaEYadJfb19166avbFZpc9kM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=lTAFPVAxjC8:3UzXHK3CagY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=lTAFPVAxjC8:3UzXHK3CagY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=lTAFPVAxjC8:3UzXHK3CagY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=lTAFPVAxjC8:3UzXHK3CagY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/lTAFPVAxjC8" height="1" width="1"/&gt;</description></item><item><title>Restore original(default) VLC skin and config on Ubuntu</title><link>http://www.genlinux.org/2009/09/restore-originaldefault-vlc-skin-and.html</link><category>linux</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:28:45 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-3772990120978590816</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:28:45.150-07:00</app:edited><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_k5UMhaxQDqQ/SsBlT93MXXI/AAAAAAAAF68/rPgoHPeXVH8/s72-c/vlc.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>If you already have a new skin for your vlc player, but you want to change to its default skin, since many user handy options are not feasible or you mess up the options, then we can start restoring the player to its default one by typing the command in your terminal



vlc --reset-config

&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZDTZNrh1WZ4IwA9WFbIGQDUW0pc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZDTZNrh1WZ4IwA9WFbIGQDUW0pc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZDTZNrh1WZ4IwA9WFbIGQDUW0pc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZDTZNrh1WZ4IwA9WFbIGQDUW0pc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Xmv3TUUWbBI:EZtwccmbBVY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Xmv3TUUWbBI:EZtwccmbBVY:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Xmv3TUUWbBI:EZtwccmbBVY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Xmv3TUUWbBI:EZtwccmbBVY:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/Xmv3TUUWbBI" height="1" width="1"/&gt;</description></item><item><title>Removing white spaces with squish method</title><link>http://www.genlinux.org/2009/09/removing-white-spaces-with-squish.html</link><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Fri, 23 Oct 2009 01:33:16 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-34682728612299971</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-23T01:33:16.651-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Two new methods added to the String object, squish and squish!.


These methods do the same as strip method. It removes white spaces from the beginning and the end of the text. It also


removes unused white-spaces (multiple white-spaces) from the middle of the text Look the example:


“    A    text      full    of       spaces      “.strip


#=&gt; “A       text        full        of        spaces”


“   A   text  full   of   spaces


#=&gt; “A text full of spaces”


&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/D_DTNouHoDN2BIPiNqxU0nn6o_g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D_DTNouHoDN2BIPiNqxU0nn6o_g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/D_DTNouHoDN2BIPiNqxU0nn6o_g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/D_DTNouHoDN2BIPiNqxU0nn6o_g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=vSfaJrq0qp8:DpIvk2Kn01c:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=vSfaJrq0qp8:DpIvk2Kn01c:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=vSfaJrq0qp8:DpIvk2Kn01c:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=vSfaJrq0qp8:DpIvk2Kn01c:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/vSfaJrq0qp8" height="1" width="1"/&gt;</description></item><item><title>Transfer folders from server to server in linux</title><link>http://www.genlinux.org/2009/09/transfre-folders-from-server-to-server.html</link><category>linux</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Fri, 18 Sep 2009 01:00:50 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-5927521360118864155</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-18T01:00:50.284-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>If you want to transfer files or folders from one linux system to another, then scp would be enough.

To get help on the usage of a linux command, just type man scp



Now i want to get the files from Linux A to Linux B





First Login into Linux A and enter into the directory you want to transfer to Linux B



cd /home/Linux A/Music

scp -r foldername linuxb@genlinux.org:/home/Linux B/Music/



For all folders

scp -r * linuxb@genlinux.org:/home/Linux B/Music/



Related posts

Mount remote folders into Linux Machine using sshfs

Moving, renaming, and copying files in linux&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4_0j8gfik_gUWH2ml5NL4i0s5m4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4_0j8gfik_gUWH2ml5NL4i0s5m4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4_0j8gfik_gUWH2ml5NL4i0s5m4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4_0j8gfik_gUWH2ml5NL4i0s5m4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=0poQlL15cJU:lf5mNAeZDz4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=0poQlL15cJU:lf5mNAeZDz4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=0poQlL15cJU:lf5mNAeZDz4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=0poQlL15cJU:lf5mNAeZDz4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/0poQlL15cJU" height="1" width="1"/&gt;</description></item><item><title>Enabling BITS Service in windows operating system</title><link>http://www.genlinux.org/2009/07/enabling-bits-service-in-windows.html</link><category>Windows</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:39:23 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-7360652549552575745</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:39:23.277-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>BITS Service

BITS service must be enabled before you start the installation process.Enable the BITS service  and run the setup again



Click Start&gt; Run&gt; Services.msc, double click BITS and set it to Automatic, then Start, then Apply. &lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1wD0j-Z6cjlFwtK5sBdDqG5jg_A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1wD0j-Z6cjlFwtK5sBdDqG5jg_A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1wD0j-Z6cjlFwtK5sBdDqG5jg_A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1wD0j-Z6cjlFwtK5sBdDqG5jg_A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=mecoMwAWqNM:WiibHvt-nEA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=mecoMwAWqNM:WiibHvt-nEA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=mecoMwAWqNM:WiibHvt-nEA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=mecoMwAWqNM:WiibHvt-nEA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/mecoMwAWqNM" height="1" width="1"/&gt;</description></item><item><title>proxy: No protocol handler was valid for the URL</title><link>http://www.genlinux.org/2009/07/proxy-no-protocol-handler-was-valid-for.html</link><category>Apache</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:40:09 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-748034656219614785</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:40:09.903-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>While trying to configure mod_proxy_balancer.Although i configured everything correctly and enabled all required modules(mod_proxy, mod_proxy_http).But after restarting the apache server i used to get internal server in my browser.Then i verified the apache error log



[warn] proxy: No protocol handler was valid for the URL /login.html. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule







After searching a lot in google i got tips from Serendipitous

In my terminal i created some soft links for proxy_http.load like this

ln -s /etc/apache2/mods-available/proxy_http.load \
/etc/apache2/mods-enabled/proxy_http.load


Now i restarted my server and it was working fine.For the same problem i have referred another usefull blog Kai`s Blog in that they have tried by adding a trailing slash to the url of the balancer like this

&amp;lt;Proxy balancer://mycluster/&amp;gt;
BalancerMember http://foobar.de:8080/...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4wr05nFPE_94uFWqBjP2dYU97co/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4wr05nFPE_94uFWqBjP2dYU97co/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4wr05nFPE_94uFWqBjP2dYU97co/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4wr05nFPE_94uFWqBjP2dYU97co/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9PMLm0JdKbA:8StcSj5lTjQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9PMLm0JdKbA:8StcSj5lTjQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9PMLm0JdKbA:8StcSj5lTjQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9PMLm0JdKbA:8StcSj5lTjQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/9PMLm0JdKbA" height="1" width="1"/&gt;</description></item><item><title>Balancermember Can't find 'byrequests' lb method</title><link>http://www.genlinux.org/2009/07/balancermember-cant-find-byrequests-lb.html</link><category>Apache</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:40:22 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-253013590105964903</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:40:22.694-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>I am using apache 2.2.8 for my debian ubuntu, while configuring apacehe with proxy balancer.I faced the problem "BalancerMember Can't find 'byrequest lb method'".

sudo /etc/init.d/apache2 restart
* Forcing reload of web server (apache2)...
Syntax error on line 673 of /etc/apache2/apache2.conf:
BalancerMember Can't find 'byrequests' lb method
...fail!
## Apache file (from error line)

BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001


ServerName data_seed
DocumentRoot /var/www/ruby/public

Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
RewriteRule ^/$ /index.html [QSA]
Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI}...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Aj2y7eABQHecMkLE0CGGzFrtYEQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Aj2y7eABQHecMkLE0CGGzFrtYEQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Aj2y7eABQHecMkLE0CGGzFrtYEQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Aj2y7eABQHecMkLE0CGGzFrtYEQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Rqg-sdC-Evk:ukZYnLkMLJ4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Rqg-sdC-Evk:ukZYnLkMLJ4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=Rqg-sdC-Evk:ukZYnLkMLJ4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=Rqg-sdC-Evk:ukZYnLkMLJ4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/Rqg-sdC-Evk" height="1" width="1"/&gt;</description></item><item><title>Ruby array transpose</title><link>http://www.genlinux.org/2009/06/ruby-array-transpose.html</link><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:40:33 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-568134054845448274</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:40:33.746-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Ruby Arrays are ordered, integer-indexed collections of any objects.In Array transpose assumes the self is an array of arrays and transposes the rows and columns.

a = [[1,2], [3,4], [5,6]]


Now to create array of array its easy to do rails helper in_groups_of



%w(1 2 3 4 5 6 ).in_groups_of(2,false)

[["1", "2"], ["3", "4"], ["5", "6"]]


Note if the array length is odd then try to pass the array with in_groups_of(number,string)

instead of false

Then with ruby we can use some tricky methods.such as shifting the array position.

array=[["1", "2"], ["3", "4"], ["5", "6"]]



array.transpose

[["1", "3", "5"], ["2", "4", "6"]]&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tkQhjtWeOF0r65s9WbJRCnFFs1o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tkQhjtWeOF0r65s9WbJRCnFFs1o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tkQhjtWeOF0r65s9WbJRCnFFs1o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tkQhjtWeOF0r65s9WbJRCnFFs1o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=_8bkWTG3bms:J2vnbIbNZEA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=_8bkWTG3bms:J2vnbIbNZEA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=_8bkWTG3bms:J2vnbIbNZEA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=_8bkWTG3bms:J2vnbIbNZEA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/_8bkWTG3bms" height="1" width="1"/&gt;</description></item><item><title>linux last modified file | last created file</title><link>http://www.genlinux.org/2009/06/linux-last-modified-file.html</link><category>linux</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 28 Sep 2009 00:40:40 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-1040878539363423135</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-28T00:40:40.114-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>So how do you find Linux / UNIX system last created file or edited file?.The ls utility will list all the files,by doing some combinations from the ls command we can find the results



1.ls -t | awk '{print $1}' | head -1

2.ls -ct1 | head -1

3.ls -rt| tail -1&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dH3sQkp2XsL8Hkf9U0nnM9KY-FE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dH3sQkp2XsL8Hkf9U0nnM9KY-FE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dH3sQkp2XsL8Hkf9U0nnM9KY-FE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dH3sQkp2XsL8Hkf9U0nnM9KY-FE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ptvQQkyhAHU:yv_5e7O4W_w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ptvQQkyhAHU:yv_5e7O4W_w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=ptvQQkyhAHU:yv_5e7O4W_w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=ptvQQkyhAHU:yv_5e7O4W_w:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/ptvQQkyhAHU" height="1" width="1"/&gt;</description></item><item><title>Tips and Tricks</title><link>http://www.genlinux.org/2009/06/tips-and-tricks.html</link><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Thu, 18 Jun 2009 22:25:26 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-3061044461334800850</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-18T22:25:26.007-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><description>Start irb with tab completion enabledirb --readline -r irb/completion
Executing shel commands in ruby
system "curl http://www.google.com"
Combination of in_groups_of and cycle helper
&amp;lt;table&amp;gt;
    &amp;lt;% articles.in_groups_of(2, false) do |row_tasks| %&amp;gt;
    &amp;lt;tr&amp;gt;
        &amp;lt;%row_tasks.each do |task| %&amp;gt;
        &amp;lt;td style=&amp;quot;background-color:&amp;lt;%=cycle(&amp;quot;red&amp;quot;,&amp;quot;white&amp;quot;,&amp;quot;blue&amp;quot;) %&amp;gt;&amp;quot;&amp;gt;
            &amp;lt;%= task.title %&amp;gt;
        &amp;lt;/td&amp;gt;
        &amp;lt;% end %&amp;gt;
    &amp;lt;/tr&amp;gt;
    &amp;lt;% end %&amp;gt;
&amp;lt;/table&amp;gt;

&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WkBfZP6LXeZ6DYQxYVrdgS2StFA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WkBfZP6LXeZ6DYQxYVrdgS2StFA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WkBfZP6LXeZ6DYQxYVrdgS2StFA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WkBfZP6LXeZ6DYQxYVrdgS2StFA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=PxVUDHPDed8:bjp8h921dAk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=PxVUDHPDed8:bjp8h921dAk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=PxVUDHPDed8:bjp8h921dAk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=PxVUDHPDed8:bjp8h921dAk:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/PxVUDHPDed8" height="1" width="1"/&gt;</description></item><item><title>Strip html tags</title><link>http://www.genlinux.org/2009/05/strip-html-tags.html</link><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Sat, 23 May 2009 04:50:41 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-4167878023701487229</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-23T04:50:41.099-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>This article deals with how to strip the html tags and fetch the tags we needed, after referring some of the articles (dzone.snippets) and with the help of my friend Jon

Here  we have used regex with grep method.Pattern for matching the tags /&amp;lt;p&amp;gt;(.+?)&amp;lt;/p&amp;gt;/
For example i have used for p tag

text=&amp;quot;&amp;lt;p&amp;gt;He's the man who helped make \&amp;quot;Slumdog Millionaire\&amp;quot; an international hit, scoring the soundtrack of the Oscar winning film. Despite his performance at the Oscars ceremony and being caught up in all the glitz and adulation, Rahman is a reluctant star.&amp;lt;/p&amp;gt;\r\n&amp;lt;p&amp;gt;He's worked on films since he was a teenager, taking over the role of family breadwinner after his father died and followed in his footsteps as a composer.&amp;lt;/p&amp;gt;\r\n&amp;lt;p&amp;gt;While he had stints writing advertising jingles in India, composing for films as been his life's work so far, yet from his studio in Chennai he admitted to CNN he didn't want to score...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DUBH9eMxIDhESuDBNguXJN3eB7E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DUBH9eMxIDhESuDBNguXJN3eB7E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DUBH9eMxIDhESuDBNguXJN3eB7E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DUBH9eMxIDhESuDBNguXJN3eB7E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=G3LBPSHhbjA:SNPg8iZcllM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=G3LBPSHhbjA:SNPg8iZcllM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=G3LBPSHhbjA:SNPg8iZcllM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=G3LBPSHhbjA:SNPg8iZcllM:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/G3LBPSHhbjA" height="1" width="1"/&gt;</description></item><item><title>Customized truncate helper in rails</title><link>http://www.genlinux.org/2009/05/customized-truncate-helper-in-rails.html</link><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Tue, 19 May 2009 01:43:40 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-6556459407697641573</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-19T01:43:40.938-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>In Rails truncate helper will truncates a given text after a given :length if text is longer than :length (defaults to 30).The problem is that when we  truncate the string by character or word, it will cutoff the text mid-word and creating open tag problems.

So i started referring some of the articles Pretty truncate helper and customized my own helper like this

def truncate_words(text, length = 30, string = "...")
      return if text.nil?
      l = text.index(/\s/,length)
      text.chars.length &gt; length ? text[0,l] + string : text + string
end

Example

&gt;&gt; text
=&gt; "In unprecedented market conditions, Murex retained its top position in Risk's 2008 technology rankings. However, Thomson Reuters and Algorithmics are close behind, demonstrating that, despite the financial crisis, competition among software vendors remains as fierce as ever. By Clive Davidson, with research by Xiao-Long Chen"
&gt;&gt; helper.truncate(text,130)
=&gt; "In unprecedented market conditions, Murex retained its top...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/75xII4VPLT1ky1WiG9UzcPjIN6g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/75xII4VPLT1ky1WiG9UzcPjIN6g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/75xII4VPLT1ky1WiG9UzcPjIN6g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/75xII4VPLT1ky1WiG9UzcPjIN6g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=aqRIibui2vM:rftIDnNY2SQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=aqRIibui2vM:rftIDnNY2SQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=aqRIibui2vM:rftIDnNY2SQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=aqRIibui2vM:rftIDnNY2SQ:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/aqRIibui2vM" height="1" width="1"/&gt;</description></item><item><title>Working with Hashes</title><link>http://www.genlinux.org/2009/05/working-with-hashes.html</link><category>Reference</category><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Fri, 15 May 2009 14:16:42 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-6545461534645474445</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-15T14:16:42.048-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>A Hash is a collection of key-value pairs. It is similar to an Array, except that indexing is done via arbitrary keys of any object type, not an integer index. The order in which you traverse a hash by either key or value may seem arbitrary, and will generally not be in the insertion order.

Deleting Key/Value Pairs
Key/value pairs of a Hash object can be deleted using clear, delete, delete_if, reject, reject!, and shift.
Use clear to remove all key/value pairs. This is essentially the same as assigning a new empty hash, but it's marginally faster.
Use shift to remove an unspecified key/value pair. This method returns the pair as a two-element array (or nil if no keys are left):irb(main):004:0&gt; a={5=&gt;6,7=&gt;8}
=&gt; {5=&gt;6, 7=&gt;8}
irb(main):005:0&gt; b=a.shift
=&gt; [5, 6]
irb(main):006:0&gt; a
=&gt; {7=&gt;8}
irb(main):007:0&gt;
Use delete to remove a specific key/value pair. It accepts a key and returns the value associated with the key removed (if found). If the key is not found, the default value is...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hHSJxWd1l-YNrLZhUir2Vh0taXQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hHSJxWd1l-YNrLZhUir2Vh0taXQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hHSJxWd1l-YNrLZhUir2Vh0taXQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hHSJxWd1l-YNrLZhUir2Vh0taXQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=YGULxyaPnf8:YrKJEEz9Oeo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=YGULxyaPnf8:YrKJEEz9Oeo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=YGULxyaPnf8:YrKJEEz9Oeo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=YGULxyaPnf8:YrKJEEz9Oeo:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/YGULxyaPnf8" height="1" width="1"/&gt;</description></item><item><title>Randomizing an Array</title><link>http://www.genlinux.org/2009/05/randomizing-array.html</link><category>Reference</category><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Tue, 12 May 2009 03:09:41 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-4764971161208513659</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-12T03:09:41.761-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><description>This article deals about ruby array randomize.Some of the piece of code available are taken from web.If we want to scramble an array into a random order, then we want to use the rand in the kernel module

Ruby array randomize
By slice &amp; rand
class Array
def random
a=self.dup
result=[]
self.length.times do
result  [1, 2, 3, 4, 5]
irb(main):107:0&gt; x.random
=&gt; [1, 4, 5, 2, 3]
irb(main):108:0&gt; x.random
=&gt; [1, 4, 3, 5, 2]
irb(main):109:0&gt; x.random
=&gt; [4, 2, 3, 1, 5]By Sort_by &amp; randrandomize=(1..10).to_a.sort_by{rand}=&gt; [1, 4, 6, 2, 5, 3]
irb(main):262:0&gt; x.sort_by{rand}
=&gt; [4, 5, 3, 1, 6, 2]
irb(main):263:0&gt; x.sort_by{rand}
=&gt; [3, 1, 6, 2, 4, 5]
irb(main):264:0&gt; x.sort_by{rand}
=&gt; [2, 1, 6, 3, 5, 4]

&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5_SZLk42CeNxXEoY0JPpBJTr05k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5_SZLk42CeNxXEoY0JPpBJTr05k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5_SZLk42CeNxXEoY0JPpBJTr05k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5_SZLk42CeNxXEoY0JPpBJTr05k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9pfMz56QqUA:WRpVcz02svE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9pfMz56QqUA:WRpVcz02svE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=9pfMz56QqUA:WRpVcz02svE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=9pfMz56QqUA:WRpVcz02svE:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/9pfMz56QqUA" height="1" width="1"/&gt;</description></item><item><title>Vertical navigation menus</title><link>http://www.genlinux.org/2009/05/vertical-navigation-menus.html</link><category>Navigation</category><category>Jquery</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Fri, 08 May 2009 08:11:58 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-3241621277247227377</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-08T08:11:58.445-07:00</app:edited><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_k5UMhaxQDqQ/SgREXdf7c0I/AAAAAAAAFsE/iUJuwI2oErY/s72-c/Screenshot-1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Navigation is the most significant element in webdesign.This article presents the implementation of vertical sliding navigation menus


In this we have used the slidetoggle effects for sliding the menus in onlcik event.
For live demo Click here
Code

&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;jquery.min.js&amp;quot;&amp;gt;
        &amp;lt;/script&amp;gt;
        &amp;lt;style type='text/css'&amp;gt;
            body {
                font-family: Arial, Helvetica, sans-serif;
                font-size: 12px;
                background: #3A362F;
            }
            
            ul, li {
                margin: 0;
                padding: 0;
                list-style: none;
            } .menu_body li {
                background: #fff;
            } .menu_body li a {
                color: #333;
                text-decoration: none;
                padding: 10px;
                display: block;
            } .menu_body {
                display: none;
...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Ihuxw5iQAdWoiB-MxLVsD_feCTs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ihuxw5iQAdWoiB-MxLVsD_feCTs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Ihuxw5iQAdWoiB-MxLVsD_feCTs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ihuxw5iQAdWoiB-MxLVsD_feCTs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=GqA7z3ZTDLo:wB70HA4m1pA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=GqA7z3ZTDLo:wB70HA4m1pA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=GqA7z3ZTDLo:wB70HA4m1pA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=GqA7z3ZTDLo:wB70HA4m1pA:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/GqA7z3ZTDLo" height="1" width="1"/&gt;</description></item><item><title>SHUTDOWN/REBOOT in linux</title><link>http://www.genlinux.org/2009/05/shutdownreboot-in-linux.html</link><category>linux</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Mon, 04 May 2009 01:50:35 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-4248029322666209367</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-04T01:50:35.766-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Basic command to shutdown/reboot  the system in terminal modeTo shutdown your system
shutdown -h now "message"This command will shutdown the system.The message can be any message you want send when shutdown/reboot.If you want to shutdown the system for a specific time,then useshutdown -h hh:mm "message"Here hh is hours and mm is minutes.To rebootshutdown -r now "message"To reboot the system for automated specific time then,shutdown -r hh:mm "message"

&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5NqbCdVvYTiqjY0_MFo-LIRV_RU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5NqbCdVvYTiqjY0_MFo-LIRV_RU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5NqbCdVvYTiqjY0_MFo-LIRV_RU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5NqbCdVvYTiqjY0_MFo-LIRV_RU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=IfCLm9BIb6M:EvslQUxSV-o:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=IfCLm9BIb6M:EvslQUxSV-o:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=IfCLm9BIb6M:EvslQUxSV-o:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=IfCLm9BIb6M:EvslQUxSV-o:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/IfCLm9BIb6M" height="1" width="1"/&gt;</description></item><item><title>Free Blogger Template -001</title><link>http://www.genlinux.org/2009/04/free-blogger-template-001.html</link><category>Blogger</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Sat, 02 May 2009 00:51:42 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-4773856481907665742</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-02T00:51:42.259-07:00</app:edited><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_qa-CBLK7YBM/SfgAMQsIceI/AAAAAAAAAR4/ACX8u1E19WM/s72-c/Screenshot-1.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><description>This was our first blogger templates design, here we have customized the templates so that you can used 300x250 ad slots for more than 2 times,After the header we have created a block so that you can create your welcome text.In down footer part also you can add your text.If you want to customize our template,then go to edit html section.If you want to place share script, then get the code from sharethis.com.Then you can add your own menus in the navigation area.
Live Demo
Download Template&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hmf-N3hf_lj1iG_RPKDGFXHuZQU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hmf-N3hf_lj1iG_RPKDGFXHuZQU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hmf-N3hf_lj1iG_RPKDGFXHuZQU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hmf-N3hf_lj1iG_RPKDGFXHuZQU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=DdcUiylA0JM:tHP4mfhXKJ4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=DdcUiylA0JM:tHP4mfhXKJ4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=DdcUiylA0JM:tHP4mfhXKJ4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=DdcUiylA0JM:tHP4mfhXKJ4:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/DdcUiylA0JM" height="1" width="1"/&gt;</description></item><item><title>Remote Diff in linux</title><link>http://www.genlinux.org/2009/04/remote-diff-in-linux.html</link><category>linux</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Tue, 28 Apr 2009 10:13:54 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-8212648096439242849</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-28T10:13:54.824-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>Basically we will be using the diff command to compare between the files, but if we want to compare between two remote servers.Then we have use the diff command in a different format like this
ssh &amp;lt;remote-host&amp;gt; "cat /path/to/remotefile" | diff - /path/to/localfile


For example
gen@lostwarrior:~/Mypace/base/layout$ ssh gen@genlinux.org "cat /home/genlinux/base/layout/base.txt" | diff - /home/gen/base/layout/base.txt

Here gen@genlinux.org is the remote server/home/genlinux/base/layout/base.txt is the remote file/home/gen/base/layout/base.txt is the local file
&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GvKyPkQ6uJp_AL1mXsfr-N6HGG4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GvKyPkQ6uJp_AL1mXsfr-N6HGG4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GvKyPkQ6uJp_AL1mXsfr-N6HGG4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GvKyPkQ6uJp_AL1mXsfr-N6HGG4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=3aD2va9ojKY:fciI6BOoT24:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=3aD2va9ojKY:fciI6BOoT24:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=3aD2va9ojKY:fciI6BOoT24:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=3aD2va9ojKY:fciI6BOoT24:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/3aD2va9ojKY" height="1" width="1"/&gt;</description></item><item><title>Apache configuration for single application serving requests from mulitple domains</title><link>http://www.genlinux.org/2009/04/apache-configuration-for-sigle.html</link><category>Apache</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Wed, 22 Apr 2009 09:30:52 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-5411158187695635500</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-22T09:30:52.856-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
&amp;lt;IfModule mod_proxy.c&amp;gt;
ProxyRequests Off

&amp;lt;Proxy *&amp;gt;
    Order deny,allow
    Deny from all
    Allow from all
&amp;lt;/Proxy&amp;gt;

#ProxyPass / http://127.0.0.1:8000/dl
#ProxyPassReverse / http://127.0.0.1:8000/dl
#ProxyPreserveHost On


&amp;lt;/IfModule&amp;gt;
# End of proxy directives.

Listen 8080
&amp;lt;VirtualHost *:8080&amp;gt;
  &amp;lt;Location /&amp;gt;
    SetHandler balancer-manager
    Deny from all
    Allow from localhost
  &amp;lt;/Location&amp;gt;
&amp;lt;/VirtualHost&amp;gt;

&amp;lt;Proxy balancer://mongrel_cluster&amp;gt;
    BalancerMember http://127.0.0.1:7000
    BalancerMember http://127.0.0.1:7001
    BalancerMember http://127.0.0.1:7002
&amp;lt;/Proxy&amp;gt;

&amp;lt;VirtualHost *:80&amp;gt;
Include /etc/apache2/sites-enabled/1.conf

ServerName example1.com
LogFormat &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b&amp;quot; common
ErrorLog /home/logs/error_log
CustomLog /home/logs/access_log...&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VH7EW6e94zVn2kCiOi3eyj7Zp_k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VH7EW6e94zVn2kCiOi3eyj7Zp_k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VH7EW6e94zVn2kCiOi3eyj7Zp_k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VH7EW6e94zVn2kCiOi3eyj7Zp_k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=7Lwpm3LLsPk:IgxVESmZIfs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=7Lwpm3LLsPk:IgxVESmZIfs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=7Lwpm3LLsPk:IgxVESmZIfs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=7Lwpm3LLsPk:IgxVESmZIfs:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/7Lwpm3LLsPk" height="1" width="1"/&gt;</description></item><item><title>Date time format with suffix in ruby on rails</title><link>http://www.genlinux.org/2009/04/date-time-format-with-suffix-in-ruby-on.html</link><category>Ruby</category><author>gen@blogger.com (Gen.lostwarrior)</author><pubDate>Tue, 21 Apr 2009 12:20:18 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-3740198534103035251.post-6720936285227760355</guid><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-21T12:20:18.652-07:00</app:edited><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><description>For formatting the date time with suffixes like (st,th,rd,nd) rails provides ordinalize helper which will truns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. 

&gt;&gt; time = Time.new
=&gt; Tue Apr 21 19:11:13 +0000 2009
&gt;&gt; time.strftime("%a %b #{time.ordinalize}")
=&gt; "Tue Apr 21st" 

Note that this is inside a  Rails console so if you did this in plain Ruby, you'd have to require 'rubygems' and require 'activesupport' to get Fixnum#ordinalize


&lt;br/&gt;
&lt;br/&gt;
[[ This is a content summary only. Visit my website for full links, other content, and more! ]]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7y2x1eFl-DFxqMg42Ov6aU0Kl6k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7y2x1eFl-DFxqMg42Ov6aU0Kl6k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7y2x1eFl-DFxqMg42Ov6aU0Kl6k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7y2x1eFl-DFxqMg42Ov6aU0Kl6k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=rmWcxmjVg88:n9GdM8dZ6EI:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=rmWcxmjVg88:n9GdM8dZ6EI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?i=rmWcxmjVg88:n9GdM8dZ6EI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/genlinux2?a=rmWcxmjVg88:n9GdM8dZ6EI:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/genlinux2?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/genlinux2/~4/rmWcxmjVg88" height="1" width="1"/&gt;</description></item></channel></rss>
