News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Johannes Schluter's Blog:
NetBeans plugin for running phpt tests
December 18, 2008 @ 09:35:16

In a new post to his blog today Johannes Schluter talks about a plugin for the NetBeans IDE that allows you to run tests for PHP's regression test suite right in the editor.

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.

[...] 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.

Hes created a project for the plugin (where you can download the latest version - 0.6.0) 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 in action here.

0 comments voice your opinion now!
netbeans plugin phpt test regression toolbar button wizard


Christian Flickinger's Blog:
Ruby on Fails (story and stickers!)
September 19, 2008 @ 11:17:18

As a new meme was launched at this year's Zend/PHP Conference & Expo and, while it's not directly related to PHP, it was still very warmly accepted by the community - Christian Flickinger's "Fails" logos (see here). He's written up a post about it for his blog too:

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.

I took the logo and simply changed the "R" to an "F" using a font that was almost identical to the original.

You can ask anyone that was at ZendCon this year about them - they were everywhere. Christian 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 etsy shop if you'd like to pick up some of your own.

1 comment voice your opinion now!
zendcon08 sticker ruby fails etsy order button magnet


Mikko Koppanen's Blog:
Creating buttons with Imagick
November 22, 2007 @ 17:05:50

Mikko Koppanen has another quick new tutorial on using Imagick in your applications - this time it's about making buttons dynamically.

The button in this example is created after this tutorial http://xeonfx.com/tutorials/easy-button-tutorial/ (yes, I googled "easy button tutorial"). The code and the button it creates are both very simple but the effect looks really nice.

The example code creates a simple round button with a fill color and white text. Their examples show a red, green and blue buttons.

0 comments voice your opinion now!
imagick button tutorial round fill color font imagick button tutorial round fill color font


PHP-GTK Community Site:
Playing with GtkStyle
March 21, 2007 @ 10:36:00

Marc Quinton has posted a pointer on the PHP-GTK Community Site about his article on how to use the GtkStyle Events inside of a PHP-GTK application.

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.

It's less of a tutorial and more of a code dump, but it gives you a good idea of how all of the functionality can work together.

0 comments voice your opinion now!
phpgtk gtkstyle gtkeventbox standard button phpgtk gtkstyle gtkeventbox standard button


PHP-GTK Community Site:
Easily empty GtkContainer/GtkWindow
March 08, 2007 @ 08:42:00

The PHP-GTK Community site has a quick new post today showing how to create/empty out a GtkContainer or GtkWindow in your code.

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.

They provide both 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.

0 comments voice your opinion now!
phpgtk gtkcontainer gtkwindow empty children button event phpgtk gtkcontainer gtkwindow empty children button event


Brian Moon's Blog:
PDO Turbo Button
August 25, 2006 @ 08:09:32

On the "Ramblings of a web guy" blog by Brian Moon, there's a good look at some benchmarks run with PDO, normally versus with the "turbo button" as talked about by Wez.

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.

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.

His first set of stats 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.

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.
0 comments voice your opinion now!
pdo turbo button speed benchmark test prepared statement pdo turbo button speed benchmark test prepared statement


IBM developerWorks:
Developing PHP the Ajax way, Part 2 - Back, Forward, Reload
June 08, 2006 @ 06:04:23

IBM developerWorks has posted the second part of their series 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 part one, taking care of one issue that plagues Ajax application - the breaking of the back button.

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 "Developing PHP the Ajax way" 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.

They start 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.

They create a class using the popular Prototype 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 part one.

0 comments voice your opinion now!
ajax developing tutorial part2 photo gallery back button history ajax developing tutorial part2 photo gallery back button history



Community Events





Don't see your event here?
Let us know!


composer podcast framework language opinion interview series symfony security tool package release version update install laravel voicesoftheelephpant community introduction library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework