<?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>David Nash &#187; convert</title>
	<atom:link href="http://davidnash.com.au/tag/convert/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidnash.com.au</link>
	<description>Freelance PHP developer - builder of high-quality dynamic websites</description>
	<lastBuildDate>Sun, 25 Jul 2010 23:56:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Strip &lt;span&gt; tags from HTML in vim</title>
		<link>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/</link>
		<comments>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 05:04:40 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[vim]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[gvim]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=159</guid>
		<description><![CDATA[When upgrading a website you might see source code like this:
&#60;span style="font-family: Arial; color: #0000ff; font-size: small;"&#62;Some text goes here&#60;/span&#62;
You&#8217;re using CSS now and all those &#60;span&#62; tags are ruining it. In gvim, do this search and substitute:
%s/&#60;span.\{-}&#62;//g
Then to get rid of the &#60;/span&#62; tags, do this:
:%s/&#60;\/span&#62;//g



Share:


	
	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[<p>When upgrading a website you might see source code like this:</p>
<pre>&lt;span style="font-family: Arial; color: #0000ff; font-size: small;"&gt;Some text goes here&lt;/span&gt;</pre>
<p>You&#8217;re using CSS now and all those &lt;span&gt; tags are ruining it. In gvim, do this search and substitute:</p>
<blockquote><p>%s/&lt;span.\{-}&gt;//g</p></blockquote>
<p>Then to get rid of the &lt;/span&gt; tags, do this:</p>
<blockquote><p>:%s/&lt;\/span&gt;//g</p></blockquote>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;title=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;t=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F&amp;title=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Strip%20%26lt%3Bspan%26gt%3B%20tags%20from%20HTML%20in%20vim&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F04%2Fstrip-span-tags-from-html-in-vim%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/04/strip-span-tags-from-html-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch reduce resolution of images in Ubuntu Linux</title>
		<link>http://davidnash.com.au/2009/02/batch-reduce-resolution-of-images-in-ubuntu-linux/</link>
		<comments>http://davidnash.com.au/2009/02/batch-reduce-resolution-of-images-in-ubuntu-linux/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:56:27 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[reduce]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=137</guid>
		<description><![CDATA[Open a terminal window or shell (who needs a GUI!?)
sudo apt-get install imagemagick
cd image_folder
mkdir resized
for f in *jpg
do
convert -resize 30% $f resized/$f
done
Easier than Photoshop, I reckon!
I needed this today for some photos I was uploading. Photos from recent cameras are huge and Australian bandwidth doesn&#8217;t cut it. So this really helps.
Obviously you only need to [...]]]></description>
			<content:encoded><![CDATA[<p>Open a terminal window or shell (who needs a GUI!?)<br />
<code>sudo apt-get install imagemagick<br />
cd image_folder<br />
mkdir resized<br />
for f in *jpg<br />
do<br />
convert -resize 30% $f resized/$f<br />
done</code></p>
<p>Easier than Photoshop, I reckon!</p>
<p>I needed this today for some photos I was uploading. Photos from recent cameras are huge and Australian bandwidth doesn&#8217;t cut it. So this really helps.</p>
<p>Obviously you only need to do the first line once. I found this in the Ubuntu forums but it took me a while to find the right combination of keywords in Google. <a href="http://ubuntuforums.org/showthread.php?t=791759">View the original thread.</a></p>
<p>I needed to change jpg to JPG, because the camera used uppercase and Linux is case-sensitive. 30% was good for me but you may need to change that.</p>
<p>If you don&#8217;t understand this, ask me, I&#8217;m happy to help!</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F&amp;title=Batch%20reduce%20resolution%20of%20images%20in%20Ubuntu%20Linux" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F&amp;t=Batch%20reduce%20resolution%20of%20images%20in%20Ubuntu%20Linux" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F&amp;title=Batch%20reduce%20resolution%20of%20images%20in%20Ubuntu%20Linux" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Batch%20reduce%20resolution%20of%20images%20in%20Ubuntu%20Linux&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F02%2Fbatch-reduce-resolution-of-images-in-ubuntu-linux%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/02/batch-reduce-resolution-of-images-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
