PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 1981 to 2000 of 6889

Smoothing with Holt-Winter

Smoothing with Holt-Winter
In one of his talks at QCon, John Allspaw mentioned using Holt-Winter exponential smoothing on various monitoring instances. Wikipedia has a good entry on the subject, of course, but the basic idea is to take a noisy/spikey time series and smooth it out, so that unexpected changes will stand out even more. That's often initially done by taking a moving average, so say averaging the last 7 days of data and using that as the current day's value. More complicated schemes weight that average, so that the...




Anthony Ferrara's Blog: Handling Plugins In PHP

Anthony Ferrara's Blog: Handling Plugins In PHP
Anthony Ferrara has a new post today looking at plugin handling and a few of the more common design patterns that can be used to implement them in your applications.A common problem that developers face when building applications is how to allow the application to be "plug-able" at runtime. Meaning, to allow non-core code to modify the way an application is processed at runtime. There are a lot of different ways that this can be done, and lots of examples of it in real life. Over a year ago, I wrote a...

Kevin Schroeder's Blog: My first stab at the Dependency Injection Container in Zend Framework 2

Kevin Schroeder's Blog: My first stab at the Dependency Injection Container in Zend Framework 2
Kevin Schroeder has a new post to his blog about some of his first trials with the DI container that comes with the Zend Framework 2.With beta 3 now being released I have started to spend some time getting used to the new MVC components and the architecture in general. I turns out that was too much. When I learn something new I like to start with something broken and fix it. [...] So since I already know how to use event managers the next most basic thing I needed to understand was Dependency Injection....

Smashing Magazine: Writing Unit Tests For WordPress Plugins

Smashing Magazine: Writing Unit Tests For WordPress Plugins
On the Smashing Magazine site there's a recent post looking at how to unit test WordPress plugins via the frontend using QUnit (part of the jQuery project).My first goal for the WordPress Editorial Calendar was to make it do anything useful. I was new to JavaScript and PHP and didn't really know what I could pull off. In a few days I had a proof of concept. In a few more I had a working version and was asking friends to install it. The calendar worked...sort of. I spent three times as much time fixing...

Hari KT's Blog: Is there a design flaw for the Components or Packages made by Symfony2 and ZF2

Hari KT's Blog: Is there a design flaw for the Components or Packages made by Symfony2 and ZF2
Hari K T has a new post to his blog that shares his concern about a "design flaw" in the component/package methods promoted by Symfony2 and Zend Framework 2:Looking from outside both Symfony2 and ZF2 is full of standalone components. But the reality is not the same. Though Symfony2 components are split into each components in github, you cannot give a pull request to that component. The tests for all the components still resides in the core.He points to the Aura framework project as a good example of how...



Daniel Krook's Blog: Migrating PHP applications to DB2

Daniel Krook's Blog: Migrating PHP applications to DB2
As Daniel Krook mentions in his latest blog post, the IBM developerWorks site has just posted the last part of a series he's been writing about migrating a PHP application's backend over to DB2.IBM developerWorks has just published the final part in our series on migrating a PHP application from MySQL to DB2. [...] In addition to sharing our own experience, the series highlights the number of resources available to you to carry out your own migration.The series is broken up into four parts: Prepare for...

Site News: Popular Posts for the Week of 03.09.2012

Site News: Popular Posts for the Week of 03.09.2012
Popular posts from PHPDeveloper.org for the past week:Project: phpVirtualBox - VirtualBox Management Tool Jeremy Cook's Blog: Making PHPUnit, Doctrine & MySQL Play Nicely Zend.com: Zend Framework 2.0 Beta 3 Release Gives Developers an Early Start Sebastian Marek's Blog: PHP 5.4 Compatibility Coding Standard for PHP_CodeSniffer Slawek Lukasiewicz's Blog: New Features in PHP 5.4 - JSON Extension & header_register_callback PHPMaster.com: Type Hinting in PHP Bas De Nooijer's Blog: Benchmarking PHP Solr...

Vance Lucas' Blog: Nginx + PHP-FPM Blank Pages with Phar Packages

Vance Lucas' Blog: Nginx + PHP-FPM Blank Pages with Phar Packages
Vance Lucas has a new post sharing some of his experience in setting up nginx+PHP-FPM with phar packages that he recently had with setting up a new server instance for a company. The problem showed itself as blank pages, apparently due to a feature in the Suhosin security package.Ran into this issue when setting up a new VPS for AutoRidge. This happens when using Nginx and PHP-FPM with PHP 5.3+ and the Suhosin patch when trying to run a PHP script using a PHAR package. From what I can gather, the Suhosin...

Konr Ness' Blog: Zend_Config Benchmark - JSON, Array, INI, XML, YAML

Konr Ness' Blog: Zend_Config Benchmark - JSON, Array, INI, XML, YAML
In this recent post to his blog, Konr Ness has benchmarked the components that the Zend Framework uses to read in different types of configuration files - JSON, native PHP arrays, INI, XML and YAML files.If you application relies on parsing one or several config files each time it is bootstrapped it is important that you select a file format that is fast to parse. But you also want to select a config file format that is easy for a human to read and edit. In a recent application I am building I also had...

Rob Allen's Blog: Module specific bootstrapping in ZF2

Rob Allen's Blog: Module specific bootstrapping in ZF2
Rob Allen has a new post to his blog today looking at bootstrapping specific modules in a Zend Framework 2-based application without having to do the entire set.Following on from the discussion on modules, we can hook into the event system to do module specific bootstrapping. By this, I mean, if you have some code that you want to run only if the action to be called is within this module, you can hook into the Application's dispatch event to achieve this.He starts with an example of a basic module...

A Cloudy Place: PHPFog and Pagoda Box: A Look at PHP Platforms

A Cloudy Place: PHPFog and Pagoda Box: A Look at PHP Platforms
On the "A Cloudy Place" blog there's a recent post comparing two of the more popular platform-as-a-service PHP offerings out there - PHPFog and PagodaBox.Platform services like Heroku and AppEngine have been well-known for the last few years and many companies have been using them successfully in their business. They are more attractive to startups, due to low initial cost and smaller headaches involved in setup. 2011 was a great year for platform services, with the emergence of many platform services...

Migrating PHP applications to DB2

Migrating PHP applications to DB2
IBM developerWorks has just published the final part in our series on migrating a PHP application from MySQL to DB2. Learn why to move a PHP application to DB2, how to plan the migration, how to execute it, how to support it, and how to handle potential risks based on the experience of an IBM [...]

PHPMaster.com: Taking Advantage of PHP's Built-in Server

PHPMaster.com: Taking Advantage of PHP's Built-in Server
On PHPMaster.com today there's a new tutorial for those on the bleeding edge of PHP using the latest released version (5.4) and a feature that comes with it - using the built-in webserver that comes bundled for testing purposes.One of the cooler features of the new PHP 5.4 release is a built-in web server designed specifically for development and testing. Now you can write and test your code without having to have a full-fledged LAMP configuration - just launch a the built-in server from the command...

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Dan Horrigan's Blog: Security in FuelPHP Steve Francia's Blog: Getting Started with Symfony2 Ole Markus' Blog: Catching fatal errors in PHP David Behler's Blog: Dev-Box: Virtual Machines for Developers Stoyan Stefanov's Blog: Automating HTTPWatch with PHP WebDevHub: Scheduling emails in PHP php|architect: More powerful Validation from Respect PHPBuilder.com: Creating and Manipulating PDFs with PHP and FPDF Webification.com: Roundup of 17...

CSS: Love Hate

CSS: Love Hate
The slightly odd title is there for a reason. This post exists for a reason. I'll explain botha I've always struggled to remember the order in which hyperlink styles should be defined in a stylesheet. Hyperlink styles? Order? I'm talking about these (in alphabetical order): :active :hover :link :visited They should be specified in the right order or things won't work the way you'd expect them to. Here they are again but this time in the correct order: :link :visited :hover :active I could go into...

Latest PHP Tweets