<?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 &#187; tips</title>
	<atom:link href="http://www.usefulgeek.com/blog/category/tips/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>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>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>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>
		<item>
		<title>Quick install of Tomcat5 on CentOS</title>
		<link>http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/</link>
		<comments>http://www.usefulgeek.com/blog/2009/11/quick-install-of-tomcat5-on-centos/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:19:27 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=198</guid>
		<description><![CDATA[At the office, we&#8217;re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I&#8217;m sure I&#8217;ve left out some important things, and I&#8217;m doubtful as to how production ready this [...]
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>At the office, we&#8217;re in the process of doing some work where we need a tomcat server.  Without having to get into things to much, I found this simple method for getting tomcat5 up and running pretty quickly.  I&#8217;m sure I&#8217;ve left out some important things, and I&#8217;m doubtful as to how production ready this is, but for our testing, it&#8217;s working out fine.</p>
<p>I&#8217;m using CentOS 5.3 for all of this, but I&#8217;m sure it will work with CentOS 5.4</p>
<pre>yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps</pre>
<p>After this, you need to edit the tomcat-users.xml file to create a new user.Using the above, this file ends up in <code>/etc/tomcat5/tomcat5-users.xml</code> and all that needs to be added is a line similar to the following..</p>
<pre>user username="admin" password="p@ssw0rd" roles="admin,manager"</pre>
<p>I can&#8217;t get wordpress to work with me on this, so you&#8217;ll need to wrap the above in angle brackets, the same as all the other lines in that file.<br />
You can set username and password to whatever you&#8217;d like.  After this, restart tomcat (not sure if this is needed) with <code>service tomcat5 restart</code> and off you go.</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/2009/11/quick-install-of-tomcat5-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launch Google Chrome and external links with incognito mode.</title>
		<link>http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/</link>
		<comments>http://www.usefulgeek.com/blog/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 03:19:50 +0000</pubDate>
		<dc:creator>drale</dc:creator>
				<category><![CDATA[quickfire]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=178</guid>
		<description><![CDATA[The instructions floating around are to place the --incognito switch (single &#8211; works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don&#8217;t launch in incognito if you only fix your desktop shortcut. Here is how to do both. [...]
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 instructions floating around are to place the <code>--incognito</code> switch (single &#8211; works fine for me) in your desktop shortcut. But sometimes you may be in an application like Tweek Deck, etc that links to webpages. These pages don&#8217;t launch in incognito if you only fix your desktop shortcut. Here is how to do both. Google Chrome is set as the default browser in this case.</p>
<p>(These instructions are based off of Windows XP)</p>
<p>Right-click on your Chrome shortcut. Choose <em>P</em><em>roperties</em>. Add <em>-incognito</em> to the end:</p>
<pre>chrome.exe" --incognito</pre>
<p>To launch all web shortcuts and links from your system:<br />
<em>Control Panel &gt; Folder Options &gt; File Types</em><br />
Select the File Type <em>URL:HyperText Transfer Protocol</em> and choose <em>Advanced<br />
<span style="font-style: normal">Select action </span>open<span style="font-style: normal"> and </span>edit<span style="font-style: normal">.<br />
Just like before add the switch to the end like this:<br />
</span></em></p>
<pre>chrome.exe" --incognito -- "%1"</pre>
<p><strong>Edit:</strong> After more digging in Google I found this tip mentioned in <a href="http://code.google.com/p/chromium/issues/detail?id=6273#c3">Google Code Chromium issues</a> (Comment 3).</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/2009/11/launch-google-chrome-and-external-links-with-incognito-mode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remove bonded interface in OpenFiler</title>
		<link>http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/</link>
		<comments>http://www.usefulgeek.com/blog/2009/10/remove-bonded-interface-in-openfiler/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 13:45:42 +0000</pubDate>
		<dc:creator>jonmoore</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[openfiler]]></category>

		<guid isPermaLink="false">http://www.usefulgeek.com/blog/?p=174</guid>
		<description><![CDATA[I decided to try and use NIC bonding in OpenFiler and while things seemed to go well at first, I did run into some issues over time.  I&#8217;m still in the process of testing, and I think most of the issues are &#8220;user error&#8221; and not so much problems with NIC bonding or OpenFiler itself.  [...]
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 decided to try and use NIC bonding in OpenFiler and while things seemed to go well at first, I did run into some issues over time.  I&#8217;m still in the process of testing, and I think most of the issues are &#8220;user error&#8221; and not so much problems with NIC bonding or OpenFiler itself.  More on that later.</p>
<p>I was able to configure a bonded interface, and add both interfaces to it.  However, after the issues started, I wanted to remove the bond.  There is no way of doing this from within the Web UI it seems.  Easiest solution, login to the console, and delete <code>/etc/sysconfig/network-scripts/ifcfg-bond0</code> if you&#8217;re using the first bond interface.</p>
<p>After this file is deleted, <code>service network restart</code> should get you going again.</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/2009/10/remove-bonded-interface-in-openfiler/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

