<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Me, Myself and I</title>
	<atom:link href="http://icebreaker.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://icebreaker.wordpress.com</link>
	<description>I love what I do because I do what I love.</description>
	<pubDate>Sat, 24 May 2008 07:32:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Last Post &#8230; R.I.P</title>
		<link>http://icebreaker.wordpress.com/2008/05/24/last-post-rip/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/24/last-post-rip/#comments</comments>
		<pubDate>Sat, 24 May 2008 07:10:28 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=217</guid>
		<description><![CDATA[This is most probably my last post over here. All the posts have been copied to Szabster.net where I host my own WordPress, but I&#8217;ll leave everything here because I have some popular posts very very well ranked in Google.
So, update your bookmarks and subscribe to that one as well 
     [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is most probably my last post over here. All the posts have been copied to <a title="Go, Go!" href="http://www.szabster.net" target="_self">Szabster.net</a> where I host my own WordPress, but I&#8217;ll leave everything here because I have some popular posts very very well ranked in Google.</p>
<p>So, update your bookmarks and subscribe to that one as well <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/217/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/217/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=217&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/24/last-post-rip/feed/</wfw:commentRss>
		</item>
		<item>
		<title>18+</title>
		<link>http://icebreaker.wordpress.com/2008/05/23/18/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/23/18/#comments</comments>
		<pubDate>Fri, 23 May 2008 12:12:37 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=215</guid>
		<description><![CDATA[
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignnone size-full wp-image-216" src="http://icebreaker.files.wordpress.com/2008/05/barbiefrombehind.jpg?w=400&#038;h=533" alt="" width="400" height="533" /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/215/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/215/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=215&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/23/18/feed/</wfw:commentRss>
	
		<media:content url="http://icebreaker.files.wordpress.com/2008/05/barbiefrombehind.jpg" medium="image" />
	</item>
		<item>
		<title>Logging &#38; Filters &#8230; etc</title>
		<link>http://icebreaker.wordpress.com/2008/05/21/logging-filters-etc/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/21/logging-filters-etc/#comments</comments>
		<pubDate>Wed, 21 May 2008 19:31:01 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[c++]]></category>

		<category><![CDATA[console]]></category>

		<category><![CDATA[filters]]></category>

		<category><![CDATA[log]]></category>

		<category><![CDATA[log levels]]></category>

		<category><![CDATA[logging]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=214</guid>
		<description><![CDATA[I think that is extremely beneficial for every desktop application having an flexible yet powerful logging system.
This can &#8220;log&#8221; to a file, to a console (internal or not) or both. Anyway, the most important thing are the different log levels, and filters.
Let&#8217;s say that we have Text, Info, Warning, Error &#8230; each represents an level. [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I think that is extremely beneficial for every desktop application having an flexible yet powerful logging system.</p>
<p>This can &#8220;log&#8221; to a file, to a console (internal or not) or both. Anyway, the most important thing are the different log levels, and filters.</p>
<p>Let&#8217;s say that we have Text, Info, Warning, Error &#8230; each represents an level. Then we can setup a filter to &#8220;show&#8221; only the Warnings, or the Errors supressing all the other messages. This is extremly useful if you have bunch messages showing up in your log file / console.</p>
<p>Now let&#8217;s see some code <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre name="code" class="cpp">

#define SAFE_ARRAY_DELETE(x) if(x) {delete [] x; x=NULL;}

#define INRANGE(x,min,max) ( (x &gt;= min) &amp;&amp; (x &lt; max) )

namespace Log
{
    const int Text        = 0;
    const int Info         = 1;
    const int Warning   = 2;
    const int Error       = 3;
       
    // used only by the filtering
    const int Any        = 4;

};

static int g_logFilter = Log::Any;

void setConsoleLogFilter( const int logFilter )
{
    if( INRANGE(logFilter,0,5) )
    {
        g_logFilter = logFilter;
        return;
    }
    g_logFilter = Log::Any;
}
 
void consoleLog( const int logLevel, const char *msg, ... )
{
    va_list ap;

    // is filtering turned on?
    if( g_logFilter != Log::Any &amp;&amp; g_logFilter != logLevel )
    {
        return;
    }

    char *text = new char[ 2048 ];
    assert( text );
 
    memset(text,0,sizeof(text));
 
    va_start(ap, msg);
        vsprintf(text, msg, ap);
    va_end(ap);
 
    switch( logLevel )
    {
        case Log::Info:
            printf( &quot;INFO: %s\n&quot;, text );               
            break;

        case Log::Warning:
            printf( &quot;WARNING: %s\n&quot;, text );               
            break;
       
        case Log::Error:
            printf( &quot;ERROR: %s\n&quot;, text );               
            break;
           
        default:
            printf( &quot;%s\n&quot;, text );               
            break;
    }

    SAFE_ARRAY_DELETE( text );
}
</pre>
<p>This is very very straightforward &#8230; it&#8217;s C++, but it can be adapted to C, by replacing the memory managment stuff &#8230; new with malloc, delete [] with free <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> and moving out the constants into an enum <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It works out great for me, and I use something very very similar to this on a day to day basis <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Happy coding!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/214/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/214/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=214&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/21/logging-filters-etc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Spread Linux with a chick</title>
		<link>http://icebreaker.wordpress.com/2008/05/20/spread-linux-with-a-chick/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/20/spread-linux-with-a-chick/#comments</comments>
		<pubDate>Tue, 20 May 2008 18:23:19 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Chick]]></category>

		<category><![CDATA[Free]]></category>

		<category><![CDATA[gnu]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[open]]></category>

		<category><![CDATA[source]]></category>

		<category><![CDATA[spread]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=212</guid>
		<description><![CDATA[Original source here .
Hey, you! Why don’t you try Ubuntu?

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Original source <a title="Click and go! Wohooo!" href="http://florchakh.com/2007/08/15/ubuntu-girl-spread-the-linux-with-a-chick.html" target="_self">here</a> .</p>
<p style="text-align:left;"><strong>Hey, you! Why don’t you try Ubuntu?</strong></p>
<p><a href="http://www.ubuntu.com"><img class="alignnone size-full wp-image-213 alignleft" style="float:left;" src="http://icebreaker.files.wordpress.com/2008/05/ubuntu-girl.jpg?w=498&#038;h=863" alt="Ubuntu Girl" width="498" height="863" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/212/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/212/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=212&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/20/spread-linux-with-a-chick/feed/</wfw:commentRss>
	
		<media:content url="http://icebreaker.files.wordpress.com/2008/05/ubuntu-girl.jpg" medium="image">
			<media:title type="html">Ubuntu Girl</media:title>
		</media:content>
	</item>
		<item>
		<title>Test post right from Google Docs :))</title>
		<link>http://icebreaker.wordpress.com/2008/05/14/test-post-right-from-google-docs/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/14/test-post-right-from-google-docs/#comments</comments>
		<pubDate>Wed, 14 May 2008 10:29:48 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/2008/05/14/test-post-right-from-google-docs/</guid>
		<description><![CDATA[Test post right from Google Docs :))
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Test post right from Google Docs :))</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/211/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/211/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/211/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/211/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/211/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=211&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/14/test-post-right-from-google-docs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Random Tech Blah Blah &#8230;</title>
		<link>http://icebreaker.wordpress.com/2008/05/12/random-tech-blah-blah/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/12/random-tech-blah-blah/#comments</comments>
		<pubDate>Mon, 12 May 2008 04:39:59 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=210</guid>
		<description><![CDATA[There are quite a few tutorials/howtos on how to install LAMP + WordPress locally on your Ubuntu box so I won&#8217;t go into any that, I just want to point out a few things I consider very important.
First of all my apache listen only on 127.0.0.1:80, so this way you can be sure that it [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are quite a few tutorials/howtos on how to install LAMP + WordPress locally on your Ubuntu box so I won&#8217;t go into any that, I just want to point out a few things I consider very important.</p>
<p>First of all my apache listen only on 127.0.0.1:80, so this way you can be sure that it is available only on the localhost. MySQL will already listen on localhost only by default so you won&#8217;t need to touch that.</p>
<p>Make sure that you install phpMyAdmin. Believe me it&#8217;s much better than struggling with the command line tool.</p>
<p>You can use the root MySQL user for your WordPress, no need to create another one &#8230; LoL you are on localhost.</p>
<p>Make sure that you make the &#8220;wp-content/upload&#8221; directory writable, so you can upload/modify stuff, all you could just make the whole /var/www/wordpress .</p>
<p>Installing WordPress locally has tons of benefits, because you can test out plugins, write new stuff, etc without messing with your *real life* installation, which is pretty cool.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/210/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/210/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=210&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/12/random-tech-blah-blah/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Automatic Build number incrementation</title>
		<link>http://icebreaker.wordpress.com/2008/05/10/automatic-build-number-incrementation/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/10/automatic-build-number-incrementation/#comments</comments>
		<pubDate>Sat, 10 May 2008 08:20:07 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[automatic]]></category>

		<category><![CDATA[build]]></category>

		<category><![CDATA[gcc]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[make]]></category>

		<category><![CDATA[makefile]]></category>

		<category><![CDATA[number]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=209</guid>
		<description><![CDATA[Automatic build number incrementation always was a hot topic especially under Linux. My solution is fairly simple to implement, so let&#8217;s see some &#8220;code&#8221; right away:


#!/bin/bash

echo Fetching and updating build number ...

cat Core/Build.cpp &#124; \
awk &#039;{ printf(&#34;unsigned int g_internalbuildNumber = %d ;\n&#34; \
,$5+1); }&#039; &#62; Core/_Build.cpp

rm Core/Build.cpp
mv Core/_Build.cpp Core/Build.cpp

This is a nice little bash script, [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Automatic build number incrementation always was a <em>hot topic</em> especially under Linux. My solution is fairly simple to implement, so let&#8217;s see some &#8220;code&#8221; right away:</p>
<pre name="code" class="php">

#!/bin/bash

echo Fetching and updating build number ...

cat Core/Build.cpp | \
awk &#039;{ printf(&quot;unsigned int g_internalbuildNumber = %d ;\n&quot; \
,$5+1); }&#039; &gt; Core/_Build.cpp

rm Core/Build.cpp
mv Core/_Build.cpp Core/Build.cpp
</pre>
<p>This is a nice little bash script, but you already knew that, what it does? Well it reads in the previous build number and writes it back after incrementing it with 1.</p>
<p>The initial &#8220;Build.cpp&#8221; must contain the line:</p>
<p><strong>unsigned int g_internalbuildNumber = 0 ;</strong></p>
<p>&#8230; please notice the spacing because it is very very important, since awk parses the tokens based on the spaces.</p>
<p>Now make this script to be executed as the first thing inside your makefile, and make sure that the &#8220;Build.cpp&#8221; is compiled and linked with your executable, shared object or whatever.</p>
<p>To access the build number from within the code, you just have to do an &#8220;<em>extern unsigned int g_internalbuildNumber;</em>&#8221; and there you go, nothing fancy but still cool <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Maybe it&#8217;s not the most elegant solution, but hey &#8230; it works for me and that&#8217;s all what matters <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/209/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/209/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=209&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/10/automatic-build-number-incrementation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nvidia PhysX</title>
		<link>http://icebreaker.wordpress.com/2008/05/08/nvidia-physx/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/08/nvidia-physx/#comments</comments>
		<pubDate>Thu, 08 May 2008 19:44:53 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[ageia]]></category>

		<category><![CDATA[Games]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[nvidia]]></category>

		<category><![CDATA[physics]]></category>

		<category><![CDATA[physx]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[sdk]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=206</guid>
		<description><![CDATA[Nvidia PhysX formerly known as Ageia PhysX is an excellent physics engine which can benefit from hardware acceleration if you have an &#8220;PhysX&#8221; card in your machine, but it does well in &#8220;software&#8221; mode too.

On Windows the installation is pretty straightforward so I won&#8217;t go into that, but on Linux you have to do a [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Nvidia PhysX formerly known as Ageia PhysX is an excellent physics engine which can benefit from hardware acceleration if you have an &#8220;PhysX&#8221; card in your machine, but it does well in &#8220;software&#8221; mode too.</p>
<p><img class="alignnone size-full wp-image-207 alignleft" style="float:left;" src="http://icebreaker.files.wordpress.com/2008/05/ageia.png?w=250&#038;h=208" alt="" width="250" height="208" /></p>
<p>On Windows the installation is pretty straightforward so I won&#8217;t go into that, but on Linux you have to do a little hand work after to get it work.</p>
<p>So first I grabbed the <em>PhysX_2.8.1_SDK_CoreLinux_deb.tar.gz</em> file from <a title="Download it here!" href="http://developer.nvidia.com/object/physx_downloads.html" target="_blank">here</a> .</p>
<p>After un-tarring the package, i got a &#8220;few&#8221; debian packages. Well now the &#8220;installation&#8221; order counts so the best is to give a command like inside the folder where you extracted the debs:</p>
<p><em><strong>sudo dpkg -i *.deb</strong></em></p>
<p>Once that is done, you will see that you are not able to run any of those samples included, because it cannot find the shared libraries (at least not under Ubuntu).</p>
<p>It installs the shared objects to <em>/usr/lib/PhysX/v2.8.1/</em> so we need to do three symbolic links to /usr/lib in order to make this work.</p>
<p><em><strong>sudo ln -s /usr/lib/PhysX/v2.8.1/libNxCharacter.so.1 /usr/lib/libNxCharacter.so.1</strong></em></p>
<p><em><strong>sudo ln -s /usr/lib/PhysX/v2.8.1/libNxCooking.so.1 /usr/lib/libNxCooking.so.1</strong></em></p>
<p><em><strong>sudo ln -s /usr/lib/PhysX/v2.8.1/libPhysXCore.so.1 /usr/lib/libPhysXCore.so.1</strong></em></p>
<p>With this done we can check out the installed samples in <em>/usr/sbin/PhysX_Samples_2.8.1_FC4/Bin/linux</em> &#8230;</p>
<p>Well this is it &#8230; and Happy Coding <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/206/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/206/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/206/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/206/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/206/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=206&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/08/nvidia-physx/feed/</wfw:commentRss>
	
		<media:content url="http://icebreaker.files.wordpress.com/2008/05/ageia.png" medium="image" />
	</item>
		<item>
		<title>GPU Gems</title>
		<link>http://icebreaker.wordpress.com/2008/05/08/gpu-gems/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/08/gpu-gems/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:31:39 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[book]]></category>

		<category><![CDATA[ebook]]></category>

		<category><![CDATA[Free]]></category>

		<category><![CDATA[gems]]></category>

		<category><![CDATA[gpu]]></category>

		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=203</guid>
		<description><![CDATA[The excellent GPU Gems is now available for free in HTML format at the NVIDIA Developer Zone. This book is a must for every single n00b or pro who is into making 3D demos, games, etc.
This is still a valuable resource, and there are some really cool techniques presented in there.
Go and read it right [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:left;"><a href="http://icebreaker.files.wordpress.com/2008/05/cover_2.png"><img class="alignnone size-full wp-image-205 alignleft" style="float:left;" src="http://icebreaker.files.wordpress.com/2008/05/cover_2.png?w=214&#038;h=268" alt="" width="214" height="268" /></a>The excellent GPU Gems is now available for free in HTML format at the NVIDIA Developer Zone. This book is a must for every single n00b or pro who is into making 3D demos, games, etc.</p>
<p style="text-align:left;">This is still a valuable resource, and there are some really cool techniques presented in there.</p>
<p>Go and read it right now by clicking <a title=")" href="http://developer.nvidia.com/object/gpu_gems_home.html" target="_blank">here</a> .</p>
<p>Folks, happy reading!</p>
<p>(Maybe, I&#8217;m a bit late, but hey &#8230; nobody&#8217;s perfect &#8230; ha!)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/203/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/203/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=203&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/08/gpu-gems/feed/</wfw:commentRss>
	
		<media:content url="http://icebreaker.files.wordpress.com/2008/05/cover_2.png" medium="image" />
	</item>
		<item>
		<title>Bump &#8230; bump</title>
		<link>http://icebreaker.wordpress.com/2008/05/07/bump-bump/</link>
		<comments>http://icebreaker.wordpress.com/2008/05/07/bump-bump/#comments</comments>
		<pubDate>Wed, 07 May 2008 20:08:24 +0000</pubDate>
		<dc:creator>icebreaker</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[russia]]></category>

		<category><![CDATA[st. petersburg]]></category>

		<category><![CDATA[trip]]></category>

		<guid isPermaLink="false">http://icebreaker.wordpress.com/?p=202</guid>
		<description><![CDATA[My fiancee takes a trip to St. Petersburg tomorrow &#8230; Yay!
PS: Valerie will kill me for this 
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My fiancee takes a trip to St. Petersburg tomorrow &#8230; Yay!</p>
<p>PS: Valerie will kill me for this <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/icebreaker.wordpress.com/202/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/icebreaker.wordpress.com/202/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/icebreaker.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/icebreaker.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/icebreaker.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/icebreaker.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/icebreaker.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/icebreaker.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/icebreaker.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/icebreaker.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/icebreaker.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/icebreaker.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=icebreaker.wordpress.com&blog=204137&post=202&subd=icebreaker&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://icebreaker.wordpress.com/2008/05/07/bump-bump/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>