<?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>Wed, 19 Jun 2013 06:42:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: NetBeans plugin for running phpt tests]]></title>
      <guid>http://www.phpdeveloper.org/news/11593</guid>
      <link>http://www.phpdeveloper.org/news/11593</link>
      <description><![CDATA[<p>
In a <a href="http://schlueters.de/blog/archives/95-NetBeans-plugin-for-running-phpt-tests.html">new post to his blog</a> today <i>Johannes Schluter</i> talks about a plugin for the NetBeans IDE that allows you to run tests for PHP's regression test suite right in the editor.
</p>
<blockquote>
<p>
The test system therefore produces a bunch of files, a file containing the expected output, one containing the actual output and a diff between these as relevant files. The problem there is that the diff, for being portable, is using a quite simple mechanism which only shows the lines which differ without any context. 
</p>
<p>[...] Lately I've changed my way of working and use vim less, I still use it, but I use NetBeans as an IDE more and more. So I thought a bit about that test issue and searched my brain for my Java skills and started playing around to see whether I manage to write a NetBeans plugin which can run the tests and report the results in a usable way.
</p>
</blockquote>
<p>
Hes <a href="https://launchpad.net/phpttestrunner">created a project</a> for the plugin (where you can download the latest version - <a href="https://launchpad.net/phpttestrunner/trunk/0.6.0">0.6.0</a>) and install it to your local IDE copy. It adds a toolbar icon, asks for the location of the binaries to test and runs the diff quickly and easily. You can see a screenshot of the tool <a href="http://schlueters.de/~johannes/nb-phpttest.png">in action here</a>.
</p>]]></description>
      <pubDate>Thu, 18 Dec 2008 09:35:16 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Flickinger's Blog: Ruby on Fails (story and stickers!)]]></title>
      <guid>http://www.phpdeveloper.org/news/11047</guid>
      <link>http://www.phpdeveloper.org/news/11047</link>
      <description><![CDATA[<p>
As a new meme was launched at this year's <a href="http://www.zendcon.com">Zend/PHP Conference & Expo</a> and, while it's not directly related to PHP, it was still very warmly accepted by the community - <i>Christian Flickinger</i>'s "Fails" logos (<a href="http://spooons.etsy.com/">see here</a>). He's <a href="http://www.nexdot.net/blog/2008/09/15/ruby-on-fails-story-and-stickers/">written up a post</a> about it for his blog too:
</p>
<blockquote>
<p>
So, a week before PHP|TEK 2008 I came up with the genius idea to take the Ruby on Rails logo, which is protected against re-use (hahaha), and parody it. I wanted to express my views of Ruby on Rails (though never have using RoR) through this modification.
</p>
<p>
I took the logo and simply changed the "R" to an "F" using a font that was almost identical to the original.
</p>
</blockquote>
<p>
You can ask anyone that was at ZendCon this year about them - they were everywhere. <i>Christian</i> did a great job on a simple parody that shares the sentiment of many members of the PHP community (and others outside I'm sure). He has them for sale on his <a href="http://spooons.etsy.com/">etsy shop</a> if you'd like to pick up some of your own.
</p>]]></description>
      <pubDate>Fri, 19 Sep 2008 11:17:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Creating buttons with Imagick]]></title>
      <guid>http://www.phpdeveloper.org/news/9096</guid>
      <link>http://www.phpdeveloper.org/news/9096</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has another quick new tutorial on using Imagick in your applications - this time it's about <a href="http://valokuva.org/?p=84">making buttons</a> dynamically.
</p>
<blockquote>
The button in this example is created after this tutorial <a href="http://xeonfx.com/tutorials/easy-button-tutorial/">http://xeonfx.com/tutorials/easy-button-tutorial/</a> (yes, I googled "easy button tutorial"). The code and the button it creates are both very simple but the effect looks really nice.
</blockquote>
<p>
The example code creates a simple round button with a fill color and white text. Their examples show a red, green and blue buttons.
</p>]]></description>
      <pubDate>Thu, 22 Nov 2007 17:05:50 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Playing with GtkStyle]]></title>
      <guid>http://www.phpdeveloper.org/news/7471</guid>
      <link>http://www.phpdeveloper.org/news/7471</link>
      <description><![CDATA[<p>
<i>Marc Quinton</i> has posted <a href="http://www.php-gtk.eu/node/150">a pointer</a> on the PHP-GTK Community Site about <a href="http://php.classes.free.fr/wiki/index.php5?title=Gtk/StyleButtons">his article</a> on how to use the GtkStyle Events inside of a PHP-GTK application.
</p>
<blockquote>
Here you will find how GtkWidget standards buttons are built and can be drawn. Here we use ready to use methods from GtkStyle class to draw buttons, checkboxes and handles. You can use theses classes to override standard buttons features. It's also useful to understand how GtkWidgets work. This class study started when I was trying to display a handle and did not found any one.
</blockquote>
<p>
It's less of a tutorial and <a href="http://php.classes.free.fr/wiki/index.php5?title=Gtk/StyleButtons">more of a code dump</a>, but it gives you a good idea of how all of the functionality can work together.
</p>]]></description>
      <pubDate>Wed, 21 Mar 2007 10:36:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP-GTK Community Site: Easily empty GtkContainer/GtkWindow]]></title>
      <guid>http://www.phpdeveloper.org/news/7407</guid>
      <link>http://www.phpdeveloper.org/news/7407</link>
      <description><![CDATA[<p>
The PHP-GTK Community site has <a href="http://www.php-gtk.eu/code-snippets/empty-container">a quick new post</a> today showing how to create/empty out a GtkContainer or GtkWindow in your code.
</p>
<blockquote>
This function provides an easy way to empty a GtkWindow/GtkContainer. I use it when i need to refresh a part of my app by replacing some widgets with others. It can destroy or preserve the child widgets depending on your needs.
</blockquote>
<p>
They <a href="http://www.php-gtk.eu/code-snippets/empty-container">provide both</a> the code itself and a sample usage - a three line script that shows three ways to use it - empty out a container, empty out the container but keep its children intact, and how to use it in the event of a button click.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2007 08:42:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Moon's Blog: PDO Turbo Button]]></title>
      <guid>http://www.phpdeveloper.org/news/6140</guid>
      <link>http://www.phpdeveloper.org/news/6140</link>
      <description><![CDATA[<p>
On the "Ramblings of a web guy" blog by <i>Brian Moon</i>, there's <a href="http://doughboy.wordpress.com/2006/08/25/pdo-turbo-button/">a good look</a> at some benchmarks run with PDO, normally versus with the "turbo button" as talked about <a href="http://www.phpdeveloper.org/news/6132">by Wez</a>.
</p>
<blockquote>
<p>
So, a while back, I did some tests with the mysql, mysqli and PDO extensions. In those tests, I found PDO to be much slower for selects than mysql and mysqli. Half as slow in fact.
</p>
<p>
So, I decided to try Wez's trick of emulating prepared statements to see how PDO did. The results were interesting. Not sure if these are the "fair comparisons" that Wez wants to see, but I gave it my best shot.
</p>
</blockquote>
<p>
His <a href="http://doughboy.wordpress.com/2006/08/25/pdo-turbo-button/">first set of stats</a> was pretty close to his originals back when he first tested, and the second set of tests (with the "button" on) seem to be a bit hit and miss on the performance upgrade using this method.
</p>
<blockquote>
I ran this several times. Maybe Wez or someone that works on PDO can shed some light on this. Seems like it would be tough to keep track of when to use this flag and when not to.
</blockquote>]]></description>
      <pubDate>Fri, 25 Aug 2006 08:09:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks: Developing PHP the Ajax way, Part 2 - Back, Forward, Reload]]></title>
      <guid>http://www.phpdeveloper.org/news/5541</guid>
      <link>http://www.phpdeveloper.org/news/5541</link>
      <description><![CDATA[<p>
IBM developerWorks has posted <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-rad2/">the second part of their series</a> covering the development of PHP and Ajax to create a photo gallery application. In this part, they work off of the gallery already created in <a href="http://www.phpdeveloper.org/news/5489">part one</a>, taking care of one issue that plagues Ajax application - the breaking of the back button.
</p>
<quote>
<i>
A major challenge of Asynchronous JavaScript and XML (Ajax)-driven Web sites is the lack of a Back button. We will use JavaScript to create a history stack for the Ajax photo gallery built in Part 1 of this two-part "<a href="http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=developing+php+ajax+way">Developing PHP the Ajax way</a>" series. This history stack will closely mirror the history utility found in Web browsers, and it will be used to provide Back, Forward, and Reload buttons for the application.
</i>
</quote>
<p>
They <a href="http://www-128.ibm.com/developerworks/opensource/library/os-php-rad2/">start</a> with a look at what it means to "save state" in the browser, including the use of the Back button to navigate between pages. Seeing that Ajax breaks this, they move ahead with a simple solution - creating an internal history stact for the application and use its own navigation methods. They provide some examples images to use and all of the code you'll need to accomplish this. 
</p>
<p>
They create a class using the popular <a href="http://prototype.conio.net/">Prototype</a> javascript library to create functions like do_add, do_back, and do_forward to correctly handle the adding and deleting of the items from the stack. Once that script is developed, they take and integrate it back with the photo gallery from <a href="http://www.phpdeveloper.org/news/5489">part one</a>.
</p>]]></description>
      <pubDate>Thu, 08 Jun 2006 06:04:23 -0500</pubDate>
    </item>
  </channel>
</rss>
