<?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>eTechTips &#187; Uncategorized</title>
	<atom:link href="http://www.etechtips.com/articles/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.etechtips.com</link>
	<description>Your Technical resource</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:38:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Java: Split Strings</title>
		<link>http://www.etechtips.com/2011/11/06/java-split-strings/</link>
		<comments>http://www.etechtips.com/2011/11/06/java-split-strings/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 04:36:33 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=237</guid>
		<description><![CDATA[I was using Java to add users to a system by parsing a comma seperated value (CSV) file of user entries and I needed to split the file to gather the separate entries. There is also the StringTokenizer class that can seperate the entries as well. So the following code snippet was used: String fileline; [...]]]></description>
			<content:encoded><![CDATA[<p>I was using Java to add users to a system by parsing a comma seperated value (CSV) file of user entries and I needed to split the file to gather the separate entries.  There is also the StringTokenizer class that can seperate the entries as well.</p>
<p>So the following code snippet was used:</p>
<pre>
String fileline;

FileInputStream fis = new FileInputStream("filename.txt");
DataInputStream dis = new DataInputStream(fis);
BufferedReader br = new BufferedReader(new InputStreamReader(dis));

while((fileline = br.readline()) != null) {
  String[] entries = fileline.split(",");

  for(int i=0;i < entries.length;i++)
  {
    System.out.println(entries[i]);
  }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/11/06/java-split-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cron Job entry format</title>
		<link>http://www.etechtips.com/2011/08/26/cron-job-entry-format/</link>
		<comments>http://www.etechtips.com/2011/08/26/cron-job-entry-format/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 22:21:13 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=150</guid>
		<description><![CDATA[If you ever need to schedule a job regularly on a Unix system, they have a great utility called cron. This will run a job at a regularly scheduled time. Here is the format: * * * * * command to be executed _ _ _ _ _ &#124; &#124; &#124; &#124; &#124; &#124; &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever need to schedule a job regularly on a Unix system, they have a great utility  called cron.  This will run a job at a regularly scheduled time.</p>
<p>Here is the format:</p>
<pre>
* * * * *  command to be executed
_ _ _ _ _
| | | | |
| | | | +--- day of week (0 = Sunday - 6 = Saturday)
| | | +----- month (1 - 12)
| | +------- day of month (1-31)
| +--------- hour(0-23)
+----------- minute (0-59)
</pre>
<p>example of a script that runs every day at 7:</p>
<pre>* 7 * * * sendmeupdate
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/08/26/cron-job-entry-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to exit python script</title>
		<link>http://www.etechtips.com/2011/08/23/how-to-exit-python-script/</link>
		<comments>http://www.etechtips.com/2011/08/23/how-to-exit-python-script/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 13:43:50 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=154</guid>
		<description><![CDATA[When I was trying to terminate a python script after a failure, I tried to find the nicest way to exit. The sys.exit() command provided by importing the sys library was what I found. The function can take an optional numeric argument, usually in the range of 0-127, and with no argument it returns 0. [...]]]></description>
			<content:encoded><![CDATA[<p>When I was trying to terminate a python script after a failure, I tried to find the nicest way to exit.  The sys.exit() command provided by importing the sys library was what I found.</p>
<p>The function can take an optional numeric argument, usually in the range of 0-127, and with no argument it returns 0.  The return code is passed back to the Operating System.</p>
<pre>
import sys
sys.exit(1)
</pre>
<p>When exit returns a non-zero value, it is considered an error.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/08/23/how-to-exit-python-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting drives in Linux</title>
		<link>http://www.etechtips.com/2011/08/09/mounting-drives-in-linux/</link>
		<comments>http://www.etechtips.com/2011/08/09/mounting-drives-in-linux/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 14:15:49 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=290</guid>
		<description><![CDATA[Sometimes you have a drive that your want to mount under Linux. The mount command can make the drive available to you. But you need to also create a directory to hold the mount point. mkdir /mnt/drivepoint Then you can mount the drive to that mount point by using the mount command and giving the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you have a drive that your want to mount under Linux. The mount command can make the drive available to you. But you need to also create a directory to hold the mount point.</p>
<pre>
mkdir /mnt/drivepoint
</pre>
<p>Then you can mount the drive to that mount point by using the mount command and giving the device identifier, in this case it is /dev/sda1, and the mount point which we created as /mnt/drivepoint.  One thing to note, is that the mount will use whatever directory you specify, so if there are files located in the directory you use as a mount point, they will no longer be visible.</p>
<pre>
mount /dev/sda1 /mnt/drivepoint
</pre>
<p>This must be run as root or with the sudo command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/08/09/mounting-drives-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using tar over ssh</title>
		<link>http://www.etechtips.com/2011/07/21/using-tar-over-ssh/</link>
		<comments>http://www.etechtips.com/2011/07/21/using-tar-over-ssh/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 14:15:56 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=315</guid>
		<description><![CDATA[Every once in awhile, I need to backup a large directory from another computer. This can be done by creating a zip or tar of the files you are looking to save and then copying those zips to the other computer. But what it you have a very large directory and not enough room to [...]]]></description>
			<content:encoded><![CDATA[<p>Every once in awhile, I need to backup a large directory from another computer.  This can be done by creating a zip or tar of the files you are looking to save and then copying those zips to the other computer. But what it you have a very large directory and not enough room to store the extra file.  Here is a way to use tar over ssh:</p>
<p> ssh tar zcvf &#8211; /wwwdata | ssh root@backupserver.mydomain.com &#8220;cat > /backup/wwwdata.tar.gz&#8221; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/07/21/using-tar-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting timestamp with Touch</title>
		<link>http://www.etechtips.com/2011/07/20/setting-timestamp-with-touch/</link>
		<comments>http://www.etechtips.com/2011/07/20/setting-timestamp-with-touch/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 16:11:47 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=316</guid>
		<description><![CDATA[Did you know? You can Set file timestamp using touch command. One way to do this is: touch -c -t YYMMDDhhmm filename.txt]]></description>
			<content:encoded><![CDATA[<p>Did you know? You can Set file timestamp using touch command. One way to do this is:<br />
 touch -c -t YYMMDDhhmm filename.txt </p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/07/20/setting-timestamp-with-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Learning sites(in progress)</title>
		<link>http://www.etechtips.com/2011/07/19/best-learning-sitesin-progress/</link>
		<comments>http://www.etechtips.com/2011/07/19/best-learning-sitesin-progress/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 16:06:04 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=318</guid>
		<description><![CDATA[Learnable www.learnable.com Brought to you by Sitepoint. They have created a site to host their on-line classes and a place for people to create their own as well. Udemy www.udemy.com Just checking this one out, I found some interesting courses, but many seem to be placeholders for classes to come later. LiveMind www.livemind.com Just read [...]]]></description>
			<content:encoded><![CDATA[<p>Learnable<br />
www.learnable.com<br />
Brought to you by Sitepoint.  They have created a site to host their on-line classes and a place for people to create their own as<br />
well.</p>
<p>Udemy<br />
www.udemy.com<br />
Just checking this one out, I found some interesting courses, but many seem to be placeholders for classes to come later.</p>
<p>LiveMind<br />
www.livemind.com<br />
Just read about this one and have not looked thorugh it very much yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/07/19/best-learning-sitesin-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vi: Remove Ctrl-M characters from a document</title>
		<link>http://www.etechtips.com/2011/06/30/vi-remove-ctrl-m-characters-from-a-document/</link>
		<comments>http://www.etechtips.com/2011/06/30/vi-remove-ctrl-m-characters-from-a-document/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 14:49:08 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=309</guid>
		<description><![CDATA[I regularly have to move scripts between Windows and Linux systems. The line endings from Windows can make running my scripts on Linux fail. I have been on a few systems where the dos2unix command was not available, so how do I get rid of the Ctrl-M at the end of the lines? Command: vi [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly have to move scripts between Windows and Linux systems.  The line endings from<br />
Windows can make running my scripts on Linux fail.  I have been on a few systems where the<br />
dos2unix command was not available, so how do I get rid of the Ctrl-M at the end of the lines?</p>
<p>Command: vi -b &lt;filename&gt;</p>
<p>The -b sets vi into binary mode.  This displays the extra control characters.  In vi, I remove the<br />
ctrl-Ms.</p>
<p>In vi, I use the following key sequence in command mode:</p>
<pre> :%s/&lt;ctrl-v&gt;&lt;enter&gt;//g </pre>
<p>The ctrl-v tells vi to take the next character and display it as a ctrl char sequence.  And hitting the<br />
enter key displays the ctrl-M.  The :%s///g is a command to replace the characters in the first // and replace<br />
it with the chars in the second // and the g says to do it to every line.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/06/30/vi-remove-ctrl-m-characters-from-a-document/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7: Create Library</title>
		<link>http://www.etechtips.com/2011/05/03/windows-7-create-library/</link>
		<comments>http://www.etechtips.com/2011/05/03/windows-7-create-library/#comments</comments>
		<pubDate>Tue, 03 May 2011 14:24:45 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=240</guid>
		<description><![CDATA[Windows 7 has introduced the concept of a Libary. This is a folder that can contain other folders and is available in the Windows Explorer. So you may have decided that the 4 defaults folders aren&#8217;t enough: Documents Music Pictures Video So to create a new library: Select : Start menu->All Programs->Accessories->Windows Explorer or Press [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7 has introduced the concept of a Libary. This is a folder that can contain other folders and is available in the Windows Explorer.  So you may have decided that the 4 defaults folders aren&#8217;t enough:</p>
<ul>
<li><strong>Documents</strong></li>
<li><strong>Music</strong></li>
<li><strong>Pictures</strong></li>
<li><strong>Video</strong></li>
</ul>
<p>So to create a new library:</p>
<ol>
<li>Select : Start menu->All Programs->Accessories->Windows Explorer<br />
or<br />
Press <Windows Key> + e<br />
and click on the Libraries folder in the left hand column.</li>
<li>
Right click in an empty space on the folder view and select New->Library
</li>
<li>
Then name your Library
</li>
<li>
Right-click your new library and select properties.
</li>
<li>Select Folders to include in your library.</li>
</ol>
<p>Each library can contain multiple folders. Now everytime you open the explorer your library will be available to you and you do not have to dig into your file hierarchy to find your most used files.</p>
<p>Suggested Applications:</p>
<ul>
<li><strong>Work folders</strong></li>
<li><strong>Project folder</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2011/05/03/windows-7-create-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple arguments to bash</title>
		<link>http://www.etechtips.com/2010/07/20/multiple-arguments-to-bash/</link>
		<comments>http://www.etechtips.com/2010/07/20/multiple-arguments-to-bash/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 15:23:24 +0000</pubDate>
		<dc:creator>ecdown</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.etechtips.com/?p=123</guid>
		<description><![CDATA[I regularly have to write scripts into different environments and when I am wrapping a build system, I typically use a Bash script to do it. I often have to pass a set of arguments to the underlying commands in my scripts as well. I have found that the %* argument is the easiest way [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly have to write scripts into different environments and when I am wrapping a build system, I typically use a Bash script to do it.  I often have to pass a set of arguments to the underlying commands in my scripts as well.  I have found that the %* argument is the easiest way to take those arguments.</p>
<p>The %* takes the arguements and passes them along.  The %1, %2, %3&#8230;and so on are the individual arguments but unless you have a fixed amount of arguments, then you will need to process a variable amount of arguments.</p>
<pre>
while [ $#  -gt 1 ]
do
  case "$1" in
    -a)
      ANALYZE=1
      ;;
    *)
     echo "Invalid option"
     ;;
   esac
   shift
done
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.etechtips.com/2010/07/20/multiple-arguments-to-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

