<?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/"
	>

<channel>
	<title>Jess Barnes</title>
	<atom:link href="http://jessbarnes.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jessbarnes.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 17 Aug 2010 09:54:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Slow-cooked Coconut Beef Madras</title>
		<link>http://jessbarnes.com/2010/08/slow-cooked-coconut-beef-madras/</link>
		<comments>http://jessbarnes.com/2010/08/slow-cooked-coconut-beef-madras/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 09:35:22 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=133</guid>
		<description><![CDATA[Serves 2 Ingredients 400g slow-cook beef in bite sized cubes 1 large potato cut to your preferred potato cube size (large is good) 1 onion, diced 1 tbsp minced ginger 1 tbsp minced garlic 1/4 cup madras paste (I used Pataks but am going to make my own next time, promise!) 1 beef stock cube [...]


Related posts:<ol><li><a href='http://jessbarnes.com/2010/08/my-jessies-moussaka/' rel='bookmark' title='Permanent Link: My &#8220;Jessie&#8217;s Moussaka!&#8221;'>My &#8220;Jessie&#8217;s Moussaka!&#8221;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Serves 2</p>
<p><strong>Ingredients</strong></p>
<ul>
<li>400g slow-cook beef in bite sized cubes</li>
<li>1 large potato cut to your preferred potato cube size (large is good)</li>
<li>1 onion, diced</li>
<li>1 tbsp minced ginger</li>
<li>1 tbsp minced garlic</li>
<li>1/4 cup madras paste (I used Pataks but am going to make my own next time, promise!)</li>
<li>1 beef stock cube (or 1 cup liquid) beef stock</li>
<li>160ml coconut milk</li>
</ul>
<p><strong>Method</strong></p>
<p>On high heat, fry beef until brown and then add half of the madras paste and stir for a further minute. Place into the slow-cooker on low heat.</p>
<p>Fry onion, garlic and ginger in the pan until soft and lightly browned and then add the remainder of the madras paste and stir for one minute. Add the stock cube and 1 cup of water (or liquid stock instead) and then the coconut milk, stirring until bubbling.</p>
<p>Add the onion mixture to the slow-cooker with the beef and cook for 6 hours, stirring (and tasting) occasionally.</p>
<p>Serve with rice and pappadums or naan bread.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2010/08/my-jessies-moussaka/' rel='bookmark' title='Permanent Link: My &#8220;Jessie&#8217;s Moussaka!&#8221;'>My &#8220;Jessie&#8217;s Moussaka!&#8221;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2010/08/slow-cooked-coconut-beef-madras/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My &#8220;Jessie&#8217;s Moussaka!&#8221;</title>
		<link>http://jessbarnes.com/2010/08/my-jessies-moussaka/</link>
		<comments>http://jessbarnes.com/2010/08/my-jessies-moussaka/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 06:43:00 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=125</guid>
		<description><![CDATA[Serves 4 Ingredients 500g beef mince 2 aubergines, sliced approx. 1cm thick 1 cup diced parsley 1 jar béchamel sauce 1 zucchini, diced into small cubes 1 handful of mushrooms, diced 1 tin diced tomatoes 1 sachet tomato paste 1 tbsp oregano 2 tbsp garlic 1 tbsp paprika 1 tbsp cumin 1 tbsp tumeric 2 [...]


Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/recipe-amazingly-delicious-sweet-and-spicy-pork-spare-ribs/' rel='bookmark' title='Permanent Link: Recipe: Amazingly Delicious Sweet and Spicy Pork Spare Ribs'>Recipe: Amazingly Delicious Sweet and Spicy Pork Spare Ribs</a></li>
<li><a href='http://jessbarnes.com/2010/08/slow-cooked-coconut-beef-madras/' rel='bookmark' title='Permanent Link: Slow-cooked Coconut Beef Madras'>Slow-cooked Coconut Beef Madras</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Serves 4</p>
<p><strong>Ingredients</strong><br />
<img class="alignright size-full wp-image-127" title="Moussaka" src="http://jessbarnes.com/wp-content/uploads/2010/08/IMG_0345.jpg" alt="Moussaka" width="270" height="404" /></p>
<ul>
<li>500g beef mince</li>
<li>2 aubergines, sliced approx. 1cm thick</li>
<li>1 cup diced parsley</li>
<li>1 jar béchamel sauce</li>
<li>1 zucchini, diced into small cubes</li>
<li>1 handful of mushrooms, diced</li>
<li>1 tin diced tomatoes</li>
<li>1 sachet tomato paste</li>
<li>1 tbsp oregano</li>
<li>2 tbsp garlic</li>
<li>1 tbsp paprika</li>
<li>1 tbsp cumin</li>
<li>1 tbsp tumeric</li>
<li>2 tbsp kecap manis (ABC sauce)</li>
<li>1 small onion, diced</li>
<li>2 cups finely grated cheese</li>
<li>Tabasco</li>
<li>chilli flakes</li>
<li>olive oil</li>
<li>salt &amp; pepper to taste</li>
</ul>
<p><strong>Method</strong></p>
<p>Preheat oven to 200 degrees Celsius. Fry aubergines on high heat in the largest available pan you have, adding oil as required until they are soft and brown. Place to the side on absorbent paper towel to remove excess oil.</p>
<p>Fry onions, garlic, mince and zucchini until browned. Then add the tomatoes, parsley, mushrooms, tomato paste, kecap manis and spices. Add salt, pepper, Tabasco and chilli flakes to taste.</p>
<p>Place half the mince mixture into a large baking tray, and then layer half of the aubergines, followed by half of the béchamel sauce. Repeat once more.</p>
<p>Cover the top with grated cheese and cook until cheese is browned.</p>
<p>Enjoy!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/recipe-amazingly-delicious-sweet-and-spicy-pork-spare-ribs/' rel='bookmark' title='Permanent Link: Recipe: Amazingly Delicious Sweet and Spicy Pork Spare Ribs'>Recipe: Amazingly Delicious Sweet and Spicy Pork Spare Ribs</a></li>
<li><a href='http://jessbarnes.com/2010/08/slow-cooked-coconut-beef-madras/' rel='bookmark' title='Permanent Link: Slow-cooked Coconut Beef Madras'>Slow-cooked Coconut Beef Madras</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2010/08/my-jessies-moussaka/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recipe: Amazingly Delicious Sweet and Spicy Pork Spare Ribs</title>
		<link>http://jessbarnes.com/2010/03/recipe-amazingly-delicious-sweet-and-spicy-pork-spare-ribs/</link>
		<comments>http://jessbarnes.com/2010/03/recipe-amazingly-delicious-sweet-and-spicy-pork-spare-ribs/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 10:43:31 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Recipes]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=117</guid>
		<description><![CDATA[Serves 2 Ingredients 1/2 cup honey 1/2 cup tomato sauce 1/4 cup soy sauce 2 tbsp hoisin sauce 2 tbsp minced garlic 1 tbsp powdered ginger (fresh would be better, but this is all we had) 1 tbsp olive oil Something spicy, whatever quantity you like (I used a few shakes of &#8220;Louisiana Style Hot [...]


Related posts:<ol><li><a href='http://jessbarnes.com/2010/08/my-jessies-moussaka/' rel='bookmark' title='Permanent Link: My &#8220;Jessie&#8217;s Moussaka!&#8221;'>My &#8220;Jessie&#8217;s Moussaka!&#8221;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Serves 2</p>
<p><strong>Ingredients</strong></p>
<ol></ol>
<ul>
<li>1/2 cup honey</li>
<li>1/2 cup tomato sauce</li>
<li>1/4 cup soy sauce</li>
<li>2 tbsp hoisin sauce</li>
<li>2 tbsp minced garlic</li>
<li>1 tbsp powdered ginger (fresh would be better, but this is all we had)</li>
<li>1 tbsp olive oil</li>
<li>Something spicy, whatever quantity you like (I used a few shakes of &#8220;Louisiana Style Hot Sauce&#8221;)</li>
<li>2 racks of spare ribs (1 per person)</li>
</ul>
<p><strong>Method</strong></p>
<p>Cut the spare ribs into separate pieces, being careful to leave an even amount of meat on each rib and place in a baking tray. Stir together all other ingredients to create a marinade and cover the ribs. Cover and place in the fridge until ready to be used. (Suggest at least one hour)</p>
<p>Place baking tray into a 180 degree oven for an hour, turning and basting the ribs regularly.</p>
<p>Once finished, if the sauce is too runny for your liking, pour into a saucepan and boil while stiring until it thickens. Add honey or tomato sauce to taste plus additional chili if desired.</p>
<p>All done, yum yum.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2010/08/my-jessies-moussaka/' rel='bookmark' title='Permanent Link: My &#8220;Jessie&#8217;s Moussaka!&#8221;'>My &#8220;Jessie&#8217;s Moussaka!&#8221;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2010/03/recipe-amazingly-delicious-sweet-and-spicy-pork-spare-ribs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP function to generate a slug for SEO URLs</title>
		<link>http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/</link>
		<comments>http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 05:41:33 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=109</guid>
		<description><![CDATA[Increase SEO by using your article name/product name/category name/whatever in your URLs instead of a non-descriptive database ID. function slug($string) { $string = trim($string); $string = strtolower($string); $string = str_replace('&#38;', 'and', $string); $string = preg_replace('/[^a-z0-9-]/', '-', $string); $string = preg_replace('/-+/', &#34;-&#34;, $string); return $string; } Related posts:MySQL string escaping in PHP


Related posts:<ol><li><a href='http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/' rel='bookmark' title='Permanent Link: MySQL string escaping in PHP'>MySQL string escaping in PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Increase SEO by using your article name/product name/category name/whatever in your URLs instead of a non-descriptive database ID.</p>
<pre class="brush: php;">
function slug($string) {
    $string = trim($string);
    $string = strtolower($string);
    $string = str_replace('&amp;', 'and', $string);
    $string = preg_replace('/[^a-z0-9-]/', '-', $string);
    $string = preg_replace('/-+/', &quot;-&quot;, $string);
    return $string;
}
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/' rel='bookmark' title='Permanent Link: MySQL string escaping in PHP'>MySQL string escaping in PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Project &#8211; Queerly Girls and Queerly Guys</title>
		<link>http://jessbarnes.com/2010/01/new-project-queerly-girls-and-queerly-guys/</link>
		<comments>http://jessbarnes.com/2010/01/new-project-queerly-girls-and-queerly-guys/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 14:49:31 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=100</guid>
		<description><![CDATA[My latest personal project &#8211; a dating website! Domains: purchased Database structure: structured Logo(s): designed Lets just say I have some experience using various dating websites, and I think by now I know what works and what doesn&#8217;t. The plan is to build the ultimate gay dating website combining the best aspects of various other [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-101" title="queerly" src="http://jessbarnes.com/wp-content/uploads/2010/01/queerly.png" alt="" width="510" height="310" /></p>
<p>My latest personal project &#8211; a dating website!</p>
<p>Domains: purchased<br />
Database structure: structured<br />
Logo(s): designed</p>
<p>Lets just say I have some experience using various dating websites, and I think by now I know what works and what doesn&#8217;t. The plan is to build the ultimate gay dating website combining the best aspects of various other sites, as well as a few of my own ideas thrown in. At this stage the plan is to be a completely free website until the cost of maintaining it becomes too much and then I&#8217;ll look at my options.</p>
<p>Stay tuned for more!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2010/01/new-project-queerly-girls-and-queerly-guys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Force SSL by loading the same page via HTTPS</title>
		<link>http://jessbarnes.com/2009/12/force-ssl-by-loading-the-same-page-via-https/</link>
		<comments>http://jessbarnes.com/2009/12/force-ssl-by-loading-the-same-page-via-https/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:46:32 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=49</guid>
		<description><![CDATA[Just a simple one, I place this in a common file, and then call it at the top of each page that I require to be secured by SSL. function force_ssl() { if ($_SERVER['HTTPS'] != 'on') { header(&#34;Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}&#34;); exit(); } } Related posts:Bash alias to search file contents MySQL string escaping in PHP


Related posts:<ol><li><a href='http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/' rel='bookmark' title='Permanent Link: Bash alias to search file contents'>Bash alias to search file contents</a></li>
<li><a href='http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/' rel='bookmark' title='Permanent Link: MySQL string escaping in PHP'>MySQL string escaping in PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Just a simple one, I place this in a common file, and then call it at the top of each page that I require to be secured by SSL.</p>
<pre class="brush: php;">
function force_ssl() {
    if ($_SERVER['HTTPS'] != 'on') {
        header(&quot;Location: https://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}&quot;);
        exit();
    }
}
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/' rel='bookmark' title='Permanent Link: Bash alias to search file contents'>Bash alias to search file contents</a></li>
<li><a href='http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/' rel='bookmark' title='Permanent Link: MySQL string escaping in PHP'>MySQL string escaping in PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2009/12/force-ssl-by-loading-the-same-page-via-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL string escaping in PHP</title>
		<link>http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/</link>
		<comments>http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:44:21 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=47</guid>
		<description><![CDATA[Simple function to prepare user inputted data for inserting into a MySQL database. It simply checks if stripslashes() should be called, and then escapes the string. Basic, but handy. function mysql_escape($string) { if (get_magic_quotes_gpc() == 1) { $string = stripslashes($string); } $string = mysql_real_escape_string($string); return $string; } Related posts:PHP function to generate a slug for [...]


Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/' rel='bookmark' title='Permanent Link: PHP function to generate a slug for SEO URLs'>PHP function to generate a slug for SEO URLs</a></li>
<li><a href='http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/' rel='bookmark' title='Permanent Link: Bash alias to search file contents'>Bash alias to search file contents</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Simple function to prepare user inputted data for inserting into a MySQL database. It simply checks if <code>stripslashes()</code> should be called, and then escapes the string. Basic, but handy.</p>
<pre class="brush: php;">
function mysql_escape($string) {
    if (get_magic_quotes_gpc() == 1) {
        $string = stripslashes($string);
    }
    $string = mysql_real_escape_string($string);
    return $string;
}
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/' rel='bookmark' title='Permanent Link: PHP function to generate a slug for SEO URLs'>PHP function to generate a slug for SEO URLs</a></li>
<li><a href='http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/' rel='bookmark' title='Permanent Link: Bash alias to search file contents'>Bash alias to search file contents</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2009/12/mysql-string-escaping-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The most useful PHP function you&#8217;ll ever use!</title>
		<link>http://jessbarnes.com/2009/12/the-most-useful-php-function-youll-ever-use/</link>
		<comments>http://jessbarnes.com/2009/12/the-most-useful-php-function-youll-ever-use/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:33:55 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=40</guid>
		<description><![CDATA[This is the first thing I add to any PHP based project and I couldn&#8217;t live without it.. Most people will probably understand and appreciate what this does, but for those that don&#8217;t, it simply displays the contents of an array in a very human readable way by using the &#60;pre&#62; tag to preserve the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This is the first thing I add to any PHP based project and I couldn&#8217;t live without it..</p>
<p>Most people will probably understand and appreciate what this does, but for those that don&#8217;t, it simply displays the contents of an array in a very human readable way by using the <code>&lt;pre&gt;</code> tag to preserve the spacing of the <code>print_r()</code> command.</p>
<pre class="brush: php;">
// Debug Array
function da($array) {
    echo &quot;&lt;pre&gt;\n&quot;;
    print_r($array);
    echo &quot;&lt;/pre&gt;\n&quot;;
}
</pre>
<p>Enjoy!</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2009/12/the-most-useful-php-function-youll-ever-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash alias to search file contents</title>
		<link>http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/</link>
		<comments>http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 13:53:35 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/2009/12/30/</guid>
		<description><![CDATA[This simple Bash alias will search the contents of every file in the current directory (and sub-directories) and return the file names. Very handy when trying to work out which file generated which HTML in large PHP based applications or when trying to find every last instance of a particular string in a bunch of [...]


Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/' rel='bookmark' title='Permanent Link: PHP function to generate a slug for SEO URLs'>PHP function to generate a slug for SEO URLs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This simple Bash alias will search the contents of every file in the current directory (and sub-directories) and return the file names. Very handy when trying to work out which file generated which HTML in large PHP based applications or when trying to find every last instance of a particular string in a bunch of config files.</p>
<pre class="brush: bash;">
# Search In Files
sif() {
    grep -EiIrl &quot;$*&quot; ./*
}
</pre>
<p>Either use the grep command by itself, replacing the $* with your search string for a one time use, or add this to your .bashrc file to be able to search by typing: <code>sif <em>search string</em></code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://jessbarnes.com/2010/03/php-function-to-generate-a-slug-for-seo-urls/' rel='bookmark' title='Permanent Link: PHP function to generate a slug for SEO URLs'>PHP function to generate a slug for SEO URLs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2009/12/bash-alias-to-search-file-contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My config files</title>
		<link>http://jessbarnes.com/2009/12/my-config-file/</link>
		<comments>http://jessbarnes.com/2009/12/my-config-file/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:42:39 +0000</pubDate>
		<dc:creator>Jess Barnes</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://jessbarnes.com/?p=85</guid>
		<description><![CDATA[For those that are interested and for my own reference&#8230; .vimrc (The first two lines are for MacVim or GVim) colorscheme elflord set backspace=indent,eol,start syntax on set nowrap set expandtab set shiftwidth=4 set smarttab set smartindent set formatoptions-=t set textwidth=79 set ruler set incsearch set ignorecase set smartcase set scrolloff=5 set showmatch matchtime=3 set showmode [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>For those that are interested and for my own reference&#8230;</p>
<p><span id="more-85"></span></p>
<p><code>.vimrc</code> (The first two lines are for MacVim or GVim)</p>
<pre class="brush: php;">
colorscheme elflord
set backspace=indent,eol,start

syntax on
set nowrap
set expandtab
set shiftwidth=4
set smarttab
set smartindent
set formatoptions-=t
set textwidth=79
set ruler
set incsearch
set ignorecase
set smartcase
set scrolloff=5
set showmatch matchtime=3
set showmode
set showcmd
set nomodeline
</pre>
<p><code>.screenrc</code></p>
<pre class="brush: php;">
autodetach on
hardcopy_append on
vbell off
startup_message off
silencewait 15
defscrollback 1000
msgwait 9999
shell bash
#idle           1800
blankerprg lockscreen
zombie ^[
sorendition KW
pow_detach_msg  &quot;BYE&quot;
activity &quot;activity in %n (%t) [%w:%s]~&quot;
bell_msg &quot;bell in window %n (%t)&quot;
termcapinfo xterm-color ti@:te@

caption always &quot;%{= KW}[%H]%=%-w%{= wk}%50&gt;%n %t%{-}%+w%&lt;&quot;

# bindings
bind w
bindkey -k F2 next     # F12 = next
bindkey -k F1 prev     # F11 = previous

# startup

screen -t bash 0
</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://jessbarnes.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://jessbarnes.com/2009/12/my-config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
