<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Daniel&#039;s Games Programming Blog</title>
	<atom:link href="http://danielbeard.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielbeard.wordpress.com</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 02:49:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='danielbeard.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Daniel&#039;s Games Programming Blog</title>
		<link>http://danielbeard.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://danielbeard.wordpress.com/osd.xml" title="Daniel&#039;s Games Programming Blog" />
	<atom:link rel='hub' href='http://danielbeard.wordpress.com/?pushpress=hub'/>
		<item>
		<title>DStarLite Java Pathfinding</title>
		<link>http://danielbeard.wordpress.com/2011/08/09/dstarlite-java-pathfinding/</link>
		<comments>http://danielbeard.wordpress.com/2011/08/09/dstarlite-java-pathfinding/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 12:15:16 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Games Development]]></category>
		<category><![CDATA[General Dev]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[d*]]></category>
		<category><![CDATA[dstar]]></category>
		<category><![CDATA[dstarlite]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[pathfinding]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=231</guid>
		<description><![CDATA[D* Lite is an incremental heuristic search algorithm that is used by agents (game ai, or robots) where the surrounding terrain is not completely known. The algorithm makes assumptions about the unknown terrain. D*Lite finds the shortest route from the start to the goal position, and as it encounters new obstacles these are taken into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=231&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>D* Lite is an incremental heuristic search algorithm that is used by agents (game ai, or robots) where the surrounding terrain is not completely known. The algorithm makes assumptions about the unknown terrain. D*Lite finds the shortest route from the start to the goal position, and as it encounters new obstacles these are taken into account and only part of the path is modified. Alternatively, pathfinding algorithms like A* typically have to replan the entire path when the environment changes.</p>
<p>D* Lite was developed by Sven Koenig in 2002 is based on the LPA* algorithm. I needed a suitable, computationally efficient algorithm for pathfinding in my current project and couldn&#8217;t find any java versions of the D*Lite algorithm that would have suited my purpose. My version is a standalone java version of D*Lite based on an existing C++ implementation.</p>
<p>This implementation is based on the original research paper <a href="http://idm-lab.org/bib/abstracts/Koen02e.html">http://idm-lab.org/bib/abstracts/Koen02e.html</a> and also based on the c++ version located here: <a href="http://code.google.com/p/dstarlite/">http://code.google.com/p/dstarlite/</a></p>
<p>For further reading check out the wikipedia article: <a href="http://en.wikipedia.org/wiki/D*">Here</a><br />
Sven Koenig&#8217;s personal page: <a href="http://idm-lab.org/project-a.html">Here</a><br />
There is also an applet to help understand the algorithm: <a href="http://homepages.dcc.ufmg.br/~lhrios/applet_d_lite/index.html">Here </a></p>
<p><strong>Download my Java version of the algorithm</strong>: <a href="http://dl.dropbox.com/u/5387570/Blog/DStarLiteJava.zip">Here</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=231&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2011/08/09/dstarlite-java-pathfinding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>
	</item>
		<item>
		<title>Detaching a running process from a bash shell</title>
		<link>http://danielbeard.wordpress.com/2011/06/08/detaching-a-running-process-from-a-bash-shell/</link>
		<comments>http://danielbeard.wordpress.com/2011/06/08/detaching-a-running-process-from-a-bash-shell/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 13:09:44 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Linux / Unix Stuff]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[disown]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nohup]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[SIGHUP]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=225</guid>
		<description><![CDATA[When I run a command on a machine that I am ssh&#8217;ed into, most of the time I want to kill the connection but have the command continue to execute. There are several ways to detach a process from the current shell: The first is to start the process with: nohup command &#38; However, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=225&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When I run a command on a machine that I am ssh&#8217;ed into, most of the time I want to kill the connection but have the command continue to execute.</p>
<p>There are several ways to detach a process from the current shell:</p>
<p>The first is to start the process with:</p>
<pre>nohup command &amp;</pre>
<p>However, I usually start a command and forget to detach it initially. An easy way to detach a currently running process from a shell is like this:</p>
<pre>Ctrl-Z
bg
disown %1</pre>
<p>These methods daemonise a running process and make the process ignore the SIGHUP command so that when you close you shell or ssh connection, the command continues to run. For more information check out the man pages for <a href="http://ss64.com/osx/disown.html">disown</a> and <a href="http://ss64.com/osx/nohup.html">nohup</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=225&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2011/06/08/detaching-a-running-process-from-a-bash-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Box2D Physics Working in Xcode</title>
		<link>http://danielbeard.wordpress.com/2011/06/08/getting-box2d-physics-working-in-xcode/</link>
		<comments>http://danielbeard.wordpress.com/2011/06/08/getting-box2d-physics-working-in-xcode/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 10:56:17 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[General Dev]]></category>
		<category><![CDATA[box2d]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[darwinports]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=216</guid>
		<description><![CDATA[Here is an easy way to get up and running with Box2D in Xcode 3.2. I recently had to install Box2D and thought I might share my method for installing and creating an example Xcode project. First, If you haven&#8217;t already got it, download MacPorts from this website as this makes installing libraries a breeze [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=216&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is an easy way to get up and running with Box2D in Xcode 3.2. I recently had to install Box2D and thought I might share my method for installing and creating an example Xcode project.</p>
<p>First, If you haven&#8217;t already got it, download MacPorts from this website as this makes installing libraries a breeze - <a href="http://www.macports.org/">http://www.macports.org/</a></p>
<p>Next, open up a terminal and type &#8220;sudo port install box2d&#8221;<br />
This command downloads and starts to install the box2d libraries. The default installation places the library files in /opt/local/lib and the header files in /opt/local/include.</p>
<p>Once the install has finished, open up a new Xcode project and choose Application &gt; Command Line Tool &gt; c++ stdc++</p>
<p><a href="http://danielbeard.files.wordpress.com/2011/06/newproject.png"><img class="aligncenter size-medium wp-image-218" title="NewProject" src="http://danielbeard.files.wordpress.com/2011/06/newproject.png?w=300&#038;h=233" alt="" width="300" height="233" /></a></p>
<p>Next, we are going to add the include and header search paths. In the top menu click Project -&gt; Edit Active Target -&gt; Build and under the search paths heading change the header search path to /opt/local/include and the library search path to /opt/local/lib. Note: DON&#8217;T set the recursive checkbox to true. I had problems with this, so it&#8217;s probably best to avoid it.</p>
<p><a href="http://danielbeard.files.wordpress.com/2011/06/searchpaths.png"><img class="aligncenter size-medium wp-image-219" title="searchpaths" src="http://danielbeard.files.wordpress.com/2011/06/searchpaths.png?w=300&#038;h=187" alt="" width="300" height="187" /></a></p>
<p>In the same window, click on the General tab and add a file to the &#8220;Linked Libraries&#8221; Click &#8220;add other&#8221; and navigate to /opt/local/lib/libBox2D.a</p>
<p>Finally, add the hello world source (this is from the original distribution)</p>
<p><pre class="brush: csharp;">

/*
* Copyright (c) 2006-2007 Erin Catto &lt;a href=&quot;http://www.gphysics.com&quot;&gt;http://www.gphysics.com
&lt;/a&gt;*
* This software is provided 'as-is', without any express or implied
* warranty.  In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/

#include &lt;Box2D/Box2D.h&gt;
#include &lt;cstdio&gt;

// This is a simple example of building and running a simulation
// using Box2D. Here we create a large ground box and a small dynamic
// box.
// There are no graphics for this example. Box2D is meant to be used
// with your rendering engine in your game engine.

int main(int argc, char** argv)
{
B2_NOT_USED(argc);
B2_NOT_USED(argv);

// Define the gravity vector.
b2Vec2 gravity(0.0f, -10.0f);

// Do we want to let bodies sleep?
bool doSleep = true;

// Construct a world object, which will hold and simulate the rigid bodies.
b2World world(gravity, doSleep);

// Define the ground body.
b2BodyDef groundBodyDef;
groundBodyDef.position.Set(0.0f, -10.0f);

// Call the body factory which allocates memory for the ground body
// from a pool and creates the ground box shape (also from a pool).
// The body is also added to the world.
b2Body* groundBody = world.CreateBody(&amp;groundBodyDef);

// Define the ground box shape.
b2PolygonShape groundBox;

// The extents are the half-widths of the box.
groundBox.SetAsBox(50.0f, 10.0f);

// Add the ground fixture to the ground body.
groundBody-&gt;CreateFixture(&amp;groundBox, 0.0f);

// Define the dynamic body. We set its position and call the body factory.
b2BodyDef bodyDef;
bodyDef.type = b2_dynamicBody;
bodyDef.position.Set(0.0f, 4.0f);
b2Body* body = world.CreateBody(&amp;bodyDef);

// Define another box shape for our dynamic body.
b2PolygonShape dynamicBox;
dynamicBox.SetAsBox(1.0f, 1.0f);

// Define the dynamic body fixture.
b2FixtureDef fixtureDef;
fixtureDef.shape = &amp;dynamicBox;

// Set the box density to be non-zero, so it will be dynamic.
fixtureDef.density = 1.0f;

// Override the default friction.
fixtureDef.friction = 0.3f;

// Add the shape to the body.
body-&gt;CreateFixture(&amp;fixtureDef);

// Prepare for simulation. Typically we use a time step of 1/60 of a
// second (60Hz) and 10 iterations. This provides a high quality simulation
// in most game scenarios.
float32 timeStep = 1.0f / 60.0f;
int32 velocityIterations = 6;
int32 positionIterations = 2;

// This is our little game loop.
for (int32 i = 0; i &lt; 60; ++i)
{
// Instruct the world to perform a single step of simulation.
// It is generally best to keep the time step and iterations fixed.
world.Step(timeStep, velocityIterations, positionIterations);

// Clear applied body forces. We didn't apply any forces, but you
// should know about this function.
world.ClearForces();

// Now print the position and angle of the body.
b2Vec2 position = body-&gt;GetPosition();
float32 angle = body-&gt;GetAngle();

printf(&quot;%4.2f %4.2f %4.2f\n&quot;, position.x, position.y, angle);
}

// When the world destructor is called, all bodies and joints are freed. This can
// create orphaned pointers, so be careful about your world management.

return 0;
}

</pre></p>
<p>That&#8217;s it! Compile and have fun! Check out the box2d project on google code for other examples and documentation - <a href="http://code.google.com/p/box2d/">http://code.google.com/p/box2d/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=216&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2011/06/08/getting-box2d-physics-working-in-xcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2011/06/newproject.png?w=300" medium="image">
			<media:title type="html">NewProject</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2011/06/searchpaths.png?w=300" medium="image">
			<media:title type="html">searchpaths</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple Image Saving code c++</title>
		<link>http://danielbeard.wordpress.com/2011/06/06/image-saving-code-c/</link>
		<comments>http://danielbeard.wordpress.com/2011/06/06/image-saving-code-c/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 05:05:26 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[General Dev]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[file format]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image library]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[targa]]></category>
		<category><![CDATA[tga]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=205</guid>
		<description><![CDATA[A major annoyance for me is saving images from c++. I can&#8217;t really find any libraries that I like, they are either too complex for the task or they don&#8217;t do what I want them to do. So I have created my own, extremely lightweight image library. All you need to run this is two [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=205&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A major annoyance for me is saving images from c++. I can&#8217;t really find any libraries that I like, they are either too complex for the task or they don&#8217;t do what I want them to do. So I have created my own, extremely lightweight image library.</p>
<p>All you need to run this is two files, the cpp file and the header. I chose .tga because it is one of the easiest, straightforward formats to save to.</p>
<p>Here is some example code of saving an image with this library:</p>
<p><pre class="brush: csharp;">
#include &quot;Image.h&quot;

int main(int argc, char **argv) {
//declare image
short width = 256;
short height = 256;

TGAImage *img = new TGAImage(width,height);

//declare a temporary color variable
Colour c;

//Loop through image and set all pixels to red
for(int x=0; x&lt;width; x++)
for(int y=0; y&lt;width; y++)
{
c.r = 255;
c.g = 0;
c.b = 0;
c.a = 255;
img-&gt;setPixel(c,x,y);
}

//write the image to disk
string filename = &quot;/Users/daniel/test.tga&quot;;
img-&gt;WriteImage(filename);

return 0;
}
</pre></p>
<p>This outputs a red image like so:<br />
<a href="http://danielbeard.files.wordpress.com/2011/06/test.png"><img class="aligncenter size-full wp-image-209" title="test" src="http://danielbeard.files.wordpress.com/2011/06/test.png?w=600" alt=""   /></a>Anyway, have fun using this in your projects,<br />
Here is the download link for the source: <a href="http://dl.dropbox.com/u/5387570/Blog/ImageSaverCode.zip">Download</a><br />
For more information on the TGA file format visit the following links:<br />
<a href="http://paulbourke.net/dataformats/tga/">http://paulbourke.net/dataformats/tga/ </a><br />
<a href="http://en.wikipedia.org/wiki/Truevision_TGA">http://en.wikipedia.org/wiki/Truevision_TGA</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=205&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2011/06/06/image-saving-code-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2011/06/test.png" medium="image">
			<media:title type="html">test</media:title>
		</media:content>
	</item>
		<item>
		<title>Hardware Instancing with XNA (minecraft style)</title>
		<link>http://danielbeard.wordpress.com/2011/01/16/hardware-instancing-with-xna-minecraft-style/</link>
		<comments>http://danielbeard.wordpress.com/2011/01/16/hardware-instancing-with-xna-minecraft-style/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 07:52:28 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Games Development]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=197</guid>
		<description><![CDATA[Lately I have been really enjoying a game called Minecraft. It&#8217;s an indie game made by one guy, I highly recommend it! I have ported the heightmap generation code in one of my earlier posts to C# and using XNA I have been creating a minecraft style rendering for fun. My first approach was a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=197&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately I have been really enjoying a game called Minecraft. It&#8217;s an indie game made by one guy, I highly recommend it!</p>
<p>I have ported the heightmap generation code in one of my earlier posts to C# and using XNA I have been creating a minecraft style rendering for fun. My first approach was a brute force, render everything test. As you might have guessed, that didn&#8217;t turn out so well when rendering a decent sized terrain. The method I am using now is hardware instancing without any kind of occlusion culling at the moment. I am getting a decent frame rate (about 80fps for 20000 models) for the moment and I am going to continue on improving this method. The example that is linked at the bottom of this article shows how to perform hardware, and shader instancing.</p>
<p>Here&#8217;s a video of it in action:</p>
<span style="text-align:center; display: block;"><a href="http://danielbeard.wordpress.com/2011/01/16/hardware-instancing-with-xna-minecraft-style/"><img src="http://img.youtube.com/vi/iTlSHS_8iiQ/2.jpg" alt="" /></a></span>
<p>Links:</p>
<p><a href="http://minecraft.net">Minecraft</a></p>
<p><a href="http://create.msdn.com/en-US/education/catalog/sample/mesh_instancing">XNA Mesh Instancing</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=197&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2011/01/16/hardware-instancing-with-xna-minecraft-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>
	</item>
		<item>
		<title>Chips Challenge Remake / First Tile Based Game</title>
		<link>http://danielbeard.wordpress.com/2010/11/27/chips-challenge-remake-first-tile-based-game/</link>
		<comments>http://danielbeard.wordpress.com/2010/11/27/chips-challenge-remake-first-tile-based-game/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 03:24:21 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=146</guid>
		<description><![CDATA[I am starting to learn XNA at the moment, so I am doing what everyone does when they learn a new language &#8211; remake their favourite game! I am making a simple remake of the windows version of Chips Challenge using the sprites from the open source clone of the game which can be found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=146&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am starting to learn XNA at the moment, so I am doing what everyone does when they learn a new language &#8211; remake their favourite game! I am making a simple remake of the windows version of Chips Challenge using the sprites from the open source clone of the game which can be found here - <a href="http://www.muppetlabs.com/~breadbox/software/tworld/">http://www.muppetlabs.com/~breadbox/software/tworld/</a> . Although this remake is by no means a full remake or compatible with the original, I am posting the source code so that someone else can learn from this experience. Keep in mind that this is my first game in XNA, so the code is a bit sloppy but it works.</p>
<p>Some of the features that I implemented for this tile based game are level saving and loading, an advanced menu system, power ups, a timer class, event handling and game state management. This remake is a simple one layer approach, as opposed to the original two layer version. I am implementing features as I go along and have finished the first level and I am working on the next levels. Progress might go a bit faster after I create a level editor, because hand coding levels is no fun! The core functionality of this game was completed in a day as a programming challenge that I set myself. The extra features / tiles took an extra day of coding (that I put off for far too long). At the moment, the code is quite messy, there are a few ugly hacks (especially the input detection), but I am working on improving it, adding a full input manager and possibly some enemies that move etc.</p>
<p>In the future I am looking at uploading more games that I can prototype quickly (for programming practice). So look forward to other classic remakes and newer stuff as well.</p>
<p>Here is a screen shot.</p>
<p><a href="http://danielbeard.files.wordpress.com/2010/11/chipsgamescreenshot.png"><img class="aligncenter size-medium wp-image-195" title="chipsgamescreenshot" src="http://danielbeard.files.wordpress.com/2010/11/chipsgamescreenshot.png?w=300&#038;h=179" alt="" width="300" height="179" /></a></p>
<p>For people that are thinking of creating a tile based game, I suggest taking the time to make it work with the Tiled Map Editor level format. The Tiled Map Editor is a quick and easy way for creating tiled based levels (square and isometric). The tiles can have attributes associated with them which makes the code to load and save levels much cleaner. Wish I had used Tiled!</p>
<p>So check out the source code for this game and give it a bit of a play!</p>
<p><a href="http://dl.dropbox.com/u/5387570/ChipsGame.zip">Download Here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=146&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2010/11/27/chips-challenge-remake-first-tile-based-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2010/11/chipsgamescreenshot.png?w=300" medium="image">
			<media:title type="html">chipsgamescreenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Listening for Global Keypresses in OSX.</title>
		<link>http://danielbeard.wordpress.com/2010/10/29/listening-for-global-keypresses-in-osx/</link>
		<comments>http://danielbeard.wordpress.com/2010/10/29/listening-for-global-keypresses-in-osx/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 09:52:53 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[General Dev]]></category>
		<category><![CDATA[OSX Development]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=177</guid>
		<description><![CDATA[While working on some new projects recently, I found it difficult to find any good information about how to listen for global keypresses in OSX using a mix of objective-c++ and c. The following code is the result of several hours of searching and frustration, hopefully it can save someone else the same pain. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=177&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While working on some new projects recently, I found it difficult to find any good information about how to listen for global keypresses in OSX using a mix of objective-c++ and c. The following code is the result of several hours of searching and frustration, hopefully it can save someone else the same pain.</p>
<p><a href="http://danielbeard.files.wordpress.com/2010/10/keyboard.png"><img class="aligncenter size-medium wp-image-183" title="keyboard" src="http://danielbeard.files.wordpress.com/2010/10/keyboard.png?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>The method I used to listen for global keypresses is using Event Taps from the Quartz framework. The user must either run this code as root, or have enabled access for assistive devices.</p>
<pre>#include &lt;ApplicationServices/ApplicationServices.h&gt;
CGEventRef
myCGEventCallback(CGEventTapProxy proxy, CGEventType type,
                  CGEventRef event, void *refcon)
{
    // Paranoid sanity check.
    <span style="color:#0000ff;">if</span> ((type != kCGEventKeyDown) &amp;&amp; (type != kCGEventKeyUp))
        <span style="color:#0000ff;">return</span> event;

    // The incoming keycode.
    CGKeyCode keycode = (CGKeyCode)CGEventGetIntegerValueField(
                                       event, kCGKeyboardEventKeycode);

    //Keypress code goes here.

    // We must return the event for it to be useful.
    <span style="color:#0000ff;">return</span> event;
}

<span style="color:#0000ff;">int</span>
main(void)
{
    CFMachPortRef      eventTap;
    CGEventMask        eventMask;
    CFRunLoopSourceRef runLoopSource;

    // Create an event tap. We are interested in key presses.
    eventMask = ((1 &lt;&lt; kCGEventKeyDown) | (1 &lt;&lt; kCGEventKeyUp));
    eventTap = CGEventTapCreate(kCGSessionEventTap, kCGHeadInsertEventTap, 0,
                                eventMask, myCGEventCallback, NULL);
    <span style="color:#0000ff;">if</span> (!eventTap) {
        fprintf(stderr, "failed to create event tap\n");
        <span style="color:#0000ff;">exit</span>(1);
    }   

    // Create a run loop source.
    runLoopSource = CFMachPortCreateRunLoopSource(
                        kCFAllocatorDefault, eventTap, 0);

    // Add to the current run loop.
    CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource,
                       kCFRunLoopCommonModes);

    // Enable the event tap.
    CGEventTapEnable(eventTap, true);

    // Set it all running.
    CFRunLoopRun();

    <span style="color:#0000ff;">exit</span>(0);
}</pre>
<p>Compile the above code either using Xcode or GCC with the following -</p>
<p>gcc -Wall -o globalkeypress globalkeypress.c -framework ApplicationServices</p>
<p>In the next couple of days I will upload some code that shows how to move the mouse and simulate mouse clicks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=177&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2010/10/29/listening-for-global-keypresses-in-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2010/10/keyboard.png?w=300" medium="image">
			<media:title type="html">keyboard</media:title>
		</media:content>
	</item>
		<item>
		<title>I&#8217;m Famous!</title>
		<link>http://danielbeard.wordpress.com/2010/10/20/im-famous/</link>
		<comments>http://danielbeard.wordpress.com/2010/10/20/im-famous/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 06:27:54 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=173</guid>
		<description><![CDATA[ScienceWA has run a story about my work and my supervisor! First published science magazine article! They also bring up the upcoming planetarium show, so I guess now that it&#8217;s in writing that I should get a move on and finish my parts for it. The show will focus mostly on the creation and evolution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=173&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ScienceWA has run a story about my work and my supervisor! First published science magazine article!</p>
<p>They also bring up the upcoming planetarium show, so I guess now that it&#8217;s in writing that I should get a move on and finish my parts for it. The show will focus mostly on the creation and evolution of the galaxy showing how the hydrogen gas changes shape over time and how dark matter interacts with it. There is also going to be a fly-through of the 6DF galaxies and a 360 degree interview with Alan Duffy. We are trying to get a 3d fly-through of a similar galaxy to this one:</p>
<p><a href="http://danielbeard.files.wordpress.com/2010/10/nasa04.jpg"><img class="aligncenter size-medium wp-image-174" title="nasa04" src="http://danielbeard.files.wordpress.com/2010/10/nasa04.jpg?w=300&#038;h=208" alt="" width="300" height="208" /></a></p>
<p>Check it out here - <a href="http://www.sciencewa.net.au/topics/technology/189-News/3139-the-hitchhikers-guide-to-building-a-galaxy">http://www.sciencewa.net.au/topics/technology/189-News/3139-the-hitchhikers-guide-to-building-a-galaxy</a></p>
<p>I also managed to sneak about five or six pictures of mine into the iVec annual report.</p>
<p>Link is here (15MB PDF) - <a href="https://outlook.com/owa/redir.aspx?C=8d0e1d9673874eb3bbb80df2ecc049b8&amp;URL=http%3a%2f%2fwww.ivec.org%2fAnnualReport%2f2009%2fiVEC_Annual_Report_2009-2010.pdf" target="_blank">http://www.ivec.org/AnnualReport/2009/iVEC_Annual_Report_2009-2010.pdf</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=173&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2010/10/20/im-famous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2010/10/nasa04.jpg?w=300" medium="image">
			<media:title type="html">nasa04</media:title>
		</media:content>
	</item>
		<item>
		<title>GIMIC Simulation with Dark Matter Particles</title>
		<link>http://danielbeard.wordpress.com/2010/09/27/gimic-simulation-with-dark-matter-particles/</link>
		<comments>http://danielbeard.wordpress.com/2010/09/27/gimic-simulation-with-dark-matter-particles/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 03:50:52 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[Astronomy]]></category>
		<category><![CDATA[astronomy]]></category>
		<category><![CDATA[dark matter]]></category>
		<category><![CDATA[drishti]]></category>
		<category><![CDATA[GIMIC]]></category>
		<category><![CDATA[HI gas]]></category>
		<category><![CDATA[particles]]></category>
		<category><![CDATA[SPH]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=168</guid>
		<description><![CDATA[This is the GIMIC simulation with dark matter particles included. The volume shows HI gas and how the dark matter moves and is shaped.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=168&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the GIMIC simulation with dark matter particles included. The volume shows HI gas and how the dark matter moves and is shaped.</p>
<span style="text-align:center; display: block;"><a href="http://danielbeard.wordpress.com/2010/09/27/gimic-simulation-with-dark-matter-particles/"><img src="http://img.youtube.com/vi/rzFBehb9GLQ/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=168&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2010/09/27/gimic-simulation-with-dark-matter-particles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>
	</item>
		<item>
		<title>SideBySide video player</title>
		<link>http://danielbeard.wordpress.com/2010/09/27/sidebyside-video-player/</link>
		<comments>http://danielbeard.wordpress.com/2010/09/27/sidebyside-video-player/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 02:29:31 +0000</pubDate>
		<dc:creator>danielbeard</dc:creator>
				<category><![CDATA[General Dev]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[side by side]]></category>
		<category><![CDATA[two videos]]></category>
		<category><![CDATA[video player]]></category>

		<guid isPermaLink="false">http://danielbeard.wordpress.com/?p=163</guid>
		<description><![CDATA[Often I find the need to play two videos side by side without borders or separate windows. Until now, I have been converting two videos into a single video which takes forever. So I wrote a simple little cocoa OSX app to load up and play two videos side by side. It doesn&#8217;t have heaps [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=163&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Often I find the need to play two videos side by side without borders or separate windows. Until now, I have been converting two videos into a single video which takes forever.</p>
<p>So I wrote a simple little cocoa OSX app to load up and play two videos side by side. It doesn&#8217;t have heaps of features, but it does exactly what I need so I am posting this incase anyone else could use it.</p>
<p>This application uses QTkit to play videos so the file size is tiny. (Only 57KB!)</p>
<p>Here&#8217;s a screenshot:</p>
<p><img class="aligncenter size-medium wp-image-164" title="SideBySide player" src="http://danielbeard.files.wordpress.com/2010/09/sidebyside.png?w=300&#038;h=163" alt="" width="300" height="163" /></p>
<p>I used an icon set from <a href="http://dryicons.com">http://dryicons.com</a> in this application under the free license terms.</p>
<p>Download here: <a href="http://www.divshare.com/download/12662727-93a">http://www.divshare.com/download/12662727-93a</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/danielbeard.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/danielbeard.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/danielbeard.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=danielbeard.wordpress.com&amp;blog=7760776&amp;post=163&amp;subd=danielbeard&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://danielbeard.wordpress.com/2010/09/27/sidebyside-video-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/312cc488d4c1e186cb077855af23fff5?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danielbeard</media:title>
		</media:content>

		<media:content url="http://danielbeard.files.wordpress.com/2010/09/sidebyside.png?w=300" medium="image">
			<media:title type="html">SideBySide player</media:title>
		</media:content>
	</item>
	</channel>
</rss>
