<?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>Chris Bunney &#187; tips</title>
	<atom:link href="http://www.chrisbunney.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisbunney.com</link>
	<description>Chris on Computing</description>
	<lastBuildDate>Mon, 23 Jan 2012 14:34:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Disabling Geolocation in Firefox</title>
		<link>http://www.chrisbunney.com/2010/08/13/disabling-geolocation-in-firefox/</link>
		<comments>http://www.chrisbunney.com/2010/08/13/disabling-geolocation-in-firefox/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 09:00:05 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[location aware browsing]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.chrisbunney.com/?p=88</guid>
		<description><![CDATA[Recent versions of Firefox enable a location awareness feature that can share your location with websites. Find out a bit more about it and, if you want, how to disable it in this post.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 516px"><a href="http://www.flickr.com/photos/hendry/3679075595/"><img title="Firefox 3.5 Geolocation" src="http://farm4.static.flickr.com/3650/3679075595_b610829b22_o.png" alt="Firefox 3.5 Geolocation Permission Prompt" width="506" height="29" /></a><p class="wp-caption-text">If you&#39;ve ever seen this box below your Firefox tabs, then you&#39;ve encountered Firefox&#39;s location aware browsing ((C) Kai Hendry)</p></div>
<p>You may not have realised it, but the latest versions of <a href="http://www.mozilla-europe.org/en/firefox/">Mozilla Firefox</a> include a <a href="http://www.mozilla.com/en-US/firefox/geolocation/">geolocation feature</a> to enable location aware browsing.<br />
This allows you to give permission to share your location with websites, and is on by default.<br />
<span id="more-88"></span></p>
<p>Websites will use your location so that they can tailor information to your local area. For example, a high street shop could automatically show you where your nearest branch is.</p>
<p>It works by collecting information about your computers IP address and wireless access points that your computer can see and comparing it to a database to estimate your current position. The default database provider is the Google Location Service, although that can be changed to another geolocation service provider.</p>
<p>Location Aware Browsing is designed to protect your personal information: You have to manually approve each website that requests your location, and all communication with the geolocation service is anonymised and encrypted. However, if you don&#8217;t want the feature to be active at all, you can disable it.</p>
<div id="attachment_128" class="wp-caption alignleft" style="width: 310px"><a href="http://www.chrisbunney.com/wp-content/uploads/2010/08/Firefox-Advanced-Settings-Warning.png"><img class="size-medium wp-image-128" title="Firefox Advanced Settings Warning" src="http://www.chrisbunney.com/wp-content/uploads/2010/08/Firefox-Advanced-Settings-Warning-300x84.png" alt="Screenshot of the warning displayed when accessing Firefox's advanced settings" width="300" height="84" /></a><p class="wp-caption-text">You can stop this warning from appearing again, but I smile every time I see it, so I&#39;ve kept it</p></div>
<p>First, open a new browser tab in Firefox and type &#8220;<code>about:config</code>&#8221; into the address bar. This will show a warning because you&#8217;re accessing advanced settings, so acknowledge it and continue.</p>
<p>Type &#8220;<code>geo.</code>&#8221; into the filter box at the top of the page to only show geolocation service options. In Firefox 3.6.8 there are four settings related to geolocation. Find the setting called &#8220;geo.enabled&#8221; and double click on it so that it&#8217;s set to &#8220;false&#8221;. You have now disabled location aware browsing and can close the about:config tab, but if you ever want to re-enable it, all you need to do is change geo.enabled back to true.</p>
<p>Of the other settings, &#8220;<code>geo.wifi.uri</code>&#8221; is the most interesting, as it determines the location service provider to access, whilst the other two are used by the Google Location Service.</p>
<p>What do you think of this service? Does it bother you that it&#8217;s on by default? Do you have any privacy concerns or are you happy with the <a href="http://www.mozilla.com/en-US/firefox/geolocation/">steps already taken to protect your privacy</a>? Why not add your thoughts in the comment section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisbunney.com/2010/08/13/disabling-geolocation-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing a Silent Alarm on HTC Hero</title>
		<link>http://www.chrisbunney.com/2009/11/02/fixing-a-silent-alarm-on-htc-hero/</link>
		<comments>http://www.chrisbunney.com/2009/11/02/fixing-a-silent-alarm-on-htc-hero/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 11:00:52 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[HTC Hero]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.chrisbunney.com/?p=28</guid>
		<description><![CDATA[Alarm not making any sound when it goes off? Try this.]]></description>
			<content:encoded><![CDATA[<p>OK, so I was using an alarm to remind me to do something, but when the alarm went off there was not sound, it only vibrated.</p>
<p>I went through all the settings but couldn&#8217;t get it to sound.</p>
<p><span id="more-28"></span></p>
<p>Eventually I found the solution on <a href="http://forums.mobilefun.co.uk/htc-windows-mobile/673-htc-hero-android-alarm-no-sound.html#post2665">this forum</a>: when selecting what alarm sound to play, on the multiple choice menu,</p>
<div id="attachment_29" class="wp-caption aligncenter" style="width: 151px"><a href="http://www.chrisbunney.com/wp-content/uploads/2009/11/device.png"><img class="size-medium wp-image-29 " title="Android Alarm Sound Menu" src="http://www.chrisbunney.com/wp-content/uploads/2009/11/device-200x300.png" alt="A screenshot of the Alarm Sound Menu on my HTC Hero" width="141" height="212" /></a><p class="wp-caption-text">A screenshot of the Alarm Sound Menu on my HTC Hero</p></div>
<p>use the volume control to adjust the Alarm Volume (this is different from Ringer Volume). Turn up the alarm volume to the desired level and test the alarm again.</p>
<div id="attachment_30" class="wp-caption aligncenter" style="width: 153px"><a href="http://www.chrisbunney.com/wp-content/uploads/2009/11/adjusting_android_alarm_volume.png"><img class="size-medium wp-image-29 " title="adjusting_android_alarm_volume" src="http://www.chrisbunney.com/wp-content/uploads/2009/11/adjusting_android_alarm_volume.png" alt="Adjusting the Android Alarm Volume" width="143" height="215" /></a><p class="wp-caption-text">Adjusting the Android Alarm Volume</p></div>
<p>It should work now.</p>
<p>This works for the HTC Hero, and I expect will be the same for other phones using the Sense UI. It may also work for other Android phones, based on my fiddling with the Android emulator. Does it work for you? Why not tell us what phone it worked for in the comments below.</p>
<p>EDIT: (13/03/2010 09:10) Made introduction a bit clearer about the nature of the problem (alarm goes off but without sound) and added final paragraph about what phones this may work for (potentially all Android phones if the emulator is anything to go by)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisbunney.com/2009/11/02/fixing-a-silent-alarm-on-htc-hero/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Android SDK Updater: SSL Peer Shut Down Incorrectly</title>
		<link>http://www.chrisbunney.com/2009/11/01/android-sdk-updater-ssl-peer-shut-down-incorrectly/</link>
		<comments>http://www.chrisbunney.com/2009/11/01/android-sdk-updater-ssl-peer-shut-down-incorrectly/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 18:39:38 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.chrisbunney.com/?p=21</guid>
		<description><![CDATA[How to solve SSL issues with the Android SDK updater]]></description>
			<content:encoded><![CDATA[<p>I spent a lot of Saturday messing around trying to update my Android SDK and kept getting the error <code>SSL Peer Shut Down Incorrectly</code> just as the download seemed to be about to complete</p>
<p>I was using the eclipse AVD and SDK manager to upgrade, and since it wasn&#8217;t working I went looking for an alternative.</p>
<p><span id="more-21"></span></p>
<p>One idea suggested on Google&#8217;s <a href="http://developer.android.com/sdk/adding-components.html">Adding SDK Components</a> page was to <code>cd</code> into the tools directory and run the <code>android</code> command on the command line, but this didn&#8217;t work either as it couldn&#8217;t find the correct path for the SWT folder:<br />
<code><br />
Starting Android SDK and AVD Manager<br />
SWT folder 'lib\x86_64' does not exist.<br />
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.<br />
</code></p>
<p>This was rubbish as it did exist, and setting ANDROID_SWT in my environment variables didn&#8217;t work either.</p>
<p>Out of sheer desperation, I downloaded the latest SDK tools, deleted my old SDK and installed from scratch.<br />
The latest SDK tools release (revision 3) doesn&#8217;t come with any pre-packaged Android platform, but it does come with a new standalone SDK updater: <code>SDK Setup.exe</code> on Windows.</p>
<p>I initially had the same issue with the new update tool, but unlike previous versions this had the option to force the updater to use HTTP instead of HTTPS. Since the problem was with SSL, I forced it to use HTTP and lo&#8217; and behold, it worked perfectly!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisbunney.com/2009/11/01/android-sdk-updater-ssl-peer-shut-down-incorrectly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counting All Files in a Linux Directory</title>
		<link>http://www.chrisbunney.com/2009/09/27/counting-all-files-in-a-linux-directory/</link>
		<comments>http://www.chrisbunney.com/2009/09/27/counting-all-files-in-a-linux-directory/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 14:23:17 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.chrisbunney.com/?p=8</guid>
		<description><![CDATA[How to count the number of files in a directory using the Linux terminal]]></description>
			<content:encoded><![CDATA[<p>To count how many files there are in a directory using the terminal on a Linux machine you can combine 2 commands:</p>
<ul>
<li>find</li>
<li>wc</li>
</ul>
<p>We&#8217;ll use the find command to locate all the files (and exclude directories and other non-files) and then the wc command to count the files.</p>
<p><span id="more-8"></span></p>
<p>Find has many options, but we will only be using the type option:<br />
<code>find . -type f</code></p>
<p>The . indicates the directory to search in and can be replaced with any absolute or relative path. This command will also find files in subdirectories. To exclude subdirectories you can use:</p>
<p><code>find . ! -name . -prune -type f</code></p>
<p>The <code>! -name . -prune</code> will ignore any directories that are not the current one.</p>
<p>The find command will give us a list of all the files we want to count, to count the number of entries in that list we must pass the output to wc to count it.</p>
<p>By default, wc will count words, newlines, and bytes. Since the output from find is a list of files, each separated by a newline, we can tell wc to only count newlines by using the -l argument: <code>wc -l</code><br />
Combining this into a single command, we get the final command to find count the number of files in a directory excluding sub-directories:<br />
<code>find . ! -name . -prune -type f | wc -l</code></p>
<p>(Of course, if you want to include sub-directories, simply remove the <code>! -name . -prune</code> arguments and use:<br />
<code>find . -type f | wc -l</code> instead)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisbunney.com/2009/09/27/counting-all-files-in-a-linux-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

