<?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>: ) wonderful world ( :</title>
	<atom:link href="http://grault.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://grault.wordpress.com</link>
	<description>the metasyntactic variable</description>
	<lastBuildDate>Fri, 30 Dec 2011 07:26:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='grault.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/468766593f807295f579db9ac8e2a290?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>: ) wonderful world ( :</title>
		<link>http://grault.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://grault.wordpress.com/osd.xml" title=": ) wonderful world ( :" />
	<atom:link rel='hub' href='http://grault.wordpress.com/?pushpress=hub'/>
		<item>
		<title>invariant invariant update automation</title>
		<link>http://grault.wordpress.com/2011/12/29/invariant-invariant-update-automation/</link>
		<comments>http://grault.wordpress.com/2011/12/29/invariant-invariant-update-automation/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 15:41:30 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[feature request]]></category>
		<category><![CDATA[math]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=730</guid>
		<description><![CDATA[In my everyday job, I often solve the following problem. Due to my contract, I cannot tell you what the exact task is, so I abstracted away the details with the help of category theory. Let the objects e, i, w be given along with arrows T:w-&#62;w, W:e-&#62;w, I:e-&#62;i. The task is to find an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=730&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my everyday job, I often solve the following problem. Due to my contract, I cannot tell you what the exact task is, so I abstracted away the details with the help of <a href="http://en.wikipedia.org/wiki/Category_theory">category theory</a>.</p>
<p>Let the objects e, i, w be given along with arrows T:w-&gt;w, W:e-&gt;w, I:e-&gt;i. The task is to find an arrow U for which the following diagrams <a href="http://en.wikipedia.org/wiki/Commutative_diagrams">commute</a>:</p>
<div id="attachment_734" class="wp-caption aligncenter" style="width: 410px"><a href="http://grault.files.wordpress.com/2011/12/updater-diagram.png"><img src="http://grault.files.wordpress.com/2011/12/updater-diagram.png?w=700" alt="updater-diagram" title="updater-diagram"   class="size-full wp-image-734" /></a><p class="wp-caption-text"> </p></div>
<p>Let me just name the objects and arrows with real names:</p>
<ul>
<li>U &#8211; update
<li>I &#8211; invariant projection
<li>W &#8211; window projection
<li>T &#8211; transformation
<li>w &#8211; window
<li>i &#8211; invariant
<li>e &#8211; entity
</ul>
<p>In other words, I write small automation scripts (U) to update entities represented in quite complex (and distributed) ways, at the same time respecting their consistency and other extra constraints. The task specification (T) usually operates with only a projection/subspace of the real entity space.</p>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/730/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/730/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/730/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=730&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/12/29/invariant-invariant-update-automation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>

		<media:content url="http://grault.files.wordpress.com/2011/12/updater-diagram.png" medium="image">
			<media:title type="html">updater-diagram</media:title>
		</media:content>
	</item>
		<item>
		<title>check set inclusion with XPath</title>
		<link>http://grault.wordpress.com/2011/12/19/check-set-inclusion-with-xpath/</link>
		<comments>http://grault.wordpress.com/2011/12/19/check-set-inclusion-with-xpath/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 19:00:09 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[feature request]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=724</guid>
		<description><![CDATA[In the XPath specification, Booleans section, you can read the following sentence about the = operator (in tests): &#8220;If both objects to be compared are node-sets, then the comparison will be true if and only if there is a node in the first node-set and a node in the second node-set such that the result [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=724&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the XPath specification, <a href="http://www.w3.org/TR/xpath/#booleans">Booleans</a> section, you can read the following sentence about the = operator (in tests):</p>
<p>&#8220;If both objects to be compared are node-sets, then the comparison will be true if and only if there is a node in the first node-set and a node in the second node-set such that the result of performing the comparison on the string-values of the two nodes is true. [...]&#8220;</p>
<p>Hence you can test for an object being a member of a set of objects:</p>
<pre>
$ cat data.xml
&lt;root&gt;
  &lt;nodes&gt;
    &lt;node&gt;3&lt;/node&gt;
    &lt;node&gt;8&lt;/node&gt;
    &lt;node&gt;9&lt;/node&gt;
    &lt;node&gt;2&lt;/node&gt;
  &lt;/nodes&gt;
  &lt;ptrs&gt;
    &lt;ptr&gt;1&lt;/ptr&gt;
    &lt;ptr&gt;3&lt;/ptr&gt;
  &lt;/ptrs&gt;
&lt;/root&gt;
$ cat selected.xsl
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="xml"/&gt;

  &lt;xsl:template match="//root"&gt;
    &lt;nodes&gt;
      &lt;xsl:for-each select="//root/nodes/node"&gt;
        &lt;selected&gt;
          &lt;xsl:value-of select="position() = //root/ptrs/ptr/text()" /&gt;
        &lt;/selected&gt;
      &lt;/xsl:for-each&gt;
    &lt;/nodes&gt;
  &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;

$ xsltproc selected.xsl data.xml | xmllint --format -
&lt;?xml version="1.0"?&gt;
&lt;nodes&gt;
  &lt;selected&gt;true&lt;/selected&gt;
  &lt;selected&gt;false&lt;/selected&gt;
  &lt;selected&gt;true&lt;/selected&gt;
  &lt;selected&gt;false&lt;/selected&gt;
&lt;/nodes&gt;
$
</pre>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/724/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/724/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/724/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=724&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/12/19/check-set-inclusion-with-xpath/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>invisible CR</title>
		<link>http://grault.wordpress.com/2011/11/29/invisible-cr/</link>
		<comments>http://grault.wordpress.com/2011/11/29/invisible-cr/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 11:29:42 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[hard time]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=712</guid>
		<description><![CDATA[A script of mine stopped working for a set of inputs, the reason behind is below&#8230; : D $ cat i 1 2 3 4 $ cat i &#124; while read i; do echo blah $i; done blah 1 blah 2 blah 3 blah 4 $ cat i &#124; while read i; do echo blah [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=712&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A script of mine stopped working for a set of inputs, the reason behind is below&#8230; : D</p>
<pre>
$ cat i
1
2
3
4
$ cat i | while read i; do echo blah $i; done
blah 1
blah 2
blah 3
blah 4
$ cat i | while read i; do echo blah $i foo; done
 foo 1
 foo 2
 foo 3
 foo 4
$ xxd i
0000000: 310d 0a32 0d0a 330d 0a34 0d0a            1..2..3..4..
$
</pre>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/712/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/712/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/712/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=712&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/11/29/invisible-cr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>give yourself a visual glance of your data</title>
		<link>http://grault.wordpress.com/2011/11/28/give-yourself-a-visual-glance-of-your-data/</link>
		<comments>http://grault.wordpress.com/2011/11/28/give-yourself-a-visual-glance-of-your-data/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 11:25:50 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[feature request]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=708</guid>
		<description><![CDATA[You can use GnuPlot with &#8216;dumb&#8217; terminal setting to just have a really quick look on the data you&#8217;re working with.. $ echo $0 -zsh $ seq -1000 1000 &#124; sed 's.$./1000.' &#124; bc -l &#62; x $ sed 's/^/e(/' x &#124; sed 's.$.).' &#124; bc -l &#62; y $ paste x y &#62; f [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=708&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You can use GnuPlot with &#8216;dumb&#8217; terminal setting to just have a really quick look on the data you&#8217;re working with..</p>
<pre>
$ echo $0
-zsh
$ seq -1000 1000 | sed 's.$./1000.' | bc -l &gt; x
$ sed 's/^/e(/' x | sed 's.$.).' | bc -l &gt; y
$ paste x y &gt; f
$ gnuplot &lt;(echo "set term dumb; plot 'f' with dots")

    3 ++----------------+----------------+-----------------+---------------++
      +                 +                +                 +     'f'   .    +
      |                                                                    ..
  2.5 ++                                                                 ...+
      |                                                                ...  |
      |                                                             ....    |
      |                                                           ...       |
    2 ++                                                       ....        ++
      |                                                     ....            |
      |                                                  ....               |
  1.5 ++                                             .....                 ++
      |                                           ....                      |
      |                                      .....                          |
    1 ++                                ......                             ++
      |                           .......                                   |
      |                    ........                                         |
      |           ..........                                                |
  0.5 +............                                                        ++
      ..                                                                    |
      +                 +                +                 +                +
    0 ++----------------+----------------+-----------------+---------------++
     -1               -0.5               0                0.5               1

$
</pre>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/708/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/708/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/708/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=708&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/11/28/give-yourself-a-visual-glance-of-your-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>grep multiline entities</title>
		<link>http://grault.wordpress.com/2011/11/21/grep-multiline-entities/</link>
		<comments>http://grault.wordpress.com/2011/11/21/grep-multiline-entities/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 14:51:52 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[feature request]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=705</guid>
		<description><![CDATA[In case you have a good separator of multiline entities in a file: $ ls update.log $ cat update.log Id: 2837 Field1: foo Field2: bar Field3: 12.4 --- Id: 44323 Field1: qux Field2: xxyy Status: ERROR Id: 74738 Field1: baz Field3: boo $ csplit update.log '/^Id:/' '{*}' 0 51 50 35 $ ls update.log xx00 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=705&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In case you have a good separator of multiline entities in a file:</p>
<pre>
$ ls
update.log
$ cat update.log
Id: 2837
Field1: foo
Field2: bar
Field3: 12.4
---

Id: 44323
Field1: qux
Field2: xxyy
Status: ERROR

Id: 74738
Field1: baz
Field3: boo

$ csplit update.log '/^Id:/' '{*}'
0
51
50
35
$ ls
update.log  xx00  xx01  xx02  xx03
$ grep 'Status: ERROR' xx*
xx02:Status: ERROR
$ grep 'Status: ERROR' xx* | cut -d':' -f1 | xargs -n1 head -1
Id: 44323
$
</pre>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/705/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/705/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/705/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=705&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/11/21/grep-multiline-entities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>distribution of tablets</title>
		<link>http://grault.wordpress.com/2011/11/16/distribution-of-tablets/</link>
		<comments>http://grault.wordpress.com/2011/11/16/distribution-of-tablets/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 12:53:41 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[feature request]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=692</guid>
		<description><![CDATA[I used to consume nicotine tabs (giving up smoking :). I ate a half at a time. When getting a whole tab out, I cut it into two and put a half back. I experienced a higher and higher probability of getting a half during the lifecycle of such a pack. I was curious how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=692&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I used to consume nicotine tabs (giving up smoking :). I ate a half at a time. When getting a whole tab out, I cut it into two and put a half back. I experienced a higher and higher probability of getting a half during the lifecycle of such a pack. I was curious how this distribution looks like, so asked help from friends regarding the exact math behind and finally got a solution which is like the one below.</p>
<div id="attachment_694" class="wp-caption aligncenter" style="width: 650px"><a href="http://grault.files.wordpress.com/2011/11/photo-small.jpg"><img src="http://grault.files.wordpress.com/2011/11/photo-small.jpg?w=700" alt="tabs" title="tabs"   class="size-full wp-image-694" /></a><p class="wp-caption-text">tabs</p></div>
<p>Notationally, let n1 denote the number of whole, and n2 the number of half tabs.</p>
<p>Number of whole tabs in step t+1 is n1(t+1), namely you can get a whole or a half (in step t+1), this is respectively:</p>
<pre>

                /   \
             n  | t |            /              \
   /     \    1 \   /            |    /   \     |
n  | t+1 | = ------------------- | n  | t | - 1 | +
 1 \     /      /   \      /   \ |  1 \   /     |
             n  | t | + n  | t | \              /
              1 \   /    2 \   /                  

                /   \
             n  | t |
              2 \   /               /   \
           + ------------------- n  | t |
                /   \      /   \  1 \   /
             n  | t | + n  | t |
              1 \   /    2 \   /          
</pre>
<p>&nbsp;
<p> Equation means that you can get a whole, in this case with n1/(n1+n2) probability. The number of wholes decreases by one (you cut that whole tab into half and put one half back). In the other hand you can draw a half tab with n2/(n1+n2) probability and the number of wholes remains the same (you consume the half). </p>
<p>Doing the same with nr. of half tabs as n2:</p>
<pre>

                /   \
             n  | t |            /              \
   /     \    1 \   /            |    /   \     |
n  | t+1 | = ------------------- | n  | t | + 1 | +
 2 \     /      /   \      /   \ |  2 \   /     |
             n  | t | + n  | t | \              /
              1 \   /    2 \   /                  

                /   \
             n  | t |            /              \
              2 \   /            |    /   \     |
           + ------------------- | n  | t | - 1 |
                /   \      /   \ |  2 \   /     |
             n  | t | + n  | t | \              /
              1 \   /    2 \   /                  
</pre>
<p>&nbsp;
<p> When you get a whole, in this case you put back a half (+1 for the halves). Or a half and you consume that (there&#8217;ll be one less).</p>
<p>After some simplification, the equations are like this in differential (&amp;dimensionless) form:</p>
<pre>
       n                    n  - n
.       1            .       1    2
n  = - ------    ,   n  =   -------
 1     n  + n         2     n  + n
        1    2               1    2 
</pre>
<p>&nbsp;
<p>
Making it simpler (N is the number of tabs, P is the probability you getting a whole):</p>
<pre>
                                           .    .  .
N := n  + n   , NP := n   ,   N-NP = n   , n  = NP+PN
      1    2           1              2     1        

.    . .  .        .   .         . .   .
n  = N-NP-PN   ,   NP+NP=-P  ,   N-NP-NP = (2NP - N) / N = 2P - 1
 2

.                 .       .
N = P - 1 , PP-P+NP=-P ,  P = - PP/N
</pre>
<p>&nbsp;
<p>
Finally:</p>
<pre>
.               .
N = P - 1   ,   P = - PP/N
</pre>
<p>&nbsp;
<p>Solving this numerically with below code and plot it with GnuPlot:</p>
<pre>
  1 #include&lt;iostream&gt;
  2
  3 int main()
  4 {
  5   double dt = 1e-3;
  6   double N = 1;
  7   double P = 1;
  8
  9   for(double t=0; t&lt;2.0; t+=dt)
 10   {
 11     std::cout&lt;&lt;t&lt;&lt;" "&lt;&lt;N&lt;&lt;" "&lt;&lt;P&lt;&lt;std::endl;
 12     double oN = N;
 13     N=N+P*dt-dt;
 14     P=P-P*P*dt/oN;
 15   }
 16
 17   return 0;
 18 }
</pre>
<div id="attachment_693" class="wp-caption aligncenter" style="width: 650px"><a href="http://grault.files.wordpress.com/2011/11/plot.png"><img src="http://grault.files.wordpress.com/2011/11/plot.png?w=700" alt="plot of N and P" title="plot of N and P"   class="size-full wp-image-693" /></a><p class="wp-caption-text">plot of N and P</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/692/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=692&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/11/16/distribution-of-tablets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>

		<media:content url="http://grault.files.wordpress.com/2011/11/photo-small.jpg" medium="image">
			<media:title type="html">tabs</media:title>
		</media:content>

		<media:content url="http://grault.files.wordpress.com/2011/11/plot.png" medium="image">
			<media:title type="html">plot of N and P</media:title>
		</media:content>
	</item>
		<item>
		<title>command-line (positional) output selector</title>
		<link>http://grault.wordpress.com/2011/10/27/command-line-positional-output-selector/</link>
		<comments>http://grault.wordpress.com/2011/10/27/command-line-positional-output-selector/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 13:19:09 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[feature request]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[zsh]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=684</guid>
		<description><![CDATA[Sometimes it happens that I work with IDs from entity identifier lists. They have very long ids, there are many of them, but it&#8217;s possible to hash them easily with grep resulting a set of cca. 20 from which I can choose visually the one I&#8217;m really interested in, although don&#8217;t want to type the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=684&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes it happens that I work with IDs from entity identifier lists. They have very long ids, there are many of them, but it&#8217;s possible to hash them easily with grep resulting a set of cca. 20 from which I can choose visually the one I&#8217;m really interested in, although don&#8217;t want to type the whole ID for the grep. I used to copy the particular identifier to the clipboard and paste it to the next command line.  With this solution below I can explore these sets and work with them without copy-paste (which frequently involved touching the mouse and moving hands away from the keyboard).</p>
<pre>
$ <font color="blue"><b>cat num</b></font>
#!/bin/zsh
cat $* | nl -w 3 -n rz
$ <font color="blue"><b>cat sel</b></font>
#!/bin/zsh
cat | grep "^0*$1" | cut -f2-
$ <font color="blue"><b>demo-query | grep QUX</b></font>
FOO9583749857_BAR_HIOSD57389FJ_QUX__FSKLD
FOO9583749857_BAZ9785JFKR_QUX__FSKLD
FOO9583749857_QUX__FSKLD_BAR_HIOSD57389FJ
FOO9583749857_QUX__FSKLD_BAZ9785JFKR
BAR_HIOSD57389FJ_FOO9583749857_QUX__FSKLD
BAR_HIOSD57389FJ_BAZ9785JFKR_QUX__FSKLD
BAR_HIOSD57389FJ_QUX__FSKLD_FOO9583749857
BAR_HIOSD57389FJ_QUX__FSKLD_BAZ9785JFKR
BAZ9785JFKR_FOO9583749857_QUX__FSKLD
BAZ9785JFKR_BAR_HIOSD57389FJ_QUX__FSKLD
BAZ9785JFKR_QUX__FSKLD_FOO9583749857
BAZ9785JFKR_QUX__FSKLD_BAR_HIOSD57389FJ
QUX__FSKLD_FOO9583749857_BAR_HIOSD57389FJ
QUX__FSKLD_FOO9583749857_BAZ9785JFKR
QUX__FSKLD_BAR_HIOSD57389FJ_FOO9583749857
QUX__FSKLD_BAR_HIOSD57389FJ_BAZ9785JFKR
QUX__FSKLD_BAZ9785JFKR_FOO9583749857
QUX__FSKLD_BAZ9785JFKR_BAR_HIOSD57389FJ
$ <font color="blue"><b>demo-query | grep QUX | num</b></font>
001     FOO9583749857_BAR_HIOSD57389FJ_QUX__FSKLD
002     FOO9583749857_BAZ9785JFKR_QUX__FSKLD
003     FOO9583749857_QUX__FSKLD_BAR_HIOSD57389FJ
004     FOO9583749857_QUX__FSKLD_BAZ9785JFKR
005     BAR_HIOSD57389FJ_FOO9583749857_QUX__FSKLD
006     BAR_HIOSD57389FJ_BAZ9785JFKR_QUX__FSKLD
007     BAR_HIOSD57389FJ_QUX__FSKLD_FOO9583749857
008     BAR_HIOSD57389FJ_QUX__FSKLD_BAZ9785JFKR
009     BAZ9785JFKR_FOO9583749857_QUX__FSKLD
010     BAZ9785JFKR_BAR_HIOSD57389FJ_QUX__FSKLD
011     BAZ9785JFKR_QUX__FSKLD_FOO9583749857
012     BAZ9785JFKR_QUX__FSKLD_BAR_HIOSD57389FJ
013     QUX__FSKLD_FOO9583749857_BAR_HIOSD57389FJ
014     QUX__FSKLD_FOO9583749857_BAZ9785JFKR
015     QUX__FSKLD_BAR_HIOSD57389FJ_FOO9583749857
016     QUX__FSKLD_BAR_HIOSD57389FJ_BAZ9785JFKR
017     QUX__FSKLD_BAZ9785JFKR_FOO9583749857
018     QUX__FSKLD_BAZ9785JFKR_BAR_HIOSD57389FJ
$ <font color="blue"><b>demo-query | grep QUX | num | sel 12</b></font>
BAZ9785JFKR_QUX__FSKLD_BAR_HIOSD57389FJ
$ <font color="blue"><b>demo-query | grep QUX | num | sel 12 | xargs find . -name</b></font>
./AB/BAZ9785JFKR_QUX__FSKLD_BAR_HIOSD57389FJ
./EG/UI/BAZ9785JFKR_QUX__FSKLD_BAR_HIOSD57389FJ
$
</pre>
<p>&nbsp;<br />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/684/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/684/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/684/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=684&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/10/27/command-line-positional-output-selector/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhone app dev; first steps; concentration meter</title>
		<link>http://grault.wordpress.com/2011/10/05/iphone-app-dev-first-steps-concentration-meter/</link>
		<comments>http://grault.wordpress.com/2011/10/05/iphone-app-dev-first-steps-concentration-meter/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 05:06:02 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[feature request]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=677</guid>
		<description><![CDATA[I proudly announce my first iPhone app. It&#8217;s called ConMeter (for Concentration Meter). It&#8217;s good to give some quantitative view on your current mental state regarding concentration abilities. It displays color names written with colored fonts in a sequence. You have to say yes for a screen on which there&#8217;s a color appearing also on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=677&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I proudly announce my first iPhone app. It&#8217;s called ConMeter (for Concentration Meter). It&#8217;s good to give some quantitative view on your current mental state regarding concentration abilities. It displays color names written with colored fonts in a sequence. You have to say yes for a screen on which there&#8217;s a color appearing also on the previous screen (as word or font color). For example:</p>
<pre>
SCREEN1: RED written, BLUE letters
SCREEN2: BLUE written, YELLOW letters
SCREEN3: GREEN written, BLACK letters
</pre>
<p>&nbsp;
<p>
on SCREEN2, there&#8217;s BLUE which appears also on SCREEN1, so you have to answer Yes on SCREEN2, but on SCREEN3. On SCREEN3, there&#8217;s no such color which appears on SCREEN2.</p>
<div id="attachment_678" class="wp-caption aligncenter" style="width: 330px"><a href="http://grault.files.wordpress.com/2011/10/photo-1.png"><img src="http://grault.files.wordpress.com/2011/10/photo-1.png?w=700" alt="appstore.. 1" title="appstore.. 1"   class="size-full wp-image-678" /></a><p class="wp-caption-text">appstore.. 1</p></div>
<div id="attachment_679" class="wp-caption aligncenter" style="width: 330px"><a href="http://grault.files.wordpress.com/2011/10/photo-2.png"><img src="http://grault.files.wordpress.com/2011/10/photo-2.png?w=700" alt="appstore.. 2" title="appstore.. 2"   class="size-full wp-image-679" /></a><p class="wp-caption-text">appstore.. 2</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/677/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/677/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/677/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=677&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/10/05/iphone-app-dev-first-steps-concentration-meter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>

		<media:content url="http://grault.files.wordpress.com/2011/10/photo-1.png" medium="image">
			<media:title type="html">appstore.. 1</media:title>
		</media:content>

		<media:content url="http://grault.files.wordpress.com/2011/10/photo-2.png" medium="image">
			<media:title type="html">appstore.. 2</media:title>
		</media:content>
	</item>
		<item>
		<title>one of my favourite quotes</title>
		<link>http://grault.wordpress.com/2011/10/04/one-of-my-favourite-quotes-2/</link>
		<comments>http://grault.wordpress.com/2011/10/04/one-of-my-favourite-quotes-2/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 16:37:27 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[literature]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=672</guid>
		<description><![CDATA[Lawrence Baird: I'm Dr. Lawrence Baird. Psychiatrist: I hear you. I hear you saying you're Dr. Lawrence Baird. Lawrence Baird: I am Dr. Baird, though. I really am. I'm Dr. Baird. Psychiatrist: I hear you. I really do. I hear you saying, "I am Dr. Baird." Lawrence Baird: You're not really listening to me. You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=672&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
Lawrence Baird: I'm Dr. Lawrence Baird.
Psychiatrist:   I hear you. I hear you saying you're Dr. Lawrence Baird.
Lawrence Baird: I am Dr. Baird, though. I really am. I'm Dr. Baird.
Psychiatrist:   I hear you. I really do. I hear you saying, "I am Dr. Baird."
Lawrence Baird: You're not really listening to me.
   You think you're hearing what I'm saying...
</pre>
<p>&nbsp;
<span style="text-align:center; display: block;"><a href="http://grault.wordpress.com/2011/10/04/one-of-my-favourite-quotes-2/"><img src="http://img.youtube.com/vi/Bcmv72_MlSY/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/672/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/672/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/672/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=672&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/10/04/one-of-my-favourite-quotes-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
		<item>
		<title>cobol hello world @ http://rzkh.de/</title>
		<link>http://grault.wordpress.com/2011/09/10/cobol-hello-world-httprzkh-de/</link>
		<comments>http://grault.wordpress.com/2011/09/10/cobol-hello-world-httprzkh-de/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 14:43:20 +0000</pubDate>
		<dc:creator>grault</dc:creator>
				<category><![CDATA[BIG iron]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[contemporary]]></category>
		<category><![CDATA[feature request]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://grault.wordpress.com/?p=666</guid>
		<description><![CDATA[&#160; This is an AS/400 system called RZKH. I registered with an account and sorted out how to write and compile a cobol program (hello world here). The motivation was this article : ) On AS/400, there&#8217;s a quite good menu system and PDM which is an IDE.. My intent was to perform the session [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=666&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<span style="text-align:center; display: block;"><a href="http://grault.wordpress.com/2011/09/10/cobol-hello-world-httprzkh-de/"><img src="http://img.youtube.com/vi/OjohwZ6K_3E/2.jpg" alt="" /></a></span>
<p>&nbsp;
<p>This is an AS/400 system called <a href="http://rzkh.de/">RZKH</a>. I registered with an account and sorted out how to write and compile a cobol program (hello world here). The motivation was <a href="http://www.readwriteweb.com/hack/2011/06/why-you-should-learn-cobol.php">this</a> article : ) On AS/400, there&#8217;s a quite good menu system and PDM which is an IDE.. My intent was to perform the session without those and use the commands. There&#8217;s no reason for this latter : ) Additionally, I wanted to use COBOL in one of its inherent environments.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/grault.wordpress.com/666/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/grault.wordpress.com/666/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/grault.wordpress.com/666/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=grault.wordpress.com&amp;blog=1965392&amp;post=666&amp;subd=grault&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://grault.wordpress.com/2011/09/10/cobol-hello-world-httprzkh-de/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/79892686fba0e62f258208d712c8e7ad?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">grault</media:title>
		</media:content>
	</item>
	</channel>
</rss>
