<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for /dev/tty</title>
	<atom:link href="http://blog.tty.nl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tty.nl</link>
	<description>Notes on Web Development, Computer Programming, and Software Engineering</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:22:23 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Using VisualVM to fix live Tomcat and JVM problems by VisualVM</title>
		<link>http://blog.tty.nl/2010/09/03/using-visualvm-to-fix-live-tomcat-and-jvm-problems/comment-page-1/#comment-888</link>
		<dc:creator>VisualVM</dc:creator>
		<pubDate>Fri, 03 Sep 2010 15:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=405#comment-888</guid>
		<description>You can also use the Threads Inspector plugin in VisualVM 1.3 to display live stack traces for the selected thread(s).

[Article linked on the VisualVM frontpage.]</description>
		<content:encoded><![CDATA[<p>You can also use the Threads Inspector plugin in VisualVM 1.3 to display live stack traces for the selected thread(s).</p>
<p>[Article linked on the VisualVM frontpage.]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using VisualVM to fix live Tomcat and JVM problems by Tweets die vermelden /dev/tty: Using VisualVM to fix live Tomcat and JMV problems (Java) -- Topsy.com</title>
		<link>http://blog.tty.nl/2010/09/03/using-visualvm-to-fix-live-tomcat-and-jvm-problems/comment-page-1/#comment-887</link>
		<dc:creator>Tweets die vermelden /dev/tty: Using VisualVM to fix live Tomcat and JMV problems (Java) -- Topsy.com</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=405#comment-887</guid>
		<description>[...] Dit blogartikel was vermeld op Twitter door Almer, Almer. Almer heeft gezegd: Posted an article about how #VisualVM can help fix specific remote server problems http://ow.ly/2z0Rx on blog.tty.nl #JVM #Tomcat #JMX [...]</description>
		<content:encoded><![CDATA[<p>[...] Dit blogartikel was vermeld op Twitter door Almer, Almer. Almer heeft gezegd: Posted an article about how #VisualVM can help fix specific remote server problems <a href="http://ow.ly/2z0Rx" rel="nofollow">http://ow.ly/2z0Rx</a> on blog.tty.nl #JVM #Tomcat #JMX [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using VisualVM to fix live Tomcat and JVM problems by VisualVM and fixing remote JVM problems</title>
		<link>http://blog.tty.nl/2010/09/03/using-visualvm-to-fix-live-tomcat-and-jvm-problems/comment-page-1/#comment-886</link>
		<dc:creator>VisualVM and fixing remote JVM problems</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=405#comment-886</guid>
		<description>[...] wrote an article about how VisualVM helped fixing a problem I had on my day job at TTY Internet Solutions some time ago. The CPU load on a webserver became to [...]</description>
		<content:encoded><![CDATA[<p>[...] wrote an article about how VisualVM helped fixing a problem I had on my day job at TTY Internet Solutions some time ago. The CPU load on a webserver became to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MongoDB first impressions by Tweets die vermelden /dev/tty: MongoDB first impressions (Uncategorized) -- Topsy.com</title>
		<link>http://blog.tty.nl/2010/02/08/mongodb-first-impressions/comment-page-1/#comment-235</link>
		<dc:creator>Tweets die vermelden /dev/tty: MongoDB first impressions (Uncategorized) -- Topsy.com</dc:creator>
		<pubDate>Mon, 08 Feb 2010 16:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=323#comment-235</guid>
		<description>[...] Dit blogartikel was vermeld op Twitter door Ward Bekker en Guillermo, NoSQL Update. NoSQL Update heeft gezegd: #NoSQL Log Analytics RT @wardbekker: My MongoDB first impressions: http://blog.tty.nl/2010/02/08/mongodb-first-impressions/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Dit blogartikel was vermeld op Twitter door Ward Bekker en Guillermo, NoSQL Update. NoSQL Update heeft gezegd: #NoSQL Log Analytics RT @wardbekker: My MongoDB first impressions: <a href="http://blog.tty.nl/2010/02/08/mongodb-first-impressions/" rel="nofollow">http://blog.tty.nl/2010/02/08/mongodb-first-impressions/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MongoDB first impressions by Ward Bekker</title>
		<link>http://blog.tty.nl/2010/02/08/mongodb-first-impressions/comment-page-1/#comment-233</link>
		<dc:creator>Ward Bekker</dc:creator>
		<pubDate>Mon, 08 Feb 2010 12:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=323#comment-233</guid>
		<description>Hi Lars,

I used the mongo ruby driver for my experiments. A colleague recommended &lt;a href=&quot;http://mongoid.org/&quot; rel=&quot;nofollow&quot;&gt;Mongoid&lt;/a&gt; for Rails mongodb usaged. It supports some pretty syntactic sugar for chaining criteria and named scopes. 

No experience yet with using MongoDB on a customer project. Because it&#039;s very young,  the implementation for full text search with MongoDB is immature. As pretty much all of our customer projects require heavy use of sphinx / search this might be a reason to hold off for now. There is a &lt;a href=&quot;http://github.com/dacort/mongosphinx&quot; rel=&quot;nofollow&quot;&gt; MongoSphinx gem&lt;/a&gt;, but the use of XML to transfer data just feels dirty. ;-)</description>
		<content:encoded><![CDATA[<p>Hi Lars,</p>
<p>I used the mongo ruby driver for my experiments. A colleague recommended <a href="http://mongoid.org/" rel="nofollow">Mongoid</a> for Rails mongodb usaged. It supports some pretty syntactic sugar for chaining criteria and named scopes. </p>
<p>No experience yet with using MongoDB on a customer project. Because it&#8217;s very young,  the implementation for full text search with MongoDB is immature. As pretty much all of our customer projects require heavy use of sphinx / search this might be a reason to hold off for now. There is a <a href="http://github.com/dacort/mongosphinx" rel="nofollow"> MongoSphinx gem</a>, but the use of XML to transfer data just feels dirty. ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MongoDB first impressions by Twitted by nosqlupdate</title>
		<link>http://blog.tty.nl/2010/02/08/mongodb-first-impressions/comment-page-1/#comment-232</link>
		<dc:creator>Twitted by nosqlupdate</dc:creator>
		<pubDate>Mon, 08 Feb 2010 12:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=323#comment-232</guid>
		<description>[...] This post was Twitted by nosqlupdate [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by nosqlupdate [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MongoDB first impressions by Lars O. Overskeid</title>
		<link>http://blog.tty.nl/2010/02/08/mongodb-first-impressions/comment-page-1/#comment-231</link>
		<dc:creator>Lars O. Overskeid</dc:creator>
		<pubDate>Mon, 08 Feb 2010 11:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=323#comment-231</guid>
		<description>What kind of &quot;frontend&quot; do you use for this application? I&#039;m interested in trying out MongoDB myself in a Rails project, but worried it might take some time getting used to. Any experiences starting a project with MongoDB vs. Mysql/ActiveRecord?

Thanks for the write-up! Looking forward to more interesting posts about Mongo :)</description>
		<content:encoded><![CDATA[<p>What kind of &#8220;frontend&#8221; do you use for this application? I&#8217;m interested in trying out MongoDB myself in a Rails project, but worried it might take some time getting used to. Any experiences starting a project with MongoDB vs. Mysql/ActiveRecord?</p>
<p>Thanks for the write-up! Looking forward to more interesting posts about Mongo :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using Nginx + Passenger as your development environment by Ethan Cane</title>
		<link>http://blog.tty.nl/2009/09/17/using-nginx-passenger-as-your-development-environment/comment-page-1/#comment-200</link>
		<dc:creator>Ethan Cane</dc:creator>
		<pubDate>Mon, 04 Jan 2010 19:48:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=193#comment-200</guid>
		<description>user  www www;</description>
		<content:encoded><![CDATA[<p>user  www www;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Compiling Apache from source on Ubuntu 9.10 (Karmic Koala) by Marius</title>
		<link>http://blog.tty.nl/2009/11/11/compiling-apache-from-source-on-ubuntu-9-10-karmic-koala/comment-page-1/#comment-179</link>
		<dc:creator>Marius</dc:creator>
		<pubDate>Wed, 23 Dec 2009 08:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=262#comment-179</guid>
		<description>I had the same problem in debian &#039;squeeze&#039;.  I fixed the conflict between symbols by renaming &#039;getline&#039; to &#039;_getline&#039; the relevant apache source files. This is safe, since the getline version in apache is not exported by the linker.

Also, if you prefer the first method, don&#039;t forget to rename &#039;parseline&#039; (the name does not actually matter) back to &#039;getline&#039; so other programs can still be compiled with getline from glibc.</description>
		<content:encoded><![CDATA[<p>I had the same problem in debian &#8217;squeeze&#8217;.  I fixed the conflict between symbols by renaming &#8216;getline&#8217; to &#8216;_getline&#8217; the relevant apache source files. This is safe, since the getline version in apache is not exported by the linker.</p>
<p>Also, if you prefer the first method, don&#8217;t forget to rename &#8216;parseline&#8217; (the name does not actually matter) back to &#8216;getline&#8217; so other programs can still be compiled with getline from glibc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ruby Quiz, Haskell Solution: LCD Numbers by Eduard Lohmann</title>
		<link>http://blog.tty.nl/2009/12/17/ruby-quiz-haskell-solution-lcd-numbers/comment-page-1/#comment-163</link>
		<dc:creator>Eduard Lohmann</dc:creator>
		<pubDate>Fri, 18 Dec 2009 11:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tty.nl/?p=288#comment-163</guid>
		<description>Namens marius in bash en awk :)

&lt;pre&gt;
#!/bin/bash 

DIGITS=&quot;&quot; 
SCALE=&quot;2&quot; 

function parse_args { 
    while getopts  &quot;s:&quot; flag 
    do 
        SCALE=&quot;$OPTARG&quot; 
    done 
    shift $(($OPTIND-1)) 
    DIGITS=&quot;$1&quot; 
} 

SPRITE_LINE0=&quot;.-.....-..-.....-..-..-..-..-.&quot; 
SPRITE_LINE1=&quot;&#124;.&#124;..&#124;..&#124;..&#124;&#124;.&#124;&#124;..&#124;....&#124;&#124;.&#124;&#124;.&#124;&quot; 
SPRITE_LINE2=&quot;.......-..-..-..-..-.....-..-.&quot; 
SPRITE_LINE3=&quot;&#124;.&#124;..&#124;&#124;....&#124;..&#124;..&#124;&#124;.&#124;..&#124;&#124;.&#124;..&#124;&quot; 
SPRITE_LINE4=&quot;.-.....-..-.....-..-.....-..-.&quot; 

NEWLINE_SUBSITUTE=&quot;L&quot; 
READ_DELIM=&quot;X&quot; 

function digit_to_sprite { 
    local DIGIT=&quot;$*&quot; 
    local SPRITE_TEMPLATE_OFFSET=$(($DIGIT*3)) 
    for SPRITE_LINE_NR in $(seq 0 4); do 
        local VAR_SELECTOR=&quot;SPRITE_LINE$SPRITE_LINE_NR&quot; 
        echo -n ${!VAR_SELECTOR:$SPRITE_TEMPLATE_OFFSET:3}$NEWLINE_SUBSITUTE 
    done 
    echo 
} 

function digits_to_sprites { 
    local DIGITS=&quot;$*&quot; 
    DIGITS=&quot;$(echo $DIGITS &#124; sed &#039;s/\(.\)/\1 /g&#039;)&quot; 

    for DIGIT in $DIGITS ; do 
        digit_to_sprite $DIGIT 
    done 
} 

function calculate_scale { 
    local SPRITES=$1 
    local FIRST_SPRITE=$(echo $SPRITES &#124; head -1) 

    local TOTAL_LINES=$(echo -n $FIRST_SPRITE &#124; tr $NEWLINE_SUBSITUTE 
\\n &#124; wc -l) 
    echo $((($TOTAL_LINES-3)/2)) 
} 

function render_sprites { 
    local SPRITES=&quot;&quot; 
    read  -d $READ_DELIM SPRITES 
    local SPRITE_SCALE=$(calculate_scale $SPRITES) 

    for LINE_NR in $(seq 1 $((($SPRITE_SCALE * 2) + 3))); do 
        local TOTAL_LINE=&quot;&quot; 
        for SPRITE in $SPRITES; do 
            local PIECE=$(echo -n $SPRITE &#124; cut -d $NEWLINE_SUBSITUTE 
-f $LINE_NR) 
            TOTAL_LINE=&quot;$TOTAL_LINE$PIECE &quot; 
        done 
        echo $TOTAL_LINE &#124; tr &#039;.&#039; &#039; &#039; 
    done 
} 

function scale_sprites { 
    local SCALE=$1 
    local SPRITES=&quot;&quot; 
    read -d $READ_DELIM SPRITES 
    local VSCALE_AWK=&quot; 
/([&#124;][.][.])&#124;([.][.][&#124;])&#124;([&#124;][.][&#124;])/ { 
  for (i = 1; i &lt; scale; i++) 
    print \$0 
} 
BEGIN { 
  RS=\&quot;$NEWLINE_SUBSITUTE\&quot; 
  ORS=\&quot;$NEWLINE_SUBSITUTE\&quot; 
} 
{ 
  print \$0 
} 
&quot; 
    local HSCALE_AWK=&quot; 
BEGIN { 
  RS=\&quot;$NEWLINE_SUBSITUTE\&quot; 
  ORS=\&quot;$NEWLINE_SUBSITUTE\&quot; 
  FS=\&quot;\&quot; 
  OFS=\&quot;\&quot; 
} 
{ 
  line = \$1 
  for (i = 1; i &lt;= scale; i++) 
    line = line \$2 
  line = line \$3 
  print line 
} 
&quot; 
    AWK_VARIABLES=&quot;scale=$SCALE&quot; 
    for SPRITE in $SPRITES; do 
        echo -n &quot;$SPRITE&quot; \ 
            &#124; awk &quot;$VSCALE_AWK&quot; $AWK_VARIABLES \ 
            &#124; awk &quot;$HSCALE_AWK&quot; $AWK_VARIABLES 
        echo 
    done 
} 

parse_args $* 
digits_to_sprites $DIGITS &#124; scale_sprites $SCALE &#124; render_sprites

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Namens marius in bash en awk :)</p>
<pre>
#!/bin/bash 

DIGITS=""
SCALE="2" 

function parse_args {
    while getopts  "s:" flag
    do
        SCALE="$OPTARG"
    done
    shift $(($OPTIND-1))
    DIGITS="$1"
} 

SPRITE_LINE0=".-.....-..-.....-..-..-..-..-."
SPRITE_LINE1="|.|..|..|..||.||..|....||.||.|"
SPRITE_LINE2=".......-..-..-..-..-.....-..-."
SPRITE_LINE3="|.|..||....|..|..||.|..||.|..|"
SPRITE_LINE4=".-.....-..-.....-..-.....-..-." 

NEWLINE_SUBSITUTE="L"
READ_DELIM="X" 

function digit_to_sprite {
    local DIGIT="$*"
    local SPRITE_TEMPLATE_OFFSET=$(($DIGIT*3))
    for SPRITE_LINE_NR in $(seq 0 4); do
        local VAR_SELECTOR="SPRITE_LINE$SPRITE_LINE_NR"
        echo -n ${!VAR_SELECTOR:$SPRITE_TEMPLATE_OFFSET:3}$NEWLINE_SUBSITUTE
    done
    echo
} 

function digits_to_sprites {
    local DIGITS="$*"
    DIGITS="$(echo $DIGITS | sed 's/\(.\)/\1 /g')" 

    for DIGIT in $DIGITS ; do
        digit_to_sprite $DIGIT
    done
} 

function calculate_scale {
    local SPRITES=$1
    local FIRST_SPRITE=$(echo $SPRITES | head -1) 

    local TOTAL_LINES=$(echo -n $FIRST_SPRITE | tr $NEWLINE_SUBSITUTE
\\n | wc -l)
    echo $((($TOTAL_LINES-3)/2))
} 

function render_sprites {
    local SPRITES=""
    read  -d $READ_DELIM SPRITES
    local SPRITE_SCALE=$(calculate_scale $SPRITES) 

    for LINE_NR in $(seq 1 $((($SPRITE_SCALE * 2) + 3))); do
        local TOTAL_LINE=""
        for SPRITE in $SPRITES; do
            local PIECE=$(echo -n $SPRITE | cut -d $NEWLINE_SUBSITUTE
-f $LINE_NR)
            TOTAL_LINE="$TOTAL_LINE$PIECE "
        done
        echo $TOTAL_LINE | tr '.' ' '
    done
} 

function scale_sprites {
    local SCALE=$1
    local SPRITES=""
    read -d $READ_DELIM SPRITES
    local VSCALE_AWK="
/([|][.][.])|([.][.][|])|([|][.][|])/ {
  for (i = 1; i < scale; i++)
    print \$0
}
BEGIN {
  RS=\"$NEWLINE_SUBSITUTE\"
  ORS=\"$NEWLINE_SUBSITUTE\"
}
{
  print \$0
}
"
    local HSCALE_AWK="
BEGIN {
  RS=\"$NEWLINE_SUBSITUTE\"
  ORS=\"$NEWLINE_SUBSITUTE\"
  FS=\"\"
  OFS=\"\"
}
{
  line = \$1
  for (i = 1; i <= scale; i++)
    line = line \$2
  line = line \$3
  print line
}
"
    AWK_VARIABLES="scale=$SCALE"
    for SPRITE in $SPRITES; do
        echo -n "$SPRITE" \
            | awk "$VSCALE_AWK" $AWK_VARIABLES \
            | awk "$HSCALE_AWK" $AWK_VARIABLES
        echo
    done
} 

parse_args $*
digits_to_sprites $DIGITS | scale_sprites $SCALE | render_sprites
</pre>
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
