<?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>Techero's Weblog</title>
	<atom:link href="http://techero.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techero.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 19 May 2010 14:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techero.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Techero's Weblog</title>
		<link>http://techero.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techero.wordpress.com/osd.xml" title="Techero&#039;s Weblog" />
	<atom:link rel='hub' href='http://techero.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Sybase: see the view definition</title>
		<link>http://techero.wordpress.com/2010/05/19/sybase-see-the-view-definition/</link>
		<comments>http://techero.wordpress.com/2010/05/19/sybase-see-the-view-definition/#comments</comments>
		<pubDate>Wed, 19 May 2010 14:21:14 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Sybase]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/2010/05/19/sybase-see-the-view-definition/</guid>
		<description><![CDATA[If you want to see what the view you are looking at is actually made from, execute this command: sp_helptext viewname that´s it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=23&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to see what the view you are looking at is actually made from, execute this command:</p>
<p><code>sp_helptext viewname</code></p>
<p>that´s it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=23&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2010/05/19/sybase-see-the-view-definition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle: views, description and definition</title>
		<link>http://techero.wordpress.com/2009/05/28/see-views-in-oracle/</link>
		<comments>http://techero.wordpress.com/2009/05/28/see-views-in-oracle/#comments</comments>
		<pubDate>Thu, 28 May 2009 09:57:47 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/?p=13</guid>
		<description><![CDATA[&#8230;simple. e.g. desc user_views; desc all_views; see a view&#8217;s def: select TEXT from [viewname];<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=13&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#8230;simple.</p>
<p>e.g.<br />
<code>desc user_views;<br />
desc all_views;</code></p>
<p>see a view&#8217;s def:<br />
<code>select TEXT from [viewname];</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=13&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2009/05/28/see-views-in-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle: show version &amp; show tables</title>
		<link>http://techero.wordpress.com/2008/02/22/oracle-show-version-show-tables/</link>
		<comments>http://techero.wordpress.com/2008/02/22/oracle-show-version-show-tables/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 14:19:34 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[databases]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/2008/02/22/oracle-show-version-show-tables/</guid>
		<description><![CDATA[Had to get a few things from an oracle 9i DB. Problem is, if you´re used to use &#8220;SHOW TABLES&#8221; or similar, like in mysql or DB2, this doesn´t work in Oracle. The concept is different. Anyway, here´s how: sqlplus $DBPOINTER &#60;&#60; EOF &#62; tables_oracle select TABLE_NAME from ALL_ALL_TABLES; EOF This pipes the output into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=8&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had to get a few things from an oracle 9i DB. Problem is, if you´re used to use &#8220;SHOW TABLES&#8221; or similar, like in mysql or DB2, this doesn´t work in Oracle. The concept is different. Anyway, here´s how:</p>
<p><code>sqlplus $DBPOINTER  &lt;&lt; EOF &gt; tables_oracle</code></p>
<p><code>select TABLE_NAME from ALL_ALL_TABLES;<br />
EOF</code></p>
<p>This pipes the output into a file called tables_oracle. Ah, and by the way, this might be interesting for who is looking for a method to input something into his Oracle without logging in, just command line. Use &lt;&lt; EOF.</p>
<p>To get the Oracle version, use this:</p>
<p><code>select * from v$version;</code></p>
<p><code>BANNER<br />
----------------------------------------------------------------<br />
Oracle9i Release 9.2.0.5.0 - 64bit Production PL/SQL Release 9.2.0.5.0 - Production<br />
CORE    9.2.0.5.0       Production<br />
TNS for Solaris: Version 9.2.0.5.0 - Production NLSRTL Version 9.2.0.5.0 - Production</code></p>
<p><code>SQL&gt; show rel<br />
release 902000500</code></p>
<p>The first one speaks for itself. The second one, show rel, means &#8220;show release&#8221;. Corresponds to what stands up above. Funny zeros, though.<br />
Found a lot of help on the net. Check it out &amp; thanks:</p>
<p>http://forums.devshed.com/oracle-development-96/show-tables-in-oracle-135613.html</p>
<p>http://www.akadia.com/services/ora_important_part_2.html</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=8&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/02/22/oracle-show-version-show-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>floppy disk in solaris 9</title>
		<link>http://techero.wordpress.com/2008/02/19/floppy-disk-in-solaris-9/</link>
		<comments>http://techero.wordpress.com/2008/02/19/floppy-disk-in-solaris-9/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 14:12:08 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Sun / Solaris]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/2008/02/19/floppy-disk-in-solaris-9/</guid>
		<description><![CDATA[Looking at a Sun Blade workstation, you will notice a few interfaces for peripheral removable devices: - floppy disk - cd rom - USB port &#8230;and you know you are NEVER going to use them, because mounting devices on machines like this can be a pain in the ass. Recently, though, I had to use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=7&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Looking at a Sun Blade workstation, you will notice a few interfaces for peripheral removable devices:<br />
- floppy disk<br />
- cd rom<br />
- USB port</p>
<p>&#8230;and you know you are NEVER going to use them, because mounting devices on machines like this can be a pain in the ass.<br />
Recently, though, I had to use a floppy disk, and this was surprisingly easy on Solaris 9.</p>
<p><code>/home/techero&gt;su<br />
Password:<br />
#volcheck<br />
#cd /floppy/floppy0</code></p>
<p>To get rid of the floppy disk:<br />
<code>#eject fd0</code></p>
<p>&#8230;that´s it ! <code>eject</code> unmounts the floppy.</p>
<p>by the way, these are the floppy nicks and their mapping in /dev (taken from eject man page):</p>
<p><code><br />
Nickname / Path</code></p>
<p><code>fd  -&gt; /dev/rdiskette<br />
fd0 -&gt; /dev/rdiskette<br />
fd1 -&gt; /dev/rdiskette1<br />
diskette -&gt; /dev/rdiskette<br />
diskette0 -&gt; /dev/rdiskette0<br />
diskette1 -&gt; /dev/rdiskette1<br />
rdiskette -&gt; /dev/rdiskette<br />
rdiskette0 -&gt; /dev/rdiskette0<br />
rdiskette1 -&gt; /dev/rdiskette1<br />
floppy -&gt; /dev/rdiskette<br />
floppy0 -&gt; /dev/rdiskette0<br />
floppy1 -&gt; /dev/rdiskette1             </code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=7&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/02/19/floppy-disk-in-solaris-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting elapsed time of a unix process</title>
		<link>http://techero.wordpress.com/2008/02/14/getting-elapsed-time-of-a-unix-process/</link>
		<comments>http://techero.wordpress.com/2008/02/14/getting-elapsed-time-of-a-unix-process/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 13:07:14 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/?p=6</guid>
		<description><![CDATA[I have the assignment to write a script that, amongst others, checks the start time of certain processes, and if the time that the process is running exceeds a configurable limit , brutally extermine the thing. For this task, ps -eo pid, etime, args does a neat thing. It prints out the elapsed time (the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=6&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have the assignment to write a script that, amongst others,</p>
<ul>
<li> checks the start time of certain processes, and</li>
<li>if the time that the process is running exceeds a configurable limit ,  brutally extermine the thing.</li>
</ul>
<p>For this task,<br />
<tt>ps -eo pid, etime, args</tt></p>
<p>does a neat thing. <span id="more-6"></span>It prints out the <b><i>elapsed</i> <i>time</i></b> (the &#8220;e&#8221; in etime) in POSIX format. check man ps to find out whatever that means.<br />
The output format is like this:</p>
<p><tt>5059  7-13:09:53 /bin/zsh /usr/bin/grml-x fluxbox</tt></p>
<p>&#8230;which of course means: <b>PID 5059</b>, <b>elapsed time 7</b> days, <b>13</b> hours, <b>09</b> minutes, <b>53</b> seconds.<br />
This is the time I started this cute little window manager from the shell.</p>
<p>The <b>ps</b> parameters used are :<br />
<b>-e</b> lists information about evey process running<br />
<b>-o</b> prints information according to the format specified</p>
<p>&#8230;so saying &#8220;I want the pid, the elapsed time, and all the rest of the info&#8221; gives you the result up above.<br />
There is also an option <b>stime</b> for -o , but this only returns the starting day.</p>
<p><tt>techero@barrioverde ~ % ps -eo pid,stime,args|grep 5059<br />
5059 Feb07 /bin/zsh /usr/bin/grml-x fluxbox<br />
</tt><br />
In order to check the total time a process is running in minutes, I can go about like this:</p>
<p><code></code></p>
<pre>if ([[[0-9]{1,2}-]{0,1}[[0-9]{1,2}:]{0,1}]{0,1}[0-9]{1,2}:[0-9]{2} matches etime)
    set temporary_result to 0
    if (split at "-") is successful     # this means there is a "day" field
             set arg[0] to days
             multiply days by 1440
             add result to temporary_result
             remove arg[0]              # for further processing
    if (split at ":") returns an array of three elements   # there is an "hour" field
             set arg[0] to hours
             multiply hours by 60
             add result to temporary_result
             add arg[1] to temporary_result
       else if (split at ":") returns two elements     # it's just minutes and seconds
             add arg[0] to temporary_result
    return temporary_result     # the process time in minutes

  else return errorcode # if the regular expression was not matched</pre>
<p>Don&#8217;t worry about the regex in line 1 of the pseudocode. There will be some info on regex, too.</p>
<p>I will post the script soon.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=6&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/02/14/getting-elapsed-time-of-a-unix-process/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>shell tricks #1</title>
		<link>http://techero.wordpress.com/2008/02/13/shell-tricks-1/</link>
		<comments>http://techero.wordpress.com/2008/02/13/shell-tricks-1/#comments</comments>
		<pubDate>Wed, 13 Feb 2008 14:45:20 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/?p=5</guid>
		<description><![CDATA[A few tricks for the command line. This is called history completion. I´m sure there are also other denominations for it. These examples work on csh and bash (tested on various linuxes and solaris). They do not work on ksh. These tricks will definitely save you a lot of nerves and typing time while working [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=5&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few tricks for the command line.<br />
This is called <b>history completion</b>. I´m sure there are also other denominations for it. These examples work on csh and bash (tested on various linuxes and solaris). <i>They do not work on ksh.<br />
</i>These tricks will definitely save you a lot of nerves and typing time while working on the command shell.<span id="more-5"></span></p>
<p>1. repeat the last command in the history<br />
<tt>debian:~# !!</tt></p>
<p>2. repeat the last command starting with a &#8220;p&#8221; (for example, ps aux)<br />
<tt>debian:~# !p</tt></p>
<p>3. you know that you have used different commands starting with &#8220;p&#8221;, so you want the last &#8220;perl&#8221; command you started:<br />
<tt>debian:~# !perl</tt></p>
<p>4. you have used the command vi to edit <tt>/etc/password</tt><br />
<tt>debian:~# vi /etc/passwd</tt><br />
but actually, you wanted to see /etc/apache2/httpd.conf, so this is what you do<br />
<tt>debian:~# ^passwd^apache2/httpd.conf</tt></p>
<p>..the <b>^</b>  (accent circonflexe) says : replace   <tt><b>^</b><b>this</b>  </tt> by   <b><tt>^that</tt></b></p>
<p>5. you wanted to edit <tt>/etc/apache2/httpd.conf</tt> , but forgot the <tt>.conf<br />
debian:~#  vi /etc/apache2/httpd</tt></p>
<p>simply add &#8220;.conf&#8221; without typing too much:<br />
<tt>debian:~# !!.conf</tt></p>
<p>6. instead of changing directory to /etc/init.d, you mistakenly tried to edit it:<br />
<tt>debian:~# vi /etc/init.d</tt></p>
<p>..save some time changing directory:<br />
<tt>debian:~# cd !$</tt><br />
takes you to <tt>/etc/init.d</tt> What <tt>!$</tt> does is, it reproduces the last argument of the last command entered, as in this case, it is <tt>/etc/init.d</tt></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=5&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/02/13/shell-tricks-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>issue installing libxml-perl on debian</title>
		<link>http://techero.wordpress.com/2008/02/12/problem-setting-up-libxml-perl-on-debianresolved/</link>
		<comments>http://techero.wordpress.com/2008/02/12/problem-setting-up-libxml-perl-on-debianresolved/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 21:44:48 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/?p=4</guid>
		<description><![CDATA[While trying to install libxml-sax-perl apt-get install libxml-sax-perl I received the following error: (...) Setting up libxml-sax-perl (0.12-5) ... Can't locate object method "save_parsers_debian" via package "XML::SAX" at /usr/bin/update-perl-sax-parsers line 90. (...) &#8230;this was resolved pretty easily debian:~# locate SAX.pm (...) /usr/local/share/perl/5.8.8/XML/SAX.pm (...) /usr/share/perl5/XML/SAX.pm debian:~# grep save_parsers_debian /usr/local/share/perl/5.8.8/XML/SAX.pm debian:~# debian:~# grep save_parsers_debian /usr/share/perl5/XML/SAX.pm sub save_parsers_debian [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=4&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While trying to install libxml-sax-perl</p>
<p><tt>apt-get install libxml-sax-perl</tt></p>
<p>I received the following error:</p>
<p><tt>(...)<br />
Setting up libxml-sax-perl (0.12-5) ...<br />
Can't locate object method "save_parsers_debian" via package "XML::SAX" at /usr/bin/update-perl-sax-parsers line 90.<br />
(...)</tt></p>
<p>&#8230;this was resolved pretty easily<span id="more-4"></span></p>
<p><tt>debian:~# locate SAX.pm<br />
(...)<br />
/usr/local/share/perl/5.8.8/XML/SAX.pm<br />
(...)<br />
/usr/share/perl5/XML/SAX.pm</tt></p>
<p><tt>debian:~# grep save_parsers_debian /usr/local/share/perl/5.8.8/XML/SAX.pm<br />
debian:~#<br />
debian:~# grep save_parsers_debian /usr/share/perl5/XML/SAX.pm<br />
sub save_parsers_debian {</tt></p>
<p>..this means the first file can be removed, because it cannot be used for setting up libxml-sax-perl,<br />
I chose to just back it up.</p>
<p><tt></tt></p>
<pre><tt>debian:~# mv /usr/local/share/perl/5.8.8/XML/SAX.pm /usr/local/share/perl/5.8.8/XML/SAX.pm.bak</tt></pre>
<p><tt>debian:~# !apt<br />
apt-get install libxml-sax-perl</tt></p>
<p>&#8230;this worked perfectly.<br />
This workaround was provided here:</p>
<p><a href="http://techero.wordpress.com/wp-admin/">http://ubuntuforums.org/showthread.php?p=1302053#post1302053</a></p>
<p>&#8230;many thanks !</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=4&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/02/12/problem-setting-up-libxml-perl-on-debianresolved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
		<item>
		<title>hi</title>
		<link>http://techero.wordpress.com/2008/01/02/test/</link>
		<comments>http://techero.wordpress.com/2008/01/02/test/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 13:05:30 +0000</pubDate>
		<dc:creator>techero</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techero.wordpress.com/2008/01/02/test/</guid>
		<description><![CDATA[In this blog, I will post whatever cool or at least helpful things I come across in my life as computer geek. I hope people looking for a quick &#38; dirty answer to their daily IT routines can find things here, as well as myself, because to me it seems a blog can just be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=3&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this blog, I will post whatever cool or at least helpful things I come across in my life as computer geek. I hope people looking for a quick &amp; dirty answer to their daily IT routines can find things here, as well as myself, because to me it seems a blog can just be a perfect store for those countless little notes I make while programming and hacking.</p>
<p>yours,<br />
techero.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techero.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techero.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techero.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techero.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techero.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techero.wordpress.com&amp;blog=2430799&amp;post=3&amp;subd=techero&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techero.wordpress.com/2008/01/02/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b48c13a3a8c61c1e4b37f2c259c19e72?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">techero</media:title>
		</media:content>
	</item>
	</channel>
</rss>
