<?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"
	>

<channel>
	<title>helloWorld</title>
	<atom:link href="http://www.jober.org/joblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jober.org/joblog</link>
	<description>jo's computer science blog</description>
	<pubDate>Thu, 13 Nov 2008 14:13:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>Add table constraint: UNIQUE</title>
		<link>http://www.jober.org/joblog/2008/09/05/add-table-constraint-unique/</link>
		<comments>http://www.jober.org/joblog/2008/09/05/add-table-constraint-unique/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 09:38:23 +0000</pubDate>
		<dc:creator>berrisch</dc:creator>
		
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://www.jober.org/joblog/?p=232</guid>
		<description><![CDATA[To add a unique contraint for two table fileds, simply execute the following command:

ALTER TABLE scene_commands ADD UNIQUE &#40;scene_id, command_id&#41;;

]]></description>
			<content:encoded><![CDATA[<p>To add a unique contraint for two table fileds, simply execute the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="sql"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> scene_commands <span style="color: #993333; font-weight: bold;">ADD</span> <span style="color: #993333; font-weight: bold;">UNIQUE</span> <span style="color: #66cc66;">&#40;</span>scene_id<span style="color: #66cc66;">,</span> command_id<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jober.org/joblog/2008/09/05/add-table-constraint-unique/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Faillog: Reset authentication failures on Unix / Linux</title>
		<link>http://www.jober.org/joblog/2008/09/01/reset-authentication-failures-on-unix-linux/</link>
		<comments>http://www.jober.org/joblog/2008/09/01/reset-authentication-failures-on-unix-linux/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 15:51:37 +0000</pubDate>
		<dc:creator>berrisch</dc:creator>
		
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.jober.org/joblog/?p=228</guid>
		<description><![CDATA[Testing a lot on your servers can sometimes lead to the problem, that you receive this error message:
&#8216;Received disconnect from Too many authentication failures for root&#8217;
or of course for other users, try faillog!
There are some options to view / reset the authentication failures for the given user(s)

This is the man page of this very useful [...]]]></description>
			<content:encoded><![CDATA[<p>Testing a lot on your servers can sometimes lead to the problem, that you receive this error message:<br />
<strong>&#8216;Received disconnect from Too many authentication failures for root&#8217;</strong><br />
or of course for other users, try <strong>faillog</strong>!<br/><br />
There are some options to view / reset the authentication failures for the given user(s)<br />
<br/><br />
This is the man page of this very useful command:<br />
<br/></p>

<div class="wp_syntax"><div class="code"><pre class="text">faillog --help
Syntaxe : faillog [options]
&nbsp;
Options :
  -a, --all          afficher les enregistrements « faillog » pour tous
                       les utilisateurs
  -h, --help           afficher ce message d'aide et quitter
  -l, --lock-time SEC  après une connexion refusée, verrouiller le compte
                       pendant SEC secondes
  -m, --maximum MAX    positionner les compteurs de connexions refusées à
                       MAX
  -r, --reset          remettre à zéro les compteurs de connexions refusées
  -t, --time NB_JOURS  afficher les échecs de connexions datant de moins de
                       NB_JOURS jours
  -u, --user LOGIN     afficher l'enregistrement « faillog » ou gérer les
                       compteurs et les limites (si utilisé conjointement aux
                       options -r, -m ou -l) d'échecs uniquement pour
                       l'utilisateur dont le compte est LOGIN</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jober.org/joblog/2008/09/01/reset-authentication-failures-on-unix-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>stdout, stdin</title>
		<link>http://www.jober.org/joblog/2008/08/05/stdout-stdin-2/</link>
		<comments>http://www.jober.org/joblog/2008/08/05/stdout-stdin-2/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 13:45:51 +0000</pubDate>
		<dc:creator>berrisch</dc:creator>
		
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.jober.org/joblog/?p=83</guid>
		<description><![CDATA[

Howto redirect the standard input and output of a command shell script:

STDERR and STDOUT together:

    $output = `cmd 2&#62;&#38;1`;

To capture a command&#8217;s STDOUT but discard its STDERR:

    $output = `cmd 2&#62;/dev/null`;

To capture a command&#8217;s STDERR but discard its STDOUT (ordering is important here):

    $output = `cmd [...]]]></description>
			<content:encoded><![CDATA[<p><br/></p>
<p style="font-size: 110%; font-weight: bold;">
Howto redirect the standard input and output of a command shell script:
</p>
<p>STDERR and STDOUT together:</p>

<div class="wp_syntax"><div class="code"><pre class="perl">    <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> `cmd <span style="color: #cc66cc;">2</span><span style="color: #339933;">&gt;&amp;</span><span style="color: #cc66cc;">1</span>`<span style="color: #339933;">;</span></pre></div></div>

<p>To capture a command&#8217;s STDOUT but discard its STDERR:</p>

<div class="wp_syntax"><div class="code"><pre class="perl">    <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> `cmd <span style="color: #cc66cc;">2</span><span style="color: #339933;">&gt;/</span>dev<span style="color: #339933;">/</span>null`<span style="color: #339933;">;</span></pre></div></div>

<p>To capture a command&#8217;s STDERR but discard its STDOUT (ordering is important here):</p>

<div class="wp_syntax"><div class="code"><pre class="perl">    <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> `cmd <span style="color: #cc66cc;">2</span><span style="color: #339933;">&gt;&amp;</span><span style="color: #cc66cc;">1</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">&gt;/</span>dev<span style="color: #339933;">/</span>null`<span style="color: #339933;">;</span></pre></div></div>

<p>To exchange a command&#8217;s STDOUT and STDERR in order to capture the STDERR but leave its STDOUT to come out the old STDERR:</p>

<div class="wp_syntax"><div class="code"><pre class="perl">    <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> `cmd <span style="color: #cc66cc;">3</span><span style="color: #339933;">&gt;&amp;</span><span style="color: #cc66cc;">1</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">&gt;&amp;</span><span style="color: #cc66cc;">2</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">&gt;&amp;</span><span style="color: #cc66cc;">3</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">&gt;&amp;-</span>`<span style="color: #339933;">;</span></pre></div></div>

<p>To read both a command&#8217;s STDOUT and its STDERR separately, it&#8217;s easiest to redirect them separately to files, and then read from those files when the program is done:</p>

<div class="wp_syntax"><div class="code"><pre class="perl">    <span style="color: #000066;">system</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;program args 1&gt;program.stdout 2&gt;program.stderr&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jober.org/joblog/2008/08/05/stdout-stdin-2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
