<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>AmirWatad.com</title>
	
	<link>http://www.amirwatad.com/blog</link>
	<description>Remember the name ;)</description>
	<lastBuildDate>Sat, 06 Mar 2010 20:48:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Amirwatadcom" /><feedburner:info uri="amirwatadcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Finding The Median Of Two Sorted Arrays</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/QpI--CKounw/</link>
		<comments>http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 20:48:07 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Recursion]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=553</guid>
		<description><![CDATA[This is one of the beautiful cases where solving the general case first, and then applying it to a particular case is simpler and smoother than solving the particular case at once.
The problem:
Given two sorted arrays, &#8220;a&#8221; and &#8220;b&#8221;, with sizes &#8220;sa&#8221; and &#8220;sb&#8221; respectively, find the median of the union of these arrays.
Complexity requirements: [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/">Finding The Median Of Two Sorted Arrays</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This is one of the beautiful cases where solving the general case first, and then applying it to a particular case is simpler and smoother than solving the particular case at once.</p>
<p><strong>The problem:</strong></p>
<blockquote><p>Given two sorted arrays, &#8220;a&#8221; and &#8220;b&#8221;, with sizes &#8220;sa&#8221; and &#8220;sb&#8221; respectively, find the median of the union of these arrays.</p>
<p>Complexity requirements: O(log(sa + sb)) in the worst case, both time and space.</p></blockquote>
<p>There are a few solutions for this problem, but non of them is as intuitive as the solution of a more general problem:<strong> The Select Problem:</strong></p>
<blockquote><p>Given two sorted arrays, &#8220;a&#8221; and &#8220;b&#8221;, with sizes &#8220;sa&#8221; and &#8220;sb&#8221; respectively, find the k-th smallest element of the union of these arrays. Under the same complexity requirements as above.</p></blockquote>
<p><span id="more-553"></span></p>
<p>Once the select problem is solved, the median problem is solved as well, since the median is the ((sa + sb)/2 + 1)th smallest element (if sa+sb is odd), or the average of the two middle elements (if sa+sb is even).</p>
<p>So, let&#8217;s solve the select problem first:</p>
<p>The idea is to (virtually) partition &#8220;a&#8221; into two arrays: &#8220;a_left&#8221; and &#8220;a_right&#8221;, and the same for &#8220;b&#8221;: &#8220;b_left&#8221; and &#8220;b_right&#8221;, such that the size of &#8220;a_left&#8221; plus the size of &#8220;b_left&#8221; is exactly k.</p>
<p>Ideally, a_left will be a[0..(k/2-1)] and b_left will be b[0..(k/2-1)]. Unless, of course, a is smaller than k/2, in that case we&#8217;ll take &#8220;sa&#8221; elements from &#8220;a&#8221; (i.e. the whole array), and the rest of the elements (k &#8211; sa elements) from&#8221;b&#8221;.</p>
<p>Let&#8217;s assume that a_left has &#8220;na&#8221; elemetns, and b_left has &#8220;nb&#8221; elements. As we stated before, na+nb = k.</p>
<p><span style="text-decoration: underline;">Trivial case 1:</span></p>
<p>k = 1. i.e., we need to find the smallest element of the union of &#8220;a&#8221; and &#8220;b&#8221;. Obviously, it&#8217;s either the first element of &#8220;a&#8221; or the first element of &#8220;b&#8221;. This operation is cheap. O(1)</p>
<p><span style="text-decoration: underline;">Trivial case 2:</span></p>
<p>a[na-1] = b[nb-1]</p>
<p>In this case, the k-th smallest element is a[na-1] (or b[nb-1]): We have exactly (na + nb = k) elements smaller than it.</p>
<p><span style="text-decoration: underline;">Case 3:</span></p>
<p>a[na-1] &lt; b[nb-1]</p>
<p>This is the interesting case. If a[na-1] is smaller than b[nb-1], then:</p>
<p>1. The k-th smallest element cannot be in the &#8220;a_left&#8221; array:</p>
<p>All elements in &#8220;a_right&#8221; are greater than any of those in &#8220;a_left&#8221; (&#8220;a&#8221; is sorted). Total: sa &#8211; na elements</p>
<p>All elements in &#8220;b_right&#8221; are greater than any of those in &#8220;a_left&#8221; (&#8220;b&#8221; is sorted and a[na-1] &lt; b[nb-1]). Total: sb &#8211; nb elements</p>
<p>At least one element in &#8220;b_left&#8221; is greater than any of those in &#8220;a_left&#8221; (we already know that b[nb-1] is such an element). Total: 1 (at least)</p>
<p>So, for any element in &#8220;a_left&#8221;, there are at least (sa &#8211; na + sb &#8211; nb + 1 = sa + sb &#8211; k + 1) elements which are greater than it.</p>
<p>The k-th smallest element must have exactly (sa + sb &#8211; k) elements greater than it. Hence, none of the elements in &#8220;a_left&#8221; can be the k-th smallest element.</p>
<p>2. What we do know about the elements in &#8220;a_left&#8221;, is that all of them are among the k smallest elements (but none is the k-th smallest) &#8211; Using the same logics above.</p>
<p>3. None of the elements in &#8220;b_right&#8221; are the k-th smallest element. We already know that all the elements in &#8220;a_left&#8221; and all the elements in &#8220;b_left&#8221; (total: k elements) are smaller than any element in &#8220;b_right&#8221;</p>
<p>From the three observation above, we can state that the k-th smallest element of the union of &#8220;a&#8221; and &#8220;b&#8221;, is the (k &#8211; na)th smallest element of the union of &#8220;a_right&#8221; and &#8220;b_left&#8221;: We excluded &#8220;a_left&#8221; in (1), excluded &#8220;b_right&#8221; in (3), and we already have &#8220;na&#8221; of the k smallest elements, so we need to find the (k-na)th smallest in the arrays not excluded.</p>
<p><span style="text-decoration: underline;">The last case</span>, where a[na-1] &gt; b[nb-1] is similar to the previous case, except that &#8220;a&#8221; and &#8220;b&#8221; have exchanged there roles.</p>
<p><strong>Here is the implementation in C of the above:</strong></p>
<div class="codecolorer-container c twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br /></div></td><td><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">#include &lt;stdio.h&gt;</span><br />
<span style="color: #808080; font-style: italic;">/*<br />
select:<br />
gets two sorted positive integer arrays, a &amp; b, with sizes sa &amp; sb respectively,<br />
and returns the k-th smallest element of their union.<br />
smallest element is referenced with k = 1<br />
returns -1 on error<br />
*/</span><br />
<span style="color: #993333;">int</span> select<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> <span style="color: #339933;">*</span>a<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> <span style="color: #339933;">*</span>b<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> sa<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> sb<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> k<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #993333;">int</span> ma <span style="color: #339933;">=</span> sa <span style="color: #339933;">&lt;</span> k<span style="color: #339933;">/</span>2 <span style="color: #339933;">?</span> sa <span style="color: #339933;">-</span> 1 <span style="color: #339933;">:</span> k<span style="color: #339933;">/</span>2 <span style="color: #339933;">-</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #993333;">int</span> mb <span style="color: #339933;">=</span> k <span style="color: #339933;">-</span> ma <span style="color: #339933;">-</span> <span style="color: #0000dd;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">+</span> sb <span style="color: #339933;">&lt;</span> k<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #339933;">-</span><span style="color: #0000dd;">1</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">==</span> 0<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> b<span style="color: #009900;">&#91;</span>k <span style="color: #339933;">-</span> 1<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>sb <span style="color: #339933;">==</span> 0<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> a<span style="color: #009900;">&#91;</span>k <span style="color: #339933;">-</span> 1<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>k <span style="color: #339933;">==</span> 1<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> a<span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span> <span style="color: #339933;">&lt;</span> b<span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span> <span style="color: #339933;">?</span> a<span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> b<span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span>ma<span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> b<span style="color: #009900;">&#91;</span>mb<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> a<span style="color: #009900;">&#91;</span>ma<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>a<span style="color: #009900;">&#91;</span>ma<span style="color: #009900;">&#93;</span> <span style="color: #339933;">&lt;</span> b<span style="color: #009900;">&#91;</span>mb<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> select<span style="color: #009900;">&#40;</span>a <span style="color: #339933;">+</span> ma <span style="color: #339933;">+</span> 1<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> sa <span style="color: #339933;">-</span> ma <span style="color: #339933;">-</span> 1<span style="color: #339933;">,</span> mb <span style="color: #339933;">+</span> 1<span style="color: #339933;">,</span> k <span style="color: #339933;">-</span> ma <span style="color: #339933;">-</span> 1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> select<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> b <span style="color: #339933;">+</span> mb <span style="color: #339933;">+</span> 1<span style="color: #339933;">,</span> ma <span style="color: #339933;">+</span> 1<span style="color: #339933;">,</span> sb <span style="color: #339933;">-</span> mb <span style="color: #339933;">-</span> 1<span style="color: #339933;">,</span> k <span style="color: #339933;">-</span> mb <span style="color: #339933;">-</span> 1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/*<br />
median:<br />
uses select to find the median of the union of a and b (where a and b are sorted<br />
positive integer arrays of sizes sa and sb respectively.<br />
*/</span><br />
<span style="color: #993333;">int</span> median<span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> <span style="color: #339933;">*</span>a<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> <span style="color: #339933;">*</span>b<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> sa<span style="color: #339933;">,</span> <span style="color: #993333;">int</span> sb<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #993333;">int</span> m1<span style="color: #339933;">,</span> m2<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">+</span> sb<span style="color: #009900;">&#41;</span> <span style="color: #339933;">%</span> 2 <span style="color: #339933;">==</span> 1<span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> select<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> sa<span style="color: #339933;">,</span> sb<span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">+</span> sb<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>2 <span style="color: #339933;">+</span> 1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; m1 <span style="color: #339933;">=</span> select<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> sa<span style="color: #339933;">,</span> sb<span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">+</span> sb<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; m2 <span style="color: #339933;">=</span> select<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> sa<span style="color: #339933;">,</span> sb<span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span>sa <span style="color: #339933;">+</span> sb<span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>2 <span style="color: #339933;">+</span> 1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span>m1 <span style="color: #339933;">+</span> m2<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #0000dd;">2</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #993333;">int</span> a<span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>2<span style="color: #339933;">,</span> 4<span style="color: #339933;">,</span> 6<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #993333;">int</span> b<span style="color: #009900;">&#91;</span>11<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>1<span style="color: #339933;">,</span> 3<span style="color: #339933;">,</span> 5<span style="color: #339933;">,</span> 7<span style="color: #339933;">,</span> 13<span style="color: #339933;">,</span> 17<span style="color: #339933;">,</span> 22<span style="color: #339933;">,</span> 23<span style="color: #339933;">,</span> 24<span style="color: #339933;">,</span> 25<span style="color: #339933;">,</span> 31<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span style="color: #000066;">printf</span></a><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> median is %d<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> median<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> b<span style="color: #339933;">,</span> 3<span style="color: #339933;">,</span> 11<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/">Finding The Median Of Two Sorted Arrays</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Finding+The+Median+Of+Two+Sorted+Arrays+http://bit.ly/9826ip" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;submitHeadline=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;title=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;title=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;t=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Finding+The+Median+Of+Two+Sorted+Arrays&amp;link=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;title=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Finding The Median Of Two Sorted Arrays" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/&amp;title=Finding+The+Median+Of+Two+Sorted+Arrays" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Finding The Median Of Two Sorted Arrays" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=QpI--CKounw:xAi6NUaGOQg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=QpI--CKounw:xAi6NUaGOQg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=QpI--CKounw:xAi6NUaGOQg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=QpI--CKounw:xAi6NUaGOQg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=QpI--CKounw:xAi6NUaGOQg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=QpI--CKounw:xAi6NUaGOQg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=QpI--CKounw:xAi6NUaGOQg:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/QpI--CKounw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2010/03/06/finding-the-median-of-two-sorted-arrays/</feedburner:origLink></item>
		<item>
		<title>Array Indexing in C</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/RBnJXYbBSDY/</link>
		<comments>http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:04:33 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/</guid>
		<description><![CDATA[I found this interesting thing about array indexing in C somewhere in the web:
Suppose that &#8220;a&#8221; is an array. Then, a[5] and 5[a] are quivallent. Both are interpreted as *(5 + a) or *(a + 5) which is the same  
Also: &#8220;Hello World&#8221;[3] and 3["Hello World"] are the same. Try and C  
---------
Note:
Some [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/">Array Indexing in C</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I found this interesting thing about array indexing in C somewhere in the web:<br />
Suppose that &#8220;a&#8221; is an array. Then, a[5] and 5[a] are quivallent. Both are interpreted as *(5 + a) or *(a + 5) which is the same <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Array Indexing in C" /> <br />
Also: &#8220;Hello World&#8221;[3] and 3["Hello World"] are the same. Try and C <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Array Indexing in C" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/">Array Indexing in C</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Array+Indexing+in+C+http://bit.ly/7TwvmP" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;submitHeadline=Array+Indexing+in+C" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;title=Array+Indexing+in+C" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;title=Array+Indexing+in+C" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;t=Array+Indexing+in+C" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Array+Indexing+in+C&amp;link=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;title=Array+Indexing+in+C" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Array Indexing in C" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/&amp;title=Array+Indexing+in+C" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Array Indexing in C" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=RBnJXYbBSDY:LRgV6_QLyw4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=RBnJXYbBSDY:LRgV6_QLyw4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=RBnJXYbBSDY:LRgV6_QLyw4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=RBnJXYbBSDY:LRgV6_QLyw4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=RBnJXYbBSDY:LRgV6_QLyw4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=RBnJXYbBSDY:LRgV6_QLyw4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=RBnJXYbBSDY:LRgV6_QLyw4:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/RBnJXYbBSDY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2010/01/06/array-indexing-in-c/</feedburner:origLink></item>
		<item>
		<title>Infinite zip File</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/vhKpmnxzd4s/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 18:25:07 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Cool Tricks]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[protocols]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/</guid>
		<description><![CDATA[A nice idea: How to build an infinitely recursive zip file. Details and resulting file here:
http://www.steike.com/code/useless/zip-file-quine/
Have fun  
---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at AmirWatad.com Infinite zip File
       <p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/">Infinite zip File</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A nice idea: How to build an infinitely recursive zip file. Details and resulting file here:<br />
<a href="http://www.steike.com/code/useless/zip-file-quine/">http://www.steike.com/code/useless/zip-file-quine/</a></p>
<p>Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' title="Infinite zip File" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/">Infinite zip File</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Infinite+zip+File+http://bit.ly/5smCqd" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;submitHeadline=Infinite+zip+File" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;title=Infinite+zip+File" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;title=Infinite+zip+File" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;t=Infinite+zip+File" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Infinite+zip+File&amp;link=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;title=Infinite+zip+File" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Infinite zip File" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/&amp;title=Infinite+zip+File" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Infinite zip File" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=vhKpmnxzd4s:gquymDUh2a8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=vhKpmnxzd4s:gquymDUh2a8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=vhKpmnxzd4s:gquymDUh2a8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=vhKpmnxzd4s:gquymDUh2a8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=vhKpmnxzd4s:gquymDUh2a8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=vhKpmnxzd4s:gquymDUh2a8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=vhKpmnxzd4s:gquymDUh2a8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/vhKpmnxzd4s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/12/12/infinite-zip-file-2/</feedburner:origLink></item>
		<item>
		<title>Blogging From BlackBerry</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/XyxJqH2aAXM/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 13:36:41 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/</guid>
		<description><![CDATA[Posting from BlackBerry using Wordpress app for BlackBerry.
You can install the application to your BalckBerry from here: http://blackberry.wordpress.org/install
Have fun  
---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at AmirWatad.com Blogging From BlackBerry
       <p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/">Blogging From BlackBerry</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Posting from BlackBerry using Wordpress app for BlackBerry.<br />
You can install the application to your BalckBerry from here: http://blackberry.wordpress.org/install</p>
<p>Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Blogging From BlackBerry" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/">Blogging From BlackBerry</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Blogging+From+BlackBerry+http://bit.ly/5lIzpk" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;submitHeadline=Blogging+From+BlackBerry" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;title=Blogging+From+BlackBerry" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;title=Blogging+From+BlackBerry" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;t=Blogging+From+BlackBerry" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Blogging+From+BlackBerry&amp;link=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;title=Blogging+From+BlackBerry" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Blogging From BlackBerry" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/&amp;title=Blogging+From+BlackBerry" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Blogging From BlackBerry" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=XyxJqH2aAXM:qxzVbODmxUQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=XyxJqH2aAXM:qxzVbODmxUQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=XyxJqH2aAXM:qxzVbODmxUQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=XyxJqH2aAXM:qxzVbODmxUQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=XyxJqH2aAXM:qxzVbODmxUQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=XyxJqH2aAXM:qxzVbODmxUQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=XyxJqH2aAXM:qxzVbODmxUQ:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/XyxJqH2aAXM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/12/03/blogging-from-blackberry/</feedburner:origLink></item>
		<item>
		<title>Wisdom by Python (Easter Egg)</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/hlo8uwg40fQ/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 10:44:18 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Easter Eggs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=541</guid>
		<description><![CDATA[An easter egg by python displays a list of quotations, useful in programming and in many cases in life as well.
In your shell, type this:
1python -c 'import this'
You&#8217;ll get this:
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/">Wisdom by Python (Easter Egg)</a></p>
]]></description>
			<content:encoded><![CDATA[<p>An easter egg by python displays a list of quotations, useful in programming and in many cases in life as well.</p>
<p>In your shell, type this:</p>
<div class="codecolorer-container python twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">python -c <span style="color: #483d8b;">'import this'</span></div></td></tr></tbody></table></div>
<p>You&#8217;ll get this:</p>
<blockquote><p>The Zen of Python, by Tim Peters</p>
<p>Beautiful is better than ugly.<br />
Explicit is better than implicit.<br />
Simple is better than complex.<br />
Complex is better than complicated.<br />
Flat is better than nested.<br />
Sparse is better than dense.<br />
Readability counts.<br />
Special cases aren&#8217;t special enough to break the rules.<br />
Although practicality beats purity.<br />
Errors should never pass silently.<br />
Unless explicitly silenced.<br />
In the face of ambiguity, refuse the temptation to guess.<br />
There should be one&#8211; and preferably only one &#8211;obvious way to do it.<br />
Although that way may not be obvious at first unless you&#8217;re Dutch.<br />
Now is better than never.<br />
Although never is often better than *right* now.<br />
If the implementation is hard to explain, it&#8217;s a bad idea.<br />
If the implementation is easy to explain, it may be a good idea.<br />
Namespaces are one honking great idea &#8212; let&#8217;s do more of those!</p></blockquote>
<p>via <a href="http://www.commandlinefu.com/commands/view/3032/an-easter-egg-built-into-python-to-give-you-the-zen-of-python">commandlinefu</a></p>
<p>Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Wisdom by Python (Easter Egg)" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/">Wisdom by Python (Easter Egg)</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Wisdom+by+Python+%28Easter+Egg%29+http://bit.ly/aw4YL" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;submitHeadline=Wisdom+by+Python+%28Easter+Egg%29" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;title=Wisdom+by+Python+%28Easter+Egg%29" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;title=Wisdom+by+Python+%28Easter+Egg%29" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;t=Wisdom+by+Python+%28Easter+Egg%29" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Wisdom+by+Python+%28Easter+Egg%29&amp;link=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;title=Wisdom+by+Python+%28Easter+Egg%29" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Wisdom by Python (Easter Egg)" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/&amp;title=Wisdom+by+Python+%28Easter+Egg%29" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Wisdom by Python (Easter Egg)" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hlo8uwg40fQ:yAW99FGVUmk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hlo8uwg40fQ:yAW99FGVUmk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hlo8uwg40fQ:yAW99FGVUmk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=hlo8uwg40fQ:yAW99FGVUmk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hlo8uwg40fQ:yAW99FGVUmk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hlo8uwg40fQ:yAW99FGVUmk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=hlo8uwg40fQ:yAW99FGVUmk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/hlo8uwg40fQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/28/wisdom-by-python-easter-egg/</feedburner:origLink></item>
		<item>
		<title>Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/pAMauLgiXYQ/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 16:40:47 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=537</guid>
		<description><![CDATA[Since I upgraded Firefox to 3.5 (Codename : Shiretoko), I noticed that Facebook chat does not work anymore, moreover, in order to get notifications for new events, I had to refresh the page manually.
After a search at Google, I found the problem, and the way to fix it: Looks like Ubuntu had decided to rename [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/">Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Since I upgraded Firefox to 3.5 (Codename : Shiretoko), I noticed that Facebook chat does not work anymore, moreover, in order to get notifications for new events, I had to refresh the page manually.</p>
<p>After a search at Google, I found the problem, and the way to fix it: Looks like Ubuntu had decided to rename the <a href="http://en.wikipedia.org/wiki/User_agent">user-agent</a> into &#8220;Shiretoko&#8221; which is the codename of firefox 3.5, instead of &#8220;firefox&#8221;.</p>
<p>Because of the new user-agent name, Facebook does not recognize the browser as firefox, and thus disables some features that are browser dependent.</p>
<p>In order to fix the problem:</p>
<p>1. In the URI bar (that&#8217;s the place where you type the URLs of websites you want to visit), type &#8220;about:config&#8221; (without the double quotes).</p>
<p>2. Click the funny button &#8220;I&#8217;ll be carefull, I promise&#8221;.</p>
<p>3. Now look for &#8220;general.useragent.extra.firefox&#8221;, right click it, and choose &#8220;Modify&#8221;.</p>
<p>4. Instead of &#8220;Shiretoko&#8221;, type &#8220;Firefox&#8221;. (e.g. if you had &#8220;Shiretoko/3.5.4pre&#8221; it should become &#8220;Firefox/3.5.4pre&#8221;.</p>
<p>That&#8217;s it, now the world should be a better place <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /> </p>
<p>via <a href="http://www.vimtips.org/article/2009/09/15/shiretoko-and-facebook/">vimtips</a>.</p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/">Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu+http://bit.ly/mSkF2" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;submitHeadline=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;title=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;title=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;t=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu&amp;link=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;title=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/&amp;title=Fix+Facebook+Chat+in+Firefox+3.5+%28Shiretoko%29+in+Ubuntu" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Fix Facebook Chat in Firefox 3.5 (Shiretoko) in Ubuntu" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=pAMauLgiXYQ:3HJkXqrC1Kk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=pAMauLgiXYQ:3HJkXqrC1Kk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=pAMauLgiXYQ:3HJkXqrC1Kk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=pAMauLgiXYQ:3HJkXqrC1Kk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=pAMauLgiXYQ:3HJkXqrC1Kk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=pAMauLgiXYQ:3HJkXqrC1Kk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=pAMauLgiXYQ:3HJkXqrC1Kk:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/pAMauLgiXYQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/27/fix-facebook-chat-in-firefox-3-5-shiretoko-in-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Embed A Document Using Google Docs</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/JFcP9Of_7S8/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:20:14 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Documents]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=532</guid>
		<description><![CDATA[You can embed a document viewer for any PDF or PPT using Google Docs.
You will get something similar to this:

The code I used for the above is:
1&#60;iframe src=&#34;http://docs.google.com/gview?url=https://agora.cs.illinois.edu/download/attachments/10456143/vim.pdf?version=1&#38;embedded=true&#34; style=&#34;width:600px; height:500px;&#34; frameborder=&#34;0&#34;&#62;&#60;/iframe&#62;
Or in general:
1&#60;iframe src=&#34;http://docs.google.com/gview?url=DOCUMENT_URL_HERE&#38;embedded=true&#34; style=&#34;width:600px; height:500px;&#34; frameborder=&#34;0&#34;&#62;&#60;/iframe&#62;
Where DOCUMENT_URL_HERE should be replaced by the document&#8217;s URL  
via Google Operating System.
Smile  
---------
Note:
Some RSS readers might [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/">Embed A Document Using Google Docs</a></p>
]]></description>
			<content:encoded><![CDATA[<p>You can embed a document viewer for any PDF or PPT using Google Docs.</p>
<p>You will get something similar to this:</p>
<p><iframe src="http://docs.google.com/gview?url=https://agora.cs.illinois.edu/download/attachments/10456143/vim.pdf?version=1&#038;embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe></p>
<p>The code I used for the above is:</p>
<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://docs.google.com/gview?url=https://agora.cs.illinois.edu/download/attachments/10456143/vim.pdf?version=1&amp;embedded=true&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:600px; height:500px;&quot;</span> <span style="color: #000066;">frameborder</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Or in general:</p>
<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://docs.google.com/gview?url=DOCUMENT_URL_HERE&amp;embedded=true&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:600px; height:500px;&quot;</span> <span style="color: #000066;">frameborder</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/iframe.html"><span style="color: #000000; font-weight: bold;">iframe</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>Where DOCUMENT_URL_HERE should be replaced by the document&#8217;s URL <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Embed A Document Using Google Docs " /> </p>
<p>via <a href="http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html">Google Operating System.</a><br />
Smile <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Embed A Document Using Google Docs " /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/">Embed A Document Using Google Docs</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Embed+A+Document+Using+Google+Docs+http://bit.ly/11PwlF" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;submitHeadline=Embed+A+Document+Using+Google+Docs" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;title=Embed+A+Document+Using+Google+Docs" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;title=Embed+A+Document+Using+Google+Docs" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;t=Embed+A+Document+Using+Google+Docs" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Embed+A+Document+Using+Google+Docs&amp;link=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;title=Embed+A+Document+Using+Google+Docs" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Embed A Document Using Google Docs " /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/&amp;title=Embed+A+Document+Using+Google+Docs" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Embed A Document Using Google Docs " /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=JFcP9Of_7S8:T95RbmK0mPs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=JFcP9Of_7S8:T95RbmK0mPs:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=JFcP9Of_7S8:T95RbmK0mPs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=JFcP9Of_7S8:T95RbmK0mPs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=JFcP9Of_7S8:T95RbmK0mPs:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=JFcP9Of_7S8:T95RbmK0mPs:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=JFcP9Of_7S8:T95RbmK0mPs:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/JFcP9Of_7S8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/27/embed-a-document-using-google-docs/</feedburner:origLink></item>
		<item>
		<title>Re-Use A Bash Command With Different Parameters</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/hYNqvLErfPI/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:00:31 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=528</guid>
		<description><![CDATA[Suppose you have typed and executed this command in your Linux shell:
1./script_a.sh 1.23 &#38;&#38; ./script_b.sh 1.23 &#38;&#38; ./script_c.sh 1.23.45
Now you want to run the same command, but with 2.34 instead of 1.23
A nice way to do it is this:
1!!:gs/1.23/2.34
Meaning, run the last command (!! is also called &#8216;bang bang&#8217;, and it&#8217;s substituted by the last [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/">Re-Use A Bash Command With Different Parameters</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Suppose you have typed and executed this command in your Linux shell:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>script_a.sh <span style="color: #000000;">1.23</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> .<span style="color: #000000; font-weight: bold;">/</span>script_b.sh <span style="color: #000000;">1.23</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> .<span style="color: #000000; font-weight: bold;">/</span>script_c.sh 1.23.45</div></td></tr></tbody></table></div>
<p>Now you want to run the same command, but with 2.34 instead of 1.23<br />
A nice way to do it is this:</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">!!</span>:gs<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.23</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.34</span></div></td></tr></tbody></table></div>
<p>Meaning, run the last command (!! is also called &#8216;bang bang&#8217;, and it&#8217;s substituted by the last command you executed), and replace every instance of 1.23 by 2.34</p>
<p>via <a href="http://unstableme.blogspot.com/2009/06/how-to-reuse-command-in-bash-command.html">Unix Bash Scripting</a>.<br />
Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Re Use A Bash Command With Different Parameters" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/">Re-Use A Bash Command With Different Parameters</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Re-Use+A+Bash+Command+With+Different+Parameters+http://bit.ly/1gflbo" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;submitHeadline=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;title=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;title=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;t=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Re-Use+A+Bash+Command+With+Different+Parameters&amp;link=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;title=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Re Use A Bash Command With Different Parameters" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/&amp;title=Re-Use+A+Bash+Command+With+Different+Parameters" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Re Use A Bash Command With Different Parameters" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hYNqvLErfPI:Cilpwf-5XbA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hYNqvLErfPI:Cilpwf-5XbA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hYNqvLErfPI:Cilpwf-5XbA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=hYNqvLErfPI:Cilpwf-5XbA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hYNqvLErfPI:Cilpwf-5XbA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=hYNqvLErfPI:Cilpwf-5XbA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=hYNqvLErfPI:Cilpwf-5XbA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/hYNqvLErfPI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/27/re-use-a-bash-command-with-different-parameters/</feedburner:origLink></item>
		<item>
		<title>Make Shell Scripts Executable By Default</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/7NBHHXafsZs/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 21:05:34 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Vim]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell Scripts]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=521</guid>
		<description><![CDATA[If you use vim to write shell scripts, you might want to save the &#8220;chmod +x&#8221; command after saving the script.
By adding the following line to your vimrc file (typically, it&#8217;s located at ~/.vimrc), scripts will automatically become executable.
au BufWritePost * if getline(1) =~ &#8220;^#!&#8221; &#124; if getline(1) =~ &#8220;/bin/&#8221; &#124; silent !chmod a+x &#60;afile&#62; [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/">Make Shell Scripts Executable By Default</a></p>
]]></description>
			<content:encoded><![CDATA[<p>If you use vim to write shell scripts, you might want to save the &#8220;chmod +x&#8221; command after saving the script.</p>
<p>By adding the following line to your vimrc file (typically, it&#8217;s located at ~/.vimrc), scripts will automatically become executable.</p>
<blockquote><p>au BufWritePost * if getline(1) =~ &#8220;^#!&#8221; | if getline(1) =~ &#8220;/bin/&#8221; | silent !chmod a+x &lt;afile&gt;  | endif | endif</p></blockquote>
<p>(meaning, if the file includes #! with &#8220;/bin/&#8221; in the path, apply &#8220;chmod a+x&#8221; on this file).</p>
<p>via <a href="http://www.shell-fu.org/lister.php?id=858">shell-fu</a>.</p>
<p>Have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Make Shell Scripts Executable By Default" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/">Make Shell Scripts Executable By Default</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Make+Shell+Scripts+Executable+By+Default+http://bit.ly/ZmgzE" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;submitHeadline=Make+Shell+Scripts+Executable+By+Default" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;title=Make+Shell+Scripts+Executable+By+Default" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;title=Make+Shell+Scripts+Executable+By+Default" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;t=Make+Shell+Scripts+Executable+By+Default" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Make+Shell+Scripts+Executable+By+Default&amp;link=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;title=Make+Shell+Scripts+Executable+By+Default" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Make Shell Scripts Executable By Default" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/&amp;title=Make+Shell+Scripts+Executable+By+Default" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Make Shell Scripts Executable By Default" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=7NBHHXafsZs:6gCpePEGqSU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=7NBHHXafsZs:6gCpePEGqSU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=7NBHHXafsZs:6gCpePEGqSU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=7NBHHXafsZs:6gCpePEGqSU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=7NBHHXafsZs:6gCpePEGqSU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=7NBHHXafsZs:6gCpePEGqSU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=7NBHHXafsZs:6gCpePEGqSU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/7NBHHXafsZs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/26/make-shell-scripts-executable-by-default/</feedburner:origLink></item>
		<item>
		<title>Fetch Links From Twitter Into Your RSS Reader</title>
		<link>http://feedproxy.google.com/~r/Amirwatadcom/~3/WuISxToBRs8/</link>
		<comments>http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 19:04:59 +0000</pubDate>
		<dc:creator>Amir Watad</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Social Media]]></category>

		<guid isPermaLink="false">http://www.amirwatad.com/blog/?p=518</guid>
		<description><![CDATA[Twitter streams are usually full of links, most of them are shortened by a URL shortener, and filtering them might be time consuming.
A cool service, Readtwit, solves this problem intelligently: Using Readtwit, you can easily create a RSS feed of all links appearing in your twitter stream. The service will fetch the links, and send [...]<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/">Fetch Links From Twitter Into Your RSS Reader</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Twitter streams are usually full of links, most of them are shortened by a URL shortener, and filtering them might be time consuming.</p>
<p>A cool service, <a title="Readtwit" href="http://www.readtwit.com/" target="_blank">Readtwit</a>, solves this problem intelligently: Using Readtwit, you can easily create a RSS feed of all links appearing in your twitter stream. The service will fetch the links, and send the full story to your RSS reader. It allows you to filter the tweets (block people and block hashtags).</p>
<p>Neat and time-saving. Try it and have fun <img src='http://www.amirwatad.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="Fetch Links From Twitter Into Your RSS Reader" /> </p>
<p>---------
Note:
Some RSS readers might display this post with incorrect format.
View original post at <a href="http://www.amirwatad.com/blog">AmirWatad.com </a><br/><br/><a href="http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/">Fetch Links From Twitter Into Your RSS Reader</a></p>
<p align="left"><a target="_blank" class="tt" href="http://twitter.com/home/?status=Fetch+Links+From+Twitter+Into+Your+RSS+Reader+http://bit.ly/2Jm6Bm" title="Post to Twitter"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://buzz.yahoo.com/submit?submitUrl=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;submitHeadline=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to Yahoo Buzz"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-buzz-big3.png" alt="Post to Yahoo Buzz" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://delicious.com/post?url=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;title=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to Delicious"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-delicious-big3.png" alt="Post to Delicious" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://digg.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;title=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to Digg"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-digg-big3.png" alt="Post to Digg" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://www.facebook.com/share.php?u=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;t=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to Facebook"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-facebook-big3.png" alt="Post to Facebook" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://ping.fm/ref/?method=microblog&amp;title=Fetch+Links+From+Twitter+Into+Your+RSS+Reader&amp;link=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/" title="Post to Ping.fm"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-ping-big3.png" alt="Post to Ping.fm" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://reddit.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;title=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to Reddit"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-reddit-big3.png" alt="Post to Reddit" title="Fetch Links From Twitter Into Your RSS Reader" /></a> <a target="_blank" class="tt" href="http://stumbleupon.com/submit?url=http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/&amp;title=Fetch+Links+From+Twitter+Into+Your+RSS+Reader" title="Post to StumbleUpon"><img class="nothumb" src="http://www.amirwatad.com/blog/wp-content/plugins/tweet-this/icons/tt-su-big3.png" alt="Post to StumbleUpon" title="Fetch Links From Twitter Into Your RSS Reader" /></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=WuISxToBRs8:n86oWY6_ujw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=WuISxToBRs8:n86oWY6_ujw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=WuISxToBRs8:n86oWY6_ujw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=WuISxToBRs8:n86oWY6_ujw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=WuISxToBRs8:n86oWY6_ujw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Amirwatadcom?a=WuISxToBRs8:n86oWY6_ujw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Amirwatadcom?i=WuISxToBRs8:n86oWY6_ujw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Amirwatadcom/~4/WuISxToBRs8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.amirwatad.com/blog/archives/2009/09/26/fetch-links-from-twitter-into-your-rss-reader/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 2.399 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-09 20:40:45 -->
