<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DU8FSX4ycCp7ImA9WhRUEU4.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449</id><updated>2012-01-21T14:53:38.098+05:30</updated><category term="mobile" /><category term="install-instructions" /><category term="not opening" /><category term="rohtnag-paas" /><category term="controllers" /><category term="installation" /><category term="in-memory" /><category term="web-development" /><category term="funny" /><category term="icons" /><category term="web" /><category term="innova" /><category term="elections" /><category term="side effects" /><category term="cartoons" /><category term="Delhi" /><category term="Makar Sankarnti" /><category term="train" /><category term="rubyonrails" /><category term="client is too old" /><category term="chrome" /><category term="picasa" /><category term="sushant lok - 1" /><category term="surajkund" /><category term="faridabad" /><category term="gemfile" /><category term="css" /><category term="indexer" /><category term="snapshots" /><category term="render" /><category term="NetBook" /><category term="Roadside" /><category term="Secondary DNS" /><category term="ROKR" /><category term="rails" /><category term="brokencompass" /><category term="publicity stunt" /><category term="rmagick" /><category term="group" /><category term="parking" /><category term="kwippy" /><category term="Lohri" /><category term="mela" /><category term="Manali" /><category term="broken compass" /><category term="mps" /><category term="humor" /><category term="voting" /><category term="ubuntu 11.10" /><category term="sunset" /><category term="forward" /><category term="mysql" /><category term="tata" /><category term="rails 3" /><category term="interning empty string" /><category term="ruby 1.9" /><category term="mpstechnologies" /><category term="mysql table crashing" /><category term="rvm" /><category term="positivity" /><category term="synchronous ajax request" /><category term="wordpress" /><category term="ajax post" /><category term="dns" /><category term="praveen" /><category term="safar" /><category term="mtnl" /><category term="change-svn-wc-format.py" /><category term="mongrel" /><category term="base" /><category term="send_data" /><category term="ssl" /><category term="208.67.222.222" /><category term="web browser" /><category term="Error establishing a database connection" /><category term="webrick" /><category term="ubuntu" /><category term="serialize" /><category term="error" /><category term="GPRS" /><category term="van" /><category term="remote functions" /><category term="prototype" /><category term="svn" /><category term="google" /><category term="E6" /><category term="ruby" /><category term="collage" /><category term="url" /><category term="tortoiseSVN" /><category term="activerecord" /><category term="technology" /><category term="11.04" /><category term="3 steps" /><category term="airtel" /><category term="introduction" /><category term="send_file" /><category term="EeePC" /><category term="Primary DNS" /><category term="jira" /><category term="rediret_to" /><category term="chaata" /><category term="opportunity" /><category term="switch" /><category term="gnome" /><category term="memcache" /><category term="not working" /><category term="atlassian" /><category term="find" /><category term="cp" /><category term="picture" /><category term="radio mirchi" /><category term="Marshal" /><category term="comparison" /><category term="praveen kumar sinha" /><category term="browser" /><category term="yahoo search" /><category term="script" /><category term="forms" /><category term="windows" /><category term="image" /><category term="motorola" /><category term="file" /><category term="search result" /><category term="India" /><category term="thinking" /><category term="car" /><category term="linux" /><category term="apache" /><category term="hack" /><category term="New Delhi" /><category term="wrong" /><category term="me" /><category term="recession" /><category term="pretty-urls" /><category term="hindi" /><category term="views" /><category term="sqlite" /><category term="slideshows" /><category term="rename" /><category term="208.67.220.220" /><category term="ASUS" /><category term="resign" /><category term="issue" /><category term="trip" /><category term="netbeans" /><category term="ree" /><category term="constituency" /><category term="feature" /><category term="twitter" /><category term="lalu prasad yadav" /><category term="google search" /><category term="server" /><category term="https" /><category term="vote" /><category term="full text search engine" /><category term="slideshare" /><category term="gurgaon" /><category term="toyota" /><category term="link_to_remote" /><category term="fat" /><category term="myisamchk" /><category term="christmas 2008" /><category term="truck" /><title>Praveen Kumar Sinha +</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://anaphoral.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/PraveenKumarSinha" /><feedburner:info uri="praveenkumarsinha" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;A0ACQnw-fSp7ImA9WhRXEEQ.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-4404098659138246626</id><published>2011-12-17T10:38:00.008+05:30</published><updated>2011-12-17T10:59:23.255+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-17T10:59:23.255+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="issue" /><category scheme="http://www.blogger.com/atom/ns#" term="ree" /><category scheme="http://www.blogger.com/atom/ns#" term="rvm" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu 11.10" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Issue: Installing ree ruby via rvm in ubuntu 11.10</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IxZXb-hSADsuJgN0zr6rrizWsis/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IxZXb-hSADsuJgN0zr6rrizWsis/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/IxZXb-hSADsuJgN0zr6rrizWsis/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IxZXb-hSADsuJgN0zr6rrizWsis/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;So if you have tried installing REE on Ubuntu 11.10 something like&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;font-size:68%;"&gt;praveen@praveen-laptop:~$ rvm install ree&lt;br /&gt;Installing Ruby Enterprise Edition from source to: /home/praveen/.rvm/rubies/ree-1.8.7-2011.03&lt;br /&gt;ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)&lt;br /&gt;% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current&lt;br /&gt;                               Dload  Upload   Total   Spent    Left  Speed&lt;br /&gt;100   184  100   184    0     0    107      0  0:00:01  0:00:01 --:--:--   567&lt;br /&gt;100 7713k  100 7713k    0     0  32397      0  0:04:03  0:04:03 --:--:-- 33764&lt;br /&gt;ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /home/praveen/.rvm/src/ree-1.8.7-2011.03&lt;br /&gt;Applying patch 'tcmalloc' (located at /home/praveen/.rvm/patches/ree/1.8.7/tcmalloc.patch)&lt;br /&gt;Applying patch 'stdout-rouge-fix' (located at /home/praveen/.rvm/patches/ree/1.8.7/stdout-rouge-fix.patch)&lt;br /&gt;Applying patch 'no_sslv2' (located at /home/praveen/.rvm/patches/ree/1.8.7/no_sslv2.diff)&lt;br /&gt;ree-1.8.7-2011.03 - #installing&lt;br /&gt;ERROR: Error running './installer -a /home/praveen/.rvm/rubies/ree-1.8.7-2011.03  --dont-install-useful-gems ', please read /home/praveen/.rvm/log/ree-1.8.7-2011.03/install.log&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ERROR: &lt;span style="font-style: italic;"&gt;There has been an error while trying to run the ree installer. Halting the installation.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;and now that you will follow the log you will notice some dependencies not met and hence installation failed, some thing like this. &lt;blockquote&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;Checking for required software...&lt;br /&gt;* C compiler... found at /usr/bin/gcc&lt;br /&gt;* C++ compiler... found at /usr/bin/g++&lt;br /&gt;* The 'make' tool... found at /usr/bin/make&lt;br /&gt;* The 'patch' tool... found at /usr/bin/patch&lt;br /&gt;* Zlib development headers... not found&lt;br /&gt;* OpenSSL development headers... not found&lt;br /&gt;* GNU Readline development headers... not found&lt;/span&gt;&lt;/blockquote&gt;but as per suggestion&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;blockquote&gt; * To install GNU Readline development headers:&lt;br /&gt; Please run apt-get install libreadline5-dev as root.&lt;/blockquote&gt;&lt;/span&gt;Package libreadline5-dev is not available, but is referred to by another package.&lt;br /&gt;This may mean that the package is missing, has been obsoleted, or&lt;br /&gt;is only available from another source.&lt;br /&gt;So instead install libreadline-gplv2-dev&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;blockquote&gt; * To install GNU Readline development headers:&lt;br /&gt; Please run apt-get install libreadline-gplv2-dev as root.&lt;/blockquote&gt;&lt;/span&gt;And you are good to go :)&lt;br /&gt;&lt;br /&gt;These information are not tough to find but summarizing it just in case some body is in need of it in a quicky!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-4404098659138246626?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/s4xAXqJcRyM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/4404098659138246626/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/12/issue-installing-ree-ruby-via-rvm-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4404098659138246626?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4404098659138246626?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/s4xAXqJcRyM/issue-installing-ree-ruby-via-rvm-in.html" title="Issue: Installing ree ruby via rvm in ubuntu 11.10" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/12/issue-installing-ree-ruby-via-rvm-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EFSX88fCp7ImA9WhRSFU0.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-587979026779635724</id><published>2011-11-17T11:02:00.006+05:30</published><updated>2011-11-17T11:30:18.174+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-17T11:30:18.174+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="serialize" /><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="Marshal" /><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>What the hell! Can't serialize a Mysql object with Marshal in Ruby</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bPQV4Q0I1gRnwX0sxZJEmTNbtjQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bPQV4Q0I1gRnwX0sxZJEmTNbtjQ/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/bPQV4Q0I1gRnwX0sxZJEmTNbtjQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bPQV4Q0I1gRnwX0sxZJEmTNbtjQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Okey&lt;/span&gt; so got this strange information late in night at about 3.50am and it took more than 2 hrs for me to surrender. &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;uff&lt;/span&gt; :D&lt;br /&gt;and this is something that came in picture&lt;br /&gt;&lt;blockquote&gt;`dump': no marshal_dump is defined for class &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Mysql&lt;/span&gt; (&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;TypeError&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;and this is a small code snippet which will give you this situation&lt;br /&gt;&lt;blockquote&gt;require "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;rubygems&lt;/span&gt;"&lt;br /&gt;require "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;mysql&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;class &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;RandomClass&lt;/span&gt;&lt;br /&gt; def initialize&lt;br /&gt;  @db_instance = &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;Mysql&lt;/span&gt;.real_connect("&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;hostname&lt;/span&gt;", "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;username&lt;/span&gt;", "password", "database_name")&lt;br /&gt; end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;random_class = &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;RandomClass&lt;/span&gt;.new&lt;br /&gt;a = Marshal.dump(random_class)&lt;/blockquote&gt;&lt;br /&gt;and there you are, so one can't serialize a object with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;MySql&lt;/span&gt; object in it and with the set of finding i can even say that serializing even with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;yaml&lt;/span&gt; is also not possible.&lt;br /&gt;&lt;br /&gt;So work around to this that i can suggest is to do a close of live &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;mysql&lt;/span&gt; object in the method itself so that at any give time when object will be passed to serialization using Marshal.dump there would be no live &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;MySql&lt;/span&gt; object to hinder with serialization :)&lt;br /&gt;&lt;br /&gt;try this piece of snippet now&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;require "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;rubygems&lt;/span&gt;"&lt;br /&gt;require "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;mysql&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;class &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;RandomClass&lt;/span&gt;&lt;br /&gt; def initialize&lt;br /&gt;  db_instance = &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;Mysql&lt;/span&gt;.real_connect("&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;hostname&lt;/span&gt;", "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;username&lt;/span&gt;", "password", "database_name")&lt;br /&gt;db_instance.close&lt;br /&gt; end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;random_class = &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;RandomClass&lt;/span&gt;.new&lt;br /&gt;a = Marshal.dump(random_class)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;And this should work :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-587979026779635724?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/TSgL-YRy5bI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/587979026779635724/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/11/what-hell-cant-serialize-mysql-object.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/587979026779635724?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/587979026779635724?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/TSgL-YRy5bI/what-hell-cant-serialize-mysql-object.html" title="What the hell! Can't serialize a Mysql object with Marshal in Ruby" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/11/what-hell-cant-serialize-mysql-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUMQ3o4fCp7ImA9WhdRGU8.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-5779506360261542718</id><published>2011-08-09T13:52:00.001+05:30</published><updated>2011-08-10T02:41:22.434+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-10T02:41:22.434+05:30</app:edited><title>How to create .rvmrc file</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RkmWjChRzMDOueSxiwW24N5oFeY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkmWjChRzMDOueSxiwW24N5oFeY/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/RkmWjChRzMDOueSxiwW24N5oFeY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RkmWjChRzMDOueSxiwW24N5oFeY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;blockquote&gt;rvm --create --rvmrc ruby-1.8.7-p352@gemset&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;Execute above command from the rails directory with obviously correct ruby version and gemset :) and enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-5779506360261542718?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/51wJtDbNp1A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/5779506360261542718/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/08/how-to-create-rvmrc-file.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5779506360261542718?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5779506360261542718?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/51wJtDbNp1A/how-to-create-rvmrc-file.html" title="How to create .rvmrc file" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/08/how-to-create-rvmrc-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AMRnc-cCp7ImA9WhZUEE4.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-4798319463562863089</id><published>2011-06-02T23:59:00.004+05:30</published><updated>2011-06-03T00:06:27.958+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-03T00:06:27.958+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="server" /><category scheme="http://www.blogger.com/atom/ns#" term="gemfile" /><category scheme="http://www.blogger.com/atom/ns#" term="mongrel" /><category scheme="http://www.blogger.com/atom/ns#" term="rails 3" /><category scheme="http://www.blogger.com/atom/ns#" term="webrick" /><title>How to enable Mongrel instead of Webrick for Rails3 app</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/V1ZpTr1axAR7fCRSjZQOrPHJX78/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V1ZpTr1axAR7fCRSjZQOrPHJX78/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/V1ZpTr1axAR7fCRSjZQOrPHJX78/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/V1ZpTr1axAR7fCRSjZQOrPHJX78/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;To enable mongrel instead of Webrick for Rails3 application add following lines in Gemfile of the app &lt;blockquote&gt;#Use mongrel as the web server&lt;br /&gt;gem 'mongrel', '&amp;gt;= 1.2.0.pre2'&lt;br /&gt;&lt;/blockquote&gt; and do a bundle install and then of you start the server.. mongrel would be booting instead of Webrick&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-4798319463562863089?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/TcwWsEr2DKE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/4798319463562863089/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/06/how-to-enable-mongrel-instead-of.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4798319463562863089?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4798319463562863089?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/TcwWsEr2DKE/how-to-enable-mongrel-instead-of.html" title="How to enable Mongrel instead of Webrick for Rails3 app" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/06/how-to-enable-mongrel-instead-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUDRXc8eip7ImA9WhZWFU8.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-1697053522753547610</id><published>2011-05-16T10:29:00.009+05:30</published><updated>2011-05-16T10:51:14.972+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-16T10:51:14.972+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="11.04" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="gnome" /><title>Revert back to Default look n feel of Ubuntu 11.04</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aqzUe4WCNVvOAQmH-pTud4S6ujw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aqzUe4WCNVvOAQmH-pTud4S6ujw/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/aqzUe4WCNVvOAQmH-pTud4S6ujw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aqzUe4WCNVvOAQmH-pTud4S6ujw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Well guys i am back again.. and this time it is pretty fast :).&lt;br /&gt;I downloaded &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt; 11.04 and after installation complete also tried installing desktop effects available (and runs fabulously good) in previous version of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt;. And this time &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;to&lt;/span&gt; using synaptic manager the installation was a breeze but the effect was something else :D&lt;br /&gt;&lt;br /&gt;In 11.04 there is common menu-bar and then there is vertical side bar looks more like windows 7(but vertically placed) so i don;t know(if i am able to run those eff3&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;cts&lt;/span&gt;&lt;/span&gt; successfully) how will they react with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;UI&lt;/span&gt;&lt;/span&gt;... well that is a future thought.&lt;br /&gt;&lt;br /&gt;But the current situation was my fresh install of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt; 11.04 was messed up and now i was not able to view the menu-bar and there is no bar from where i can try to fix it.. run dialog box was also not coming in picture on press of Alt + F2.&lt;br /&gt;&lt;br /&gt;And the last resort was to again redo the install(which was expensive in terms of time consumed) so what to do. This is what i did and it worked for me.. hope it works for you too (if you ever get dirty with effects  on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-weight: bold;"&gt;Step 01:&lt;/span&gt; Right click on desktop and click on "Create a launcher"(because i was only able to see the desktop.. a blank desktop!!)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 02:&lt;/span&gt; Provide name as "Terminal" and command as "gnome-terminal" and click on OK.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 03:&lt;/span&gt; Now double click the newly created launcher to open up a console terminal(with no head bar and no menu bar)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 04:&lt;/span&gt; Issue following two commands one by one.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;gconftool&lt;/span&gt;&lt;/span&gt; --recursive-unset /apps/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;compiz&lt;/span&gt;&lt;/span&gt;-1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;gconftool&lt;/span&gt;&lt;/span&gt; --recursive-unset /apps/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;compizconfig&lt;/span&gt;&lt;/span&gt;-1&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Wait for some time and you will get native &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;UI&lt;/span&gt;&lt;/span&gt; back on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt; 11.04 (if not try log-out and log-in back) :)&lt;br /&gt;Well my thoughts stopped working when i lost the panels and menu-bar of 11.04 and this thing came first in my mind and it worked (for me). If there is/are any thing much better than this(which i am  obviously unaware of) please provide that too in comment.. it may help somebody.&lt;br /&gt;&lt;br /&gt;Till that time &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;chaow&lt;/span&gt;&lt;/span&gt;!&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-1697053522753547610?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/i0tRRmBJXBk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/1697053522753547610/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/05/revert-back-to-default-look-n-feel-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1697053522753547610?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1697053522753547610?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/i0tRRmBJXBk/revert-back-to-default-look-n-feel-of.html" title="Revert back to Default look n feel of Ubuntu 11.04" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/05/revert-back-to-default-look-n-feel-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cAQ34-eCp7ImA9WhZWEEg.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-2472749472348400062</id><published>2011-05-11T00:28:00.004+05:30</published><updated>2011-05-11T00:47:22.050+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-11T00:47:22.050+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="wordpress" /><category scheme="http://www.blogger.com/atom/ns#" term="mysql table crashing" /><category scheme="http://www.blogger.com/atom/ns#" term="mysql" /><category scheme="http://www.blogger.com/atom/ns#" term="myisamchk" /><category scheme="http://www.blogger.com/atom/ns#" term="Error establishing a database connection" /><title>"Error establishing a database connection" from wordpress even when db credentials are correct</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lFgP_b9AsOuzD0qE78huk_uGvuo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lFgP_b9AsOuzD0qE78huk_uGvuo/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/lFgP_b9AsOuzD0qE78huk_uGvuo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lFgP_b9AsOuzD0qE78huk_uGvuo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Yes i got hit by this just today!!&lt;br /&gt;&lt;br /&gt;Let me tell you guys one thing i am not that much into Wordpress for any reason. But one of my blog is on Wordpress and obviously i am not the person who manages it but i do look into technical stuff if it goes out of hand(of my buddy)&lt;br /&gt;&lt;br /&gt;Encountered a strange problem where in an existing install of Wordpress(which is about 1 year old) showed a message "Error establishing a database connection" in complete page, all of a sudden. wooohhhh!!!&lt;br /&gt;&lt;br /&gt;and then i tried looking out for any changes in wp-config.php(which stores db credentials) but they all were fine. I crossed checked it by manually connecting to the db with credentials provided from console and yes i was able to connect to but Wordpress was telling me that it didn't.&lt;br /&gt;&lt;br /&gt;I thought lets take a backup of the existing database and then try to debug it (so that in case i loose some data during this play i am in a position to recover too) but there was something waiting for me.... ufff!!!!&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mysqldump -u some_user -psome_password xxxxxxxxx_blog &amp;gt; xxxxxxxxx_blog.dump.sql&lt;/blockquote&gt;&lt;br /&gt;and i got this in response&lt;br /&gt;&lt;blockquote&gt;mysqldump: Got error: 145: Table './xxxxxxxxx_blog/xxxxxxxxxblog_options' is marked as crashed and should be repaired when using LOCK TABLES&lt;/blockquote&gt;&lt;br /&gt;so due to some activity we have blog's options table all messed up... so what to do!!&lt;br /&gt;&lt;br /&gt;Answer is go to /var/lib/mysql/&lt;br /&gt;and run myisamchk on the tables mentioned that should fix it.&lt;br /&gt;&lt;br /&gt;something like..&lt;br /&gt;&lt;blockquote&gt;sudo myisamchk -r ./xxxxxxxxx_blog/xxxxxxxxxblog_options &lt;/blockquote&gt;&lt;br /&gt;with output:&lt;br /&gt;&lt;blockquote&gt;- recovering (with sort) MyISAM-table './xxxxxxxxx_blog/xxxxxxxxxblog_options'&lt;br /&gt;Data records: 210&lt;br /&gt;- Fixing index 1&lt;br /&gt;- Fixing index 2&lt;br /&gt;Data records: 208&lt;/blockquote&gt;&lt;br /&gt;and whola!!! my blog is back :D&lt;br /&gt;&lt;br /&gt;Hope this must have helped you in anyway or the other.... will be back soon with more life like post.. these computer tech blogs.. uff uff!!&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-2472749472348400062?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/ImmXVv4qy88" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/2472749472348400062/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/05/error-establishing-database-connection.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2472749472348400062?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2472749472348400062?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/ImmXVv4qy88/error-establishing-database-connection.html" title="&quot;Error establishing a database connection&quot; from wordpress even when db credentials are correct" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/05/error-establishing-database-connection.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0UGR3w6fip7ImA9Wx9UEkk.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-3068345132327836839</id><published>2011-02-09T14:14:00.002+05:30</published><updated>2011-02-09T14:17:06.216+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-09T14:17:06.216+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="installation" /><category scheme="http://www.blogger.com/atom/ns#" term="install-instructions" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="ruby 1.9" /><category scheme="http://www.blogger.com/atom/ns#" term="rails 3" /><title>How to install ruby 1.9 and rails with RVM</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Q_GAb-ZUOq8ix1s1OI9A55S-2lU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q_GAb-ZUOq8ix1s1OI9A55S-2lU/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/Q_GAb-ZUOq8ix1s1OI9A55S-2lU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Q_GAb-ZUOq8ix1s1OI9A55S-2lU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Just follow these steps&lt;br /&gt;&lt;blockquote&gt;ruby -v&lt;br /&gt;mkdir -p ~/.rvm/src/ &amp;&amp; cd ~/.rvm/src &amp;&amp; rm -rf ./rvm/ &amp;&amp; git clone git://github.com/wayneeseguin/rvm.git &amp;&amp; cd rvm &amp;&amp; ./install&lt;br /&gt;rvm install 1.9.1&lt;br /&gt;rvm list&lt;br /&gt;rvm 1.9.1&lt;br /&gt;rvm 1.9.1 --default&lt;br /&gt;rvm system&lt;br /&gt;gem install tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler i18n&lt;br /&gt;gem install rails --pre&lt;br /&gt;rails topscore&lt;br /&gt;cd topscore&lt;br /&gt;rails server&lt;br /&gt;gem install sqlite3-ruby&lt;br /&gt;rails generate scaffold game name:string&lt;br /&gt;rake db:migrate&lt;/blockquote&gt;&lt;br /&gt;and you are done :) &lt;br /&gt;taken from http://railscasts.com/episodes/200-rails-3-beta-and-rvm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-3068345132327836839?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/yy4ryUvgPqM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/3068345132327836839/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/02/how-to-install-ruby-19-and-rails-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/3068345132327836839?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/3068345132327836839?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/yy4ryUvgPqM/how-to-install-ruby-19-and-rails-with.html" title="How to install ruby 1.9 and rails with RVM" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/02/how-to-install-ruby-19-and-rails-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUAMQn45fCp7ImA9Wx9VFk8.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-5101854581952643199</id><published>2011-02-02T10:25:00.008+05:30</published><updated>2011-02-02T10:46:23.024+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-02T10:46:23.024+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="remote functions" /><category scheme="http://www.blogger.com/atom/ns#" term="ajax post" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="link_to_remote" /><category scheme="http://www.blogger.com/atom/ns#" term="synchronous ajax request" /><title>How to make a remote call synchronous in Rails</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/v-TNh88OF007EH18fQSjjzOmevg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v-TNh88OF007EH18fQSjjzOmevg/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/v-TNh88OF007EH18fQSjjzOmevg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/v-TNh88OF007EH18fQSjjzOmevg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: left;"&gt;&lt;span role="presentation" class="sourceRowText "&gt;&lt;blockquote&gt;new Ajax.Request('/controller/action?username=praveen',  {&lt;span style="font-weight: bold;"&gt;asynchronous:false&lt;/span&gt;, evalScripts:true, parameters:'page_offset=' +  page_offset + '&amp;amp;authenticity_token=' +  encodeURIComponent('e060znd6JcrMCU6Bf4ZZnfyBac4tl1YXQ6HuEHZGY58=')});&lt;/blockquote&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span role="presentation" class="sourceRowText "&gt;What to do to get that "&lt;/span&gt;&lt;span role="presentation" class="sourceRowText "&gt;asynchronous:false&lt;/span&gt;&lt;span role="presentation" class="sourceRowText "&gt;" thing in your link_to_remote or any other helper function available in rails :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span role="presentation" class="sourceRowText "&gt;I know its not a big thing and there is/are very few requirements to make an Ajax call &lt;/span&gt;&lt;span role="presentation" class="sourceRowText "&gt;synchronous but one might face this requirement sometimes, and the answers is &lt;/span&gt;&lt;blockquote&gt;&lt;span role="presentation" class="sourceRowText "&gt;&lt;%=remote_function(:url =&gt; {:controller =&gt; "&lt;/span&gt;&lt;span role="presentation" class="sourceRowText "&gt;controller&lt;/span&gt;&lt;span role="presentation" class="sourceRowText "&gt;", :action =&gt; "action", :username =&gt; "praveen"}, &lt;span style="font-weight: bold;"&gt;:type =&gt; :synchronous&lt;/span&gt;, :with =&gt; "'page_offset=' + page_offset") -%&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span role="presentation" class="sourceRowText "&gt;And you are done... so now till the time this thing is taking place, everything in browser will be waiting to complete the process first and then only proceed next.&lt;/span&gt;&lt;br /&gt;&lt;span role="presentation" class="sourceRowText "&gt;Hope you stumble on me looking in for me.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-5101854581952643199?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/goGkgeCZ_ig" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/5101854581952643199/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/02/how-to-make-remote-call-synchronous-in.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5101854581952643199?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5101854581952643199?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/goGkgeCZ_ig/how-to-make-remote-call-synchronous-in.html" title="How to make a remote call synchronous in Rails" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/02/how-to-make-remote-call-synchronous-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QFQ34_eCp7ImA9Wx9WFU8.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-268250457605750911</id><published>2011-01-20T16:05:00.005+05:30</published><updated>2011-01-20T16:31:52.040+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-20T16:31:52.040+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="parking" /><category scheme="http://www.blogger.com/atom/ns#" term="Delhi" /><category scheme="http://www.blogger.com/atom/ns#" term="wrong" /><category scheme="http://www.blogger.com/atom/ns#" term="car" /><title>How to handle wrong car parking!</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bSDrDFmiXMFkpezqaUCbQdjxJFY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bSDrDFmiXMFkpezqaUCbQdjxJFY/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/bSDrDFmiXMFkpezqaUCbQdjxJFY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bSDrDFmiXMFkpezqaUCbQdjxJFY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Hi&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;I am back but not with any thing on computer but for car commuters.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Have been putting up in Delhi for around i think 12 years now and it has been phenomenal and i love Delhi as it is but there are challenges to deal with everyday and rather than showing anger and swearing on it, it would be good if we try to resolve them in some what funny manner and i did :)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Well addressing to all those owning a car(vehicle) and thinking blank road is car parking area(in Delhi), just before leaving for office today i saw a parked &lt;a href="http://www.mahindrascorpio.com/home.aspx"&gt;Mahindra Scorpio &lt;/a&gt;consuming the rest of road which was half flooded with building materials (as a house construction is going on, common! in areas of Delhi).&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But i need to get way so that can reach office i can't take my car from that 1.5 feet of space. Me and my mom tried looking in for that super talented person who has parked  his/her car and was lost by now and even by so many queries from neighbourhood no one knew about it and now it was high time i should be doing something about it rather than shouting on air but my love towards cars didn't allowed me to break the car but how can i teach lesson to this person now.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So what i did is that 1 took two a4 blank sheets of paper and stick it with glue (like people paste movie posters) on drivers side of windshield and wrote.. "Hope next time your intelligence can use parking sense!! All the best"&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;and then i took my car from back road and believe me taking car from that place required 3 people to assist me to drag my car inch by inch(it was that narrow)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;But later on came to know form my dad, that driver appeared after about 1hr and was shocked to see it. My mom, dad and even my sister was like all over him and he accepted his mistakes and it took about 20 mins to takes those two sheets out from his windscreen and i don't know whether text written, was even understood by the driver or not. and hopefully this will keep a guard on him next time doing a wrong parking..&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;So i dealt with it this way.. how about you?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-268250457605750911?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/i4owIXWmxsU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/268250457605750911/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2011/01/how-to-handle-wrong-car-parking.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/268250457605750911?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/268250457605750911?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/i4owIXWmxsU/how-to-handle-wrong-car-parking.html" title="How to handle wrong car parking!" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2011/01/how-to-handle-wrong-car-parking.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIGQ3c8cSp7ImA9Wx9QF00.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-8444700176904667702</id><published>2010-12-30T16:22:00.001+05:30</published><updated>2010-12-30T16:25:22.979+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-30T16:25:22.979+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="sqlite" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>2 steps to install sqlite 3 on ubuntu for ruby</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JFKPJbsDNqX8WYUBJdHKhZ-hAg8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JFKPJbsDNqX8WYUBJdHKhZ-hAg8/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/JFKPJbsDNqX8WYUBJdHKhZ-hAg8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JFKPJbsDNqX8WYUBJdHKhZ-hAg8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span style="font-family:arial;"&gt;open a console and write two steps one by one&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: arial;"&gt;&lt;code&gt;sudo apt-get install sqlite3 libsqlite3-dev&lt;br /&gt;&lt;/code&gt;&lt;code&gt;sudo gem install sqlite3-ruby&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;And you are done :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-8444700176904667702?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/OUV8a1NXc3g" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/8444700176904667702/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/12/2-steps-to-install-sqlite-3-on-ubuntu.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/8444700176904667702?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/8444700176904667702?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/OUV8a1NXc3g/2-steps-to-install-sqlite-3-on-ubuntu.html" title="2 steps to install sqlite 3 on ubuntu for ruby" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/12/2-steps-to-install-sqlite-3-on-ubuntu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8FSX87cSp7ImA9WhRUEU4.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-1298675945857512581</id><published>2010-10-07T20:04:00.008+05:30</published><updated>2012-01-21T14:53:38.109+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-21T14:53:38.109+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Primary DNS" /><category scheme="http://www.blogger.com/atom/ns#" term="not opening" /><category scheme="http://www.blogger.com/atom/ns#" term="dns" /><category scheme="http://www.blogger.com/atom/ns#" term="mtnl" /><category scheme="http://www.blogger.com/atom/ns#" term="208.67.222.222" /><category scheme="http://www.blogger.com/atom/ns#" term="Secondary DNS" /><category scheme="http://www.blogger.com/atom/ns#" term="208.67.220.220" /><category scheme="http://www.blogger.com/atom/ns#" term="not working" /><title>MTNL broadband not opening certain websites</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ryVtPs9-a5qwL_pWVpofK8Vs4kc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ryVtPs9-a5qwL_pWVpofK8Vs4kc/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/ryVtPs9-a5qwL_pWVpofK8Vs4kc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ryVtPs9-a5qwL_pWVpofK8Vs4kc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;:) then what to do.. i just got one MTNL TriBand broadband unlimited connection for my home in Palam Colony, New Delhi. Everything was great except that it was not opening certain web links like &lt;a href="http://linkedin.com/"&gt;linkedin.com&lt;/a&gt;, &lt;a href="http://www.assembla.com/"&gt;assembla.com&lt;/a&gt;, &lt;a href="http://cricketnirvana.com/"&gt;cricketnirvana.com&lt;/a&gt; most of the time and within two days of installation, frustration was so severe that i looked up for google for any help(mind you MTNL,Delhi people they are awesome at NOT resolving any issues like this)&lt;br /&gt;On a random look out for solution i found two things..&lt;br /&gt;1. Change PrimaryDNS and SecondaryDNS to &lt;span style="font-weight: bold;"&gt;208.67.222.222&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;208.67.220.220&lt;/span&gt; respectively&lt;br /&gt;and&lt;br /&gt;2. Change TCP MTU Option(in interface page of ADSL router) to 1400&lt;br /&gt;&lt;br /&gt;and Final step, Do a restart (one of the option in 'Maintenance' page)&lt;br /&gt;and see if it works for you.. it worked for me :)&lt;br /&gt;&lt;br /&gt;Just for information i am having a ADSL router of Sterlite(Firmware Version :2.11.38.0(UE0.C2)3.9.9.5)(provided by MTNL) and am using my own netgear wifi router on top of it,&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-1298675945857512581?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/3dXw9UOt9z8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/1298675945857512581/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/10/mtnl-broadband-not-opening-certain.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1298675945857512581?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1298675945857512581?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/3dXw9UOt9z8/mtnl-broadband-not-opening-certain.html" title="MTNL broadband not opening certain websites" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/10/mtnl-broadband-not-opening-certain.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UNQn49cCp7ImA9Wx5VEkQ.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-4824733510836384625</id><published>2010-10-04T20:40:00.009+05:30</published><updated>2010-10-05T21:44:53.068+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-05T21:44:53.068+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="remote functions" /><category scheme="http://www.blogger.com/atom/ns#" term="ajax post" /><category scheme="http://www.blogger.com/atom/ns#" term="prototype" /><title>How to Stop an Ajax request in prototype.js</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/qSxzgmEggBJ_fbDRFDL0KVboDwk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qSxzgmEggBJ_fbDRFDL0KVboDwk/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/qSxzgmEggBJ_fbDRFDL0KVboDwk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/qSxzgmEggBJ_fbDRFDL0KVboDwk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Question is what will you do if you are using prototype.js(which is not having any abort method) for making a Ajax request and due to some circumstance you want to abort the ajax request raised. Well one can think that this is a narrow requirement, why will anybody need to do this because in the meantime request will be done and one might be having the response in return from server.&lt;br /&gt;&lt;br /&gt;I hit this corner case where page content was loading from an Ajax request and which after rendering was firing another Ajax request to update the paginate-r(which is also self firing the request on response completion), but to my surprise i was not able to control the "Ajax request to update paginate-r" and hence i am creating the self firing request but am not able to destroy them.&lt;br /&gt;&lt;br /&gt;And i don;t know for what reason there is no "ajaxRequest.abort()" method. And i found the answer from a narrow corner of &lt;a href="http://blog.pothoven.net/2007/12/aborting-ajax-requests-for-prototypejs.html"&gt;http://blog.pothoven.net/2007/12/aborting-ajax-requests-for-prototypejs.html&lt;/a&gt; and it worked and just to increase the find-ability of this solution am re-writing the post.&lt;br /&gt;&lt;br /&gt;introduce a method abort like this for prototype.js&lt;br /&gt;&lt;blockquote&gt;Ajax.Request.prototype.abort = function(){&lt;br /&gt; this.transport.onreadystatechange = Prototype.emptyFunction(); //prevent state change callbacks from being issues&lt;br /&gt; this.transport.abort(); //abort the XHR&lt;br /&gt; Ajax.activeRequestCount--; //updates the request counter&lt;br /&gt;};&lt;/blockquote&gt;&lt;br /&gt;and then in your code&lt;br /&gt;write it somewhere so that it is executed only once&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script&amp;gt;&lt;br /&gt;var cw_paginator_request = null;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;and then to assign the request if null else abort the request and fire a new request, like this&lt;br /&gt;&lt;blockquote&gt;&amp;lt;script&amp;gt;&lt;br /&gt;  if(cw_paginator_request != null){&lt;br /&gt;    cw_paginator_request.abort();&lt;br /&gt;  }&lt;br /&gt;  cw_paginator_request = &lt;%=remote_function(:url =&gt; {:controller =&gt; "some_controller", :action =&gt; "update_paginator", :id =&gt; @selected_id }) -%&gt;;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/blockquote&gt;&lt;br /&gt;Hopefully it might help somebody in need :)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-4824733510836384625?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/pVYMGw6tug0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/4824733510836384625/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/10/how-to-stop-ajax-request-in-prototypejs.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4824733510836384625?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4824733510836384625?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/pVYMGw6tug0/how-to-stop-ajax-request-in-prototypejs.html" title="How to Stop an Ajax request in prototype.js" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/10/how-to-stop-ajax-request-in-prototypejs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YNQng6fip7ImA9WxFaEE0.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-4428166937012829537</id><published>2010-07-13T13:48:00.001+05:30</published><updated>2010-07-13T13:49:53.616+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-13T13:49:53.616+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="India" /><category scheme="http://www.blogger.com/atom/ns#" term="hindi" /><category scheme="http://www.blogger.com/atom/ns#" term="chaata" /><category scheme="http://www.blogger.com/atom/ns#" term="New Delhi" /><category scheme="http://www.blogger.com/atom/ns#" term="cp" /><title>Now what will you interpret from this?</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OpRkcD1TTLsnT8CZQ8GQpdPDh8E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OpRkcD1TTLsnT8CZQ8GQpdPDh8E/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/OpRkcD1TTLsnT8CZQ8GQpdPDh8E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OpRkcD1TTLsnT8CZQ8GQpdPDh8E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: center; margin: 0px auto 10px;"&gt;&lt;a href="http://3.bp.blogspot.com/_W3aCuM6a2x8/TDwheguak6I/AAAAAAAADEw/2nRwyiflI1k/s1600/2010-06-19+18.06.44.jpg"&gt;&lt;img alt="" src="http://3.bp.blogspot.com/_W3aCuM6a2x8/TDwheguak6I/AAAAAAAADEw/2nRwyiflI1k/s400/2010-06-19+18.06.44.jpg" border="0" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;This is from the showcase of a bookstore in CP, Delhi. What you(hindi reading) all can interpret from this?&lt;/div&gt;&lt;div style="clear: both; text-align: center;"&gt;&lt;a href="http://picasa.google.com/blogger/" target="ext"&gt;&lt;img src="http://photos1.blogger.com/pbp.gif" alt="Posted by Picasa" style="border: 0px none; padding: 0px; background: none repeat scroll 0% 50% transparent;" align="middle" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-4428166937012829537?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/JMH4DBaPpXw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/4428166937012829537/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/07/now-what-will-you-interpret-from-this.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4428166937012829537?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4428166937012829537?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/JMH4DBaPpXw/now-what-will-you-interpret-from-this.html" title="Now what will you interpret from this?" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_W3aCuM6a2x8/TDwheguak6I/AAAAAAAADEw/2nRwyiflI1k/s72-c/2010-06-19+18.06.44.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/07/now-what-will-you-interpret-from-this.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8HQ3szeSp7ImA9WxFXFks.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-685828010291442178</id><published>2010-05-24T06:44:00.002+05:30</published><updated>2010-05-24T06:47:12.581+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-24T06:47:12.581+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="memcache" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>3 step Memcache install in ubuntu with rails binding</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/faMgxhKV2znFFRbMkFTUpgg0zqc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/faMgxhKV2znFFRbMkFTUpgg0zqc/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/faMgxhKV2znFFRbMkFTUpgg0zqc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/faMgxhKV2znFFRbMkFTUpgg0zqc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;#To Install memecache&lt;blockquote&gt;sudo apt-get install memcached&lt;/blockquote&gt;#To restart memcahce&lt;blockquote&gt;/etc/init.d/memcached restart&lt;/blockquote&gt;#To install ruby binding gem to memecache&lt;blockquote&gt;sudo gem install memcached&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br/&gt;&lt;br /&gt;and to start memcache automatically on system startup&lt;blockquote&gt;sudo gedit /etc/default/memcached&lt;/blockquote&gt;# Set this to yes to enable memcached.&lt;blockquote&gt;ENABLE_MEMCACHED=yes&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-685828010291442178?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/XoUzEFAOrEk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/685828010291442178/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/05/3-step-memcache-install-in-ubuntu-with.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/685828010291442178?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/685828010291442178?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/XoUzEFAOrEk/3-step-memcache-install-in-ubuntu-with.html" title="3 step Memcache install in ubuntu with rails binding" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>1</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/05/3-step-memcache-install-in-ubuntu-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUICRHk7fip7ImA9WxFXFks.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-2213382374511297413</id><published>2010-05-22T21:38:00.004+05:30</published><updated>2010-05-24T06:42:45.706+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-24T06:42:45.706+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="3 steps" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="rmagick" /><title>3 step RMagick install in rail/ubuntu</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PsrQ0SBLT0SbPLD-2O8O0XQo9ug/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PsrQ0SBLT0SbPLD-2O8O0XQo9ug/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/PsrQ0SBLT0SbPLD-2O8O0XQo9ug/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PsrQ0SBLT0SbPLD-2O8O0XQo9ug/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;blockquote&gt;sudo apt-get install imagemagick&lt;br /&gt;sudo apt-get install libmagick9-dev&lt;br /&gt;sudo gem install rmagick&lt;/blockquote&gt;&lt;br /&gt;yes thats it :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-2213382374511297413?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/-BY5aX_1ZL4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/2213382374511297413/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/05/3-step-rmagick-install-in-railubuntu.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2213382374511297413?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2213382374511297413?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/-BY5aX_1ZL4/3-step-rmagick-install-in-railubuntu.html" title="3 step RMagick install in rail/ubuntu" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/05/3-step-rmagick-install-in-railubuntu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EESHk-fSp7ImA9WxFQEE0.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-5338269286538357891</id><published>2010-05-04T06:52:00.010+05:30</published><updated>2010-05-05T01:03:29.755+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-05T01:03:29.755+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="hindi" /><category scheme="http://www.blogger.com/atom/ns#" term="gurgaon" /><category scheme="http://www.blogger.com/atom/ns#" term="truck" /><category scheme="http://www.blogger.com/atom/ns#" term="Roadside" /><category scheme="http://www.blogger.com/atom/ns#" term="publicity stunt" /><category scheme="http://www.blogger.com/atom/ns#" term="van" /><category scheme="http://www.blogger.com/atom/ns#" term="sushant lok - 1" /><title>Mirrored text is fine but why upside down</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cohlGLPtdlPdUHbYyyc7HyOnGzw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cohlGLPtdlPdUHbYyyc7HyOnGzw/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/cohlGLPtdlPdUHbYyyc7HyOnGzw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cohlGLPtdlPdUHbYyyc7HyOnGzw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;It has been really a while now.. have posted something here :) but its better late than never..&lt;br /&gt;This post is about one of the head turning material that i got while i was going in for tea break on the other side of road (we do so because its small fun break even though we have very good pantry)&lt;br /&gt;&lt;br /&gt;&lt;img style="margin: 0px auto; display: block; text-align: center; width: 400px; height: 300px;" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/S995LkMWGqI/AAAAAAAACio/-6Vf2Y80G5U/s400/2010-05-03+11.29.37.jpg" alt="" id="BLOGGER_PHOTO_ID_5467221712252050082" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;width: 400px; height: 62px;" src="http://3.bp.blogspot.com/_W3aCuM6a2x8/S-B2MQA39WI/AAAAAAAACiw/Js3TKsRcfKw/s400/2010-05-03+11+(copy).29.37.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5467499900456924514" /&gt;&lt;br /&gt;&lt;br /&gt;And i was wondering this is to seek attention of viewers and will act as publicity stunt or some more un-understandable logic behind it!! what you say??&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-5338269286538357891?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/1CdbAtgbTaU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/5338269286538357891/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2010/05/mirrored-text-is-fine-but-why-upside.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5338269286538357891?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5338269286538357891?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/1CdbAtgbTaU/mirrored-text-is-fine-but-why-upside.html" title="Mirrored text is fine but why upside down" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_W3aCuM6a2x8/S995LkMWGqI/AAAAAAAACio/-6Vf2Y80G5U/s72-c/2010-05-03+11.29.37.jpg" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2010/05/mirrored-text-is-fine-but-why-upside.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0IHQ3k7fCp7ImA9WxNWGUo.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-2104683686833263951</id><published>2009-10-20T00:22:00.004+05:30</published><updated>2009-10-20T00:42:12.704+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T00:42:12.704+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="introduction" /><category scheme="http://www.blogger.com/atom/ns#" term="rubyonrails" /><category scheme="http://www.blogger.com/atom/ns#" term="brokencompass" /><category scheme="http://www.blogger.com/atom/ns#" term="broken compass" /><title>Released BrokenCompass</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dmExCGuCXQbQryuffpBuKMrLyxs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dmExCGuCXQbQryuffpBuKMrLyxs/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/dmExCGuCXQbQryuffpBuKMrLyxs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dmExCGuCXQbQryuffpBuKMrLyxs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;So finally after much of ifs and buts and all hesitation have released a version of &lt;span style="font-weight: bold;font-size:180%;" &gt;BrokenCompass&lt;/span&gt;.. Full text search engine built using ruby on rails and serving ruby on rails app.&lt;br /&gt;&lt;br /&gt;Some of the features which are available as of now in this first release are..&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Able to work with all databases for which ruby in rails have no issues(examples shown in links uses mysql)&lt;/li&gt;&lt;li&gt;Availability of extended_mode which  allows to search in any particular attribute(from set of attributes which is used while in index creation)&lt;/li&gt;&lt;li&gt;In extended_mode queries can have logical "&amp;amp;"(pronounced as 'and') and "|"(pronounced as 'or') between them(Not operator is not available still, but working out to release in next version).&lt;/li&gt;&lt;li&gt;One can assign weight to set of attributes depending upon requirements and in response get weighted result and also sorted in descending order of weight of record.&lt;/li&gt;&lt;li&gt;By default 20 records are returned as query response(which can be altered)&lt;/li&gt;&lt;li&gt;look_in_brokencompass static method is attached to rails model to get inference of instantaneous parameter set. And to find using brokencompass static method is find_with_brokencompass("searchterm", :brokencompass = {}) and many other..&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Here are few links(if interested, will be helpfull)&lt;br /&gt;&lt;a href="http://anaphoral.blogspot.com/2009/10/brokencompass-how-to-go-about-it.html"&gt;BrokenCompass: How to go about it&lt;/a&gt;&lt;br /&gt;&lt;a href="http://anaphoral.blogspot.com/2009/10/brokencompass-install-instructions.html"&gt;BrokenCompass - Install instructions&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-2104683686833263951?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/nEDq3f0jVyU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/2104683686833263951/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/10/released-brokencompass.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2104683686833263951?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/2104683686833263951?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/nEDq3f0jVyU/released-brokencompass.html" title="Released BrokenCompass" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/10/released-brokencompass.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYGQ3s-eSp7ImA9WxNWGUo.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-1135397608152450886</id><published>2009-10-19T23:14:00.014+05:30</published><updated>2009-10-20T00:18:42.551+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T00:18:42.551+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="search result" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="rubyonrails" /><category scheme="http://www.blogger.com/atom/ns#" term="broken compass" /><category scheme="http://www.blogger.com/atom/ns#" term="full text search engine" /><title>BrokenCompass: How to go about it</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/j_wPkJo48qiru9qH-cFjjiLFzRE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j_wPkJo48qiru9qH-cFjjiLFzRE/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/j_wPkJo48qiru9qH-cFjjiLFzRE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j_wPkJo48qiru9qH-cFjjiLFzRE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Once you are done with &lt;a href="http://anaphoral.blogspot.com/2009/10/brokencompass-install-instructions.html"&gt;installation and index creation&lt;/a&gt; for brokencompass, can play around with the search capabilities of it..&lt;br /&gt;&lt;br /&gt;Point 01. ruby script/console&lt;br /&gt;==&gt; Output&lt;br /&gt;&lt;blockquote&gt;Adding BrokenCompass Version: 1.0&lt;br /&gt;Loading index... [broken_compass/advertisment.index]&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Point 02. Searching in all fields, i.e not using extended_mode&lt;br /&gt;&lt;blockquote&gt;Advertisment.look_in_brokencompass("train")&lt;/blockquote&gt;==&gt;  Returns an inference hash like this&lt;br /&gt;&lt;blockquote&gt;{&lt;br /&gt;# Time elapsed in the execution(in seconds)&lt;br /&gt;:time_elapsed=&gt;0.00617599487304688,&lt;br /&gt;&lt;br /&gt;# Field(s) which is/are available for indexing&lt;br /&gt;:fields=&gt;["location", "title", "description"],&lt;br /&gt;&lt;br /&gt;# Weight given to different attributes to ranks result items&lt;br /&gt;:column_weight=&gt;{:description=&gt;10, :location=&gt;10, :title=&gt;10},&lt;br /&gt;&lt;br /&gt;# Count of total records found&lt;br /&gt;:total_record_count=&gt;44,&lt;br /&gt;&lt;br /&gt;# Boolean field to unload indexes from memory once query is fired&lt;br /&gt;:eager_unload=&gt;false,&lt;br /&gt;&lt;br /&gt;# Boolean field for extended_mode, set to true when using attribute(column) level searches&lt;br /&gt;:extended_mode=&gt;false,&lt;br /&gt;&lt;br /&gt;# Boolean field for PLURAL forms of search word&lt;br /&gt;:plural_forms=&gt;true,&lt;br /&gt;&lt;br /&gt;# Result set with weighted scores&lt;br /&gt;:weighted_records=&gt;[[14844, 20], [17445, 20], ... , [15148, 10]]}&lt;br /&gt;&lt;br /&gt;# Limit to result set&lt;br /&gt;:limit=&gt;20,&lt;br /&gt;&lt;br /&gt;# Offset to result set&lt;br /&gt;:offset=&gt;0,&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Point 03. Searching in extended mode i.e specifically in some attribute(from the attributes used in sql query for index creation)&lt;br /&gt;&lt;blockquote&gt;Advertisment.look_in_brokencompass("'job'@title", :extended_mode =&gt; true)&lt;/blockquote&gt;==&gt;  Returns an inference hash same as above&lt;br /&gt;&lt;blockquote&gt;{&lt;br /&gt;:column_weight=&gt;{:description=&gt;10, :location=&gt;10, :title=&gt;10}, &lt;br /&gt;:total_record_count=&gt;1419, &lt;br /&gt;:time_elapsed=&gt;0.0523371696472168, &lt;br /&gt;:fields=&gt;["location", "title", "description"], &lt;br /&gt;:eager_unload=&gt;false, &lt;br /&gt;:limit=&gt;20, &lt;br /&gt;:extended_mode=&gt;true, &lt;br /&gt;:offset=&gt;0, &lt;br /&gt;:plural_forms=&gt;true, &lt;br /&gt;:weighted_records=&gt;[[14607, 20], [17685, 20], ...... , [13727, 10]]&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Point 04. Searching in extended mode and also using other possible options&lt;br /&gt;&lt;blockquote&gt;Advertisment.look_in_brokencompass("'job'@title", :extended_mode =&gt; true, :offset =&gt; 4, :limit =&gt; 5, :column_weight =&gt; {:title =&gt; 40, :description =&gt; 20})&lt;/blockquote&gt;==&gt;  Returns an inference hash same as above&lt;br /&gt;&lt;blockquote&gt;{&lt;br /&gt;:column_weight=&gt;{:description=&gt;20, :location=&gt;10, :title=&gt;40}, &lt;br /&gt;:total_record_count=&gt;1419, &lt;br /&gt;:time_elapsed=&gt;0.0521509647369385, &lt;br /&gt;:fields=&gt;["location", "title", "description"], &lt;br /&gt;:eager_unload=&gt;false, &lt;br /&gt;:limit=&gt;5, &lt;br /&gt;:extended_mode=&gt;true, &lt;br /&gt;:offset=&gt;4, &lt;br /&gt;:plural_forms=&gt;true, &lt;br /&gt;:weighted_records=&gt;[[17947, 80], [17946, 80], [9597, 80], [12556, 80], [25975, 80]]&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;Point 05. To retrieve data results from above mentioned conditions and critriea&lt;br /&gt;&lt;blockquote&gt;Advertisment.find_with_brokencompass("'job'@title", :brokencompass =&gt; {:extended_mode =&gt; true, :offset =&gt; 4, :limit =&gt; 5, :column_weight =&gt; {:title =&gt; 40, :description =&gt; 20}})&lt;/blockquote&gt;==&gt;  Returns an result-set array of type Advertisment&lt;br /&gt;&lt;br /&gt;Point 06. To user "and" &amp; "or" operators in extended mode &lt;br /&gt;&lt;blockquote&gt;Advertisment.look_in_brokencompass("'job'@title | 'career'@description", :extended_mode =&gt; true, :offset =&gt; 4, :limit =&gt; 5, :column_weight =&gt; {:title =&gt; 40, :description =&gt; 20})&lt;/blockquote&gt;==&gt;  Returns an result-set array of type Advertisment&lt;br /&gt;&lt;blockquote&gt;Advertisment.look_in_brokencompass("'job'@title &amp; 'career'@description", :extended_mode =&gt; true, :offset =&gt; 4, :limit =&gt; 5, :column_weight =&gt; {:title =&gt; 40, :description =&gt; 20})&lt;/blockquote&gt;==&gt;  Returns an result-set array of type Advertisment&lt;br /&gt;&lt;br /&gt;In case of any further queries please contact me at praveen[dot]kumar[dot]sinha[at]gmail[dot]com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-1135397608152450886?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/8n_g2C-NWds" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/1135397608152450886/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/10/brokencompass-how-to-go-about-it.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1135397608152450886?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1135397608152450886?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/8n_g2C-NWds/brokencompass-how-to-go-about-it.html" title="BrokenCompass: How to go about it" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/10/brokencompass-how-to-go-about-it.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YFQX0zfSp7ImA9Wx9QF0w.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-1729500439864399311</id><published>2009-10-19T22:04:00.017+05:30</published><updated>2010-12-30T17:41:50.385+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-30T17:41:50.385+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="installation" /><category scheme="http://www.blogger.com/atom/ns#" term="install-instructions" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="broken compass" /><category scheme="http://www.blogger.com/atom/ns#" term="indexer" /><category scheme="http://www.blogger.com/atom/ns#" term="full text search engine" /><title>BrokenCompass - Install instructions</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sMXLe0AwU7v0JrZlhgoidJJLUSY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sMXLe0AwU7v0JrZlhgoidJJLUSY/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/sMXLe0AwU7v0JrZlhgoidJJLUSY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sMXLe0AwU7v0JrZlhgoidJJLUSY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;BrokenCompass up and running in flat 5 mins&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step: 01&lt;/span&gt;&lt;br /&gt;Install BrokenCompass plugin&lt;br /&gt;&lt;blockquote style="font-family: courier;"&gt;ruby script/plugin install http://brokencompass.googlecode.com/svn/trunk&lt;/blockquote&gt;from inside of rails app root directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step: 02&lt;/span&gt;&lt;br /&gt;Add BrokenCompass configuration yml file&lt;br /&gt;Create file &lt;blockquote style="font-family: courier; "&gt;config/brokencompass.yml&lt;/blockquote&gt;&lt;br /&gt;Add content like&lt;br /&gt;&lt;blockquote style="font-family: courier;"&gt;#brokencompass.yml............. STARTS&lt;br /&gt;index-sources:&lt;br /&gt;   advertisment:&lt;br /&gt;       sql: "select id,title,description,location from advertisments"&lt;br /&gt;       table_name: advertisments&lt;br /&gt;&lt;br /&gt;   query:&lt;br /&gt;       sql: "select id,content,dynamic_fields from queries"&lt;br /&gt;       table_name: queries&lt;br /&gt;&lt;br /&gt;# Database connection adapter&lt;br /&gt;connection_adapter:&lt;br /&gt;   adapter: "mysql"&lt;br /&gt;   host: "localhost"&lt;br /&gt;   username: "username"&lt;br /&gt;   password: "password"&lt;br /&gt;   database: "myapp_development"&lt;br /&gt;&lt;br /&gt;#brokencompass.yml............. ENDS&lt;/blockquote&gt;&lt;br /&gt;Note:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;0.&lt;/span&gt; Nothing is optional in the yml(everything is mandatory)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Add as many items in index-sources as you want, but every item name should match model names(for which they will be used).&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Make sure to include the Id field so that index created can be mapped to record identifier.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; Provide the connection adapter details in connection_adapter section(so as to answer, where to read data from)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; If you are not minding the spaces in yml(then you have messed up the configuration, so don't try to remove spaces :) from yml, &lt;a href="http://www.ruby-doc.org/stdlib/libdoc/yaml/rdoc/index.html"&gt;wanna know more about yml?&lt;/a&gt; )&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step: 03&lt;/span&gt;&lt;br /&gt;Run rake task to create indexes for the first time&lt;br /&gt;&lt;blockquote style="font-family: courier;  "&gt;rake brokencompass:create_index&lt;/blockquote&gt;from inside of rails app root directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step: 04&lt;/span&gt; (This is required, when one is re-creating the indexes from scratch)&lt;br /&gt;Run rake task to re-create indexes&lt;br /&gt;&lt;blockquote style="font-family: courier;  "&gt;rake brokencompass:index&lt;/blockquote&gt;from inside of rails app root directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step: 05&lt;/span&gt; (To delete any of the indexes so created, delete corresponding "xxxx.index" file from broken_compass&lt;br /&gt;from inside of rails app root directory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-1729500439864399311?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/Xut0fn2jzv4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/1729500439864399311/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/10/brokencompass-install-instructions.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1729500439864399311?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1729500439864399311?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/Xut0fn2jzv4/brokencompass-install-instructions.html" title="BrokenCompass - Install instructions" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/10/brokencompass-install-instructions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4BSHY8eip7ImA9WxNWEEs.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-3564607691733204714</id><published>2009-10-09T10:18:00.003+05:30</published><updated>2009-10-09T10:22:39.872+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-09T10:22:39.872+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="in-memory" /><category scheme="http://www.blogger.com/atom/ns#" term="rubyonrails" /><category scheme="http://www.blogger.com/atom/ns#" term="broken compass" /><title>BrokenCompass</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KOW5Lal_PazL3tui5JOXvXBmmf8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KOW5Lal_PazL3tui5JOXvXBmmf8/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/KOW5Lal_PazL3tui5JOXvXBmmf8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KOW5Lal_PazL3tui5JOXvXBmmf8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;New in-memory full text search engine in ruby and in rails "&lt;span style="font-size:61px;"&gt;BrokenCompass&lt;/span&gt;".&lt;br /&gt;&lt;span style="font-size:180%;"&gt;Coming soon....&lt;/span&gt;&lt;br /&gt;keep an eye on this space..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-3564607691733204714?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/obvMf5Ewu20" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/3564607691733204714/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/10/brokencompass.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/3564607691733204714?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/3564607691733204714?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/obvMf5Ewu20/brokencompass.html" title="BrokenCompass" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>4</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/10/brokencompass.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0ICRHk6eyp7ImA9WxBUGUU.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-752317751520530055</id><published>2009-07-29T23:06:00.009+05:30</published><updated>2010-03-07T22:36:05.713+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-07T22:36:05.713+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="client is too old" /><category scheme="http://www.blogger.com/atom/ns#" term="change-svn-wc-format.py" /><category scheme="http://www.blogger.com/atom/ns#" term="tortoiseSVN" /><category scheme="http://www.blogger.com/atom/ns#" term="svn" /><title>svn: This client is too old to work with working copy</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/I0t6jpuLnsyHKB1t1drux6C4bmA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I0t6jpuLnsyHKB1t1drux6C4bmA/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/I0t6jpuLnsyHKB1t1drux6C4bmA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I0t6jpuLnsyHKB1t1drux6C4bmA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Hello folks,&lt;br /&gt;&lt;br /&gt;I am still very much alive, i don't know ho missed me or not(am sure no one :D). There is lot happening in life now-a-days will talk about it later, first a quickie about &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;SVN&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;If you are working on some project then you must be aware of something called &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;SVN&lt;/span&gt;, it is an open source version control system. Recently got hit with something really weired.&lt;br /&gt;&lt;br /&gt;I work on &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Ubuntu&lt;/span&gt; but as my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;ubuntu&lt;/span&gt; doesn't have anything &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_4"&gt;even&lt;/span&gt; close to 80% of tortoise &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;SVN&lt;/span&gt; i tried using windows for that(using virtual windows and samba) to carry on my &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;SVN&lt;/span&gt; activities that is really really easy when it is done using &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;TortoiseSVN&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;But the time i tried "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;svn&lt;/span&gt; &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_9"&gt;update&lt;/span&gt;" from &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_10"&gt;Linux&lt;/span&gt; shell command it gave me&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;praveen@praveen-laptop:~/NetBeansProjects/projectone$ &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;svn&lt;/span&gt; update&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;svn&lt;/span&gt;: This client is too old to work with working copy '.'.  You need&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;to get a newer Subversion client, or to downgrade this working copy.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;See http://subversion.tigris.org/faq.html#working-copy-format-change&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for details.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;And i was like what to do now, so followed the instruction and it worked(at least worked for me :) ). So what i did is&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;blockquote&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-weight: bold;"&gt;Step 01:&lt;/span&gt; Downloaded a file &lt;del&gt;http://svn.collab.net/repos/svn/trunk/tools/client-side/change-svn-wc-format.py&lt;/del&gt; http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-weight: bold;"&gt;Step 02:&lt;/span&gt; Executed the following command&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;praveen@praveen-laptop:~$ python change-svn-wc-format.py /path/to/project 1.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;i.e my project got downgraded to version 1.5&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br /&gt;And it worked :)&lt;br /&gt;&lt;br /&gt;AS NOTE: usage: change-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;svn&lt;/span&gt;-&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;wc&lt;/span&gt;-format.&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;py&lt;/span&gt; Working_Copy &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;SVN&lt;/span&gt;_VERSION&lt;br /&gt;&lt;br /&gt;Next Time something like this happens, you know how to do it.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-752317751520530055?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/v2wF5uVRBLg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/752317751520530055/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/07/svn-this-client-is-too-old-to-work-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/752317751520530055?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/752317751520530055?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/v2wF5uVRBLg/svn-this-client-is-too-old-to-work-with.html" title="svn: This client is too old to work with working copy" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/07/svn-this-client-is-too-old-to-work-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YNQXkzeSp7ImA9WxJQF0Q.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-7367130986732330282</id><published>2009-06-01T00:32:00.010+05:30</published><updated>2009-06-01T01:16:30.781+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-01T01:16:30.781+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="airtel" /><category scheme="http://www.blogger.com/atom/ns#" term="mobile" /><category scheme="http://www.blogger.com/atom/ns#" term="GPRS" /><category scheme="http://www.blogger.com/atom/ns#" term="ROKR" /><category scheme="http://www.blogger.com/atom/ns#" term="motorola" /><category scheme="http://www.blogger.com/atom/ns#" term="E6" /><title>How to run GPRS from airtel on ROKR E6 motorola</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XWTL1LdU7y1Zha2GzBx1o-YxplY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XWTL1LdU7y1Zha2GzBx1o-YxplY/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/XWTL1LdU7y1Zha2GzBx1o-YxplY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XWTL1LdU7y1Zha2GzBx1o-YxplY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Hey hi guys and gals,&lt;br /&gt;Just after a long time i am writing something on mobile device, actually it is something which shows how stupid I am :D&lt;br /&gt;I was planned to go for  a small trip to my home town (I will write a post about it too, but for the time being 'the issue').&lt;br /&gt;I live in Delhi(India) and so this is something for the locale or some one who is facing almost the same that i faced about a week ago, and it was of how to make &lt;a href="http://en.wikipedia.org/wiki/GPRS"&gt;GPRS&lt;/a&gt; active on my best &lt;a href="http://www.gsmarena.com/motorola_rokr_e6-1810.php"&gt;Motorola rokr e6&lt;/a&gt;(where it is very much assumed that i have an Airtel post paid mobile connection). I was in urgent need of some way or the other to connect to net as have lot and lot of dependency on it and even if i am off from office i have work to do :D (sounds as if i am very busy person, let me be :D) so i opted for GPRS from my mobile and i know e6 comes with GPRS features, but some how or the other it was not working.&lt;br /&gt;I asked airtel people about it, they were just resending the setting to my phone, which was very much accepted and installed too but the main issue was still there "GPRS was not working", according to them this is all they can do and there was actually not in that, they were sending a GPRS connection premade with the name of "Mobile-office" which contained an A&lt;span style="font-weight: bold;"&gt;PN: &lt;span style="font-style: italic;"&gt;airtelgprs.com&lt;/span&gt;&lt;/span&gt; and an &lt;span style="font-weight: bold;"&gt;primary gateway ip: &lt;span style="font-style: italic;"&gt;202.56.231.117&lt;/span&gt;&lt;/span&gt; and the &lt;span style="font-weight: bold;"&gt;port was &lt;span style="font-style: italic;"&gt;8080&lt;/span&gt;&lt;/span&gt; and nothing more  nothing less  but damn it was not working, call center executive were helpless what to do so again and again tried different hooks but nothing worked out and i again called the executive and she said something which made me feel how stupid of me, being so much in technology was not able to figure  out this small thing and  it was that i have to manually enable the GPRS, which is  manually accessed from the bar which shows the reception quality, programs and players running and which by default is placed just below the top set of icons, enabled the GPRS from there and restarted my phone(which call center guys usually asks to do) and it worked :)&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;img style="width: 246px; height: 320px;" src="http://1.bp.blogspot.com/_W3aCuM6a2x8/SiLcY67ptpI/AAAAAAAACH8/JfCm_ZRuBEo/s320/motorola_rokr-e6_01.jpg" alt="" id="BLOGGER_PHOTO_ID_5342074428709254802" border="0" /&gt;&lt;br /&gt;&lt;/div&gt;Sometimes even i can skip something which is right in front of my eyes or one can right in front of my screen (it happens with developers).&lt;br /&gt;So guys or gals if you have faced something stupid like this please comment and let every body know :), at least i did&lt;br /&gt;chow people it is the to hit bed, I am  dead tired right now after this vacation :D&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-7367130986732330282?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/x6jTHYyKi1M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/7367130986732330282/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/06/how-to-run-gprs-from-airtel-on-rokr-e6.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/7367130986732330282?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/7367130986732330282?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/x6jTHYyKi1M/how-to-run-gprs-from-airtel-on-rokr-e6.html" title="How to run GPRS from airtel on ROKR E6 motorola" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_W3aCuM6a2x8/SiLcY67ptpI/AAAAAAAACH8/JfCm_ZRuBEo/s72-c/motorola_rokr-e6_01.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/06/how-to-run-gprs-from-airtel-on-rokr-e6.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cMR3w9eCp7ImA9WxJREU4.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-5634169929972886835</id><published>2009-05-08T00:39:00.009+05:30</published><updated>2009-05-12T20:08:06.260+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-12T20:08:06.260+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="comparison" /><category scheme="http://www.blogger.com/atom/ns#" term="innova" /><category scheme="http://www.blogger.com/atom/ns#" term="safar" /><category scheme="http://www.blogger.com/atom/ns#" term="resign" /><category scheme="http://www.blogger.com/atom/ns#" term="mpstechnologies" /><category scheme="http://www.blogger.com/atom/ns#" term="elections" /><category scheme="http://www.blogger.com/atom/ns#" term="mps" /><category scheme="http://www.blogger.com/atom/ns#" term="toyota" /><category scheme="http://www.blogger.com/atom/ns#" term="tata" /><category scheme="http://www.blogger.com/atom/ns#" term="vote" /><title>Some life updates</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pUty1aDaTAg3w6z6xs1B_o2Dupg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pUty1aDaTAg3w6z6xs1B_o2Dupg/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/pUty1aDaTAg3w6z6xs1B_o2Dupg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pUty1aDaTAg3w6z6xs1B_o2Dupg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Actually this month is happening... as life is as usual.&lt;br /&gt;Just resigned from &lt;a href="http://www.mpstechnologies.com/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;MPST&lt;/span&gt;(&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;MPS&lt;/span&gt; Technologies Limited)&lt;/a&gt; and am stretching my legs and thank god that even summers are chilling now-a-days so it is all very pleasant.&lt;br /&gt;and I voted too this central elections (it is only applicable if you known about current Indian political status of &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_2"&gt;India&lt;/span&gt;).&lt;br /&gt;And ya the most &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_3"&gt;happening&lt;/span&gt; thing that i did this week was i took the test drive of &lt;a href="http://www.toyotabharat.com/inen/cars/innova/index.asp"&gt;Toyota  &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;innova&lt;/span&gt;&lt;/a&gt;, and to be fare i thought i was disappointed for the gear knob vibrations from &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;toyota&lt;/span&gt; but latter on, i thought every other car is only way behind it.... so why give it a bad name.. so it is good and perfect if you care about your family and wanna visit places.. it is a nice car &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_6"&gt;that's&lt;/span&gt; for sure.&lt;br /&gt;And as was expected, I also visited the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;tata&lt;/span&gt; showroom to ask in for &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;tata&lt;/span&gt; most famous car after &lt;a href="http://tatanano.inservices.tatamotors.com/tatamotors/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;nano&lt;/span&gt;&lt;/a&gt;, exactly the safari The &lt;a href="http://www.safaridicor.com/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;tata&lt;/span&gt; safari&lt;/a&gt;... and not going against my expectations, they didn't had any car to give &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_11"&gt;the&lt;/span&gt; test drive and according to them they give test drive on vehicles which are ordered for other customers, now &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_12"&gt;that's&lt;/span&gt; bad.&lt;br /&gt;And here is a car &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_13"&gt;comparison&lt;/span&gt; that i have not done before..&lt;br /&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;Innova&lt;/span&gt; is&lt;br /&gt;&lt;ul&gt;&lt;li&gt;good interiors&lt;/li&gt;&lt;li&gt;good exteriors&lt;/li&gt;&lt;li&gt;not so good vibrating gear in &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_15"&gt;diesel&lt;/span&gt;&lt;/li&gt;&lt;li&gt;it doesn't rules the road&lt;/li&gt;&lt;li&gt;No 4*4 wheel drive&lt;/li&gt;&lt;li&gt;but very stable and great family car&lt;/li&gt;&lt;li&gt;Service is prompt i will buy &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;innova&lt;/span&gt; if i can park it in near future&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;About Safari&lt;br /&gt;&lt;ul&gt;&lt;li&gt;"Reclaim you life" slogans fits in, but is life so lost??&lt;/li&gt;&lt;li&gt;Great exteriors and equally bad interiors&lt;/li&gt;&lt;li&gt;finish is not finished yet, come on guys increase the price by 2 &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;lakhs&lt;/span&gt; but &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_18"&gt;don't&lt;/span&gt; decrease the expectations&lt;/li&gt;&lt;li&gt;Why is roof mounted AC looks as if it is not part of roof (learn something from &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;innova&lt;/span&gt;)&lt;/li&gt;&lt;li&gt;Service (Needs a big big improvement)&lt;/li&gt;&lt;li&gt;And please do have a &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_20"&gt;separate&lt;/span&gt; car to test drive&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;:)&lt;br /&gt;&lt;br /&gt;I was so mentally boosting myself to buy a safari but they have shattered my dreams, what to do and why to do!! both questions are playing&lt;br /&gt;&lt;br /&gt;Any how  people its late in night and that too of no-work... i want to fit  my "Reclaim your sleep" slogan now.&lt;br /&gt;&lt;br /&gt;bbye and good luck&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-5634169929972886835?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/1gM3p3NlF3c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/5634169929972886835/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/05/some-life-updates.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5634169929972886835?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/5634169929972886835?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/1gM3p3NlF3c/some-life-updates.html" title="Some life updates" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/05/some-life-updates.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YDQ3s_fCp7ImA9WxJSFEk.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-4848885563145386945</id><published>2009-05-02T09:49:00.022+05:30</published><updated>2009-05-04T20:29:32.544+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-04T20:29:32.544+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="url" /><category scheme="http://www.blogger.com/atom/ns#" term="activerecord" /><category scheme="http://www.blogger.com/atom/ns#" term="rubyonrails" /><category scheme="http://www.blogger.com/atom/ns#" term="base" /><category scheme="http://www.blogger.com/atom/ns#" term="pretty-urls" /><title>Pretty urls with name or title in ruby on rails</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iheON2XeLcJt5nUCdMew7-jpVsc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iheON2XeLcJt5nUCdMew7-jpVsc/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/iheON2XeLcJt5nUCdMew7-jpVsc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iheON2XeLcJt5nUCdMew7-jpVsc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Hi folks,&lt;br /&gt;&lt;br /&gt;Something on which is very old.. might not be very interesting for many of you who are into rails development. I am talking about the pretty-urls the SEO stuff(forget all this, it is for good readability of url).&lt;br /&gt;&lt;br /&gt;So what my basic funda that i have gathered from last three years is that, every resource is identified by an identifier in rails(generally called id, in terms of database), but displaying the id doesn't sounds legal to me.. so to hide the ids and to have a nice looking readable&lt;br /&gt;&lt;br /&gt;we can have title or name fields in the database's relation(table) and to make use of pretty urls, we make corresponding column like stripped_title or stripped_name.&lt;br /&gt;create a file "make_pretty_url.rb" in initializers in config and append the following code.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;puts "===================================================="&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;puts "Adding engine to make pretty url(s)"&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;puts "===================================================="&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt; module ActiveRecord&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;   class Base&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;     after_create :make_or_update_pretty_url_name&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;   &lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;     def make_or_update_pretty_url_name&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;       parent_column = nil&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;       stripped_column = self.attributes.collect {|x| x.to_s.include?("stripped_") ? x : nil}.flatten.compact.first&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;       if stripped_column&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;          parent_column = stripped_column.gsub("stripped_","")&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;         if self.send(parent_column)&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;           self.send("#{stripped_column}=",stripp_it(self.send(parent_column)))&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;           if self.class.find(:all, :conditions =&gt; ["#{stripped_column} =  ?",self.send(stripped_column)]).length &gt; 0&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;             self.send("#{stripped_column}=","#{self.send(stripped_column)}-#{self.id.to_s}")&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;           end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;           self.send("save")&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;          end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;       end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;     end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;     def stripp_it(str)&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;       str.strip.downcase.gsub(/[^a-z0-9]/,"-").gsub(/(-)+/,"-").gsub(/(-)+$/,"")&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;     end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt;   end&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:courier new;font-size:100%;"  &gt; end&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;it will automatically create stripped_{column_name} and will take care of duplicates and instead of using find_by_id(), find_by_stripped_{column_name} will be used to get the resource and "make_or_update_pretty_url_name" method will also be available for any manual work too.&lt;br /&gt;&lt;br /&gt;Hope this just adds in the knowledge base of stuff, and if there is anything about it, let me know through comments..&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-4848885563145386945?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/DR4gm9rW61I" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/4848885563145386945/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/05/pretty-urls-with-name-or-title-in-ruby.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4848885563145386945?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/4848885563145386945?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/DR4gm9rW61I/pretty-urls-with-name-or-title-in-ruby.html" title="Pretty urls with name or title in ruby on rails" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/05/pretty-urls-with-name-or-title-in-ruby.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MESHs6fCp7ImA9WxVaGUk.&quot;"><id>tag:blogger.com,1999:blog-3587759278465298449.post-1474773435775008473</id><published>2009-04-17T11:44:00.008+05:30</published><updated>2009-04-17T11:53:29.514+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-17T11:53:29.514+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="interning empty string" /><category scheme="http://www.blogger.com/atom/ns#" term="file" /><category scheme="http://www.blogger.com/atom/ns#" term="rails" /><category scheme="http://www.blogger.com/atom/ns#" term="rename" /><category scheme="http://www.blogger.com/atom/ns#" term="error" /><category scheme="http://www.blogger.com/atom/ns#" term="rubyonrails" /><title>RAILS: interning empty string</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DYvIY8YymnkQ5ErOPL2HaclKyPo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DYvIY8YymnkQ5ErOPL2HaclKyPo/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/DYvIY8YymnkQ5ErOPL2HaclKyPo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DYvIY8YymnkQ5ErOPL2HaclKyPo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;Hi folks,&lt;br /&gt;&lt;br /&gt;Really after a long time, writing a post on &lt;a href="http://rubyonrails.org/"&gt;ROR&lt;/a&gt; (even a simple post). AN the reason for delay.. work as usual and secondary i want people to educate on an error, with the statement as "interning empty string" something showing thing like this.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;img style="width: 320px; height: 122px;" src="http://4.bp.blogspot.com/_W3aCuM6a2x8/SegfoUt0YUI/AAAAAAAACEs/ZcUmDnrJ4ic/s320/1_one.jpg" alt="" id="BLOGGER_PHOTO_ID_5325541336981725506" border="0" /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Being from IT industry and not much into literature, first thought came in my mind after hitting this error was "what does interning means?" and the answer from &lt;a href="http://dictionary.reference.com/browse/interning"&gt;dictionary.com&lt;/a&gt; says "to restrict to or confine within prescribed limits" which just meant some breakage of boundary of something and i am the culprit( as always :)) )&lt;br /&gt;&lt;br /&gt;But an ware of what i did, started hitting Ctrl + Z (to undo my bad deeds :))) but no luck!! just nothing.. i was like what!! what is that which is not getting undone over here and even google search was showing some very unresponsive result... so was left alone to trigger army against this.&lt;br /&gt;And finally i got the answer and it was...&lt;br /&gt;&lt;br /&gt;If you have a partial defined something like "_partial_name.html.erb" everything is fine till the time you don't append an extra dot to the partial file name something like "_partial_name..html.erb" it will through "interning empty string" even if you don't render the partial anywhere&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;img style="width: 255px; height: 111px;" src="http://1.bp.blogspot.com/_W3aCuM6a2x8/Segf3LEypuI/AAAAAAAACE0/DoZOk3cAuSQ/s320/2_two.jpg" alt="" id="BLOGGER_PHOTO_ID_5325541592091764450" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;So guys and gals next time try to be more concentrated on renaming a partial, because it can lead to something where even google searches don't have a definite answer to.&lt;br /&gt;&lt;br /&gt;That is it for the day.&lt;br /&gt;&lt;br /&gt;Happy coding and happy engineering&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3587759278465298449-1474773435775008473?l=anaphoral.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/PraveenKumarSinha/~4/txyUkynqvKo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://anaphoral.blogspot.com/feeds/1474773435775008473/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://anaphoral.blogspot.com/2009/04/rails-interning-empty-string.html#comment-form" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1474773435775008473?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3587759278465298449/posts/default/1474773435775008473?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/PraveenKumarSinha/~3/txyUkynqvKo/rails-interning-empty-string.html" title="RAILS: interning empty string" /><author><name>Praveen Kumar Sinha</name><uri>http://www.blogger.com/profile/17952245254162366449</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="19" height="32" src="http://2.bp.blogspot.com/_W3aCuM6a2x8/SSAl3gDR9EI/AAAAAAAABPk/jiY_znfSrq8/S220/praveen-1253.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_W3aCuM6a2x8/SegfoUt0YUI/AAAAAAAACEs/ZcUmDnrJ4ic/s72-c/1_one.jpg" height="72" width="72" /><thr:total>5</thr:total><feedburner:origLink>http://anaphoral.blogspot.com/2009/04/rails-interning-empty-string.html</feedburner:origLink></entry></feed>

