<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ali's Notes &#187; aghoras</title>
	<atom:link href="http://aghoras.wordpress.com/author/aghoras/feed/" rel="self" type="application/rss+xml" />
	<link>http://aghoras.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 29 Dec 2009 22:27:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='aghoras.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/23b461566d1cebdf231c43cd84f743a5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Ali's Notes &#187; aghoras</title>
		<link>http://aghoras.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aghoras.wordpress.com/osd.xml" title="Ali&#8217;s Notes" />
		<item>
		<title>Combining Lines with awk</title>
		<link>http://aghoras.wordpress.com/2009/12/29/combining-lines-with-awk/</link>
		<comments>http://aghoras.wordpress.com/2009/12/29/combining-lines-with-awk/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 22:22:25 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[shell tricks]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2009/12/29/combining-lines-with-awk/</guid>
		<description><![CDATA[To combine every 4 lines in a file with a space in between:
 awk &#8216;ORS=NR%4?&#8221; &#8220;:RS&#8217; foo.txt
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=71&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To combine every 4 lines in a file with a space in between:</p>
<p> awk &#8216;ORS=NR%4?&#8221; &#8220;:RS&#8217; foo.txt</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=71&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2009/12/29/combining-lines-with-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Deck Refinishing</title>
		<link>http://aghoras.wordpress.com/2009/09/29/deck-refinishing/</link>
		<comments>http://aghoras.wordpress.com/2009/09/29/deck-refinishing/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 15:23:22 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/?p=68</guid>
		<description><![CDATA[I used Behr&#8217;s No 63 to open up the pores and make the wood more absorbent. Then I used Behr&#8217;s Premium Deck and Fence finish No 500 (Natural). I applied two layers of finish on the deck and the stairs on 9/28/2009.
The first layer was applied with a semi-rough roller (3/4 nap) and worked with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=68&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I used Behr&#8217;s No 63 to open up the pores and make the wood more absorbent. Then I used Behr&#8217;s Premium Deck and Fence finish No 500 (Natural). I applied two layers of finish on the deck and the stairs on 9/28/2009.<br />
The first layer was applied with a semi-rough roller (3/4 nap) and worked with a 6&#8243; brush. For the second layer, I just used roller which left a few splotches.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=68&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2009/09/29/deck-refinishing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>using rsync</title>
		<link>http://aghoras.wordpress.com/2009/02/03/using-rsync/</link>
		<comments>http://aghoras.wordpress.com/2009/02/03/using-rsync/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:41:52 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[shell tricks]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2009/02/03/using-rsync/</guid>
		<description><![CDATA[To sync all the files that match a pattern recursively:
rsync -rcv  &#8211;include &#8220;*.java&#8221; &#8211;include &#8220;*/&#8221; &#8211;exclude &#8220;*&#8221; pdu@10.34.179.196:~/workspace/gds_source ~/tmp 
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=67&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To sync all the files that match a pattern recursively:</p>
<p>rsync -rcv  &#8211;include &#8220;*.java&#8221; &#8211;include &#8220;*/&#8221; &#8211;exclude &#8220;*&#8221; pdu@10.34.179.196:~/workspace/gds_source ~/tmp </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=67&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2009/02/03/using-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Bash Prompt</title>
		<link>http://aghoras.wordpress.com/2009/01/29/bash-prompt/</link>
		<comments>http://aghoras.wordpress.com/2009/01/29/bash-prompt/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 17:08:23 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[shell tricks]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2009/01/29/bash-prompt/</guid>
		<description><![CDATA[My Bash prompt:
export PS1=&#8217;\[\e[0;32m\][\u@\h] \[\e[1;37m\]\W\[\e[1;32m\]\$ \[\e[0;37m\] &#8216;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=66&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My Bash prompt:<br />
export PS1=&#8217;\[\e[0;32m\][\u@\h] \[\e[1;37m\]\W\[\e[1;32m\]\$ \[\e[0;37m\] &#8216;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=66&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2009/01/29/bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Screen Notes</title>
		<link>http://aghoras.wordpress.com/2009/01/29/screen-notes/</link>
		<comments>http://aghoras.wordpress.com/2009/01/29/screen-notes/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:43:24 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[shell tricks]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2009/01/29/screen-notes/</guid>
		<description><![CDATA[Screen Notes:
To make the window infor displayed on top of an xterm window:
hardstatus lastline "%w" 
To make the line show up at the bottom of the window:
hardstatus alwayslastline "%w" 
you can put these  in ~/.screenrc
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=65&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Screen Notes:</p>
<p>To make the window infor displayed on top of an xterm window:</p>
<p><strong><tt>hardstatus lastline "%w" </tt></strong><br />
To make the line show up at the bottom of the window:</p>
<p><strong><tt>hardstatus alwayslastline "%w" </tt></strong></p>
<p>you can put these  in ~/.screenrc</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=65&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2009/01/29/screen-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Solaris screen saver</title>
		<link>http://aghoras.wordpress.com/2008/12/24/solaris-screen-saver/</link>
		<comments>http://aghoras.wordpress.com/2008/12/24/solaris-screen-saver/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 17:15:49 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/?p=62</guid>
		<description><![CDATA[To enable the screen saver on Solaris, use xscreensaver-demo.  Do a man on xscreensaver for more info. To start xscreensaver automatically, put xscreensaver-command exit and xscreensaver &#38; in Xsession. Do a find and edit all the Xsession files since there are more than one on Solaris.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=62&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To enable the screen saver on Solaris, use xscreensaver-demo.  Do a man on xscreensaver for more info. To start xscreensaver automatically, put xscreensaver-command exit and xscreensaver &amp; in Xsession. Do a find and edit all the Xsession files since there are more than one on Solaris.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=62&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2008/12/24/solaris-screen-saver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Matrix by Vector multiplication in Matlab</title>
		<link>http://aghoras.wordpress.com/2008/11/18/matrix-by-vector-multiplication-in-matlab/</link>
		<comments>http://aghoras.wordpress.com/2008/11/18/matrix-by-vector-multiplication-in-matlab/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 22:27:20 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2008/11/18/matrix-by-vector-multiplication-in-matlab/</guid>
		<description><![CDATA[Lets say we have a vector (v) of size 1xn and a matrix (a) of size mxn.  If we want to multiply every row in the matrix by the vector, we can do the following:
j=repmat(v,m,1);
Then do to get the answer
a.*j
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=61&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Lets say we have a vector (v) of size 1xn and a matrix (a) of size mxn.  If we want to multiply every row in the matrix by the vector, we can do the following:</p>
<p>j=repmat(v,m,1);</p>
<p>Then do to get the answer</p>
<p>a.*j</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=61&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2008/11/18/matrix-by-vector-multiplication-in-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache and SE Linux</title>
		<link>http://aghoras.wordpress.com/2008/11/04/apache-and-se-linux/</link>
		<comments>http://aghoras.wordpress.com/2008/11/04/apache-and-se-linux/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 05:50:41 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/?p=59</guid>
		<description><![CDATA[To allow apache to access /www:
chcon -R -t httpd_sys_content_t /www
to check the results:
ls -alZ /www
you should get something that looks like:
-rw-r&#8211;r&#8211;  root root system_u:object_r:httpd_sys_content_t:s0 index.html
-rw-r&#8211;r&#8211;  root root system_u:object_r:httpd_sys_content_t:s0 index.php
Type &#8220;man httpd_selinux&#8221; for a full description of available contexts.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=59&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To allow apache to access /www:</p>
<p>chcon -R -t httpd_sys_content_t /www</p>
<p>to check the results:</p>
<p>ls -alZ /www</p>
<p>you should get something that looks like:</p>
<p>-rw-r&#8211;r&#8211;  root root system_u:object_r:httpd_sys_content_t:s0 index.html<br />
-rw-r&#8211;r&#8211;  root root system_u:object_r:httpd_sys_content_t:s0 index.php</p>
<p>Type &#8220;man httpd_selinux&#8221; for a full description of available contexts.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=59&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2008/11/04/apache-and-se-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Capturing a streamed media via mplayer</title>
		<link>http://aghoras.wordpress.com/2008/08/22/capturing-a-streamed-media-via-mplayer/</link>
		<comments>http://aghoras.wordpress.com/2008/08/22/capturing-a-streamed-media-via-mplayer/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 12:32:33 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/?p=56</guid>
		<description><![CDATA[mplayer -noframedrop -dumpstream "&#60;url&#62;" -dumpfile &#60;file&#62;
or
mplayer -playlist "&#60;url&#62;" -dumpstream  -dumpfile &#60;file&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=56&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre>mplayer -noframedrop -dumpstream "<em>&lt;url&gt;</em>" -dumpfile <em>&lt;file&gt;</em>
or
mplayer -playlist "<em>&lt;url&gt;</em>" -dumpstream  -dumpfile <em>&lt;file&gt;</em></pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/aghoras.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/aghoras.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=56&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2008/08/22/capturing-a-streamed-media-via-mplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>
	</item>
		<item>
		<title>Bidirectional netcat</title>
		<link>http://aghoras.wordpress.com/2008/08/06/bidirectional-netcat/</link>
		<comments>http://aghoras.wordpress.com/2008/08/06/bidirectional-netcat/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 16:44:15 +0000</pubDate>
		<dc:creator>aghoras</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://aghoras.wordpress.com/2008/08/06/bidirectional-netcat/</guid>
		<description><![CDATA[I found this on the internet.  I havn&#8217;t tried it myself:
Bidirectional netcat &#8230;
While netcat is excellent, one thing it doesn&#8217;t seem to do is to work as a generic proxy between two applications. The shell doesn&#8217;t help, providing only unidirectional pipelines &#8230; but with the use of FIFO pipes (sorry, not under Cygwin) you can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=55&subd=aghoras&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I found this on the internet.  I havn&#8217;t tried it myself:</p>
<h3>Bidirectional netcat &#8230;</h3>
<p class="tightenable top">While netcat is excellent, one thing it doesn&#8217;t seem to do is to work as a generic proxy between two applications. The shell doesn&#8217;t help, providing only unidirectional pipelines &#8230; but with the use of FIFO pipes (sorry, not under <a class="wiki" href="http://clug.net.nz/index.php/Cygwin"><strong><span style="color:#1d42be;">Cygwin</span></strong></a>) you can construct something that will do the job.</p>
<p class="tightenable bottom">From <a class="namedurl" href="http://www.ists.dartmouth.edu/library/classroom/nc-intro.v0.80.php"><span style="white-space:nowrap;"><img class="linkicon" src="http://clug.net.nz/themes/MacOSX/images/http.png" border="0" alt="" />http://www.ists.dartmouth.edu/library/classroom/nc-intro.v0.80.php</span></a> :-</p>
<blockquote class="mail-style-quote tightenable top">
<pre class="tightenable top bottom">mknod backpipe p
nc -l -p 80 0&lt;backpipe | tee -a inflow | nc localhost 81 | tee -a outflow 1&gt;backpipe</pre>
</blockquote>
<p class="tightenable">You only have to do the mknod o<span class="search-term" title="Found by Google"><span>nc</span></span>e, in order <span class="search-term" title="Found by Google"><span style="background-color:#9bdaff;">to</span></span> create a pipe entity on the filesystem. Have a look in the files <tt>inflow</tt> and <tt>outflow</tt> <span class="search-term" title="Found by Google"><span style="background-color:#9bdaff;">to</span></span> see the s<span class="search-term" title="Found by Google"><span style="background-color:#9bdaff;">to</span></span>red results of your conversation.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/aghoras.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/aghoras.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aghoras.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aghoras.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aghoras.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aghoras.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aghoras.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aghoras.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aghoras.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aghoras.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aghoras.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aghoras.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aghoras.wordpress.com&blog=654975&post=55&subd=aghoras&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://aghoras.wordpress.com/2008/08/06/bidirectional-netcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cc764b06007585fa6fe4e6c6b7aac104?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aghoras</media:title>
		</media:content>

		<media:content url="http://clug.net.nz/themes/MacOSX/images/http.png" medium="image" />
	</item>
	</channel>
</rss>