<?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>usefulgeek</title>
	<atom:link href="http://www.usefulgeek.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.usefulgeek.com/blog</link>
	<description>rants, reviews and kind hearted messages from some geeks</description>
	<lastBuildDate>Wed, 04 Jan 2012 22:08:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Locating PostgreSQL data directory</title>
		<link>http://www.usefulgeek.com/blog/2011/12/locating-postgresql-data-directory/</link>
		<comments>http://www.usefulgeek.com/blog/2011/12/locating-postgresql-data-directory/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 19:55:23 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=281</guid>
		<description><![CDATA[Use a simple psql query to find the location of the data directory postgres=# SHOW data_directory; data_directory ------------------------------ /var/lib/postgresql/8.4/main (1 row) Or postgres=# select setting from pg_settings where name = 'data_directory'; setting ------------------------------ /var/lib/postgresql/8.4/main (1 row) No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Use a simple psql query to find the location of the data directory<br />
<code>postgres=# SHOW data_directory;<br />
data_directory<br />
------------------------------<br />
/var/lib/postgresql/8.4/main<br />
(1 row)</code>
</p>
<p>Or<br />
<code><br />
postgres=# select setting from pg_settings where name = 'data_directory';<br />
           setting<br />
------------------------------<br />
 /var/lib/postgresql/8.4/main<br />
(1 row)</code></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2011/12/locating-postgresql-data-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Thunderbird Global Search in Fedora</title>
		<link>http://www.usefulgeek.com/blog/2010/09/enabled-thunderbird-global-search-in-fedora/</link>
		<comments>http://www.usefulgeek.com/blog/2010/09/enabled-thunderbird-global-search-in-fedora/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 19:38:35 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[other]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=273</guid>
		<description><![CDATA[If you&#8217;ve just installed Thunderbird on Fedora 13, you&#8217;ve probably noticed the Global Search bar is missing. At least, this is one of the first things I noticed. After using Thunderbird 3.x for sometime on Windows I&#8217;ve really come to love this feature. It seems the default configuration on Fedora doesn&#8217;t enable this feature by [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve just installed Thunderbird on Fedora 13, you&#8217;ve probably noticed the Global Search bar is missing.  At least, this is one of the first things I noticed. After using Thunderbird 3.x for sometime on Windows I&#8217;ve really come to love this feature.</p>
<p>It seems the default configuration on Fedora doesn&#8217;t enable this feature by default, however it is simple to get working.  Go to the Preferences menu, Advanced section and check &#8220;Enable Global Search and Indexer&#8221;.  After this, restart Thunderbird and it will begin indexing your mail.  After which, the Global Search should work as expected.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/09/enabled-thunderbird-global-search-in-fedora/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving /home to new partition</title>
		<link>http://www.usefulgeek.com/blog/2010/07/moving-home-to-new-partition/</link>
		<comments>http://www.usefulgeek.com/blog/2010/07/moving-home-to-new-partition/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 16:48:21 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=269</guid>
		<description><![CDATA[If /home is just a folder under / and you have a reason to put this on it&#8217;s own partition the process isn&#8217;t that difficult. Here is the steps I followed to do this. First, create the new partition on the drive. I was using LVM, so I created a new logical volume, do whatever [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If /home is just a folder under / and you have a reason to put this on it&#8217;s own partition the process isn&#8217;t that difficult.  Here is the steps I followed to do this.</p>
<p>First, create the new partition on the drive.  I was using LVM, so I created a new logical volume, do whatever makes sense for your system here.</p>
<p>Make a place for the new home partition to be mounted while we transfer files.</p>
<pre>mkdir /mnt/newhome
mount -t   /mnt/newhome</pre>
</p>
<p>Move files from current /home to this new location.</p>
<pre>cd /home
cp -ax * /mnt/newhome</pre>
</p>
<p>Once all the files have copied, remove the old home directory, and mount the new partition in its place.</p>
<pre>rm -r /home
mount  -t   /home</pre>
</p>
<p>Edit /etc/fstab for the new partition, and you&#8217;re done.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/07/moving-home-to-new-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lock and Unlock Linux accounts</title>
		<link>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 13:37:06 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=264</guid>
		<description><![CDATA[Using passwd it is possible to quickly lock and unlock Linux accounts. To lock an account. passwd -l username To unlock an account. passwd -u username No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using <code>passwd</code> it is possible to quickly lock and unlock Linux accounts.</p>
<p>To lock an account.</p>
<pre>passwd -l <code>username</code></pre>
<p>To unlock an account.</p>
<pre>passwd -u <code>username</code></pre>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/lock-and-unlock-linux-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using telnet to test POP server</title>
		<link>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 14:52:28 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=261</guid>
		<description><![CDATA[Using telnet (or putty) it&#8217;s possible to some simple tests against a POP server. By no means exhaustive, it can give you insights in where to start troubleshooting. First, using telnet and open a connection the remote POP server telnet mailserver 110 Where mailserver is the mail server you want to connect to. Note that [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using telnet (or putty) it&#8217;s possible to some simple tests against a POP server.  By no means exhaustive, it can give you insights in where to start troubleshooting.</p>
<p>First, using telnet and open a connection the remote POP server</p>
<pre>telnet mailserver 110</pre>
<p>Where <code>mailserver</code> is the mail server you want to connect to.  Note that port <code>110</code> is the default port for POP, but could be different depending on your servers settings.</p>
<p>Once connected, use <code>USER</code> and <code>PASS</code> to login.</p>
<pre>
[root@ms1 ~] # telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 localhost v2001.78rh server ready
USER <code>username</code>
+OK User name accepted, password please
PASS <code>password</code>
+OK Mailbox open, 1 messages
QUIT
+OK Sayonara
Connection closed by foreign host.
</pre>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/using-telnet-to-test-pop-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux IPv6 Neighbor Discovery</title>
		<link>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/</link>
		<comments>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 21:37:54 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=252</guid>
		<description><![CDATA[Using ping6 and ip neigh it&#8217;s possible to discover other IPv6 hosts on your local network using the link-local addresses. First, use ping6 to ping all hosts on the local network using the IPv6 link-local address ping6 -c 2 -I eth0 ff02::1 Then, use ip neigh to show a list of IPv6 enable hosts on [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Using <code>ping6</code> and <code>ip neigh</code> it&#8217;s possible to discover other IPv6 hosts on your local network using the link-local addresses.<br />
First, use ping6 to ping all hosts on the local network using the IPv6 link-local address</p>
<pre>ping6 -c 2 -I eth0 ff02::1</pre>
<p>Then, use <code>ip neigh</code> to show a list of IPv6 enable hosts on the local network</p>
<pre>ip -f inet6 neigh</pre>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/04/linux-ipv6-neighbor-discovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why use ZFS with FreeNAS?</title>
		<link>http://www.usefulgeek.com/blog/2010/03/why-use-zfs-with-freenas/</link>
		<comments>http://www.usefulgeek.com/blog/2010/03/why-use-zfs-with-freenas/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:43:29 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[rants]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=230</guid>
		<description><![CDATA[I recently started using FreeNAS again after exploring other options that existed, such as openfiler, and now that I&#8217;ve returned, ZFS seems to be the cool thing to do.  After reading, watching videos and playing with ZFS I&#8217;m sold on all the features it offers.  However, I must ask, is there a compelling reason to [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I recently started using FreeNAS again after exploring other options that existed, such as openfiler, and now that I&#8217;ve returned, ZFS seems to be the cool thing to do.  After reading, watching videos and playing with ZFS I&#8217;m sold on all the features it offers.  However, I must ask, is there a compelling reason to use ZFS over UFS for a single disk?  I&#8217;d really like to see some comments on this.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/03/why-use-zfs-with-freenas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite incoming CallerID</title>
		<link>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/</link>
		<comments>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 21:38:27 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=231</guid>
		<description><![CDATA[We&#8217;re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN.  Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit.  I [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re using asterisk, and as part of the dial plan, a 9 is required before the number to make calls out to the PSTN.  Since our phones have a incoming call log, it would be very convient to have asterisk rewrite the CallerID value on calls from the PSTN to include this leading digit.  I found this was rather easy to accomplish.  Adding something similar to the following to whatever extension handles your incoming calls, all CallerID numbers will have a 9 added to the front.<br />
<code><br />
exten =&gt; s,1,Set(<span style="color: green;">CALLERID(num)</span>=9<span style="color: purple;">${CALLERID(num)</span>})<br />
</code><br />
And proceed with your normal call routing logic.  Change the preceding digit to whatever matches your system.  If you have several extensions this is going to be used with, you could benefit from using a global variable for the leading digit.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/02/rewrite-incoming-callerid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share list of files in DropBox Public folder</title>
		<link>http://www.usefulgeek.com/blog/2010/01/share-files-list-in-dropbox-public-folder/</link>
		<comments>http://www.usefulgeek.com/blog/2010/01/share-files-list-in-dropbox-public-folder/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 09:45:53 +0000</pubDate>
		<dc:creator>drale</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[dropbox]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=214</guid>
		<description><![CDATA[For Windows DropBox users. Here is a simple way to share list of links for your Public folder. This script doesn&#8217;t show files in sub-directories. 1. Create a makefilelist.bat file with script to list all files in directory. 2. Use Scheduled Tasks to run the .bat file Daily or Weekly, etc as needed; depending on [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>For Windows DropBox users. Here is a simple way to share list of links for your Public folder. This script doesn&#8217;t show files in sub-directories.</p>
<p>1. Create a makefilelist.bat file with script to list all files in directory.<br />
2. Use Scheduled Tasks to run the .bat file Daily or Weekly, etc as needed; depending on how often you update files in DropBox Public.<br />
3. Share the list file with &#8220;Copy Public Link&#8221;.<br />
4. Open Public Link in a browser. You know have a list of all public files that is up-to-date.</p>
<p>You can see an example and download the makefilelist.bat file here:<br />
<a href="http://dl.dropbox.com/u/4355901/index.html" target="_blank">http://dl.dropbox.com/u/4355901/index.html</a></p>
<p>GitHub:<br />
<a href="http://github.com/drale/dropboxlistpublic/" target="_blank"> http://github.com/drale/dropboxlistpublic/</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/01/share-files-list-in-dropbox-public-folder/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Asterisk GotoIf Application</title>
		<link>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/</link>
		<comments>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 15:12:20 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=211</guid>
		<description><![CDATA[The description from asterisk for this is GotoIf(condition?[labeliftrue]:[labeliffalse]), however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse]). I have not used labels in the dial [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The description from asterisk for this is <code>GotoIf(condition?[labeliftrue]:[labeliffalse])</code>, however for me (being somewhat new to asterisk, and not fully understanding all the little bits, this was a bit confusing. A better way of describing this, at least for those of use new to asterisk, might be <code>GotoIf(condition?[context,priority,labeliftrue]:[context,priority,labeliffalse])</code>.<br />
I have not used labels in the dial plan before, and when starting out with this application I read label to be a context.  This lead me to write my dial plan similar to this..</p>
<pre>[default]
exten =&gt; 100,1,GoToIf(condition?true,false)
[true]
exten =&gt; s,1,...
[false]
exten =&gt; s,1,...
</pre>
<p>In retrospect, it&#8217;s obvious what the documentation is saying, but as I said, not being familiar with labels, I was a bit lost.</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.usefulgeek.com/blog/2010/01/asterisk-gotoif-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

