<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tom Purl's Web Site &#187; howto</title>
	<atom:link href="http://tompurl.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://tompurl.com</link>
	<description>My '83 Datsun On The Side Of The Information Superhighway</description>
	<lastBuildDate>Sat, 12 Jun 2010 01:15:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tompurl.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/620cc5862148afd2b2d0242871afa4ab?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tom Purl's Web Site &#187; howto</title>
		<link>http://tompurl.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tompurl.com/osd.xml" title="Tom Purl&#039;s Web Site" />
	<atom:link rel='hub' href='http://tompurl.com/?pushpress=hub'/>
		<item>
		<title>Cool GNU Screen Helper Functions</title>
		<link>http://tompurl.com/2008/02/14/cool-gnu-screen-helper-functions/</link>
		<comments>http://tompurl.com/2008/02/14/cool-gnu-screen-helper-functions/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 15:58:49 +0000</pubDate>
		<dc:creator>Tom Purl</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[gnu-screen]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tompurl.com/?p=69</guid>
		<description><![CDATA[I&#8217;m a big fan of using GNU Screen, a terminal multiplexer. At any given time, I could be interacting with a dozen different Unix servers at work. I therefore group servers into logical, named groups and jump back and forth between them using screen. I find the following one-liner functions to be incredibly helpful to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tompurl.com&blog=3216699&post=69&subd=tompurl&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		H2 { margin-bottom: 0.08in } 		H2.cjk { font-family: "Arial Unicode MS" } 		CODE { font-family: "Courier New", monospace } 		A:link { so-language: zxx } -->I&#8217;m a big fan of using <a href="http://http//www.gnu.org/software/screen/" target="_blank">GNU Screen</a>, a terminal multiplexer. At any given time, I could be interacting with a dozen different Unix servers at work. I therefore group servers into logical, named groups and jump back and forth between them using screen.</p>
<p>I find the following one-liner functions to be incredibly helpful to me when it comes to managing multiple screen sessions simultaneously. Hopefully someone else will also benefit from them. I currently run these one-liners using the Bash shell, and store them in my ~/.bashrc file. Each function should be runnable from a shell prompt.</p>
<h2>getscreenpids</h2>
<p><code>function getscreenpids() { ps auxww | grep screen | grep -v grep | awk '{print $2}'; } </code></p>
<p>This function simply returns a list of process id&#8217;s (pid&#8217;s) for each screen process. This is nice info to have if you want to kill a screen session, since each session uses it&#8217;s own screen process.</p>
<h2>clearscreen</h2>
<p><code>function clearscreen() { for pid in $(getscreenpids); do kill -9 $pid; done; screen -wipe; } </code></p>
<p>This function kills every screen session into which I am logged. This is nice if things get flaky and I just want to kill all of my screen processes quickly.</p>
<h2>killscreen</h2>
<p><code>function killscreen() { screen -ls | grep $1 | awk '{print $1}' | cut -f1 -d. | xargs kill -9; screen -wipe; } </code></p>
<p>This function kills every screen session that uses the title that you pass as the first parameter. So if you have one or more screen sessions titled &#8220;envA&#8221;, and you pass that string to this function, all of those screen sessions will be killed.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tompurl.wordpress.com/69/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tompurl.wordpress.com/69/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tompurl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tompurl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tompurl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tompurl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tompurl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tompurl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tompurl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tompurl.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tompurl.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tompurl.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tompurl.com&blog=3216699&post=69&subd=tompurl&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://tompurl.com/2008/02/14/cool-gnu-screen-helper-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7b972ff5d62434623ade7ad88b02aa99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tpurl</media:title>
		</media:content>
	</item>
		<item>
		<title>Good Java Resources</title>
		<link>http://tompurl.com/2006/03/03/good-java-resources-2/</link>
		<comments>http://tompurl.com/2006/03/03/good-java-resources-2/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 15:06:52 +0000</pubDate>
		<dc:creator>Tom Purl</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[toolbox]]></category>

		<guid isPermaLink="false">http://tompurl.com/?p=54</guid>
		<description><![CDATA[I&#8217;ve been using Java since 2000 for a variety of tasks, mostly related to software administration and maintenance. A common request from co-workers and some of my geekier friends is a list of recommended resources for Java training. I&#8217;ve built this list a couple of times, and I keep losing the old lists, so I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tompurl.com&blog=3216699&post=54&subd=tompurl&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } 		H2 { margin-bottom: 0.08in } 		H2.cjk { font-family: "Arial Unicode MS" } 		A:link { so-language: zxx } -->I&#8217;ve been using Java since 2000 for a variety of tasks, mostly related to software administration and maintenance. A common request from co-workers and some of my geekier friends is a list of recommended resources for Java training.</p>
<p>I&#8217;ve built this list a couple of times, and I keep losing the old lists, so I thought that I would put it on my wiki so it would be a little more permanent. I hope that a few people find it helpful.</p>
<h2>Dead-Tree Book Resources</h2>
<ul>
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0131482114/qid=1120576682/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-1756582-3155308?v=glance&amp;amp;s=books&amp;amp;n=507846" target="_blank">Just 	Java</a> &#8211; <em>The</em> Java bible. No matter what you do with Java, 	you&#8217;ll need this book eventually. Not only is it very informative, 	it is entertaining and very well written. It&#8217;s one of those truly 	excellent technical books that you see so very rarely in a jungle of 	crap.</li>
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0072226846/qid=1120577095/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-1756582-3155308?v=glance&amp;amp;s=books&amp;amp;n=507846" target="_blank">Sun 	Certified Programmer &amp; Developer for Java 2 Study Guide</a> &#8211; 	The only book you&#8217;ll really need to become a Sun Certified Java 	Programmer. Also very well written.</li>
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0596009208/qid=1120577361/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-1756582-3155308?v=glance&amp;amp;s=books&amp;amp;n=507846" target="_blank">Head 	First Java</a> &#8211; I haven&#8217;t actually read this book, but I&#8217;ve heard 	wonderful things about it from multiple sources, and it was written 	by the same authors of the previous bullet point. I look forward to 	reading the other books from the succesful <a href="http://headfirst.oreilly.com/" target="_blank">Head 	First series</a>.</li>
<li><a href="http://www.amazon.com/exec/obidos/tg/detail/-/0130092290/qid=1120577790/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-1756582-3155308?v=glance&amp;amp;s=books&amp;amp;n=507846" target="_blank">Core 	Servlets and Javaserver Pages</a> &#8211; A good book for learning the 	basics of JSP&#8217;s and servlets. I recommend checking this book out 	from the library because it&#8217;s a fairly quick read. Another cool 	thing about this book is that there are a lot of excerpts available 	at <a href="http://www.coreservlets.com/" target="_blank">http://www.coreservlets.com</a>. 	Definitely check out the web site if you&#8217;re interested in this book.</li>
</ul>
<h2>Online Book Resources</h2>
<ul>
<li><a href="http://www.ibiblio.org/obp/thinkCS/java/english/" target="_blank">How 	To Think Like A Computer Scientist</a> &#8211; This is a good, free start 	to programming with Java.</li>
<li><a href="http://www.mindview.net/Books/TIJ/" target="_blank">Thinking 	in Java</a> &#8211; This is an <strong>excellent</strong> free book for 	programming in Java. It&#8217;s quite possibly the best free programming 	book available for any language.</li>
</ul>
<h2>Web Sites</h2>
<ul>
<li><a href="http://javaranch.com/" target="_blank">JavaRanch</a> &#8211; I <strong>highly</strong> recommend this web site if you are a 	beginning Java programmer. I feel that the following sections are 	particularly good:
<ul>
<li><a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi" target="_blank">Forum</a> &#8211; I received some great support from this forum on numerous 		occasions, but it was especially useful when I was studying for the 		SCJP test.</li>
<li><a href="http://www.javaranch.com/campfire.jsp" target="_blank">Campfire 		Stories</a> &#8211; Tutorials and tips</li>
<li><a href="http://www.javaranch.com/books.jsp" target="_blank">Bunkhouse</a> &#8211; The best place for unbiased reviews of Java books.</li>
<li><a href="http://www.javaranch.com/cattledrive.jsp" target="_blank">Cattle 		Drive</a> &#8211; I am a former pupil in their Cattle Drive class, and 		found it to be a very good educational value for beginners.</li>
</ul>
</li>
<li><a href="http://mindprod.com/jgloss/jgloss.html" target="_blank">Roedy 	Green&#8217;s Java &amp; Internet Glossary</a> &#8211; His <a href="http://mindprod.com/jgloss/exception.html" target="_blank">exception 	page</a> is my favorite place to go when I&#8217;m stuck on a particular 	error and need a little guidance. Also, it includes a treasure trove 	of documentation and tutorials to help you with most basic tasks. 	It&#8217;s an absolutely essential resource.</li>
</ul>
<p><strong>Note</strong>: Please note that I linked to Amazon for all of the books listed above, but I&#8217;m not getting a kickback for doing so. You should be able to find a lot of these books at your local library, and they should all be available from discount book sites such as <a href="http://half.com/" target="_blank">half.com</a>.</p>
<p>Good luck and have fun!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/tompurl.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/tompurl.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tompurl.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tompurl.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tompurl.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tompurl.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tompurl.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tompurl.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tompurl.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tompurl.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tompurl.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tompurl.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tompurl.com&blog=3216699&post=54&subd=tompurl&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://tompurl.com/2006/03/03/good-java-resources-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7b972ff5d62434623ade7ad88b02aa99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tpurl</media:title>
		</media:content>
	</item>
	</channel>
</rss>