<?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>hmmm.... &#187; tips</title>
	<atom:link href="http://michael.thegrebs.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://michael.thegrebs.com</link>
	<description></description>
	<lastBuildDate>Thu, 27 Oct 2011 18:48:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>~/.bashrc Perl Module Version Tip</title>
		<link>http://michael.thegrebs.com/2009/01/09/bashrc-perl-module-version-tip/</link>
		<comments>http://michael.thegrebs.com/2009/01/09/bashrc-perl-module-version-tip/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 16:41:12 +0000</pubDate>
		<dc:creator>mikegrb</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://michael.thegrebs.com/?p=189</guid>
		<description><![CDATA[I often need to quickly check the version of a perl module currently installed. A while back I got tired of running: $ perl -MPOE::Filter -E 'say $POE::Filter::VERSION' 1.2357 So I added a quick function to .bashrc: pm-vers &#40;&#41; &#123; &#8230; <a href="http://michael.thegrebs.com/2009/01/09/bashrc-perl-module-version-tip/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I often need to quickly check the version of a perl module currently installed.  A while back I got tired of running:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ perl -MPOE::Filter -E 'say $POE::Filter::VERSION'<br />
1.2357</div></div>
<p>So I added a quick function to .bashrc:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">pm-vers <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">perl</span> -M<span style="color: #007800;">$1</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;print <span style="color: #000099; font-weight: bold;">\$</span>$1::VERSION, <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><br />
<span style="color: #7a0874; font-weight: bold;">&#125;</span></div></div>
<p>Now I just run:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pm-vers POE::Filter<br />
1.2357</div></div>
]]></content:encoded>
			<wfw:commentRss>http://michael.thegrebs.com/2009/01/09/bashrc-perl-module-version-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>screen copy mode can be used to copy/paste</title>
		<link>http://michael.thegrebs.com/2008/07/10/screen-copy-mode-can-copy/</link>
		<comments>http://michael.thegrebs.com/2008/07/10/screen-copy-mode-can-copy/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 16:38:48 +0000</pubDate>
		<dc:creator>mikegrb</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://michael.thegrebs.com/?p=124</guid>
		<description><![CDATA[I&#8217;m aware of many people that use GNU Screen&#8217;s copy mode to scroll back through terminal history but don&#8217;t actually use copy mode for copying text for later pasting. I was one of those people myself for some time. Screen &#8230; <a href="http://michael.thegrebs.com/2008/07/10/screen-copy-mode-can-copy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m aware of many people that use GNU Screen&#8217;s copy mode to scroll back through terminal history but don&#8217;t actually use copy mode for copying text for later pasting.  I was one of those people myself for some time.  Screen supports some pretty nifty copy/paste tricks but a few basic key strokes will get you started.</p>
<p><strong>Entering Copy Mode and Scrolling</strong></p>
<p>By default, enter copy mode with</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CTRL+a</div></div>
<p>then</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ESCAPE</div></div>
<p>.  You can use vi like commands to navigate through the scollback buffer.  The arrows and</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">PAGE UP/DOWN</div></div>
<p>should work as well.  A few useful commands some may be unfamiliar with:</p>
<ul>
<li>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">M</div></div>
<p>- jumps to the middle visible line</li>
<li>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NN%</div></div>
<p>- jumps to the specified percentage in the buffer (0 &#8211; start, 100 &#8211; end</li>
<li>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">g</div></div>
<p>- jumps to the beginning of the buffer</li>
<li>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">G</div></div>
<p>- jumps to the end of the buffer</li>
</ul>
<p>These keys are even useful when you aren&#8217;t using copy mode to copy/paste text.</p>
<p><strong>Copying Text</strong></p>
<p>Once the cursor is at the beginning location, press</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SPACEBAR</div></div>
<p>to set your first mark.  Next navigate to the ending position and hit it again.  The second</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SPACEBAR</div></div>
<p>will set your end mark and exit copy mode.  One neat and often useful feature is selecting a rectangle on the screen rather than full lines.  Use</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">c</div></div>
<p>and</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C</div></div>
<p>to set the left and right column margins to the cursor&#8217;s current location.</p>
<p><strong>Pasting</strong></p>
<p>Pasting is easy, just hit</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">CTRL+a</div></div>
<p>to activate screen then</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">]</div></div>
<p>to paste.</p>
<p><strong>There&#8217;s More!</strong></p>
<p>There are loads more options such as multiple copy buffers, the ability to append marked text to the buffer rather than replacing it, etc.  Check out the man page for more screen goodness.</p>
]]></content:encoded>
			<wfw:commentRss>http://michael.thegrebs.com/2008/07/10/screen-copy-mode-can-copy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Rotate through Screen Windows</title>
		<link>http://michael.thegrebs.com/2008/06/26/rotate-through-screen-windows/</link>
		<comments>http://michael.thegrebs.com/2008/06/26/rotate-through-screen-windows/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 17:18:01 +0000</pubDate>
		<dc:creator>mikegrb</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://michael.thegrebs.com/?p=122</guid>
		<description><![CDATA[A new command in screen version 4.00 is the idle command. idle time command Executes screen command, command when idle for time seconds. E.g. to rotate through screen windows with a 3 second interval: idle 3 next To cancel, idle &#8230; <a href="http://michael.thegrebs.com/2008/06/26/rotate-through-screen-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A new command in screen version 4.00 is the</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">idle</div></div>
<p>command.</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">idle time command</div></div>
<p>Executes screen command,</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">command</div></div>
<p>when idle for</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">time</div></div>
<p>seconds. E.g. to rotate through screen windows with a 3 second interval:</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">idle 3 next</div></div>
<p>To cancel,</p>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">idle 0</div></div>
]]></content:encoded>
			<wfw:commentRss>http://michael.thegrebs.com/2008/06/26/rotate-through-screen-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

