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

<channel>
	<title>BlackHC's Adventures in the Dev World &#187; Check This Out!</title>
	<atom:link href="http://blog.blackhc.net/category/check-this-out/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.blackhc.net</link>
	<description>Just another weblog</description>
	<lastBuildDate>Wed, 16 Nov 2011 23:12:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Best-of-Explosm Web 2.0</title>
		<link>http://blog.blackhc.net/2008/12/best-of-explosm-web-20/</link>
		<comments>http://blog.blackhc.net/2008/12/best-of-explosm-web-20/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 14:54:08 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Explosm]]></category>
		<category><![CDATA[Mashup]]></category>
		<category><![CDATA[Ubiquity]]></category>
		<category><![CDATA[Yahoo Pipes]]></category>

		<guid isPermaLink="false">http://blog.blackhc.net/?p=177</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/12/best-of-explosm-web-20/" title="Best-of-Explosm Web 2.0"></a>Yahoo Pipes are an interesting concept, as are the other existing mashup tools (like Microsoft's Popfly or Ubiquity), and it is amazing what can be done with a few clicks with them. Because I've wanted to learn how to work &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2008/12/best-of-explosm-web-20/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/12/best-of-explosm-web-20/" title="Best-of-Explosm Web 2.0"></a><p><a href="http://pipes.yahoo.com/pipes/"><img class="alignright" style="margin: 10px;" title="Yahoo Pipes Logo" src="http://l.yimg.com/us.yimg.com/i/us/pps/logo_1.gif" alt="" width="119" height="45" /></a><a title="Yahoo Pipes" href="http://pipes.yahoo.com/pipes/" target="_blank">Yahoo Pipes</a> are an interesting concept, as are the other existing mashup tools (like Microsoft's Popfly or <a title="Mozilla's Ubiquity" href="http://ubiquity.mozilla.com/" target="_blank">Ubiquity</a>), and it is amazing what can be done with a few clicks with them.</p>
<p>Because I've wanted to learn how to work with Yahoo Pipes (before the Google Mashup Editor is released to the public), I've decided to take my best-of-explosm viewer to a different level and <strong>prototype </strong>it with Yahoo Pipes.</p>
<p><script src="http://pipes.yahoo.com/js/imagebadge.js">
{"pipe_id":"3EUQm9jU3RGJza7w_g6H4A","_btype":"image","pipe_params":{"page":"1"}}
</script></p>
<p>This just shows the first page (it's easier to view - <em>and create</em> - the feed in groups of 20 pictures than all at once). You can follow the link if you want to view more pages.</p>
<p>Stay tuned for more.<br />
Cheers,<br />
Andreas</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/12/best-of-explosm-web-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More WordPress Pimping</title>
		<link>http://blog.blackhc.net/2008/12/more-wordpress-pimping/</link>
		<comments>http://blog.blackhc.net/2008/12/more-wordpress-pimping/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 18:37:31 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.blackhc.net/?p=135</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/12/more-wordpress-pimping/" title="More WordPress Pimping"></a>PHP and CSS and all that funky web design stuff are funky, because they are so easy to use and you quickly get results. I like it. I've decided to release my first plugin into the world (it's big hack, &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2008/12/more-wordpress-pimping/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/12/more-wordpress-pimping/" title="More WordPress Pimping"></a><p>PHP and CSS and all that funky web design stuff are funky, because they are so easy to use and you quickly get results. I like it.</p>
<p>I've decided to release my first plugin into the world (it's big hack, but it has turned out to be very useful on my other blog <a href="http://info1.blackhc.net" target="_blank">http://info1.blackhc.net</a>).</p>
<p>It supports 3 text replacements:<a title="awesome web comic is all I can say.." href="http://www.xkcd.com" target="_blank"></a></p>
<h3><a title="awesome web comic is all I can say.." href="http://www.xkcd.com" target="_blank">Xkcd</a>-style Tooltips as Replacement for Footnotes</h3>
<p>Example:</p>
<pre>[[:This is a default footnote. Hover over it to display it.]]</pre>
<p>Result:</p>
<p><a class="annotation" title="This is a default footnote. Hover over it to display it." href="javascript:;"><strong>&#180;</strong></a></p>
<p>You can use a different marker, too:<br />
Example:</p>
<pre>[[:My Footnote#This is a default footnote. Hover over it to display it.]]</pre>
<p>Result:<br />
<a class="annotation" title="This is a default footnote. Hover over it to display it." href="javascript:;"><sup><strong>My Footnote</strong></sup></a></p>
<h3>Linking to Wikipedia</h3>
<p>Example:</p>
<pre>[[wikipedia:Pie]]</pre>
<p>Result:</p>
<p><a href="http://en.wikipedia.org/wiki/Pie" target="_blank" >Pie</a></p>
<p>The link text can be changed, too, of course.<br />
Example (you can use <strong>:</strong> as seperator, too):</p>
<pre>[[wikipedia:pi#Fake Pie]]</pre>
<p>Result:</p>
<p><a href="http://en.wikipedia.org/wiki/pi" target="_blank" >Fake Pie</a></p>
<h3>Expandable Text</h3>
<p>Example:</p>
<pre>[[expandable#Expandable Text...]]</pre>
<p>Result:</p>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_6');">Click to expand &#187;</a>
<div class="expandable_text" name="blackhc_expandable_6" id="blackhc_expandable_6" style="display:none">Expandable Text...</div>
<p></div>
<p>The link text can be changed, too:<br />
Example:</p>
<pre>[[expandable#Click me! Click me! Pleeease!#Yay!]]</pre>
<p>Result:</p>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_7');">Click me! Click me! Pleeease! &#187;</a>
<div class="expandable_text" name="blackhc_expandable_7" id="blackhc_expandable_7" style="display:none">Yay!</div>
<p></div>
<p>And we can nest it and it works with other tags.<br />
Example:</p>
<pre>[[expandable:#Expandable Text...

[[expandable:Click me! Click me! Pleeease!#Yay!]]
<pre class="brush: java; title: ; notranslate">
// some Java code
</pre>
<p>]]</pre>
<p>Result:</p>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_8');">Click to expand &#187;</a>
<div class="expandable_text" name="blackhc_expandable_8" id="blackhc_expandable_8" style="display:none">Expandable Text...</p>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_11');">Click me! Click me! Pleeease! &#187;</a>
<div class="expandable_text" name="blackhc_expandable_11" id="blackhc_expandable_11" style="display:none">Yay!</div>
<p></div>
<pre class="brush: java; title: ; notranslate">
// some Java code
</pre>
</div>
<p></div>
<p>We can also use a Heredoc-like mode:<br />
Example:</p>
<pre>[[expandable_ex:EOD#Heredoc-like Expandable#[[[[[[[]][[EOD]]</pre>
<p>Result:</p>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_9');">Heredoc-like Expandable &#187;</a>
<div class="expandable_text" name="blackhc_expandable_9" id="blackhc_expandable_9" style="display:none">[[[[[[[]][[</div>
<p></div>
<h3>Escaping [[ and ]]</h3>
<p>Example:</p>
<pre>Escaping [[escape_left]] and [[escape_right]]</pre>
<h3>Source Code</h3>
<div class="expandable"><a class="expandable_link" href="javascript:blackhc_replacements_togglediv('blackhc_expandable_10');">Click to expand &#187;</a>
<div class="expandable_text" name="blackhc_expandable_10" id="blackhc_expandable_10" style="display:none">
<pre>
<pre class="brush: php; title: ; notranslate">&lt;?php
/*
Plugin Name: Useful text replacements
Plugin URI: http://blog.blackhc.net
Description: Some useful text replacement for annotations and other nifty things.
Version: 1.01
Author: Andreas 'BlackHC' Kirsch
Author URI: http://blog.blackhc.net

Plugin Name: Latex for WordPress
Plugin URI: http://zhiqiang.org/blog/plugin/mimetex
Description: using WordPress.com or public MimeTex service to add latex formula in post and comment. You don't need to install your own latex service.
Version: 2.01
Author: zhiqiang
Author URI: http://zhiqiang.org
*/

/*
  1.3 and higher are maintained by Zhiqiang.

   Copyright 2006  Anders Dahnielson (email : anders@dahnielson.com)

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/*
  Version-History:
  1.1.2:
  Tweaker: Martin Becker
  Email:   mbecker@physik.uni-wuerzburg.de
  Homepage: http://fstyle.de
  -   Edited discription of plugin, so correct tags will be shown
  -   Put inclusion of Snoopy-Class down into the class (mimetex),
    for in some cases WP will intialize the Snoopy-Class of its own
    after we do here, causing it to not to be able to reinitialize.
    For some reason I don't understand.
    Note: I think all this workaround using our own extra Snoopy-Class can be
    fixed by the wordpress-team by removing the if statement in their Snoopy-Class.
    That would be the case for ./wp-includes/rss-functions.php in ./wp-admin/index.php
  -   Cleaner code

  1.1.1:
  Tweaker: Baris Evrim Demiroz
  Email:   b.evrim /AT/ anlak /DOT/ com
  Homepage: http://www.anlak.com
  -   Switched to Snoopy
  -   Working in comments as well: Thanks to Robert Jones, he gave the code snippet for plugin to work with comments. You may wish to visit him: http://www.jonesieboy.co.uk/blog

  1.1.0:
  Anders Dahnielson, URI: http://dahnielson.com
  -   Anders Dahnielson's original version.
*/

class blackhc_replacements{
  var $uniqueID = 0;

  var $server = &quot;http://l.wordpress.com/latex.php?bg=ffffff&amp;amp;amp;amp;amp;fg=000000&amp;amp;amp;amp;amp;latex=&quot;;
  var $img_format = &quot;png&quot;;
  // $img_format is 'gif' when using mimetex service.
  // more server:
  // &quot;http://l.wordpress.com/latex.php?latex=&quot;;
  // &quot;http://www.bytea.net/cgi-bin/mimetex.cgi?formdata=&quot;; 

  function getUniqueID() {
    return $this-&gt;uniqueID++;
  }   

  // parsing the text to display tex by putting tex-images-tags into the code created by createTex
  function parse($toParse) {
    // tag specification (which tags are to be replaced)
    // change it to
    // $regex = '#\1 stype in your post
        //$regex = '#\$\$(.*?)\$\$#si';

      $text = $toParse;

      $oldText = &quot;&quot;;
      while( $oldText != $text ) {
        $oldText = $text;
        $text = preg_replace_callback('#\(\)!expandable\:(?:(?P&lt;link&gt;[^ <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_9862de3eecf4dc52c6a9a929838b9dd9.gif' style=' ' class='tex' alt="]*?)\#)?(?P<content>(?:.|(?P<brackets>" /></span><script type='math/tex'>]*?)\#)?(?P<content>(?:.|(?P<brackets></script>!(?:(?&gt;[^<p style='text-align:center;'><span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_7215ee9c7d9dc229d2921a40e899ec5f.gif' style='' class='tex' alt=" " /></span><script type='math/tex;  mode=display'> </script></p>]+)|(?P&gt;brackets))* <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_aca834c8c17b52c51566427fde231133.gif' style=' ' class='tex' alt="))*?) " /></span><script type='math/tex'>))*?) </script> <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_c60f26f291f8488381eeade0356666b9.gif' style=' ' class='tex' alt="#si', array(&amp;amp;amp;amp;$this, 'createExpandableTextFix'), $text);

        $text = preg_replace_callback('#" /></span><script type='math/tex'>#si', array(&amp;amp;amp;amp;$this, 'createExpandableTextFix'), $text);

        $text = preg_replace_callback('#</script>!<p style='text-align:center;'><span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_dd88ee048ac907bcbea58670452f70ef.gif' style='' class='tex' alt="expandable\_ex\:(?P<eod>[^ " /></span><script type='math/tex;  mode=display'>expandable\_ex\:(?P<eod>[^ </script></p>]*?)\#(?P&lt;link&gt;[^ <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_b5066098fdcb4475a1cc912c23836abb.gif' style=' ' class='tex' alt="]*?)\#(?P<content>.*?)(?P=eod) " /></span><script type='math/tex'>]*?)\#(?P<content>.*?)(?P=eod) </script> <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_0db42a5198a3f5309e764d7c90768275.gif' style=' ' class='tex' alt="#si', array(&amp;amp;amp;amp;$this, 'createExpandableTextExFix'), $text);
      }
    $text = preg_replace_callback('#" /></span><script type='math/tex'>#si', array(&amp;amp;amp;amp;$this, 'createExpandableTextExFix'), $text);
      }
    $text = preg_replace_callback('#</script>!<p style='text-align:center;'><span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_17ce8e470d6abbfccbca9f4771877853.gif' style='' class='tex' alt="\:(?:([^ " /></span><script type='math/tex;  mode=display'>\:(?:([^ </script></p>]*?)\#)?(.*?) <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_7215ee9c7d9dc229d2921a40e899ec5f.gif' style=' ' class='tex' alt=" " /></span><script type='math/tex'> </script>#si', array(&amp;amp;amp;amp;amp;$this, 'createAnnotation'), $text);

    $text = preg_replace_callback('#\(\)!wikipedia\:(.*?)(?:(?:\#|\:)(.*?))? <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_7215ee9c7d9dc229d2921a40e899ec5f.gif' style=' ' class='tex' alt=" " /></span><script type='math/tex'> </script>#si', array(&amp;amp;amp;amp;amp;$this, 'createWikiLink'), $text);

    $text = preg_replace( array('#\(\)!escape_left <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_7215ee9c7d9dc229d2921a40e899ec5f.gif' style=' ' class='tex' alt=" " /></span><script type='math/tex'> </script>#si', '#\(\)!escape_right <span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_7215ee9c7d9dc229d2921a40e899ec5f.gif' style=' ' class='tex' alt=" " /></span><script type='math/tex'> </script>#si'), array( '[' . '[', ']' . ']'), $text );

    return $text;
  }

  function createWikiLink($match)
  {
    $text = $match[2];
    $page = $match[1];
    if( !$text )
      $text = $page;
    return &quot;&lt;a href=\&quot;http://en.wikipedia.org/wiki/&quot;.($page).&quot;\&quot; target=\&quot;_blank\&quot; &gt;&quot;.($text).&quot;&lt;/a&gt;&quot;;
  }

  function createAnnotation($match)
  {
    $superscript = $match[1];
    $text = $match[2];
    if( $superscript == &quot;&quot;  )
      $marker = &quot;&lt;strong&gt;&amp;amp;amp;amp;amp;#180;&lt;/strong&gt;&quot;;
    else
      $marker = &quot;&lt;sup&gt;&lt;strong&gt;&quot; . ($superscript) . &quot;&lt;/strong&gt;&lt;/sup&gt;&quot;;

  return &quot;&lt;a class=\&quot;annotation\&quot; title=\&quot;&quot;.($text).&quot;\&quot; href=\&quot;javascript:;\&quot;&gt;&quot; . ($marker) . &quot;&lt;/a&gt;&quot;;
  }

  // Big Thanks to Salteh!
  function createExpandableText($match)
  {
    $linkText = $match[&quot;link&quot;];
    $text = $match[&quot;content&quot;];

  if ($linkText == &quot;&quot;) {
    $linkText = &quot;Click to expand&quot;;
  }

    $id = &quot;blackhc_expandable_&quot; . ($this-&gt;getUniqueID());
  return '&lt;div class=&quot;expandable&quot;&gt;' .
         '&lt;a class=&quot;expandable_link&quot; href=&quot;javascript:blackhc_replacements_togglediv(\''. $id . '\');&quot;&gt;' . $linkText . ' &amp;amp;amp;amp;amp;#187;&lt;/a&gt;' .
         '&lt;div class=&quot;expandable_text&quot; name=&quot;' . $id . '&quot; id=&quot;' . $id . '&quot; style=&quot;display:none&quot;&gt;' . $text . '&lt;/div&gt;&lt;br&gt;' .
         '&lt;/div&gt;';
  }

  // fix for a php bug
  // the two functions can be removed as soon as preg_replace_callback passes named subpatterns correctly: http://bugs.php.net/bug.php?id=45748
  function createExpandableTextFix( $match ) {
    return $this-&gt;createExpandableText( array( &quot;link&quot; =&gt; $match[1], &quot;content&quot; =&gt; $match[2] ) );
  }

  function createExpandableTextExFix( $match ) {
    return $this-&gt;createExpandableText( array( &quot;link&quot; =&gt; $match[2], &quot;content&quot; =&gt; $match[3] ) );
  }

  // reading the tex-expression and create an image and a image-tag representing that expression
  function createTex($toTex) {
    $formula_text = $toTex[1];
    $imgtext=false;
    if (substr($formula_text, -1, 1) == &quot;!&quot;)  return &quot;<span class='MathJax_Preview'><img src='http://blog.blackhc.net/wp-content/plugins/latex/cache/tex_28a0fe7a6ba0eb1b00ed2935fb5b845a.gif' style=' ' class='tex' alt="".substr($formula_text, 0, -1)."" /></span><script type='math/tex'>".substr($formula_text, 0, -1)."</script>&quot;;
    if (substr($formula_text, 0, 1) == &quot;!&quot;) {  $imgtext=true;$formula_text=substr($formula_text, 1);}
    $formula_hash = md5($formula_text);
    $formula_filename = 'tex_'.$formula_hash.'.'.$this-&gt;img_format;

    $cache_path = ABSPATH . '/wp-content/cache/';
    $cache_formula_path = $cache_path . $formula_filename;
    $cache_url = get_bloginfo('wpurl') . '/wp-content/cache/';
    $cache_formula_url = $cache_url . $formula_filename;

    if ( !is_file($cache_formula_path)) {
       if (!class_exists('Snoopy')) require_once (ABSPATH.'wp-includes/class-snoopy.php');

      $snoopy = new Snoopy;

      $snoopy-&gt;fetch( $this-&gt;server.rawurlencode(html_entity_decode($formula_text)));
      // this will copy the created tex-image to your cache-folder
      if(strlen($snoopy-&gt;results)){
        $cache_file = fopen($cache_formula_path, 'w');
        fputs($cache_file, $snoopy-&gt;results);
        fclose($cache_file);
      }
    }

    // returning the image-tag, referring to the image in your cache folder
    if($imgtext) return &quot;&lt;center&gt;&lt;img src=\&quot;$cache_formula_url\&quot; align=\&quot;absmiddle\&quot; class=\&quot;tex\&quot; alt=\&quot;&quot;.($formula_text).&quot;\&quot; /&gt;&lt;/center&gt;&quot;;
    return &quot;&lt;img src=\&quot;$cache_formula_url\&quot; align=\&quot;absmiddle\&quot; class=\&quot;tex\&quot; alt=\&quot;&quot;.($formula_text).&quot;\&quot; /&gt;&quot;;
  }  

  function headerAdditions() {
    // additions for expandable text
    echo '
  &lt;script language=&quot;JavaScript&quot;&gt;
  function blackhc_replacements_togglediv(divname) {
    var div = document.getElementById(divname);
    div.style.display = (div.style.display==&quot;none&quot;) ? &quot;&quot; : &quot;none&quot;;
  }
  &lt;/script&gt;
  ';
   }
}

$mimetex_object = new blackhc_replacements;
// this specifies where parsing should be done. one can look up further information on wordpress.org
add_action('wp_head', array($mimetex_object, 'headerAdditions') );

add_filter('the_title', array($mimetex_object, 'parse'), 1);
add_filter('the_content', array($mimetex_object, 'parse'), 1);
add_filter('the_excerpt', array($mimetex_object, 'parse'), 1);
// dont allow embedding stuff into comments for security reasons
//add_filter('comment_text', array($mimetex_object, 'parseTex'), 1);

?&gt;</pre>
</pre>
</div>
<p></div>
<p>Hopefully this can be useful for somebody else, too.<br />
Cheers,<br />
 Andreas</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/12/more-wordpress-pimping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Olympics in the PRC &#039;08</title>
		<link>http://blog.blackhc.net/2008/08/olympics-in-the-prc-08/</link>
		<comments>http://blog.blackhc.net/2008/08/olympics-in-the-prc-08/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 21:04:22 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Personal Rantings]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/?p=131</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/08/olympics-in-the-prc-08/" title="Olympics in the PRC &#039;08"></a>Short Note: This totally sums up what I think of the Olympics in China this year.. And the strip is really funny]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/08/olympics-in-the-prc-08/" title="Olympics in the PRC &#039;08"></a><div id="attachment_132" class="wp-caption alignnone" style="width: 460px"><a href="http://blog.blackhc.net/wp-content/uploads/2008/08/china-olympics.jpg"><img class="size-full wp-image-132" src="http://blog.blackhc.net/wp-content/uploads/2008/08/china-olympics.jpg" alt="" width="450" height="1362" /></a><p class="wp-caption-text">Human Rights, Executions and the Beijing Olympics 2008</p></div>
<p><em>Short Note: This totally sums up what I think of the Olympics in China this year</em>..</p>
<p>And the strip is really funny <img src='http://blog.blackhc.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/08/olympics-in-the-prc-08/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best of Cyanide &amp; Happiness</title>
		<link>http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/</link>
		<comments>http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/#comments</comments>
		<pubDate>Sun, 11 May 2008 13:43:50 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Personal Rantings]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/?p=106</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/" title="Best of Cyanide &amp; Happiness"></a>Long ago (about three weeks ago to be correct) I still had lots of free time and no university lectures yet, so I decided to look at all - I repeat: at all 1000-something - Cyanide &#38; Happiness comic strips &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/" title="Best of Cyanide &amp; Happiness"></a><p>Long ago (about three weeks ago to be correct) I still had lots of free time and no university lectures yet, so I decided to look at all - <em>I repeat: at all 1000-something </em>- Cyanide &amp; Happiness comic strips on <a title="The Home of Cyanide &amp; Happiness" href="http://www.explosm.net" target="_blank">www.explosm.net</a> and make a collection of the ones that I liked the most. Of course my collection isn't complete and I got pretty tired at the end but I still think I've found quite a few gems among the strips.</p>
<p>I've stored them as a list of links in a raw txt file (it can be found <a title="my raw best-of list" href="http://www.icculus.org/~black/stuff/explosm/explosm.txt" target="_blank">here</a>, if you want take a look a it) and it wasn't really usable the way it was. I wanted to put it on my blog though to let others view it in a comfortable way but since I didn't have enough time I postponed it.. <em>till yesterday</em>. Yesterday I've finally found enough time to sit down and think and code something nice to let you (and myself, too) browse through my favorites.</p>
<p>You can find the final page here: <a title="My Explosm (C&amp;H) Viewer" href="http://www.icculus.org/~black/stuff/explosm/explosmviewer.html" target="_blank">http://www.icculus.org/~black/stuff/explosm/explosmviewer.html</a></p>
<h4>How does it work?</h4>
<p>It uses AJAX! Well actually it only uses XMLHttpRequest to query the <a title="the actual preprocessed data file" href="http://www.icculus.org/~black/stuff/explosm/explosmviewer.dat" target="_blank">.dat file</a> that stores a preprocessed list of C&amp;H links (plus the respective image links) and uses that data to let you browse my favorites dynamically but it contains the code to create the said .dat file out of my raw .txt file.</p>
<p>Consequently if I ever update my list I can do so simply by updating the .txt file with a few links and regenerate the .dat file with all additional information.</p>
<p>I'm mostly using some RegExp to parse the Explosm pages and my .txt and .dat files. If you want to try the code out yourself, mind that you need to uncomment the compileList( true ); line and use Internet Explorer to run it because FireFox doesn't allow cross-domain access which is naturally needed if you want to parse the pages on explosm.net. The result is copied into the clipboard and can be then saved and uploaded to the webspace of choice (if you adapt the links in the script, too).</p>
<p>Enjoy <img src='http://blog.blackhc.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Andreas</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/05/best-of-cyanide-happiness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SplashDamage Photos on Flickr</title>
		<link>http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/</link>
		<comments>http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 00:13:16 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Personal Rantings]]></category>
		<category><![CDATA[SplashDamage office photos]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/?p=93</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/" title="SplashDamage Photos on Flickr"></a>I guess you don't know what a games company looks like. And even if you think you do, let me add some adjectives that will change everything: an great games company. a cool games company. a SplashDamage-esque game company. You &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/" title="SplashDamage Photos on Flickr"></a><p>I guess you don't know what a games company looks like. And even if you think you do, let me add some adjectives that will change everything: an great games company. a cool games company. a <i><a href="http://www.splashdamage.com" title="SplashDamage's Homepage" target="_blank">SplashDamage</a>-esque</i> game company.<br />
<i>You get the idea.</i></p>
<p>We, that is the <i>#q3mods</i> channel, had a meeting recently at Arnout's, Gordon's and David's place on the 8th and 9th of March '08  - it's like <i>Friends</i>, the tv series, only they have got a house, a bigger TV, lots of game and Guitar Hero 3 \o/ They were so kind to let me stay in the dungeon - <i>the basement</i> <i>- </i>for a week and I spent all of my free time playing Guitar Hero or watching them work at SplashDamage's office, which was grand. I can't really say a lot more, otherwise I'd get torn to pieces by some attorneys for violating the NDA I've signed but let me repeat: It was <b><i>awesome</i></b>. I took quite a few pictures of the office though (and the people in it) and have even uploaded them to flickr, so <a href="http://www.flickr.com/photos/12708125@N05/sets/72157604153598999/" title="SplashDamage's Office" target="_blank">here</a> we go. Enjoy.</p>
<p>The meeting itself was also awesome. We all  at the their place, played games (<i><a href="http://www.guitarherogame.com/gh3/" title="Official GuitarHero III Homepage" target="_blank">Guitar Hero</a>!!</i> and lots of Wii games), watched movies, ordered pizza and Chinese and even ate it all up, too, and had a splendid time.</p>
<p>Cheers,<br />
Andreas</p>
<p>I've linked to a few pictures directly, in case you're too lazy to follow the other link and only want to see the office ASAP.</p>
<p><span id="more-85"></span></p>
<p><img src="http://farm3.static.flickr.com/2173/2343500666_93673bdf42.jpg" height="375" hspace="10" vspace="10" width="500" /></p>
<p><img src="http://farm3.static.flickr.com/2385/2343492516_1dd9a47921.jpg" height="500" hspace="10" vspace="10" width="375" /><img src="http://farm3.static.flickr.com/2299/2342671339_5526201cd7.jpg" height="375" hspace="10" vspace="10" width="500" /></p>
<p><img src="http://farm4.static.flickr.com/3067/2343506586_2e34b0de1e.jpg" height="375" hspace="10" vspace="10" width="500" /></p>
<p><img src="http://farm3.static.flickr.com/2290/2342665489_8f678ca7aa.jpg" height="375" hspace="10" vspace="10" width="500" /></p>
<p><img src="http://farm4.static.flickr.com/3007/2342681213_37b5434bd7.jpg" height="375" hspace="10" vspace="10" width="500" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/03/splashdamage-photos-on-flickr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Final Java Homework at uni.</title>
		<link>http://blog.blackhc.net/2008/02/final-java-homework-at-uni/</link>
		<comments>http://blog.blackhc.net/2008/02/final-java-homework-at-uni/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 22:44:58 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Game Projects]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/?p=88</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2008/02/final-java-homework-at-uni/" title="Final Java Homework at uni."></a>This is the final Java homework in our Java introductory course at university. Enjoy Click here to play the game Greetings, Black]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2008/02/final-java-homework-at-uni/" title="Final Java Homework at uni."></a><p>This is the final Java homework in our Java introductory course at university. Enjoy <img src='http://blog.blackhc.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
<a href="http://www.icculus.org/~black/stuff/MineSweeper.html">Click here to play the game</a><br />
Greetings,<br />
Black</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2008/02/final-java-homework-at-uni/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>xkcd \o/</title>
		<link>http://blog.blackhc.net/2007/12/xkcd-o/</link>
		<comments>http://blog.blackhc.net/2007/12/xkcd-o/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 11:48:42 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Personal Rantings]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/2007/12/07/xkcd-o/</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2007/12/xkcd-o/" title="xkcd \o/"></a>Today I was waiting for the care-taker to arrive and take a look at some installation issues and while I was waiting I decided to browse a bit around in xkcd. And well... there are a few links that might &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2007/12/xkcd-o/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2007/12/xkcd-o/" title="xkcd \o/"></a><p><img src="http://imgs.xkcd.com/comics/just_alerting_you.jpg" align="right" height="208" hspace="10" vspace="10" />Today I was waiting for the care-taker to arrive and take a look at some installation issues and while I was waiting I decided to browse a bit around in xkcd. And well... there are a few links that might worth sharing - <em>and I'm not going to link <a href="http://xkcd.com/231" title="Cat Proxmity \o/" target="_blank"><strong>Cat Proximity</strong></a> again this time!</em></p>
<p>And here are the other ones that I've found interesting while randomly browsing through the archive:</p>
<ul>
<li><a href="http://xkcd.com/167/">Nihilism</a></li>
<li><a href="http://xkcd.com/306/">Orphaned Projects</a></li>
<li><a href="http://xkcd.com/65/">Banter</a></li>
<li><a href="http://xkcd.com/83/">Katamari</a></li>
<li><a href="http://xkcd.com/15/">Just Alerting You (the one I've directly linked above)</a></li>
</ul>
<p>So enough of that, there's more work to be done!</p>
<p>Cheers,<br />
Black</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2007/12/xkcd-o/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I have a problem that I cannot explain - I have no reason why it should have been so plain...</title>
		<link>http://blog.blackhc.net/2007/12/i-have-a-problem/</link>
		<comments>http://blog.blackhc.net/2007/12/i-have-a-problem/#comments</comments>
		<pubDate>Thu, 06 Dec 2007 22:32:25 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Personal Rantings]]></category>
		<category><![CDATA[Binomial Coefficient]]></category>
		<category><![CDATA[Math Problem]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/2007/12/07/i-have-a-problem-that-i-cannot-explain-i-have-no-reason-why-it-should-have-been-so-plain/</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2007/12/i-have-a-problem/" title="I have a problem that I cannot explain - I have no reason why it should have been so plain..."></a>I have a problem and a solution, but the problem is nice, so lemme tell you about it first.. The problem is as follows: We have got 31 tracks and 10 trains, Each train is so big, that between two &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2007/12/i-have-a-problem/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2007/12/i-have-a-problem/" title="I have a problem that I cannot explain - I have no reason why it should have been so plain..."></a><p><img src="http://www.trains.com/trn/objects/images/mattvhyard-400%5B1%5D.jpg" alt="Hump yard (copyright: trains.com)" align="right" height="96" hspace="10" vspace="10" width="300" />I have a problem and a solution, but the problem is nice, so lemme tell you about it first..<br />
The problem is as follows:</p>
<p>We have got <em><strong>31 </strong></em>tracks and <em><strong>10 </strong></em>trains, Each train is so big, that between two there needs to be at least one free track.<br />
Now, how many valid combinations do exist to place the 10 trains on the 31 tracks?</p>
<p>Read on  if you think that you have got the solution and want to compare it with mine (no guarantee that I've got it right though..)<br />
<span id="more-72"></span><strong>My solution:</strong><br />
A valid combination needs to have the remaining <strong>31 - 10 = 2</strong>1 tracks (after the trains have been placed) distributed between the trains in such a way, that there is at least one (free) track between two trains.</p>
<p>If <strong><em>s_0, ..., s_10</em></strong> represent the number of free tracks between two trains, respectively for <strong><em>s_0</em></strong> and <strong><em>s_10</em></strong> between the outer most trains and the outside world, then <em><strong>s_0, s_10</strong><strong> &gt;= 0</strong></em> and <strong><em>s_1, ... ,s_9 &gt;= 1</em></strong> (for a valid combination).<br />
Now we can add two tracks left and right that may not be used, so that we can then require<em> <strong>s_0,  s_10 &gt;= 1</strong></em>, too. That is <em><strong>21+2=23</strong></em> tracks distributed on <strong><em>11 </em></strong>(s_0 to s_10) numbers, and each needs to be <strong><em>&gt;= 1</em></strong>.</p>
<p>Have you heard of <strong><em>ordered number partitions</em></strong>? An ordered number partition is a partition of a (natural) number <strong><em>n </em></strong>into <strong><em>k</em></strong> (natural) numbers, so that the sum of those k numbers is equal to n, and because natural numbers are greater 0, all numbers have to be at least 1.</p>
<p>If you want to determine the count of possible partitions, you can imagine it as sum of n 1s: 1 + 1 + 1 + 1 + ... + 1<br />
That is: <em>n</em> <strong>1</strong>s and n-1 <em><strong>'+</strong></em>' signs. We can now group the sum into k sub-sums by selecting <strong><em>k - 1 </em></strong>+ signs and separate the sum into sub-sums at that position. E.g.:<br />
1 + 1 + 1 + 1 + 1 + 1  divided in 3 sub-sums: <strong>( 1 + 1 + 1 ) + 1 </strong>+<strong> ( 1 + 1 )</strong></p>
<p>The number of selecting <em><strong>k - 1</strong></em> + signs out of <em><strong>n - 1</strong></em> is simply the binomial coefficient of <em><strong>\binom {n - 1}  {k - 1}</strong></em>!</p>
<p>So with our numbers we get: <em><strong>\binom {23-1} {11-1} = \binom 22 10 = 646646 </strong></em></p>
<p>\o/<em><strong><br />
</strong></em></p>
<p>Excellent work, soldier!</p>
<p>Cheers,<br />
Black</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2007/12/i-have-a-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puzzle Piece #1</title>
		<link>http://blog.blackhc.net/2007/11/puzzle-piece-1/</link>
		<comments>http://blog.blackhc.net/2007/11/puzzle-piece-1/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 16:15:28 +0000</pubDate>
		<dc:creator>BlackHC</dc:creator>
				<category><![CDATA[Check This Out!]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Game Projects]]></category>
		<category><![CDATA[Nexuiz]]></category>
		<category><![CDATA[Darkplaces Gecko Tabletop]]></category>

		<guid isPermaLink="false">http://blackhc.wordpress.com/2007/11/28/puzzle-piece-1/</guid>
		<description><![CDATA[<a href="http://blog.blackhc.net/2007/11/puzzle-piece-1/" title="Puzzle Piece #1"></a>Ok, lately I didn't have enough time to update this blog and right now I'm still busy with uni and other stuff. What I refer to with "other stuff" is for example: or: http://vpod.tv/loiclemeur/135867 BTW does anyone want Torque support &#8230;<p class="read-more"><a href="http://blog.blackhc.net/2007/11/puzzle-piece-1/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.blackhc.net/2007/11/puzzle-piece-1/" title="Puzzle Piece #1"></a><p>Ok, lately I didn't have enough time to update this blog and right now I'm still busy with uni and other stuff.  What I refer to with "other stuff" is for example:</p>
<p><img src="http://icculus.org/~black/stuff/geckodp2.jpg" alt="One of the first screenshots with Gecko support in Darkplaces." align="middle" height="480" hspace="10" vspace="10" width="640" /></p>
<p>or:</p>
<p><a href="http://vpod.tv/loiclemeur/135867" title="Jeff Han's Tabletop" target="_blank">http://vpod.tv/loiclemeur/135867</a></p>
<p>BTW does anyone want Torque support for Gecko, too? <img src='http://blog.blackhc.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<address>Anyway, more updates soon (hopefull). </address>
<p>Cheers,<br />
Black</p>
<p><a href="http://vpod.tv/loiclemeur/135867/flash/videoPlayer" title="Click here to block this object with Adblock Plus" class="abp-objtab-04199683809315009 visible ontop"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.blackhc.net/2007/11/puzzle-piece-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

