<?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>Optimus Pete</title>
	<atom:link href="http://tech.petegraham.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.petegraham.co.uk</link>
	<description>yes i love technology</description>
	<lastBuildDate>Fri, 16 Jul 2010 16:30:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP: Save image from url</title>
		<link>http://tech.petegraham.co.uk/2010/07/16/php-save-image-from-url/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/16/php-save-image-from-url/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:30:33 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=161</guid>
		<description><![CDATA[file_put_contents($file_location, file_get_contents($image_url));
Now go get stealing images!
]]></description>
			<content:encoded><![CDATA[<p>file_put_contents($file_location, file_get_contents($image_url));</p>
<p>Now go get stealing images!</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/16/php-save-image-from-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Get tmp directory</title>
		<link>http://tech.petegraham.co.uk/2010/07/16/php-get-tmp-directory/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/16/php-get-tmp-directory/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:28:44 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=158</guid>
		<description><![CDATA[sys_get_temp_dir()
Didn&#8217;t know about this function before today.
]]></description>
			<content:encoded><![CDATA[<p>sys_get_temp_dir()</p>
<p>Didn&#8217;t know about this function before today.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/16/php-get-tmp-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X: Terminal launch finder for current directory</title>
		<link>http://tech.petegraham.co.uk/2010/07/16/os-x-terminal-launch-finder-for-current-directory/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/16/os-x-terminal-launch-finder-for-current-directory/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 16:25:57 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=156</guid>
		<description><![CDATA[open &#8220;`pwd`&#8221;
PG TIP: I like to add this to my .bash_profile as an alias so I can just type finder to launch it:
alias finder=&#8217;open &#8220;`pwd`&#8221;&#8216;
]]></description>
			<content:encoded><![CDATA[<p>open &#8220;`pwd`&#8221;</p>
<p>PG TIP: I like to add this to my .bash_profile as an alias so I can just type finder to launch it:</p>
<p>alias finder=&#8217;open &#8220;`pwd`&#8221;&#8216;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/16/os-x-terminal-launch-finder-for-current-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wget page source and all related assets</title>
		<link>http://tech.petegraham.co.uk/2010/07/12/wget-page-source-and-all-related-assets/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/12/wget-page-source-and-all-related-assets/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 16:27:07 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=152</guid>
		<description><![CDATA[wget -p -k http://site-you-want-content-from.com/dir/page_name.html
You can get an OS X installation of wget here http://www.statusq.org/archives/2005/02/22/610/
]]></description>
			<content:encoded><![CDATA[<p>wget -p -k http://site-you-want-content-from.com/dir/page_name.html</p>
<p>You can get an OS X installation of wget here <a href="http://www.statusq.org/archives/2005/02/22/610/ " target="_blank">http://www.statusq.org/archives/2005/02/22/610/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/12/wget-page-source-and-all-related-assets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql: dump database without locking tables</title>
		<link>http://tech.petegraham.co.uk/2010/07/12/mysql-dump-database-without-locking-tables/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/12/mysql-dump-database-without-locking-tables/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 09:22:36 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=150</guid>
		<description><![CDATA[mysqldump -uUSER -pPASSWORD DB_NAME &#8211;lock-tables=false &#62; dump.sql
]]></description>
			<content:encoded><![CDATA[<p>mysqldump -uUSER -pPASSWORD DB_NAME &#8211;lock-tables=false &gt; dump.sql</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/12/mysql-dump-database-without-locking-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: find all files in folder with extension</title>
		<link>http://tech.petegraham.co.uk/2010/07/09/linux-find-all-files-in-folder-with-same-extension/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/09/linux-find-all-files-in-folder-with-same-extension/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:54:54 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=147</guid>
		<description><![CDATA[ls -R &#124; grep gif$
The above command will list of the gif files you have in your folder (it will look recussively in subfolders). If you wanted to see the paths as well you could use the find command:
find ./ -name *gif$*
]]></description>
			<content:encoded><![CDATA[<p>ls -R | grep gif$</p>
<p>The above command will list of the gif files you have in your folder (it will look recussively in subfolders). If you wanted to see the paths as well you could use the find command:</p>
<p>find ./ -name *gif$*</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/09/linux-find-all-files-in-folder-with-same-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rsync: copy files but not .svn directories</title>
		<link>http://tech.petegraham.co.uk/2010/07/09/rsync-copy-files-but-not-svn-directories/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/09/rsync-copy-files-but-not-svn-directories/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:40:38 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=144</guid>
		<description><![CDATA[rsync -n &#8211;exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/
rsync &#8211;exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/
The first command will similulate the copy (useful to test). The second command will actually execute the sync.
]]></description>
			<content:encoded><![CDATA[<p>rsync -n &#8211;exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/</p>
<p>rsync &#8211;exclude .svn -av /PATH/TO/SOURCE/DIR/* /PATH/TO/DEST/DIR/</p>
<p>The first command will similulate the copy (useful to test). The second command will actually execute the sync.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/09/rsync-copy-files-but-not-svn-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn: delete unversioned files</title>
		<link>http://tech.petegraham.co.uk/2010/07/09/svn-delete-unversioned-files/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/09/svn-delete-unversioned-files/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:38:17 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=142</guid>
		<description><![CDATA[svn status &#8211;no-ignore &#124; grep &#8216;^\?&#8217; &#124; sed &#8217;s/^\?      //&#8217;  &#124; xargs rm -rf
Thanks to Guy Rutenberg for this, your definitely in my list of top 5 guys.
]]></description>
			<content:encoded><![CDATA[<p>svn status &#8211;no-ignore | grep &#8216;^\?&#8217; | sed &#8217;s/^\?      //&#8217;  | xargs rm -rf</p>
<p>Thanks to <a href="http://www.guyrutenberg.com/2008/01/18/delete-unversioned-files-under-svn/">Guy Rutenberg</a> for this, your definitely in my list of top 5 guys.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/09/svn-delete-unversioned-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn: add all unversioned files</title>
		<link>http://tech.petegraham.co.uk/2010/07/09/svn-add-all-unversioned-files/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/09/svn-add-all-unversioned-files/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:29:04 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=139</guid>
		<description><![CDATA[svn add * –-force
svn commit -m &#8220;&#8221;
]]></description>
			<content:encoded><![CDATA[<p>svn add * –-force<br />
svn commit -m &#8220;&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/09/svn-add-all-unversioned-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn: remove all .svn folders</title>
		<link>http://tech.petegraham.co.uk/2010/07/09/svn-remove-all-svn-folders/</link>
		<comments>http://tech.petegraham.co.uk/2010/07/09/svn-remove-all-svn-folders/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 15:27:14 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://tech.petegraham.co.uk/?p=136</guid>
		<description><![CDATA[find . -name .svn -print0 &#124; xargs -0 rm -rf
This will remove all .svn folders and their contents even in subdirectories. Note if you don&#8217;t want the .svn folders it&#8217;s better to do an svn export instead of checkout.
]]></description>
			<content:encoded><![CDATA[<p>find . -name .svn -print0 | xargs -0 rm -rf</p>
<p>This will remove all .svn folders and their contents even in subdirectories. Note if you don&#8217;t want the .svn folders it&#8217;s better to do an svn export instead of checkout.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.petegraham.co.uk/2010/07/09/svn-remove-all-svn-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
