<?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>iantomkins.com &#187; tip</title>
	<atom:link href="http://iantomkins.com/tag/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://iantomkins.com</link>
	<description>Just my thoughts</description>
	<lastBuildDate>Tue, 24 Aug 2010 22:13:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Firefox Tab Previews on Windows 7</title>
		<link>http://iantomkins.com/2010/01/firefox-tab-previews-windows-7/</link>
		<comments>http://iantomkins.com/2010/01/firefox-tab-previews-windows-7/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 23:55:53 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://iantomkins.com/?p=138</guid>
		<description><![CDATA[How to enable tab previews in Firefox 3.6 on Windows 7 [...]]]></description>
			<content:encoded><![CDATA[<p>Users of Internet Explorer 8 on Windows 7 will likely have noticed that the new Taskbar enables users to see previews of all the browser tabs currently open.  Whilst this is not a feature that everyone will appreciate some may find it useful because it enable finding a particular tab very quick, of course if you have a lot of tabs this may just be more clutter.</p>
<p>Version 3.6 of Mozilla Firefox has just shipped with some great new tab preview features, however most of these are turned off by default.  To find and enable the new features you need to get to the advanced configuration page by typing about:config into the address bar. This will produce a warning page notifying you that you should only continue if you are sure of what you are doing, once you have promised to be careful type the word previews into the filter box to find the relevant settings.</p>
<div id="attachment_140" class="wp-caption alignnone" style="width: 310px"><a href="http://iantomkins.com/wp-content/uploads/2010/01/firefox_previews.jpg"><img src="http://iantomkins.com/wp-content/uploads/2010/01/firefox_previews-300x195.jpg" alt="Firefox about:config window" title="firefox_previews" width="300" height="195" class="size-medium wp-image-140" /></a><p class="wp-caption-text">Firefox tab preview options</p></div>
<p>There are three options available to be turned on:</p>
<p><strong>browser.allTabs.previews</strong><br />
This option adds an extra button to the right hand end of the tab bar which pops up a list of tabs with previews and a search box.<br />
<strong>browser.ctrlTab.previews</strong><br />
The ctrlTab option changes &lt;CTRL&gt;+&lt;TAB&gt; behaviour to use a style new tab preview screen when you have 3 or more tabs open.<br />
<strong>browser.taskbar.previews.enable</strong><br />
The taskbar option enables Windows 7 taskbar tab previews.</p>
<p>To enable any of the options simply double click on it and the value will change to true. Additionally the line will be made bold to indicate that the value has been changed from it&#8217;s default setting.</p>
]]></content:encoded>
			<wfw:commentRss>http://iantomkins.com/2010/01/firefox-tab-previews-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the total size of all the files in a directory</title>
		<link>http://iantomkins.com/2009/12/find-total-size-files-directory/</link>
		<comments>http://iantomkins.com/2009/12/find-total-size-files-directory/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 12:45:40 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://iantomkins.com/?p=127</guid>
		<description><![CDATA[<p>On Linux systems the command du can provide you with information about file sizes in directories.</p> <p>Usually I use a command like this</p> <p>du -hs</p> <p>or</p> <p>du -h --max-depth=1</p> <p>to produce a quick total of the file sizes in the current directory or first level subdirectories respectively.</p> <p>This is also really handy for doing quick [...]]]></description>
			<content:encoded><![CDATA[<p>On Linux systems the command du can provide you with information about file sizes in directories.</p>
<p>Usually I use a command like this</p>
<p><code>du -hs</code></p>
<p>or</p>
<p><code>du -h --max-depth=1</code></p>
<p>to produce a quick total of the file sizes in the current directory or first level subdirectories respectively.</p>
<p>This is also really handy for doing quick size comparisons when copying files around, however recently I hit a problem when copying files between an old ext3 formatted disk and a new ext4 formatted one that I couldn&#8217;t compare totals and get a reliable figure to compare between the two directories.</p>
<p>So this is what I ended up using:</p>
<p><code>find . -type f -printf %s"\n" | perl -nale '$sum+=$F[0]; print $sum if eof'</code></p>
<p>The crucial element to this is that it only totals regular files and ignores directories (and other objects like pipes and symlinks).  Without the <code>-type f</code> option this produces the same output as <code>du -bs</code> which gives a single byte size count for everything in the current directory.  Also of note is that this uses perl to calculate the total rather than awk as most other similar examples use, this is because I found that awk wants to convert everything to a float when the numbers get large.</p>
]]></content:encoded>
			<wfw:commentRss>http://iantomkins.com/2009/12/find-total-size-files-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

