<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 17:31:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Perspective transformations]]></title>
      <guid>http://www.phpdeveloper.org/news/11888</guid>
      <link>http://www.phpdeveloper.org/news/11888</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> is back to blogging with <a href="http://valokuva.org/?p=112">this new post</a> today - it's a look at another example with <a href="http://imagemagick.org">ImageMagick</i>. It shows how to <a href="http://imagemagick.org/Usage/distorts/#perspective">distort an image</a> but keep its perspective.
</p>
<blockquote>
I took some time to actually understand the perspective transformations properly using the excellent ImageMagick examples (mainly created by Anthony Thyssen) as a reference. The basic idea of perspective distortion seems simple: to distort the control points to new locations.
</blockquote>
<p>
His example uses a checkerboard as the image to manipulate and, based on an array of settings (source, destination) sets control points for the image to twist and turn from. The final output is echoed from a call to distortImage.
</p>]]></description>
      <pubDate>Thu, 05 Feb 2009 09:36:02 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Stocker's Blog: Profile XSLT transformations within PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/7731</guid>
      <link>http://www.phpdeveloper.org/news/7731</link>
      <description><![CDATA[<p>
<i>Christian Stocker</i> <a href="http://blog.liip.ch/archive/2007/04/29/profile-xslt-transformations-within-php.html">points out</a> a handy patch for the PHP XSLT functionality today - one that allows you to test to see where in the transformation the most time is spent.
</p>
<blockquote>
Look no further than <a href="http://svn.bitflux.ch/repos/public/misc/xslpatches/xslt-profiling-php.patch">this patch</a> to the PHP <a href="http://php.net/xsl">XSL extension</a>. It uses the built in profiler of libxslt to get the information which template was called how many times and how much time was spent in them. It may help in improving the speed of your XSLT transformations, like a PHP debugger can help in profiling your PHP scripts.
</blockquote>
<p>
Besides the link, he <a href="http://blog.liip.ch/archive/2007/04/29/profile-xslt-transformations-within-php.html">also includes</a> a simple sample script that uses the setProfiling function to write out to a text file the stats of the transformation. He also includes a (very beta) <a href="http://svn.bitflux.ch/repos/public/misc/xslpatches/libxslt-import-bench.patch">patch</a> to the libxslt functionality itself to make it easier to not only time the overall execution of the xslt, but also allows for timing of other individual templates that might be included.
</p>]]></description>
      <pubDate>Mon, 30 Apr 2007 10:09:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Dikini.net: Rewriting macros - the peculiar case of php]]></title>
      <guid>http://www.phpdeveloper.org/news/6062</guid>
      <link>http://www.phpdeveloper.org/news/6062</link>
      <description><![CDATA[<p>
On Dikiki.net today, there's <a href="http://dikini.net/16.08.2006/rewriting_macros_the_peculiar_case_of_php">a new post</a> that's a continuation of a series (<a href="http://www.phpdeveloper.org/news/5882">first post</a>, <a href="http://www.phpdeveloper.org/news/5923">second post</a>) dealing with macro programming in PHP.
</p>
<blockquote>
Without going into theoretical details, some of which are quite alien to me, I'll try to describe some of the challenges that pattern patching rewriting macros might pose for a language like php. After brief explanation what kind of a beast is this, I try to explore some of the finer points, which might cause problems. The intent of this post is to sketch a design and highlight some of the possible issues.
</blockquote>
<p>
He <a href="http://dikini.net/16.08.2006/rewriting_macros_the_peculiar_case_of_php">breaks up the post</a> into a few sections:
<ul>
<li>pattern matching rewrite only macros - a bird eye view
<li>Transformation time
<li>Basic/skeleton shapes and intermediate shapes
<li>Code generation issues specific to php
<li>Hygiene
<li>A rough macro shape outline
<li>Output/Status of the project
</ul>
There are code examples (of how it should work) and explainations of the issues PHP would face to accomplish this goal.
</p>]]></description>
      <pubDate>Thu, 17 Aug 2006 07:29:04 -0500</pubDate>
    </item>
  </channel>
</rss>
