PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 161 to 180 of 251

Using the Facebook PHP-SDK to run FQL

Using the Facebook PHP-SDK to run FQL
As of Facebook's migration to the new Graph API and its OAuth 2.0 protocols, I can say that their Developer documentation has become a confusing, misleading and generally unstrung pile of semi-deprecated articles, and I'm being optimistic in doing so. Problem is lots of old articles are still in there pointing to old practices and recommendations and most of these do not come with disclaimers pointing to new recommendations, and in some extremes old soon-to-be-deprecated methods do not even have...

Community News: Latest Releases from PHPClasses.org

Community News: Latest Releases from PHPClasses.org
Func MySQL Edit Table Code Graph IP 2 Country IP2C Last.fm Mood ontoProdukt PHP DB Object Txt Xtrator MRU manager Validate form elements QoS Bandwidth Throttler Zebra Pagination

Barcodes and QR codes in PHP

Barcodes and QR codes in PHP
For a project I am working on right now, I needed to generate barcodes and QR codes. Looking around for solutions for the barcodes I quickly found Zend_Barcode (thanks to someone pointing me to it, by the way. I had not expected a barcode generator in Zend). For QR, it was slightly harder to find a good solution. A quick question on Twitter helped a lot. In the end, it boiled down to two options: PHP QR Code and using the Google Chart API.

Testing Traits

Testing Traits
The other day I was using the BankAccount sample application during a PHPUnit training. When I showed this code ...classAResponseAextendsAHashMap{AAAA//A...}?... one of the developers said: "That is wrong! A Response is not a HashMap. You should use delegation instead." And, of course, he was right. I replied with "Actually, what we want to do here (once we have PHP 5.4) is to use traits."I went ahead and refactored the...

PHP Training in MontrAal

PHP Training in MontrAal
Together with my friends and partners from thePHP.cc, Arne Blankerts and Stefan Priebsch, I will be giving an "Advanced PHP Development" training in MontrAal in March.Web applications need to be changed and adapted frequently and quickly. Their environment, for example the size and the behaviour of the user base, is constantly changing. What was sufficient yesterday, can be insufficient today. How easy is it to adapt your code to changing requirements? Is the code hard to read and understand? Do you...

Speaking at SXSW Interactive 2011

Speaking at SXSW Interactive 2011
I will be speaking at SXSW Interactive 2011. My talk will be a solo presentation on Zend Framework 2.0 and PHP 5.3 Web Applications. A big thanks to everyone who voted for my talk in the panel picker! I'll be giving a preview of this talk at DC PHP on February 9th and at New York PHP on February 22nd. If you have specific questions you'd like to see addressed then please let me know!

What Is Data Science?

What Is Data Science?
What Is Data Science?: Analysis: The future belongs to the companies and people that turn data into products.

Zend Developer Zone: ZendCon 2010 Podcast - A New Approach to Object Persistence in PHP

Zend Developer Zone: ZendCon 2010 Podcast - A New Approach to Object Persistence in PHP
On the Zend Developer Zone there's a new post sharing the latest episode of their ZendCon 2010 sessions series - a talk from Stefan Priebsch about object persistence in PHP.The object-relational impedance mismatch makes persisting PHP objects in a relational database a daunting task. How about these new schemaless NoSQL databases? We will have a look at the problems involved with persisting PHP objects, and introduce design patterns that help solving these problems. Putting the patterns to good use, we...

Ibuildings techPortal: Database Version Control

Ibuildings techPortal: Database Version Control
On the Ibuildings techPortal today Harrie Verveer has a new post looking at database version control - one of the more difficult topics for development groups - and some of the technology that can be used to help make it a bit simpler.Database version control is something that most developers have to deal with regularly, yet only a few have actually thought about what solution might be best for them. Most people have a solution that sort of works for them, but when you ask them about the subject they are...

My gripe with Prototype

My gripe with Prototype
Many of you might already know this, but I wanted to point out why I think using the Prototype Javascript library is a bad idea. The biggest problem is actually highlighted in it's name: it changes many of the prototypes of core javascript types. You might have realized this before, when you tried to 'for(in in arr)' and came across many of the extra functions prototype added. (and you should have realized at this point this wasn't the proper way to loop through an array anyway.).This is a big difference...

Ryan Mauger's Blog: Zend Framework tips on Evernote

Ryan Mauger's Blog: Zend Framework tips on Evernote
In some of his development with the Zend Framework Ryan Mauger has gathered some helpful tips and tricks. His dropped these into an Evernote notebook and shared it for others to use.I have started compiling a notebook of tips and answers to commonly asked questions to Zend Framework questions, and common patterns of Zend Framework application design. I'm kicking it off with two notes, one for modules setup, and the other for how to route your requests so that you can divide your controllers up further...

Matthew Weier O'Phinney's Blog: Aspects, Filters, and Signals, Oh, My!

Matthew Weier O'Phinney's Blog: Aspects, Filters, and Signals, Oh, My!
Matthew Weier O'Phinney has a new in-depth post to his blog that looks at a few features of Aspect Oriented Programming and what technologies are out there that help support it right now. He mainly focuses on the features of the Lithium framework because of its filtering techniques.Last month, during PHP Advent, gwoo wrote an interesting post on Aspect-Oriented Design, or Aspect Oriented Programming (AOP) as it is more commonly known. The article got me to thinking, and revisiting what I know about AOP,...

Lorna Mitchell's Blog: Gthub API: Issues List

Lorna Mitchell's Blog: Gthub API: Issues List
Lorna Mitchell has a handy tip for those PHPers out there that use Github and want to pull off the issues from their project's Issues List quickly and easily - use their API (super simple).I looked around for some export functionality for github but I got a lot of posts complaining it wasn't there. Since I hate applications that take your data and refuse to let you remove it, I was disappointed by this news but further inspection showed that although there might be no "export from github" button, there's...

Kevin Schroeder's Blog: Subnet validation with Zend Framework

Kevin Schroeder's Blog: Subnet validation with Zend Framework
Kevin Schroeder has a new post to his blog today looking at a method for validating subnets with the Zend Framework using the Zend_Validate component.I saw on a StackOverflow posting, someone was asking to see how you could use a Zend Framework validator to tell if an IP address was between two addresses. The individual was trying to use Zend_Validate_Between to do the checking. [...] So, assuming that the individual was actually asking about subnet validation, and seeing that I couldn't find a subnet...

Community News: Latest PECL Releases for 01.11.2011

Community News: Latest PECL Releases for 01.11.2011
Latest PECL Releases: CUBRID 8.3.1.0001 mongo 1.1.1 mongo 1.1.2 mongo 1.1.3 expect 0.2.8 CUBRID 8.3.1.0002

SaAa StamenkoviA: Building CLI Apps With Symfony Console Component

SaAa StamenkoviA: Building CLI Apps With Symfony Console Component
SaAa StamenkoviA recently posted Building CLI Apps With Symfony Console Component, article which explains how to develop well structured and testable CLI application using Symfony Console Component.

Facebook Hacker Cup 2011 Qualification Round: the PHP code

Facebook Hacker Cup 2011 Qualification Round: the PHP code
I wrote about how I completed the 3 exercices of Facebook's Hacker Cup 2011 qualification round in my previous posts (Double Squares, Peg Game and Studious Student) and now I'll provide the code I wrote. Since the Facebook qualification round ended, I guess it's safe to post, and will allow people who have kept their input and output to really confirm if they won or not (it seems some people receive mails saying they do, then saying they don'ta looks like the Hacker Cup was hacked together a bit too...

Quick way to see request time distribution

Quick way to see request time distribution
Ever wondered what's hiding behind those average numbers in Pinba reports? Well, so have we. I spent some time and came up with this result: 0.00: (612, 0.99%) 0.05: ** (2239, 3.62%) 0.10: **** (3401, 5.51%) 0.15: **************************************** (25431, 41.17%) 0.20: ************ (7806, 12.64%) 0.25: ******** (5823, 9.43%) 0.30: **** (3347, 5.42%) 0.35: ** (1505, 2.44%) 0.40: (1091, 1.77%) 0.45: **** (2951, 4.78%) 0.50: ** (1238, 2.00%) 0.55: (1019, 1.65%) 0.60: (746, 1.21%) 0.65: * (662,...

Midgard in 2010

Midgard in 2010
Wow, 2010 was quite a hectic year in the Midgard world. Here is a quick summary: We held three Midgard Gatherings: one in Lodz, Poland in April, one in Tampere, Finland in July and one in Gothenburg, Sweden in November. In April we announced the new directions of the project. The project completed a migration to Git (and GitHub) for Midgard2 and Midgard MVC, together with a change in the development process to facilitate a more decentralized way of working The Long-Term Supported Midgard1 series 8.09...

Database Version Control

Database Version Control
Version control for source code is used by most development teams today. It gives you a history of all the changes you made, you can use it to share your code with others and you can work on an experimental feature without polluting the stable product. These are just some of the reasons why version control software is considered indispensable today. But where does our database fit in all this? How can we share the changes we want to make to the database with our colleagues, and eventually with our...