<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>:-[] :-||  Vivek Khokhar rambles here :-O :-[]</title>
	<link>http://khokhar.info</link>
	<description></description>
	<pubDate>Fri, 07 Dec 2007 02:35:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>
	<language>en</language>
			<item>
		<title>ERROR:  While executing gem &#8230; (Gem::GemNotFoundException)</title>
		<link>http://khokhar.info/2007/12/06/error-while-executing-gem-gemgemnotfoundexception/</link>
		<comments>http://khokhar.info/2007/12/06/error-while-executing-gem-gemgemnotfoundexception/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 02:35:41 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://khokhar.info/2007/12/06/error-while-executing-gem-gemgemnotfoundexception/</guid>
		<description><![CDATA[You might be feeling annoyed with this problem. (I do)
Problem could be:
your local source cache
Example:   /usr/lib/ruby/gems/1.8/source_cache
; try removing this file (Your path might be different than above given; check your path first using #gem env)
If this does not solves your problem
check your env var REMOTE SOURCES (#gem env)
If it is not gems.rubyforge.org then use [...]]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/12/06/error-while-executing-gem-gemgemnotfoundexception/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>/bin/rm: Argument list too long  tmp/sessions/ruby_sess.*</title>
		<link>http://khokhar.info/2007/12/06/binrm-argument-list-too-long-tmpsessionsruby_sess/</link>
		<comments>http://khokhar.info/2007/12/06/binrm-argument-list-too-long-tmpsessionsruby_sess/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 01:25:19 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Linux</category>
	<category>Ruby</category>
	<category>Rails</category>
		<guid isPermaLink="false">http://khokhar.info/2007/12/06/binrm-argument-list-too-long-tmpsessionsruby_sess/</guid>
		<description><![CDATA[Well this happens when there are too many files to process:
Best way in this case is to do batch processing:
Sample command:
find . -name 'ruby_sess.*' -print0 &#124; xargs -0 rm
]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/12/06/binrm-argument-list-too-long-tmpsessionsruby_sess/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>lynx: https how to</title>
		<link>http://khokhar.info/2007/07/31/lynx-https-how-to/</link>
		<comments>http://khokhar.info/2007/07/31/lynx-https-how-to/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 09:03:25 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://khokhar.info/2007/07/31/lynx-https-how-to/</guid>
		<description><![CDATA[step1: Compile lynx with ssl support
cd lynx source folder
./configure &#8211;with-ssl
step2:  make ; make install
To avoid local ssl error prompts/complains,  Open lynx.cfg make following change:
step3:  FORCE_SSL_PROMPT:yes
thats all!. you should be able to crawl https pages using lynx now.

]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/07/31/lynx-https-how-to/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>mpgtx: MPEG splitting made easy</title>
		<link>http://khokhar.info/2007/07/26/mpgtx-mpeg-splitting-made-easy/</link>
		<comments>http://khokhar.info/2007/07/26/mpgtx-mpeg-splitting-made-easy/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 09:47:22 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://khokhar.info/2007/07/26/mpgtx-mpeg-splitting-made-easy/</guid>
		<description><![CDATA[Considering ffmpeg for mpeg cutting/splitting&#8230; too complex i think for such a simple task.
mpgtx.sourceforge.net  is the way to go if are looking for simple operations like cutting/joining mpeg files.
Tool Summary :
This simple command(from a ruby script I wrote) will cut the full length videos into count_chunks pieces and store them under directory_writable, where count_chunks [...]]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/07/26/mpgtx-mpeg-splitting-made-easy/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>RAILS_ROOT</title>
		<link>http://khokhar.info/2007/07/26/rails_root/</link>
		<comments>http://khokhar.info/2007/07/26/rails_root/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 09:38:12 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Ruby</category>
	<category>Rails</category>
		<guid isPermaLink="false">http://khokhar.info/2007/07/26/rails_root/</guid>
		<description><![CDATA[RAILS_ROOT gives you relative path within the applications it works fine as far as you need the path within rails application.
How about getting absolute path to rails folder?
I found one way, and thats from the ENV hash.
You can use ENV[&#8217;PWD&#8217;] to find absolute path to the rails folder.
Any other ways ??
*Update 4th Oct 2007*
Dir.pwd is [...]]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/07/26/rails_root/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Ruby: Can&#8217;t modify frozen string</title>
		<link>http://khokhar.info/2007/06/11/ruby-cant-modify-frozen-string/</link>
		<comments>http://khokhar.info/2007/06/11/ruby-cant-modify-frozen-string/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 09:14:25 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Ruby</category>
		<guid isPermaLink="false">http://khokhar.info/2007/06/11/ruby-cant-modify-frozen-string/</guid>
		<description><![CDATA[Workaround:
_use_me = frozen_string.dup

]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/06/11/ruby-cant-modify-frozen-string/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Rails RJS redirect</title>
		<link>http://khokhar.info/2007/06/11/rails-rjs-redirect/</link>
		<comments>http://khokhar.info/2007/06/11/rails-rjs-redirect/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 09:12:36 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Ruby</category>
	<category>Rails</category>
		<guid isPermaLink="false">http://khokhar.info/2007/06/11/rails-rjs-redirect/</guid>
		<description><![CDATA[page.redirect_to :action => &#8216;thanks&#8217;, :p1 => @g_resp.params[&#8221;_code&#8221;], :p2 => @r_id

]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/06/11/rails-rjs-redirect/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Form tag  Extra Vertical Space Problem</title>
		<link>http://khokhar.info/2007/06/01/form-tag-extra-vertical-space-problem/</link>
		<comments>http://khokhar.info/2007/06/01/form-tag-extra-vertical-space-problem/#comments</comments>
		<pubDate>Fri, 01 Jun 2007 11:48:05 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Uncategorized</category>
	<category>css</category>
		<guid isPermaLink="false">http://khokhar.info/2007/06/01/form-tag-extra-vertical-space-problem/</guid>
		<description><![CDATA[Fix:
form style=&#8221;margin-top: 0px;margin-bottom: 0px;&#8221;

]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/06/01/form-tag-extra-vertical-space-problem/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Tips &#038; Tricks</title>
		<link>http://khokhar.info/2007/05/28/tips-tricks/</link>
		<comments>http://khokhar.info/2007/05/28/tips-tricks/#comments</comments>
		<pubDate>Tue, 29 May 2007 07:57:03 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Uncategorized</category>
	<category>mysql</category>
		<guid isPermaLink="false">http://khokhar.info/2007/05/28/tips-tricks/</guid>
		<description><![CDATA[Mysql Getting Random Row: &#8220;order by rand()&#8221;

]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/05/28/tips-tricks/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>textbox image alignment problem</title>
		<link>http://khokhar.info/2007/04/19/textbox-image-alignment-problem/</link>
		<comments>http://khokhar.info/2007/04/19/textbox-image-alignment-problem/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 08:40:20 +0000</pubDate>
		<dc:creator>Vivek Khokhar</dc:creator>
		
	<category>Ruby</category>
	<category>css</category>
		<guid isPermaLink="false">http://khokhar.info/2007/04/19/textbox-image-alignment-problem/</guid>
		<description><![CDATA[Problem:
text_field(:member, :dob,:size=>&#8221;20&#8243;, :maxlength => &#8220;50&#8243;,:tabindex=>&#8221;22&#8243;) img_tag
Fix:
text_field(:member, :dob,:size=>&#8221;20&#8243;, :maxlength => &#8220;50&#8243;,:tabindex=>&#8221;22&#8243;) img_tag {:style=&#8221;position:absolute&#8221;}
]]></description>
		<wfw:commentRSS>http://khokhar.info/2007/04/19/textbox-image-alignment-problem/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
