<?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>Matthew Turland &#187; PHP</title> <atom:link href="http://matthewturland.com/category/php/feed/" rel="self" type="application/rss+xml" /><link>http://matthewturland.com</link> <description></description> <lastBuildDate>Tue, 15 May 2012 02:29:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>WordPress SyntaxHighlighter font size fix</title><link>http://matthewturland.com/2012/02/13/wordpress-syntaxhighlighter-font-size-fix/</link> <comments>http://matthewturland.com/2012/02/13/wordpress-syntaxhighlighter-font-size-fix/#comments</comments> <pubDate>Tue, 14 Feb 2012 02:41:20 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=890</guid> <description><![CDATA[I use WordPress for this web site. To pretty up source code examples in my posts, I use the excellent SyntaxHighlighter Evolved WordPress plugin. The WordPress theme I use, Fluid Blue, does something with its CSS such that it and SyntaxHighlighter appear to conflict. The result is that source code examples processed by the plugin [...]]]></description> <content:encoded><![CDATA[<p>I use <a
title="WordPress › Blog Tool, Publishing Platform, and CMS" href="http://wordpress.org/">WordPress</a> for this web site. To pretty up source code examples in my posts, I use the excellent <a
title="SyntaxHighlighter Evolved « Viper007Bond.com" href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/">SyntaxHighlighter Evolved</a> WordPress plugin. The WordPress theme I use, <a
title="Fluid Blue « Srini's WordPress Lab" href="http://srinig.com/wordpress/themes/fluid-blue/">Fluid Blue</a>, does something with its CSS such that it and SyntaxHighlighter appear to conflict. The result is that source code examples processed by the plugin are displayed with a font size that&#8217;s too small to read comfortably.</p><p>In doing some digging, I learned about the <a
title="Child Themes « WordPress Codex" href="http://codex.wordpress.org/Child_Themes">child themes</a> feature of WordPress, which allows you to effectively extend an existing theme. I created a directory under <code>wp-content/themes</code> called <code>fluid-blue-custom</code>. In this directory, I created a <code>styles.css</code> file with these contents:</p><pre class="brush: css; title: ; notranslate">/*
Theme Name: Fluid Blue (Custom)
Template: fluid-blue
*/

@import url(&quot;../fluid-blue/style.css&quot;);

body .syntaxhighlighter code, body .syntaxhighlighter .gutter { font-size: 12px !important; }</pre><p>The <code>Template</code> line of the comment block indicates that this theme is a child theme of the existing Fluid Blue theme that resides in the <code>wp-content/themes/fluid-blue</code> directory. The <code>@import</code> line pulls in the <code>styles.css</code> file from that directory, after which I can apply any CSS overrides I like. The last line is a CSS rule specific enough to override applicable rules from the parent theme in order to increase the font size to something more easily readable.</p><p>It appears <a
title="SyntaxHighlighter Evolved « Viper007Bond.com" href="http://www.viper007bond.com/wordpress-plugins/syntaxhighlighter/comment-page-10/#comment-235530">I&#8217;m not the only one</a> who&#8217;s encountered this issue, so I hope this post helps someone else.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2012/02/13/wordpress-syntaxhighlighter-font-size-fix/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Setting up EC2 for Drupal with Puppet</title><link>http://matthewturland.com/2012/02/13/setting-up-ec2-for-drupal-with-puppet/</link> <comments>http://matthewturland.com/2012/02/13/setting-up-ec2-for-drupal-with-puppet/#comments</comments> <pubDate>Tue, 14 Feb 2012 00:29:06 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=881</guid> <description><![CDATA[I&#8217;m currently working on a project that involves running Drupal on Amazon EC2. To save time in setting up future new VM instances, I decided to take the opportunity to learn puppet. For the time being, I&#8217;m using a single VM to run the full LAMP stack and running puppet without a server by copying [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;m currently working on a project that involves running <a
title="Drupal - Open Source CMS | drupal.org" href="http://drupal.org/">Drupal</a> on <a
title="Amazon Elastic Compute Cloud (Amazon EC2)" href="http://aws.amazon.com/ec2/">Amazon EC2</a>. To save time in setting up future new VM instances, I decided to take the opportunity to learn <a
title="Documentation | Puppet Labs - Introduction to Puppet" href="http://docs.puppetlabs.com/guides/introduction.html">puppet</a>. For the time being, I&#8217;m using a single VM to run the full LAMP stack and running puppet <a
title="Documentation | Puppet Labs - Puppet Labs Documentation" href="http://docs.puppetlabs.com/#part-one-serverless-puppet">without a server</a> by copying my puppet manifest to the VM and using <a
title="Documentation | Puppet Labs - Tools" href="http://docs.puppetlabs.com/guides/tools.html#puppet-apply-or-puppet">puppet&#8217;s apply command</a> to apply it locally. However, this manifest can easily be adapted for a multi-VM environment. After some tinkering, I came up with the code below.</p><pre class="brush: ruby; title: ; notranslate">class web {
    package { 'httpd':
        ensure =&gt; 'present',
    }

    package { 'php':
        ensure =&gt; 'present',
    }

    # Update this to use your respective time zone value
    exec { 'php_config':
        command =&gt; '/bin/sed -i &quot;s/^;date.timezone =/date.timezone = \'America\/Chicago\'/g&quot; /etc/php.ini',
        require =&gt; Package['php'],
    }

    service { 'httpd':
        ensure =&gt; 'running',
        enable =&gt; true,
        hasrestart =&gt; true,
        hasstatus =&gt; true,
        subscribe =&gt; Package['httpd', 'php'],
    }

    # Drupal requirements
    package { ['php-pdo', 'php-mysql', 'php-xml', 'php-gd', 'php-mbstring']:
        ensure =&gt; 'present',
        require =&gt; Package['php'],
    }
}

class mysql {
    package { 'mysql-server':
        ensure =&gt; 'present',
    }

    service { 'mysqld':
        ensure =&gt; 'running',
        enable =&gt; true,
        hasrestart =&gt; true,
        hasstatus =&gt; true,
        subscribe =&gt; Package['mysql-server'],
    }

    # Equivalent to /usr/bin/mysql_secure_installation without providing or setting a password
    exec { 'mysql_secure_installation':
        command =&gt; '/usr/bin/mysql -uroot -e &quot;DELETE FROM mysql.user WHERE User=\'\'; DELETE FROM mysql.user WHERE User=\'root\' AND Host NOT IN (\'localhost\', \'127.0.0.1\', \'::1\'); DROP DATABASE IF EXISTS test; FLUSH PRIVILEGES;&quot; mysql',
        require =&gt; Service['mysqld'],
    }
}

class {'web': }
class {'mysql': }</pre><p>With this code saved to a file called manifest.pp (.pp being the file extension for puppet manifests), I can spin up a VM and do the following to set it up:</p><pre class="brush: bash; title: ; notranslate">scp -i key.pem manifest.pp ec2-user@host:~/
ssh -i key.pem ec2-user@host
sudo yum upgrade -y
sudo yum install -y puppet
sudo puppet apply manifest.pp
rm -f manifest.pp
exit</pre><p>At this point, I have a basic Apache/MySQL/PHP configuration capable of receiving a Drupal 7 installation.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2012/02/13/setting-up-ec2-for-drupal-with-puppet/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Top 10 Posts of 2011</title><link>http://matthewturland.com/2011/12/29/top-10-posts-of-2011/</link> <comments>http://matthewturland.com/2011/12/29/top-10-posts-of-2011/#comments</comments> <pubDate>Fri, 30 Dec 2011 00:27:04 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[Node.js]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=857</guid> <description><![CDATA[Following in the trail blazed by the likes of Cal Evans and Chris Cornutt, I decided to post a list of the posts on this blog that have received the most traffic this year along with some related commentary. However, in the spirit of Charles St. Michael, I decided to up the number of posts [...]]]></description> <content:encoded><![CDATA[<p>Following in the trail blazed by the likes of <a
title="Top three posts of 2011 | Postcards From My Life" href="http://blog.calevans.com/2011/12/29/top-three-posts-of-2011/">Cal Evans</a> and <a
title="Top three posts of 2011 at blog.phpdeveloper.org" href="http://blog.phpdeveloper.org/?p=425">Chris Cornutt</a>, I decided to post a list of the posts on this blog that have received the most traffic this year along with some related commentary. However, in the spirit of <a
title="Iliketosayfukalot's Channel - YouTube" href="http://www.youtube.com/iliketosayfukalot">Charles St. Michael</a>, I decided to up the number of posts from three to 10. So, here we go:</p><h3>10. <a
title="Matthew Turland » Blog Archive » Building PHP-GTK with Cairo Support on Ubuntu Jaunty" href="http://matthewturland.com/2009/04/25/building-php-gtk-with-cairo-support-on-ubuntu-jaunty/">Building PHP-GTK with Cairo Support on Ubuntu Jaunty</a> &#8211; 2009-04-25</h3><p>Very interesting that this post was in the running at all. It&#8217;s over two years old, goes back five Ubuntu versions, and deals with PHP 5.3.0RC1 (current is 5.4.0RC4) and PHP-GTK when Cairo support was relatively new. (There&#8217;s now <a
title="PECL/Cairo 0.3.0 released! - Michael's Weblog" href="http://mgdm.net/weblog/peclcairo-030-released">a separate PECL extension</a> for it now.) If you want to learn more about this, you should definitely check out <a
title="Dreaming of Dawn" href="http://elizabethmariesmith.com/">Elizabeth Smith</a> and <a
title="Michael Maclean" href="http://mgdm.net/">Michael Maclean</a>.</p><h3>9. <a
title="Matthew Turland » Blog Archive » Renaming a DOMNode in PHP" href="http://matthewturland.com/2010/02/09/renaming-a-domnode-in-php/">Renaming a DOMNode in PHP</a> &#8211; 2010-02-09</h3><p>It seems this isn&#8217;t as uncommon a problem as I would have thought. Sadly, in the 22 months that have passed since I authored the post, it seems the DOM extension hasn&#8217;t been updated further to support the DOM 3.0 standard or the <code>renameNode()</code> method mentioned in this post.</p><h3>8. <a
title="Matthew Turland » Blog Archive » PHP_CodeSniffer Article in php|architect" href="http://matthewturland.com/2011/04/28/php_codesniffer-article-in-phparchitect/">PHP_CodeSniffer Article in php|architect</a> &#8211; 2011-04-28</h3><p>It&#8217;s nice to see this post get attention even if was just a brief hand-waving to point people to the article, which is one of two I wrote for php|architect Magazine this year. It&#8217;s also nice to see that despite being seen by some as a more menial facet of quality assurance, other people consider it important enough to read the article and take something away from it.</p><h3>7. <a
title="Matthew Turland » Blog Archive » 'New SPL Features in PHP 5.3' Hits php|architect" href="http://matthewturland.com/2011/02/01/new-spl-features-in-php-5-3-hits-phparchitect/">&#8216;New SPL Features in PHP 5.3&#8242; Hits php|architect</a> &#8211; 2011-02-01</h3><p>Another post that was just hand-waving to an article that dealt with a topic I saw as underrated. The article followed my php|tek 2010 session and preceded a Zend webinar this year on the same topic.</p><h3>6. <a
title="Matthew Turland » Blog Archive » Process Isolation in PHPUnit" href="http://matthewturland.com/2010/08/19/process-isolation-in-phpunit/">Process Isolation in PHPUnit</a> &#8211; 2010-08-19</h3><p>Between views and comments, it seems I wasn&#8217;t the only one who ran into this head-scratcher. However, if memory serves, I think there are plans to remove this feature from PHPUnit in future versions.</p><h3>5. <a
title="Matthew Turland » Blog Archive » Node.js: A Beginner’s Perspective" href="http://matthewturland.com/2010/10/19/node-js-a-beginners-perspective/">Node.js: A Beginner’s Perspective</a> &#8211; 2010-10-19</h3><p>The post is about a year old now, and sadly I haven&#8217;t done anything of merit with Node.js since (though I hope to change that), but it seems the community is still as vibrant and growing as it ever was. Heck, you can even <a
title="davidcoallier/node-php - GitHub" href="https://github.com/davidcoallier/node-php">integrate PHP-FPM with Node via FCGI</a> now. Node is definitely a technology to continue keeping your eye on if you don&#8217;t already use it.</p><h3>4. <a
title="Matthew Turland » Blog Archive » PHPUnit and Xdebug on Ubuntu Karmic" href="http://matthewturland.com/2010/01/03/phpunit-and-xdebug-on-ubuntu-karmic/">PHPUnit and Xdebug on Ubuntu Karmic</a> &#8211; 2010-01-03</h3><p>It&#8217;s surprising that this post is still relevant since there have been four Ubuntu releases since the version that this post deals with. I&#8217;ve since moved over to Fedora 16, at least for now, and it seems to address most of my regular needs. I may look at <a
title="And the best distro of 2011 is ..." href="http://www.dedoimedo.com/computers/best-distro-2011.html">other distributions like Mint</a> later on.</p><h3>3. <a
title="Matthew Turland » Blog Archive » Models in Zend Framework" href="http://matthewturland.com/2010/03/26/models-in-zend-framework/">Models in Zend Framework</a> &#8211; 2010-03-26</h3><p>Even though it&#8217;s over a year old now, I think this post gets the traffic it does because there&#8217;s not really one prescribed way to build models and because the existing documentation describes a number of components that can be used to build models, but doesn&#8217;t really offer specific guidance on how to approach it. Bit of a double-edged sword, I suppose.</p><h3>2. <a
title="Matthew Turland » Blog Archive » New SPL Features in PHP 5.3" href="http://matthewturland.com/2010/05/20/new-spl-features-in-php-5-3/">New SPL Features in PHP 5.3</a> &#8211; 2010-05-20</h3><p>I published this post on the same day that I gave my session on the topic at php|tek 2010. It&#8217;s one of my longer and more content-rich posts and I&#8217;ve updated it on occasion as I&#8217;ve had cause to update the benchmarks that go along with it. Good to see that interest in SPL seems to be rising.</p><h3>1. <a
title="Matthew Turland » Blog Archive » Database Testing with PHPUnit and MySQL" href="http://matthewturland.com/2010/01/04/database-testing-with-phpunit-and-mysql/">Database Testing with PHPUnit and MySQL</a> &#8211; 2010-01-04</h3><p>While I love that this post is driving as much traffic to my blog as it is, I do want to get around to contributing related documentation to the PHPUnit project. Hopefully that will happen soon. In the meantime, you can also read more about this topic in the Testing chapter of <a
title="Matthew Turland » Blog Archive » PHP Master Published by SitePoint" href="http://matthewturland.com/2011/10/21/php-master-published-by-sitepoint/">my most recent book</a>.</p><p>So, one big take-away from this post has been that most of my high-traffic posts were written last year rather than this year. I can&#8217;t say it&#8217;s very surprising since, looking back, a number of my posts from this year were of the hand-waving variety. I&#8217;m hoping to publish more content-rich posts more frequently in 2012. I won&#8217;t call it a resolution, because I&#8217;d likely be jinxing myself in the process, but I will say that I&#8217;ll make my best attempt.</p><p>Best wishes to everyone in the new year.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/12/29/top-10-posts-of-2011/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Appearance on the Engine Yard Podcast</title><link>http://matthewturland.com/2011/12/16/appearance-on-the-engine-yard-podcast/</link> <comments>http://matthewturland.com/2011/12/16/appearance-on-the-engine-yard-podcast/#comments</comments> <pubDate>Fri, 16 Dec 2011 22:34:11 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=853</guid> <description><![CDATA[The wonderful folks at Engine Yard invited me and my friends and fellow co-authors Lorna Jane Mitchell and Davey Shafik to be guests on an episode of their PHP podcast with our good mutual friend Elizabeth Naramore as our host. We discuss our recently published book PHP Master: Write Cutting Edge Code, how SitePoint brought [...]]]></description> <content:encoded><![CDATA[<p>The wonderful folks at <a
title="Ruby On Rails Cloud Hosting PaaS | Managed Rails Development | Engine Yard Platform as a Service" href="http://www.engineyard.com">Engine Yard</a> invited me and my friends and fellow co-authors <a
title="LornaJane | Lorna Jane Mitchell's Website" href="http://www.lornajane.net">Lorna Jane Mitchell</a> and <a
title="Davey Shafik" href="http://daveyshafik.com">Davey Shafik</a> to be guests on <a
title="Ruby Cloud | Ruby Support | Engine Yard" href="http://www.engineyard.com/podcast/s01e51-php-master-writing-cutting-edge-code" class="broken_link">an episode</a> of <a
title="Cloud Out Loud | Engine Yard's Ruby on Rails Podcast" href="http://www.engineyard.com/podcasts/PHP">their PHP podcast</a> with our good mutual friend <a
title="The Blog of ElizabethN" href="http://naramore.net/blog/">Elizabeth Naramore</a> as our host.</p><p>We discuss our <a
title="Matthew Turland - Blog Archive - PHP Master Published by SitePoint" href="http://matthewturland.com/2011/10/21/php-master-published-by-sitepoint/">recently published</a> book <a
title="Home - PHP Master: Write Cutting-Edge Code" href="http://www.sitepoint.com/books/phppro1/">PHP Master: Write Cutting Edge Code</a>, how <a
title="SitePoint - Web Design, Web Development, Freelancing, Tech News and more" href="http://www.sitepoint.com/">SitePoint</a> brought us together to work on the project, what it was like to write the book, and some reflections on the experience from each of us.</p><p>If you&#8217;ve heard about the book and not read it or been curious as it, I heartily recommend <a
title="Ruby Cloud | Ruby Support | Engine Yard" href="http://www.engineyard.com/podcasts/PHP">giving it a listen</a>.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/12/16/appearance-on-the-engine-yard-podcast/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP Master Published by SitePoint</title><link>http://matthewturland.com/2011/10/21/php-master-published-by-sitepoint/</link> <comments>http://matthewturland.com/2011/10/21/php-master-published-by-sitepoint/#comments</comments> <pubDate>Fri, 21 Oct 2011 13:46:14 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=841</guid> <description><![CDATA[I&#8217;m very happy to announce that I&#8217;ve had a second book published: &#8220;PHP Master: Writing Cutting-Edge Code.&#8221; This time, I had the honor and pleasure of co-authoring the content with my good friends and peers in the PHP community Lorna Jane Mitchell and Davey Shafik and working with the excellent team at SitePoint to make it available [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;m very happy to announce that I&#8217;ve had a second book published: <a
title="Home - PHP Master: Write Cutting-Edge Code" href="http://www.sitepoint.com/books/phppro1/">&#8220;PHP Master: Writing Cutting-Edge Code.&#8221;</a> This time, I had the honor and pleasure of co-authoring the content with my good friends and peers in the PHP community <a
title="LornaJane | Lorna Jane Mitchell's Website" href="http://www.lornajane.net/">Lorna Jane Mitchell</a> and <a
title="Davey Shafik" href="http://daveyshafik.com/">Davey Shafik</a> and working with the excellent team at <a
title="SitePoint » Web Design, Web Development, Freelancing, Tech News and more" href="http://www.sitepoint.com/">SitePoint</a> to make it available to you. The book covers a number of fundamental skills for professional PHP developers including web services, design patterns, security, testing, and more. If you&#8217;re in the market for such a PHP title, I encourage you to consider checking it out.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/10/21/php-master-published-by-sitepoint/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>New Articles on PHPmaster.com</title><link>http://matthewturland.com/2011/10/16/new-articles-on-phpmaster-com/</link> <comments>http://matthewturland.com/2011/10/16/new-articles-on-phpmaster-com/#comments</comments> <pubDate>Sun, 16 Oct 2011 21:22:06 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=836</guid> <description><![CDATA[I recently started writing articles for PHPmaster.com, a site managed by SitePoint that syndicates PHP tutorials, opinions, and news. You can check out these articles, &#8220;Documentation Makes the World Go Round&#8221; and &#8220;Integrating Amazon S3 using PEAR&#8221;, at either phpmaster.com or sitepoint.com. If you prefer getting your news via Twitter, check out @phpmasterdotcom or @sitepointdotcom. [...]]]></description> <content:encoded><![CDATA[<p>I recently started writing articles for <a
title="PHP Tutorials, Opinions and News from the worlds best PHP Developers » PHPmaster.com" href="http://phpmaster.com/">PHPmaster.com</a>, a site managed by <a
title="SitePoint » Web Design, Web Development, Freelancing, Tech News and more" href="http://www.sitepoint.com/">SitePoint</a> that syndicates PHP tutorials, opinions, and news. You can check out these articles, <a
title="Documentation Makes the World Go Round - phpmaster" href="http://phpmaster.com/documentation-makes-the-world-go-round/">&#8220;Documentation Makes the World Go Round&#8221;</a> and <a
title="Integrating Amazon S3 using PEAR - phpmaster" href="http://phpmaster.com/integrating-amazon-s3-using-pear/">&#8220;Integrating Amazon S3 using PEAR&#8221;</a>, at either <a
title="PHP Tutorials, Opinions and News from the worlds best PHP Developers » PHPmaster.com" href="http://phpmaster.com/">phpmaster.com</a> or <a
title="SitePoint » Web Design, Web Development, Freelancing, Tech News and more" href="http://www.sitepoint.com/">sitepoint.com</a>. If you prefer getting your news via <a
title="Twitter / Home" href="https://twitter.com/">Twitter</a>, check out <a
title="PHP Master (phpmasterdotcom) on Twitter" href="https://twitter.com/#!/phpmasterdotcom">@phpmasterdotcom</a> or <a
title="SitePoint (sitepointdotcom) on Twitter" href="https://twitter.com/#!/sitepointdotcom">@sitepointdotcom</a>. Hope you find the articles useful.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/10/16/new-articles-on-phpmaster-com/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ledger stats</title><link>http://matthewturland.com/2011/09/02/ledger-stats/</link> <comments>http://matthewturland.com/2011/09/02/ledger-stats/#comments</comments> <pubDate>Fri, 02 Sep 2011 13:26:33 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[ledger]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=823</guid> <description><![CDATA[Occasionally, I need to take a break from the projects I&#8217;m working on. How do I do that? By working on another project, of course! Just over a year ago, I found ledger and began using it to manage my household finances. Some people may find that sort of thing boring, but I think it&#8217;s [...]]]></description> <content:encoded><![CDATA[<p>Occasionally, I need to take a break from the projects I&#8217;m working on. How do I do that? By working on another project, of course!</p><p>Just over a year ago, <a
title="Matthew Turland » Blog Archive » Ledger and Building It From Source on Ubuntu 10.04" href="http://matthewturland.com/2010/07/01/ledger-and-building-it-from-source-on-ubuntu-10-04/">I found ledger</a> and began using it to manage my household finances. Some people may find that sort of thing boring, but I think it&#8217;s it neat to look at the past year&#8217;s worth of transactions, get a bird&#8217;s eye view of our spending, identify trends, and so forth.</p><p>I&#8217;ve had it in the back of my mind lately that I&#8217;d like a better and preferably more visual way to do those things. After perusing through a few charting libraries, I found that <a
title="Highcharts - Interactive JavaScript charts for your webpage" href="http://www.highcharts.com/">Highcharts</a> seem to do what I needed. Among other things, it provides a plugin for the the JavaScript library I&#8217;m most familiar with: <a
title="jQuery: The Write Less, Do More, JavaScript Library" href="http://jquery.com/">jQuery</a>.</p><p>I already had a bit of <a
title="PHP: Hypertext Preprocessor" href="http://php.net/">PHP</a> code lying around to parse ledger&#8217;s XML output, give me a monthly spending breakdown by account, and output it in CSV format. I lifted the parsing logic, wrote some more PHP to search transactions by several criteria based on form input, implemented a very simple plugin system to consume the search results and output various charts, and wrote a few simple plugins. Thus, <a
title="elazar/ledger-stats - GitHub" href="https://github.com/elazar/ledger-stats">ledger stats</a> was born.</p><p>It&#8217;s still in a very rough prototypical stage, but it&#8217;s got enough functionality for others to start playing around with it. Feel free to fork it on GitHub and suggest improvements.</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/09/02/ledger-stats/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>php&#124;tek 2011 Slides</title><link>http://matthewturland.com/2011/05/27/phptek-2011-slides/</link> <comments>http://matthewturland.com/2011/05/27/phptek-2011-slides/#comments</comments> <pubDate>Fri, 27 May 2011 16:17:07 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[Conferences]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=794</guid> <description><![CDATA[If you attended my sessions at the php&#124;tek 2011 conference, thank you! I&#8217;ve linked to my slide decks below. Simply extract them and open the HTML files in any browser. Also, if you haven&#8217;t already done so, please take a moment to use the links below to leave feedback. Thanks in advance! Accessing Web Resources [...]]]></description> <content:encoded><![CDATA[<p>If you attended my sessions at the php|tek 2011 conference, thank you! I&#8217;ve linked to my slide decks below. Simply extract them and open the HTML files in any browser. Also, if you haven&#8217;t already done so, please take a moment to use the links below to leave feedback. Thanks in advance!</p><ul><li>Accessing Web Resources with PHP session &#8211; <a
title="Accessing Web Resources with PHP - php|tek 11 Session" href="http://matthewturland.com/wp-content/uploads/webscraping-tek11.zip">slides</a>, <a
title="Talk: Accessing Web Resources with PHP - Joind.in" href="http://joind.in/3386">feedback</a></li><li>Creating Desktop Applications with Titanium and PHP session &#8211; <a
title="Creating Desktop Applications with Titanium and PHP - php|tek 2011 Session" href="http://matthewturland.com/wp-content/uploads/titanium-tek11.zip">slides</a>, <a
title="Talk: Creating Desktop Applications with Titanium and PHP - Joind.in" href="http://joind.in/3391">feedback</a></li><li>Introduction to Android Development unconference session &#8211; <a
title="Intro to Android Development - php|tek 11 Unconference" href="http://matthewturland.com/wp-content/uploads/android-intro-tek11.zip">slides</a>, comment on this blog post to leave feedback</li></ul> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/05/27/phptek-2011-slides/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Looking forward to php&#124;tek 2011</title><link>http://matthewturland.com/2011/05/13/looking-forward-to-phptek-2011/</link> <comments>http://matthewturland.com/2011/05/13/looking-forward-to-phptek-2011/#comments</comments> <pubDate>Fri, 13 May 2011 15:55:30 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[Conferences]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=776</guid> <description><![CDATA[It&#8217;s been a few months since I mentioned it, but php&#124;tek 2011 is quickly closing in on us. I&#8217;ll be attending with several of my fellow Synacorians as well as giving two sessions, Accessing Web Resources with PHP and Creating Desktop Application with Titanium and PHP. Synacor, the company I work for, is one of [...]]]></description> <content:encoded><![CDATA[<p>It&#8217;s been <a
title="Matthew Turland » Blog Archive » Speaking at Confoo and php|tek" href="http://matthewturland.com/2011/02/03/speaking-at-confoo-and-phptek/">a few months</a> since I mentioned it, but <a
title="PHP Conference - Chicago - php|tek 2011" href="http://tek11.phparch.com/">php|tek 2011</a> is quickly closing in on us. I&#8217;ll be attending with several of my fellow Synacorians as well as giving two sessions, <a
title="Talk Synopses | PHP Conference - Chicago - php|tek 2011" href="http://tek11.phparch.com/talk-synopses/#Accessing-Web-Resources-with-PHP">Accessing Web Resources with PHP</a> and <a
title="Talk Synopses | PHP Conference - Chicago - php|tek 2011" href="http://tek11.phparch.com/talk-synopses/#Creating-Applications-with-Titanium-and-PHP">Creating Desktop Application with Titanium and PHP</a>. <a
title="synacor" href="http://synacor.com"></a></p><p><a
title="synacor" href="http://synacor.com">Synacor</a>, the company I work for, is one of the sponsors for php|tek. Knowing how much we all enjoy these conferences, I encourage you to take a moment while you&#8217;re at php|tek and voice your appreciation to Synacor representatives. Also, if you&#8217;re in the market for a job, consider <a
title="synacor | Careers" href="http://www.synacor.com/careers/">applying there</a> to join me in working on cool stuff with smart people.</p><p>Lastly, consider <a
title="Twitter" href="https://twitter.com/#!/CalEvans/status/69059210427641856">placing this badge</a> on your web site or blog to promote the conference.</p><p>I look forward to seeing you there.</p><p><a
title="PHP Conference - Chicago - php|tek 2011" href="http://tek11.phparch.com"><img
class="aligncenter" title="tek Chicago May 24-27 2011 Speaker" src="/wp-content/uploads/tek11_SPEAKER_badge_150x150.png" alt="tek Chicago May 24-27 2011 Speaker" /></a></p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/05/13/looking-forward-to-phptek-2011/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP_CodeSniffer Article in php&#124;architect</title><link>http://matthewturland.com/2011/04/28/php_codesniffer-article-in-phparchitect/</link> <comments>http://matthewturland.com/2011/04/28/php_codesniffer-article-in-phparchitect/#comments</comments> <pubDate>Thu, 28 Apr 2011 17:30:19 +0000</pubDate> <dc:creator>Matthew Turland</dc:creator> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://matthewturland.com/?p=773</guid> <description><![CDATA[The April 2011 issue of php&#124;architect Magazine was published today and includes an article by me entitled &#8220;Keeping Code Smelling Pretty With PHP_CodeSniffer.&#8221; Feel free to leave a comment on this blog post if you read it and enjoy it or have a suggestion on how to improve my presentation of the material. Thanks in advance!]]></description> <content:encoded><![CDATA[<p>The <a
title="php|architect — April 2011 «  php|architect – The site for PHP professionals" href="http://www.phparch.com/magazine/2011-2/april/">April 2011 issue</a> of <a
title="php|architect – The site for PHP professionals" href="http://www.phparch.com/">php|architect Magazine</a> was published today and includes an article by me entitled &#8220;Keeping Code Smelling Pretty With <a
title="PHP_CodeSniffer" href="http://pear.php.net/package/PHP_CodeSniffer">PHP_CodeSniffer</a>.&#8221; Feel free to leave a comment on this blog post if you read it and enjoy it or have a suggestion on how to improve my presentation of the material. Thanks in advance!</p> ]]></content:encoded> <wfw:commentRss>http://matthewturland.com/2011/04/28/php_codesniffer-article-in-phparchitect/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using disk: enhanced
Database Caching 31/36 queries in 0.007 seconds using apc

Served from: matthewturland.com @ 2012-05-21 16:26:40 -->
