<?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>Net-s</title>
	<atom:link href="http://www.net-s.it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.net-s.it</link>
	<description>just some notes</description>
	<lastBuildDate>Thu, 21 Jul 2011 12:30:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Nautilus, location bar: use text instead of icons</title>
		<link>http://www.net-s.it/2011/05/nautilus-location-bar-use-text-instead-of-icons/</link>
		<comments>http://www.net-s.it/2011/05/nautilus-location-bar-use-text-instead-of-icons/#comments</comments>
		<pubDate>Tue, 17 May 2011 11:40:12 +0000</pubDate>
		<dc:creator>gabriel</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gconf-editor]]></category>

		<guid isPermaLink="false">http://www.net-s.it/?p=27</guid>
		<description><![CDATA[You can switch between icon and text mode pressig CTRL + L. For configure nautilus to use always the location entry (text): - press ALT+F2 - execute gconf-editor - navigate to apps -&#62; nautilus -&#62; preferences - choose always_use_location_entry Enjoy]]></description>
			<content:encoded><![CDATA[<p>You can switch between icon and text mode pressig <strong>CTRL + L.</strong></p>
<p>For configure nautilus to use always the location entry (text):</p>
<p>- press <strong>ALT+F2</strong><br />
- execute <strong>gconf-editor</strong><br />
- navigate to <strong>apps -&gt; nautilus -&gt; preferences</strong><br />
- choose <strong>always_use_location_entry</strong></p>
<p>Enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.net-s.it/2011/05/nautilus-location-bar-use-text-instead-of-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find &amp; delete</title>
		<link>http://www.net-s.it/2011/05/find-delete/</link>
		<comments>http://www.net-s.it/2011/05/find-delete/#comments</comments>
		<pubDate>Sun, 15 May 2011 13:34:58 +0000</pubDate>
		<dc:creator>gabriel</dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://www.net-s.it/?p=18</guid>
		<description><![CDATA[Sometime it happen that  I need to find all certain type of file or directory from a folder and sub folders and delete it. An example is if you have to copy a project under svn and you want to clean all folder from &#8220;.svn&#8221; folder. Via linux shell: $ find /absolute/or/relative/path  -type d -name [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime it happen that  I need to find all certain type of file or directory from a folder and sub folders and delete it. An example is if you have to copy a project under svn and you want to clean all folder from &#8220;.svn&#8221; folder.</p>
<p>Via linux shell:</p>
<pre>$ find /absolute/or/relative/path  -type d -name ".svn" | xargs rm -r</pre>
<p>If you have to delete file or folder with name first letter &#8220;A&#8221;:</p>
<pre>$ find /absolute/or/relative/path -name "A*" -print0 | xargs -0 rm -r</pre>
<p>The <strong>print0</strong> and <strong>-0</strong> parameter means that the name ending with null char, otherwise will be used spaces</p>
<p>Copy all pictures from subdirectories:</p>
<p>find . -type f -name &#8220;*.jpg&#8221; -print0 | xargs -0 cp -fR &#8211;target-directory=/path/to/destination</p>
]]></content:encoded>
			<wfw:commentRss>http://www.net-s.it/2011/05/find-delete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imagemagick, mass resize photos</title>
		<link>http://www.net-s.it/2011/05/imagemagick-mass-resize-photos/</link>
		<comments>http://www.net-s.it/2011/05/imagemagick-mass-resize-photos/#comments</comments>
		<pubDate>Sat, 14 May 2011 09:46:36 +0000</pubDate>
		<dc:creator>gabriel</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[Imagemagick]]></category>
		<category><![CDATA[mogrify]]></category>
		<category><![CDATA[xargs]]></category>

		<guid isPermaLink="false">http://www.net-s.it/?p=6</guid>
		<description><![CDATA[I use Imagemagick when I have a lot of pictures that need to be resized for being used on a website. From a shell, the command for resize a picture is: $ mogrify -resize &#60;width_pixel&#62;x&#60;height_pixel&#62; file.jpg For resize all pictures inside a folder, via shell move to the folder and give: $ mogrify -resize &#60;width_pixel&#62;x&#60;height_pixel&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I use Imagemagick when I have a lot of pictures that need to be resized for being used on a website. From a shell, the command for resize a picture is:</p>
<pre>$ mogrify -resize &lt;width_pixel&gt;x&lt;height_pixel&gt; file.jpg</pre>
<p>For resize all pictures inside a folder, via shell move to the folder and give:</p>
<pre>$ mogrify -resize &lt;width_pixel&gt;x&lt;height_pixel&gt; *</pre>
<p>Some time pictures are in more sub-folder, and is not very comfortable move to each folder for launch the resize command.<br />
You can use a simple &#8220;batch script&#8221;, move to the folder via shell and give:</p>
<pre>$ find . -type f | xargs mogrify -resize &lt;width_pixel&gt;x&lt;height_pixel&gt; {}</pre>
<p>For resize only .jpg files:</p>
<pre>$ find . -type f -name "*.jpg" | xargs mogrify -resize &lt;width_pixel&gt;x&lt;height_pixel&gt; {}</pre>
<p>N.b. name is case sensitive</p>
<h3>Resize if bigger or smaller than</h3>
<p>If you want to resize the file only if bigger or smaller than the values used for resize use (bigger than) &gt; or (smaller than) &lt; :</p>
<pre>$ mogrify -resize '1000x1000&gt;' *</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.net-s.it/2011/05/imagemagick-mass-resize-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

