<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Funjackals! &#187; WordPress</title>
	<atom:link href="http://www.funjackals.com/blog/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.funjackals.com/blog</link>
	<description>Wherein John tells you what's on his mind.</description>
	<lastBuildDate>Fri, 02 Dec 2011 21:51:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>This is a Quick Test of the Google Syntax Highlighter for WordPress Plugin</title>
		<link>http://www.funjackals.com/blog/2008/04/04/this-is-a-quick-test-of-the-google-syntax-highligher-for-wordpress-plugin/</link>
		<comments>http://www.funjackals.com/blog/2008/04/04/this-is-a-quick-test-of-the-google-syntax-highligher-for-wordpress-plugin/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 13:03:28 +0000</pubDate>
		<dc:creator>jcole</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[colorize code]]></category>
		<category><![CDATA[PyPedal]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.funjackals.com/blog/?p=264</guid>
		<description><![CDATA[I read about the Google Syntax Highlighter for WordPress in a blog entry by Jacob Gube describing several purportedly-useful WordPress extensions. The plugin sounds like just the thing to pretty-up some entries I&#8217;m working on about PyPedal. Here&#8217;s a simple &#8230; <a href="http://www.funjackals.com/blog/2008/04/04/this-is-a-quick-test-of-the-google-syntax-highligher-for-wordpress-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I read about the <a href="http://wordpress.org/extend/plugins/google-syntax-highlighter/" title="Google Syntax Highlighter for WordPress">Google Syntax Highlighter for WordPress</a> in <a href="http://sixrevisions.com/tools-of-the-trade/helpful_wordpress_plugins_advanced_users/" title="15 helpful WordPress plugins for the savvy user">a blog entry by Jacob Gube describing several purportedly-useful WordPress extensions</a>. The plugin sounds like just the thing to pretty-up some entries I&#8217;m working on about <a href="http://pypedal.sourceforge.net/" title="Python Pedigree Analysis">PyPedal</a>. Here&#8217;s a simple example demonstrating how to use the newly-rewritten database tools in Release Candidate 4 (coming soon to a download site near you):</p>
<pre name="code" class="python">
>>> # Load PyPedal
>>> import PyPedal
>>> # Specify program options -- note that we're accessing an SQLite database
>>> options = {}
>>> options['messages'] = 'verbose'
>>> options['pedfile'] = 'hartlandclark.ped'
>>> options['pedname'] = 'Pedigree from van Noordwijck and Scharloo (1981)'
>>> options['pedformat'] = 'asdb'
>>> options['pedigree_is_renumbered'] = 1
>>> options['database_name'] = 'new_db_test'
>>> options['dbtable_name'] = 'test'
>>> options['database_type'] = 'sqlite'
>>> # Now we load the pedigree
>>> example = pyp_newclasses.loadPedigree(options)
>>> # Muck around with the database
>>> pyp_nrm.inbreeding(example)
>>> # Drop the existing table, if there is one
>>> pyp_db.deleteTable(example)
>>> # Check to see if the table is gone
>>> pyp_db.doesTableExist(example)
>>> # Creating the table
>>> pyp_db.createPedigreeTable(example)
>>> # Populating the table
>>> pyp_db.populatePedigreeTable(example)
>>> # Perform some calculations, in this case computing coefficients of inbreeding
>>> mean_inbreeding = pyp_reports.meanMetricBy(example,metric='fa',byvar='by')
>>> print mean_inbreeding
</pre>
<p>Which should give you the result:</p>
<pre name="code" class="python">
[INFO]: Logfile hartlandclark.log instantiated.
[INFO]: Preprocessing hartlandclark.ped
[INFO]: Opening pedigree file hartlandclark.ped
[INFO]: Creating pedigree metadata object
        [INFO]:  Instantiating a new PedigreeMetadata() object...
        [INFO]:  Naming the Pedigree()...
        [INFO]:  Assigning a filename...
        [INFO]:  Attaching a pedigree...
        [INFO]:  Setting the pedcode...
        [INFO]:  Counting the number of animals in the pedigree...
        [INFO]:  Counting and finding unique sires...
        [INFO]:  Counting and finding unique dams...
        [INFO]:  Setting renumbered flag...
        [INFO]:  Counting and finding unique generations...
        [INFO]:  Counting and finding unique birthyears...
        [INFO]:  Counting and finding unique founders...
        [INFO]:  Counting and finding unique herds...
        [INFO]:  Detaching pedigree...
Metadata for Pedigree from van Noordwijck and Scharloo (1981) (hartlandclark.ped)
        Records:                15
        Unique Sires:         9
        Unique Dams:        5
        Unique Gens:         1
        Unique Years:         8
        Unique Founders:   3
        Unique Herds:         1
        Pedigree Code:       asdb
{1920: 0.0, 1960: 0.015625, 1930: 0.0, 1900: 0.0, 1970: 0.14453125, \
1940: 0.015625, 1910: 0.0, 1950: 0.078125}
</pre>
<p>Pretty snazzy, eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funjackals.com/blog/2008/04/04/this-is-a-quick-test-of-the-google-syntax-highligher-for-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Upgrade from WordPress 2.3 to 2.5 Went Well</title>
		<link>http://www.funjackals.com/blog/2008/03/31/the-upgrade-from-wordpress-23-to-25-went-well/</link>
		<comments>http://www.funjackals.com/blog/2008/03/31/the-upgrade-from-wordpress-23-to-25-went-well/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 16:17:29 +0000</pubDate>
		<dc:creator>jcole</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.funjackals.com/blog/?p=262</guid>
		<description><![CDATA[WordPress 2.5 has been released and I&#8217;ve upgraded This Blog. I&#8217;m happy to report that everything seemed to go well.]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/development/2008/03/wordpress-25-brecker/" title="WordPress 2.5">WordPress 2.5 has been released</a> and I&#8217;ve upgraded This Blog. I&#8217;m happy to report that everything seemed to go well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.funjackals.com/blog/2008/03/31/the-upgrade-from-wordpress-23-to-25-went-well/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

