<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Johan</title><link>http://disqus.com/people/f5b8fb60c6116331da07c65b96a8a1d1/</link><description></description><language>en</language><lastBuildDate>Sat, 07 Nov 2009 23:42:18 -0000</lastBuildDate><item><title>Re: Spooky Scary Post</title><link>http://urbanreviewblog.disqus.com/spooky_scary_post/#comment-22174650</link><description>blah blah</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Sat, 07 Nov 2009 23:42:18 -0000</pubDate></item><item><title>Re: Do Networks Ignore Sci Fi Fans?</title><link>http://devscreenrant.disqus.com/do_networks_ignore_sci_fi_fans/#comment-21619997</link><description>Go read Joe S. production notes on how fricken hard it was to get &lt;a href="http://www.midwinter.com/lurk/lurker.html" rel="nofollow"&gt;Babylon-5&lt;/a&gt; made.  It boils down to keeping people's attention and building viewership.&lt;br&gt;&lt;br&gt;Another problem is that TV tends to fall into easy to understand story / plots.  Think of the Wander-who-does-good-deeds.  Touch by an Angle and  Knight Rider where identical shows in this respect.  You must have your heroes and villains identifiable by their archetypes so anybody with in the first 5 minutes of watching a show can figure out who everyone is and where they stand.&lt;br&gt;&lt;br&gt;Then there is the Deus ex machina problem.  Every show must be neatly tied up at the end of the 43 minutes; and too often technobable is the rescue.&lt;br&gt;&lt;br&gt;Finally, it's damn expensive and not a sure sell.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Mon, 03 Mar 2008 07:33:26 -0000</pubDate></item><item><title>Re: WhiteHouse.gov takes a page from Twitter&amp;#8217;s playbook</title><link>http://venturebeat.disqus.com/whitehousegov_takes_a_page_from_twitter8217s_playbook_45/#comment-5406756</link><description>No, he can't... he's limited to 500 characters.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 20 Jan 2009 16:39:23 -0000</pubDate></item><item><title>Re: Truce: Google and Microsoft join forces for an open white space spectrum</title><link>http://venturebeat.disqus.com/truce_google_and_microsoft_join_forces_for_an_open_white_space_spectrum/#comment-5848052</link><description>Since when did Google and Microsoft agree on the definition of "open"? Good luck!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Wed, 04 Feb 2009 18:14:32 -0000</pubDate></item><item><title>Re: but she's a girl... &amp;raquo; Trying out Disqus</title><link>http://bsag.disqus.com/but_shes_a_girl_raquo_trying_out_disqus/#comment-787540</link><description>Testing</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 01 Jul 2008 02:57:50 -0000</pubDate></item><item><title>Re: Performance Comparison - C++ / Java / Python / Ruby/ Jython / JRuby / Groovy</title><link>http://var-log-mind.disqus.com/performance_comparison_c_java_python_ruby_jython_jruby_groovy/#comment-1209683</link><description>I never understood why microbenchmarks are run with bad algorithms. If performance was critical, I would not write the code the way it has been written above. Also, for Java, in performance critical situations, you should run the test multiple times to see how the JIT compilation affects the performance.&lt;br&gt;&lt;br&gt;Here is the code I would write for this. It works equally well in Java, C or C++.&lt;br&gt;&lt;br&gt;public class Chain&lt;br&gt;{&lt;br&gt;    protected static final String versionID = "@(#) $ Id: $ ";&lt;br&gt;&lt;br&gt;    private int size;&lt;br&gt;&lt;br&gt;    public Chain(int size)&lt;br&gt;    {&lt;br&gt;        this.size = size;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    public int kill(int nth)&lt;br&gt;    {&lt;br&gt;        int[] people = new int[size];&lt;br&gt;        for(int i=0;i 1)&lt;br&gt;        {&lt;br&gt;            curCount++;&lt;br&gt;            if (curCount % nth != 0)&lt;br&gt;            {&lt;br&gt;                people[fillPos] = people[curPos];&lt;br&gt;                fillPos++;&lt;br&gt;            }&lt;br&gt;            curPos++;&lt;br&gt;            if (curPos == realSize)&lt;br&gt;            {&lt;br&gt;                realSize -= (curPos - fillPos);&lt;br&gt;                curPos = 0;&lt;br&gt;                fillPos = 0;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        return people[0];&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    public static void main(String[] args)&lt;br&gt;    {&lt;br&gt;        int ITER = 100000;&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    private static void runTest(int ITER)&lt;br&gt;    {&lt;br&gt;        long start = System.nanoTime();&lt;br&gt;        for (int i = 0 ; i  ITER ; i++)&lt;br&gt;        {&lt;br&gt;            Chain chain = new Chain(40);&lt;br&gt;            chain.kill(3);&lt;br&gt;        }&lt;br&gt;        long end = System.nanoTime();&lt;br&gt;        System.out.println("Time per iteration = " + ((end - start) / (ITER )) + " nanoseconds.");&lt;br&gt;    }&lt;br&gt;&lt;br&gt;}</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 08 Jul 2008 15:21:19 -0000</pubDate></item><item><title>Re: Performance Comparison - C++ / Java / Python / Ruby/ Jython / JRuby / Groovy</title><link>http://var-log-mind.disqus.com/performance_comparison_c_java_python_ruby_jython_jruby_groovy/#comment-1209685</link><description>sorry, I'd forgotten how slow mod operator is. Even faster:&lt;br&gt;&lt;br&gt;public class Chain&lt;br&gt;{&lt;br&gt;    private int size;&lt;br&gt;&lt;br&gt;    public Chain(int size)&lt;br&gt;    {&lt;br&gt;        this.size = size;&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    public int kill(int nth)&lt;br&gt;    {&lt;br&gt;        int[] people = new int[size];&lt;br&gt;        for(int i=0;i 1)&lt;br&gt;        {&lt;br&gt;            curCount++;&lt;br&gt;            if (curCount != nth)&lt;br&gt;            {&lt;br&gt;                people[fillPos] = people[curPos];&lt;br&gt;                fillPos++;&lt;br&gt;            }&lt;br&gt;            else curCount = 0;&lt;br&gt;            curPos++;&lt;br&gt;            if (curPos == realSize)&lt;br&gt;            {&lt;br&gt;                realSize -= (curPos - fillPos);&lt;br&gt;                curPos = 0;&lt;br&gt;                fillPos = 0;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        return people[0];&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    public static void main(String[] args)&lt;br&gt;    {&lt;br&gt;        int ITER = 100000;&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;        runTest(ITER);&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    private static void runTest(int ITER)&lt;br&gt;    {&lt;br&gt;        long start = System.nanoTime();&lt;br&gt;        for (int i = 0 ; i  ITER ; i++)&lt;br&gt;        {&lt;br&gt;            Chain chain = new Chain(40);&lt;br&gt;            chain.kill(3);&lt;br&gt;        }&lt;br&gt;        long end = System.nanoTime();&lt;br&gt;        System.out.println("Time per iteration = " + ((end - start) / (ITER )) + " nanoseconds.");&lt;br&gt;    }&lt;br&gt;&lt;br&gt;}</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 08 Jul 2008 15:31:09 -0000</pubDate></item><item><title>Re: Even More Incriminating Evidence in The Foxconn Debacle!</title><link>http://linuxologist.disqus.com/even_more_incriminating_evidence_in_the_foxconn_debacle_67/#comment-4976397</link><description>Are all of your stories ripped off from Slashdot comments?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Fri, 25 Jul 2008 19:48:31 -0000</pubDate></item><item><title>Re: http://www.zoliblog.com/2009/03/17/are-you-left-brained-or-right-she-can-tell/?nucrss=1</title><link>http://zoliblog.disqus.com/thread_02/#comment-15822889</link><description>She's pretty.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 17 Mar 2009 15:34:49 -0000</pubDate></item><item><title>Re: DreamWorks to Make Live-Action Ghost in the Shell Movie in 3D</title><link>http://slashfilm.disqus.com/dreamworks_to_make_live_action_ghost_in_the_shell_movie_in_3d/#comment-11209168</link><description>Ah, you didnt see it? i dont get why so many people are ignoring some great anime movies/series :</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 15 Apr 2008 16:41:18 -0000</pubDate></item><item><title>Re: Introduce Your Rogers HTC Android Phone!</title><link>http://androidincanada.disqus.com/introduce_your_rogers_htc_android_phone/#comment-12614095</link><description>Is anyone running an ADP1?&lt;br&gt;&lt;br&gt;If I buy one direct from Google (and my interest is in developing applications so an unlocked and rooted phone that I can switch firmware on would be handy for testing) what are my chances of convincing Rogers to let me use it on their network at some not unreasonable expense?&lt;br&gt;&lt;br&gt;Any tips on negotiating with the local GSM monopoly when you are bringing your own phone to the table?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Sat, 13 Jun 2009 23:39:06 -0000</pubDate></item><item><title>Re: Sample Post</title><link>http://seraviablog.disqus.com/sample_post/#comment-15344787</link><description>I disagree.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Tue, 25 Aug 2009 03:38:10 -0000</pubDate></item><item><title>Re: http://disqus.com/preview/</title><link>http://disquspreview.disqus.com/landing_preview/#comment-16061778</link><description>Foo bar blat</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Sun, 06 Sep 2009 11:05:29 -0000</pubDate></item><item><title>Re: Sample Post</title><link>http://insideseravia.disqus.com/sample_post/#comment-15401625</link><description>I disagree.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Wed, 26 Aug 2009 00:15:09 -0000</pubDate></item><item><title>Re: Sample Post</title><link>http://insideseravia.disqus.com/sample_post/#comment-15406983</link><description>I disagree.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johan</dc:creator><pubDate>Wed, 26 Aug 2009 03:00:10 -0000</pubDate></item></channel></rss>