<?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>GATC</title>
	<atom:link href="http://gatc.ca/feed/" rel="self" type="application/rss+xml" />
	<link>http://gatc.ca</link>
	<description>Code of Life</description>
	<lastBuildDate>Wed, 10 Feb 2010 18:58:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='gatc.ca' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/edf85cfbf12d60a51c1c39492d8e61f7?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>GATC</title>
		<link>http://gatc.ca</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gatc.ca/osd.xml" title="GATC" />
	<atom:link rel='hub' href='http://gatc.ca/?pushpress=hub'/>
		<item>
		<title>Interphase Module Demo Pack</title>
		<link>http://gatc.ca/2010/02/05/interphase-module-demo-pack/</link>
		<comments>http://gatc.ca/2010/02/05/interphase-module-demo-pack/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 01:11:52 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=948</guid>
		<description><![CDATA[I created a collection of programs that use my Interphase module to design the interface panel. The programs, packaged together in Interphase Pack, includes Serpent Duel, Pod Descent, and Sliding Control Puzzle. These programs are written in Python programming language and Pygame multimedia module. The source of the programs are provided, and the code can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=948&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">I created a collection of programs that use my <a href="http://gatc.ca/projects/interphase/">Interphase</a> module to design the interface panel. The programs, packaged together in <a href="http://gatc.ca/projects/interphase/#InterphasePack">Interphase Pack</a>, includes Serpent Duel, Pod Descent, and Sliding Control Puzzle. These programs are written in <a href="http://www.python.org/">Python</a> programming language and <a href="http://www.pygame.org/">Pygame</a> multimedia module. The source of the programs are provided, and the code can be examined as an aid in understanding in utilizing the Interphase module specifically, or Python/Pygame programming in general.</span></p>
<p><span style="font-size:1.2em;">The Interphase module was developed to add interface panel functionality to my programs, started initially as the interface for my <a href="http://gatc.ca/projects/microbe/">Microbe</a> program, and expanded with the aim to facilitate coding a simple GUI interface to any Pygame application. To those who may have need for interface panel functionality, I will briefly describe some of the workings of the Interphase module deriving the example from one of the applications in Interphase Pack, Serpent Duel.</span><br />
<span id="more-948"></span></p>
<p><span style="font-size:1.2em;">The Interphase module was used to design an interface panel for Serpent Duel, which has controls for serpent movement and program configuration. I briefly describe some of the functionality of the Interphase module, more detailed information can be found in the Interphase module documentation.</span></p>
<p><span style="font-size:1.2em;">To use the Interphase module, the program requires the following basic code:</span></p>
<pre class="brush: python; light: true;">
import interphase
class Interface(interphase.Interface):
  def __init__(self):
    interphase.Interface.__init__(self, **parameters)
  def add_controls(self):
    self.add(**parameters)
  def update(self):
    interphase.Interface.update(self)
    state = self.get_state()
</pre>
<p><span style="font-size:1.2em;">The script does an import of the Interphase module, which imports interphase.py that should be in the same folder or on the system path. The interface functionality is embedded in the Interphase Interface Class Object (interphase.Interface), which inherits from pygame.sprite.Sprite class. The best means to use the Interphase module is to create a class object for the interface panel that is a subclass of interphase.Interface that has the overriding methods __init__(), add_controls(), and update().</span></p>
<p><span style="font-size:1.2em;">Within __init__(), the superclass interphase.Interface.__init__() is called to initiate the interface panel, and takes many optional keyword parameters that describes the specifics of the panel, such as position and size. For example:</span></p>
<pre class="brush: python; light: true;">
def __init__(self):
  interphase.Interface.__init__(self,
    position = (250,452),
    color = (43,50,58),
    size = (350,100),
    image = 'panel.png',
    button_image = ['button.png'],
    control_image = ['control.png'] )
</pre>
<p><span style="font-size:1.2em;">The add_controls() method is called upon interface initiation, and used to code the interface controls. Each control object is added with an add() method that has multiple keyword parameters that describe the specifics of the control. For example, the serpent directional controls are specified with:</span></p>
<pre class="brush: python; light: true;">
def add_controls(self):
  ctr = ('U',(175,25),'^'), ('D',(175,75),'v'),
        ('L',(150,50),'&lt;'), ('R',(200,50),'&gt;')
  for ident, pos, ctrl in ctr:
    self.add(
      identity = ident,
      control_type = 'control_toggle',
      position = pos,
      control_list = [ctrl],
      label_display = False,
      control_response = 0  )
</pre>
<p><span style="font-size:1.2em;">In the interface subclass update() method, call the superclass interphase.Interface.update(). Interaction with the interface is done through numerous interface methods such as get_state(), get_control(), and get_value(). The get_state() method retrieves the InterfaceState object, which carries the state of the interface such as control pressed and control value. The attribute state.control specifies the identity of control currently pressed, and the following code shows testing using state object and linking to a program method that controls serpent movement:</span></p>
<pre class="brush: python; light: true;">
def update(self):
  interphase.Interface.update(self)
  state = self.get_state()
  if state.control:
    if state.control in ('U','D','L','R'):
      directions = { 'U':(0,-1), 'D':(0,1), 'L':(-1,0), 'R':(1,0) }
      serpent_control(directions[state.control])
</pre>
<p><span style="font-size:1.2em;">An instance is created from the Interface Class and placed in a Pygame sprite group such as pygame.sprite.RenderUpdates, that provides methods update/draw/clear to update the panel.</span></p>
<p>Submitted by Jim on February 5, 2010 at 8:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/948/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/948/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/948/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/948/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/948/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/948/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/948/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/948/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/948/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/948/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=948&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2010/02/05/interphase-module-demo-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Python Program Executables</title>
		<link>http://gatc.ca/2009/12/23/python-program-executables/</link>
		<comments>http://gatc.ca/2009/12/23/python-program-executables/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 04:52:55 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=884</guid>
		<description><![CDATA[I made standalone executables for Linux and Windows of my Python programs Microbe, Replicator Machine, Neural Construct and Biomorph Entity. These executables were built using cx_Freeze, and have Python and all dependent libraries included, no installation needed.

Some details of the cx_Freeze build follows:


The cx_Freeze utility is similar to py2exe, but can build both Linux and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=884&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">I made standalone executables for Linux and Windows of my <a href="http://www.python.org/">Python</a> programs <a href="http://gatc.ca/projects/microbe/">Microbe</a>, <a href="http://gatc.ca/projects/replicator/">Replicator Machine</a>, <a href="http://gatc.ca/projects/neural-construct/">Neural Construct</a> and <a href="http://gatc.ca/projects/biomorph-entity/">Biomorph Entity</a>. These executables were built using <a href="http://cx-freeze.sourceforge.net/">cx_Freeze</a>, and have Python and all dependent libraries included, no installation needed.</span><br />
<span style="font-size:1.2em;"><br />
Some details of the cx_Freeze build follows:<br />
</span><span id="more-884"></span><br />
<span style="font-size:1.2em;"><br />
The <a href="http://cx-freeze.sourceforge.net/cx_Freeze.html">cx_Freeze</a> utility is similar to <a href="http://www.py2exe.org/">py2exe</a>, but can build both Linux and Windows executables. To build the executable from the Python script using cx_Freeze, build options can be enter in a setup.py script, a basic one being:<br />
</span></p>
<pre class="brush: python; light: true;">
#setup.py
from cx_Freeze import setup, Executable
setup( name = &quot;Microbe&quot;,
       version = &quot;1.21&quot;,
       description = &quot;Microbial Simulation&quot;,
       executables = [Executable(&quot;microbe.py&quot;)] )
</pre>
<p><span style="font-size:1.2em;"><br />
Then from the command line run:<br />
</span></p>
<pre class="brush: plain; light: true;">
python setup.py build
</pre>
<p><span style="font-size:1.2em;"><br />
There were a few glitches in the build. This was mainly because my Python scripts use the Pygame and NumPy modules. I used <a href="http://www.ubuntu.com/">Ubuntu Linux</a> 9.10 to build, and tested executables on an <a href="http://www.archlinux.org/">Arch Linux</a> virtual machine (VM) installed in <a href="http://www.virtualbox.org/">VirtualBox</a> with no external Python modules. The build system has Python 2.64(Linux)/2.54(Windows), Pygame 1.81, NumPy 1.30, and used cx_Freeze 4.11 (4.01 appeared to give same results; latest version had an import <a href="http://sourceforge.net/mailarchive/message.php?msg_name=703ae56b1001040725v31c006bahbdbe2f535611f156%40mail.gmail.com">error</a>, solved by renaming /cx_Freeze/util to util.so (Linux) or util.pyd (Windows)). I will describe the process with the <a href="http://gatc.ca/projects/microbe/">Microbe</a> build, which requires both Pygame and NumPy. The described process yielded successful builds, and is meant as advice but not necessary the most appropriate solutions for other situations. I first started a build with the basic setup.py script. This should create a build folder with the Python script, Python and all dependencies included, and in this example, the program can be launched on Linux by the command &#8216;./microbe&#8217;. The build ran properly, except there were hidden dependencies still on the build machine that may not be available on another Linux machine. A good way on Linux to check what files are opened when the program is launched is to use from the command line:<br />
</span></p>
<pre class="brush: plain; light: true;">
top
lsop | grep ID
</pre>
<p><span style="font-size:1.2em;"><br />
The top utility gets the ID of running programs, so get ID of the executable and put on the lsop line to list all files opened by the executable. Doing this, you can see which are being open through the build package, and those that are being obtained from the system.<br />
</span><br />
<span style="font-size:1.2em;"><br />
To get back to the build, attempt at running the build on the VM got:<br />
</span></p>
<pre class="brush: plain; light: true;">
File &quot;/usr/lib/python2.6/dist-packages/numpy/lib/polynomial.py&quot;, line 11, in &lt;module&gt;
AttributeError: 'module' object has no attribute 'core'
</pre>
<p><span style="font-size:1.2em;"><br />
This concerned missing NumPy dependencies libblas.so.3gf/liblapack.so.3gf that were not packaged by cx_Freeze and can be fixed by adding to cx_Freeze setup.py:<br />
includeDependencies = [ ("/usr/lib/libblas.so.3gf.0","libblas.so.3gf"),<br />
                        ("/usr/lib/liblapack.so.3gf.0","liblapack.so.3gf") ]<br />
</span><br />
<span style="font-size:1.2em;"><br />
These dependencies comprise a <a href="http://www.netlib.org/lapack/">Linear Algebra Package</a> (lapack), and are quite a large addition. If NumPy is built from source, without the lapack library installed, it will compile a lite version that would be better to package. On Ubuntu Linux, NumPy depends on the full version of lapack. I do not have a requirement for the full lapack version, and decided to removed NumPy/libatlas3gf-base/libblas3gf; if you do have another program requiring lapack then do not do this or reinstall later. With the removal of NumPy, several other programs dependent on this module may be removed and need to be reinstalled after NumPy reinstalled. I then compiled <a href="http://sourceforge.net/projects/numpy/files/">NumPy</a> 1.4.0rc1 from source:<br />
</span></p>
<pre class="brush: plain; light: true;">
sudo apt-get install python-dev
python setup.py build --fcompiler=gnu95
sudo checkinstall python setup.py install
</pre>
<p><span style="font-size:1.2em;"><br />
This compilation requires the Python Headers (python-dev) and the gfortran compiler. The install should be to /usr/local/lib/; Ubuntu should have the path in /etc/ld.so.conf, if missing add it then run &#8217;sudo ldconfig&#8217;. Checkinstall makes a deb package while installing (when install info requested update name: pygame-numpy and version: 1:1.4.0), and inserts it in the package manager, which update dependencies to installed version. Since Pygame was removed when I removed NumPy before, I reinstalled that. This allowed a cx_Freeze build of Microbe with NumPy/lapack-lite added using the basic setup.py . The build ran on the system after I had to make a change to my program. Though it was due to an unrelated issue concerning a computer-intensive amoeba animate function that I compiled with <a href="http://www.cython.org/">Cython</a>, a Python-like to C compiler. The program terminated immediately with &#8216;ValueError: numpy.dtype does not appear to be the correct type object&#8217;. It seems that the new version of NumPy had changed numpy.dtype and broke the Cython compiled code. Needed to recompile the animate code to have a separate version that works with the installed NumPy module.<br />
</span><br />
<span style="font-size:1.2em;"><br />
When the new build was run on the VM, the previous error was gone, but another appeared:<br />
</span></p>
<pre class="brush: plain; light: true;">
File &quot;microbe.py&quot;, line 75, in __init__
pygame.error: File is not a Windows BMP file
</pre>
<p><span style="font-size:1.2em;"><br />
This concerned the inability to find Pygame dependencies, libjpeg.so.62/libpng12.so.0, due to discrepancies with names between Ubuntu and Arch Linux. I decided to include these in the build using the buildOptions includeDependencies. This can be seen below in the final setup.py used for the cx_Freeze build. I used this to build in Linux and Windows. However, upon exit of the program in Windows, there was a error that the program &#8216;encountered a problem and needs to be close &#8211; ModName: python25.dll&#8217;, and I found that the build did not like the code &#8217;sys.exit&#8217;, and fixed by changing the program to exit by main loop termination. One final note, for some of my other programs such as <a href="http://gatc.ca/projects/biomorph-entity/">Biomorph Entity</a> that do not import NumPy, NumPy is still packaged in the build. I believe this is because Pygame is dependant on NumPy for its surfarray module. Since I do not use this module in those programs, I was able to cx_Freeze build with the buildOptions &#8216;excludes = ["numpy"]&#8216;, and possibly excludes of other unnecessary Python modules can make a lighter executable.<br />
</span><br />
<span style="font-size:1.2em;"><br />
The executables for the Microbe program was built on both Linux and Windows with cx_Freeze by issuing the command &#8216;python setup.py build&#8217; from the program folder with the following setup.py:<br />
</span></p>
<pre class="brush: python; light: true;">
#setup.py:
from cx_Freeze import setup, Executable
import sys
if sys.platform == &quot;win32&quot;:
    base = &quot;Win32GUI&quot;
    includeDependencies = []
else:
    base = None
    includeDependencies = \
        [ (&quot;/usr/lib/libjpeg.so.62.0.0&quot;,&quot;libjpeg.so.62&quot;),
        (&quot;/usr/lib/libpng12.so.0.37.0&quot;,&quot;libpng.so.0&quot;) ]
includePersonalFiles = [ (&quot;data&quot;,&quot;data&quot;), (&quot;readme.txt&quot;,&quot;readme.txt&quot;) ]
includeFiles = includeDependencies + includePersonalFiles
buildOptions = \
    dict( include_files = includeFiles,
          icon = &quot;microbe.ico&quot;,
          optimize = 2,
          compressed = True )
setup(
    name = &quot;Microbe&quot;,
    version = &quot;1.21&quot;,
    description = &quot;Microbial Simulation&quot;,
    options = dict(build_exe = buildOptions),
    executables = [Executable(&quot;microbe.py&quot;, base = base)])
</pre>
<p>Submitted by Jim on December 23, 2009 at 11:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/884/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=884&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/12/23/python-program-executables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Biomorph Entity Simulation</title>
		<link>http://gatc.ca/2009/12/03/biomorph-entity-simulation/</link>
		<comments>http://gatc.ca/2009/12/03/biomorph-entity-simulation/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 18:44:28 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=664</guid>
		<description><![CDATA[The Biomorph Entity program simulates a virtual creature. From experimenting with simple rules that govern the interaction of the segments, the computer simulation developed an emergent behaviour of the collective. In the future, I may add genes to express the discreet rules and in using genetic programming techniques bring evolution to the virtual environment, as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=664&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">The <a href="/projects/biomorph-entity/">Biomorph Entity</a> program simulates a virtual creature. From experimenting with simple rules that govern the interaction of the segments, the computer simulation developed an emergent behaviour of the collective. In the future, I may add genes to express the discreet rules and in using genetic programming techniques bring evolution to the virtual environment, as I did in my microbial simulation program, <a href="/projects/microbe/">Microbe</a>. This should allow experimentation to evolve novel biomorphs. The program was written in <a href="http://www.python.org/">Python</a> programming language and <a href="http://www.pygame.org/">Pygame</a> multimedia library. The <a href="/projects/biomorph-entity/">Biomorph Entity</a> program can be found on my <a href="/projects/">projects</a> page, and a video clip of the simulation is on my <a href="/projects/demo/">demo</a> page.</span></p>
<p>Submitted by Jim on December 3, 2009 at 1:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/664/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=664&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/12/03/biomorph-entity-simulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Replicant: The Molecule of Life</title>
		<link>http://gatc.ca/2009/11/28/replicant-the-molecule-of-life/</link>
		<comments>http://gatc.ca/2009/11/28/replicant-the-molecule-of-life/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 04:00:34 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=644</guid>
		<description><![CDATA[Replicant is a program that simulates the molecule of life, DNA. The model is based on some simple principles. I wrote it using Python programming language and the Pygame multimedia library. Later, I will try to bring further complexity to the model, such as interaction between complementary bases of the double helix.
Submitted by Jim on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=644&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;"><a href="/projects/replicant/">Replicant</a> is a program that simulates the molecule of life, DNA. The model is based on some simple principles. I wrote it using <a href="http://www.python.org/">Python</a> programming language and the <a href="http://www.pygame.org/">Pygame</a> multimedia library. Later, I will try to bring further complexity to the model, such as interaction between complementary bases of the double helix.</p>
<p>Submitted by Jim on November 28, 2009 at 11:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/644/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=644&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/11/28/replicant-the-molecule-of-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Microbial Simulation Video</title>
		<link>http://gatc.ca/2009/11/16/microbial-simulation-video/</link>
		<comments>http://gatc.ca/2009/11/16/microbial-simulation-video/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 19:53:29 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=606</guid>
		<description><![CDATA[I have uploaded a video clip to demonstrate my program Microbe, a Microbial Simulation. Microbe, written in Python programming language, simulates the biological behaviour of microbes, and explores the dimension of artificial life. You can view the video on the  project demo page. I will upload more clips of my other projects.
Submitted by Jim [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=606&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">I have uploaded a <a href="/projects/demo/">video</a> clip to demonstrate my program <a href="/projects/microbe/">Microbe</a>, a Microbial Simulation. <a href="/projects/microbe/">Microbe</a>, written in <a href="http://www.python.org/">Python</a> programming language, simulates the biological behaviour of microbes, and explores the dimension of artificial life. You can view the video on the  <a href="/projects/demo/">project demo</a> page. I will upload more clips of my other <a href="/projects/">projects</a>.</span></p>
<p>Submitted by Jim on November 16, 2009 at 3:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/606/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=606&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/11/16/microbial-simulation-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Interphase Pygame GUI Module</title>
		<link>http://gatc.ca/2009/10/11/interphase-pygame-gui-module/</link>
		<comments>http://gatc.ca/2009/10/11/interphase-pygame-gui-module/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 00:04:30 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=484</guid>
		<description><![CDATA[Interphase module is a GUI library that adds interface panel functionality to a Python/Pygame application. I developed the module to make it relatively easy to add an interface panel to a Pygame program. It is used as an interface panel for my biology simulations Microbe, Neural Construct, and Replicator Machine. Go to the Interphase project [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=484&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;"><a href="/projects/interphase/">Interphase</a> module is a GUI library that adds interface panel functionality to a <a href="http://www.python.org/">Python</a>/<a href="http://www.pygame.org/">Pygame</a> application. I developed the module to make it relatively easy to add an interface panel to a Pygame program. It is used as an interface panel for my biology simulations <a href="/projects/microbe/">Microbe</a>, <a href="/projects/neural-construct/">Neural Construct</a>, and <a href="/projects/replicator/">Replicator Machine</a>. Go to the <a href="/projects/interphase/">Interphase</a> project page if you would like to use the module for your Pygame application, or see <a href="/projects/interphase/interphase-documentation/">Interphase documentation</a> for additional info on the programming functionality.</span></p>
<p>Submitted by Jim on October 11, 2009 at 7:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/484/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/484/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=484&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/10/11/interphase-pygame-gui-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Biology Simulations</title>
		<link>http://gatc.ca/2009/10/11/biology-simulations/</link>
		<comments>http://gatc.ca/2009/10/11/biology-simulations/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 22:50:52 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=474</guid>
		<description><![CDATA[In addition to extensive updating Microbe &#8211; Microbial Simulation, I have updated my other biology simulation programs, Replicator Machine and Neural Construct. These projects have been programmed in Python/Pygame. One important update has been to adapt the GUI interface panel that I started in the Microbe program to function in my other programs. This led [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=474&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">In addition to extensive updating <a href="/projects/microbe/">Microbe &#8211; Microbial Simulation</a>, I have updated my other biology simulation programs, <a href="/projects/replicator/">Replicator Machine</a> and <a href="/projects/neural-construct/">Neural Construct</a>. These <a href="/projects/">projects</a> have been programmed in <a href="http://www.python.org/">Python</a>/<a href="http://www.pygame.org/">Pygame</a>. One important update has been to adapt the GUI interface panel that I started in the <a href="/projects/microbe/">Microbe</a> program to function in my other programs. This led to the evolution of the <a href="/projects/interphase/">Interphase</a> module.</span></p>
<p>Submitted by Jim on October 11, 2009 at 6:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/474/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/474/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/474/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=474&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/10/11/biology-simulations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Neural Construct Released</title>
		<link>http://gatc.ca/2009/08/07/neural-construct-released/</link>
		<comments>http://gatc.ca/2009/08/07/neural-construct-released/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 23:00:24 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=517</guid>
		<description><![CDATA[Neural Construct is a neural simulation program. The construct is a neuron matrix that is responsive to stimuli. The individual neurons have been programmed with some basic neuron functionality, and along with the neural interconnections that network through the construct, emerge complex signals. I programmed it in Python/Pygame.
Submitted by Jim on August 7, 2009 at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=517&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;"><a href="/projects/neural-construct/">Neural Construct</a> is a neural simulation program. The construct is a neuron matrix that is responsive to stimuli. The individual neurons have been programmed with some basic neuron functionality, and along with the neural interconnections that network through the construct, emerge complex signals. I programmed it in <a href="http://www.python.org/">Python</a>/<a href="http://www.pygame.org/">Pygame</a>.</span></p>
<p>Submitted by Jim on August 7, 2009 at 6:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=517&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/08/07/neural-construct-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Replicator Machine Released</title>
		<link>http://gatc.ca/2009/07/12/replicator-machine-released/</link>
		<comments>http://gatc.ca/2009/07/12/replicator-machine-released/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 23:00:16 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=511</guid>
		<description><![CDATA[Replicator Machine is a viral infection simulation. The program simulates basic infection in which the virus infects a cell and replicates. In control of a nanobot, you can combat the virus. I programmed it using the Python programming language and the  Pygame library.
Submitted by Jim on July 12, 2009 at 6:00 pm
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=511&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;"><a href="/projects/replicator/">Replicator Machine</a> is a viral infection simulation. The program simulates basic infection in which the virus infects a cell and replicates. In control of a nanobot, you can combat the virus. I programmed it using the <a href="http://www.python.org/">Python</a> programming language and the  <a href="http://www.pygame.org/">Pygame</a> library.</span></p>
<p>Submitted by Jim on July 12, 2009 at 6:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/511/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=511&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/07/12/replicator-machine-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
		<item>
		<title>Microbe Released</title>
		<link>http://gatc.ca/2009/03/08/microbe-released/</link>
		<comments>http://gatc.ca/2009/03/08/microbe-released/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 23:00:38 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Artificial Life]]></category>
		<category><![CDATA[Biology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://gatc.ca/?p=33</guid>
		<description><![CDATA[With the intent to apply a computational approach to experiment with biological concepts, I have been learning programming. I have dual goals, to explore the code of life and to venture into the realm of artificial life. With this aspiration, I have pursued several projects that are designed in Python programming language. One program that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=33&subd=gatcca&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:1.2em;">With the intent to apply a computational approach to experiment with biological concepts, I have been learning programming. I have dual goals, to explore the code of life and to venture into the realm of artificial life. With this aspiration, I have pursued several projects that are designed in <a href="http://www.python.org/">Python</a> programming language. One program that is fairly advanced is <a href="http://gatc.ca/projects/microbe/">Microbe</a>, a microbial simulation. Plan to share other experiments in the future, hope they are of interest and inspirational.</span></p>
<p>Submitted by Jim on March 8, 2009 at 6:00 pm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gatcca.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gatcca.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gatcca.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gatcca.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gatcca.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gatcca.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gatcca.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gatcca.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gatcca.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gatcca.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gatc.ca&blog=4030688&post=33&subd=gatcca&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://gatc.ca/2009/03/08/microbe-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jim</media:title>
		</media:content>
	</item>
	</channel>
</rss>