PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 101 to 120 of 256

Is This Thing On?

Is This Thing On?
Hard to believe that it's been so long since I posted to this blog. Almost a year. Seems like that's how I've been rolling for awhile now: blog semi-intensely for awhile, then nothing for a year or so. Twitter seems to have aggravated this, since I can often settle for a ~140 character soundbite instead of a full blog post. Kids have also contributed: my most frequent stream of posts was back in 2005, when I only had one child and he was sleeping a lot. These days, with two energetic boys, I haven't...

DeltaQuery with Solr DIH

DeltaQuery with Solr DIH
Recently it seems like pretty much all projects here at Liip are using Solr in some form or another. Never thought that all my PHP projects would end up relying on Java. This is just a short blog post to document an approach I came up with to make delta updates more efficient and at the same time easier to maintain than the "standard" approach explain in the docs. The Solr DIH handles importing documents from external data sources. In my case I have about 5GB of data in an RDBMS that gets updates every...

FrOSCamp: Symfony2 CMF and CouchDB ODM

FrOSCamp: Symfony2 CMF and CouchDB ODM
So thanks to the sponsorship of Liip we managed to get quite a few people from outside of Switzerland for some pretty exciting meetings to Zurich for FrOSCamp. Plenty of Liipers were also present. On Friday we sat together to learn and talk about Symfony2 CMF. On Saturday we split up in two teams, one working on the JCR client library Jackalope and the other starting with adding CouchDB support to Doctrine2. Thanks to David NAschler we learned a lot about JCR in general. Its pretty awesome having the...

Barcamp Hong Kong 2010

Barcamp Hong Kong 2010
Article originally from rooJSolutions blog Had a great time at Barcamp Hong Kong yesterday, Saw some really good talks on Y-Combinator, portable Mobile app development with a Webkit wrapper and gave a rather disasterous talk on Javascript (due to technical problems with my laptop, nvidia cards and projectors...)Anyway here's the slideshow it it fullI will update this post later - with a few more details

Site News: Job Postings for the week of 09.12.2010

Site News: Job Postings for the week of 09.12.2010
Job postings for the past week:Job Posting: Distribion Seeks PHP Application Developer (Dallas, Tx) Job Posting: Worldwide Travel Directory Seeks LAMP Consultant (New York City, NY)

ZendCon Uncon 2010 News

ZendCon Uncon 2010 News
We're just under two months away from ZendCon 2010 but unfortunately, I'm not running the Unconference this time around. And to my knowledge there is no longer one planned. Why this happened is open to interpretation, but I suspect it's because I asked for compensation. No, I didn't ask for a gold watch, a new computer, or even stage time. I asked for a booth in the exhibit hall. While I'd love to have the Blue Parabola crew run it, we don't have the time, availability, or interest in having one, so I...

Qafoo.com: Practical PHPUnit: Testing XML generation

Qafoo.com: Practical PHPUnit: Testing XML generation
On the Qafoo blog today there's a new post from Tobias Schlitt about a method you can use to unit test methods that generate XML without messing with a lot of extra overhead just to test the results.Testing classes which generate XML can be a cumbersome work. At least, if you don't know the right tricks to make your life easier. In this article, I will throw some light upon different approaches and show you, how XML generation can be tested quite easily using XPath.He includes a sample class,...

Brian Swan's Blog: Accessing Windows Azure Table Data as OData via PHP

Brian Swan's Blog: Accessing Windows Azure Table Data as OData via PHP
Brian Swan has a new post on his MSDN blog today looking at a different way to consume the data from Windows Azure instead of the normal interface - consuming it as OData.Did you know that data stored in Windows Azure Table storage can be accessed through an OData feed? Does that question even make sense to you? If you answered no to either of those questions and you are interested in learning more, then read on. In this post I'll show you how to use the OData SDK for PHP to retrieve, insert, update, and...

Should You Close Your PHP Code Tags?

Should You Close Your PHP Code Tags?
Even those with a modest grasp of PHP know that code must be enclosed within special tags. note: Alternative PHP tags You may also be aware that PHP code can be delimited with the lesser-used and tags. If short_open_tag is enabled within php.ini, you can use although they should be avoided if you're embedding code within Xhtml or XML. Finally, you can use the ASP-style tags if asp_tags is set within php.ini. However, if your file contains just PHP - and no escaped html code - the closing ? tag is...

Daniel Cousineau's Blog: Doctrine 1.2 MSSQL Alternative LIMIT/Paging

Daniel Cousineau's Blog: Doctrine 1.2 MSSQL Alternative LIMIT/Paging
Daniel Cousineau has a new post to his blog today looking at an alternative that can be used for pagination in your MSSQL queries than the trick with TOP and reversing the ORDER BY in Doctrine.As ugly as this technique is, it works. The problem is it requires an extreme amount of intelligence or an extreme amount of simplicity in the query in order for an automated system like Doctrine to be usable. The biggest caveat with this technique is good goddamned luck paging your query if it doesn't have an...

Cal Evans' Blog: Man up! (A developer's responsibility to their team)

Cal Evans' Blog: Man up! (A developer's responsibility to their team)
Cal Evans has a suggestion for all of the developers out there not happy with decisions being made at their workplace (or in the contracts they work with) - man up!Look, it's easy. As developers, we see people we don't respect making decisions we don't agree with. I know how difficult this position is because like every other developer in the world, I've been in this position. However, unlike a lot of developers I've talked to in recent years, I don't see "digging my heals in" or whining as...

Jani Hartikainen's Blog: Using unit tests as requirements when refactoring

Jani Hartikainen's Blog: Using unit tests as requirements when refactoring
Jani Hartikainen has a suggestion for all developers out there who are working through their code and refactoring as they go - make unit tests a requirement during the process.What should you do to make sure new code works properly when you're refactoring old code? I asked myself this question recently, when I needed to refactor a big bunch of procedural PHP code into a neat, testable, OOP-style interface. The conclusion I came into is that you should write unit tests - not to test the old code, but as...

Chris Shiflett's Blog: Twitter OAuth

Chris Shiflett's Blog: Twitter OAuth
Chris Shiflett has a new post to his blog today about the new authentication model Twitter uses, OAuth, and how you can connect your PHP applications to their services.I've been working on a project with my Analog friends that might use the Twitter API to streamline stuff like signup for those who already use Twitter. Because this now requires OAuth, I needed to implement OAuth quickly, so that we had something to test and consider.He chose this Twitter library to connect his application and mentions the...

Site News: Popular Posts for the Week of 09.17.2010

Site News: Popular Posts for the Week of 09.17.2010
Popular posts from PHPDeveloper.org for the past week:CodeForest.net: Key/value tables and how to use them in PHP and MySQL Dhiraj Patra's Blog: Getting Started with iPFaces PHP Mobile Application Framework TechChorus Blog: What is your definition of a "True PHP Developer?" Cal Evans' Blog: How do I find good PHP developers? Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch Oracle Technology Network: PHP Web Auditing, Authorization and Monitoring with Oracle Database Smashing...

Practical PHPUnit: Testing XML generation

Practical PHPUnit: Testing XML generation
Testing classes which generate XML can be a cumbersome work. At least, if you don't know the right tricks to make your life easier. In this article, I will throw some light upon different approaches and show you, how XML generation can be tested quite easily using XPath.

Brandon Beasley's Blog: Codeigniter Vanity URLs

Brandon Beasley's Blog: Codeigniter Vanity URLs
On his blog Brandon Beasley has a new tutorial for CodeIgniter users out there on how to create "vanity URLs" that are correctly handled by the framework's routing system.Recently I worked on a CodeIgniter project that needed the ability to use vanity URLs and display stats about the user represented by the URL. For instance, suppose you want to pull all public data on a user from Twitter and display it within your web application on a customized URL such as http://mytwitterapp.com/brandonbeasley . The...

Twitter OAuth

Twitter OAuth
This post is a quick walkthrough of implementing Twitter OAuth, complete with a working demo. I've been working on a project with my Analog friends that might use the Twitter API to streamline stuff like signup for those who already use Twitter. Because this now requires OAuth, I needed to implement OAuth quickly, so that we had something to test and consider.As with all things related to developing with Twitter, my first step was to seek advice from my good friend Ed Finkler. Without hesitation, he...

ServerGrove Blog: Implementing a staging/live website system with symfony and Apostrophe CMS

ServerGrove Blog: Implementing a staging/live website system with symfony and Apostrophe CMS
On the ServerGrove.com blog today there's a new tutorial posted showing how to, using symfony and the Apostrophe CMS, create a full staging and live setup with different URLs for each.This system allows you to make changes to a website and preview them before actually going live. It can be implemented with any website, we will show the necessary requirements and steps to implement with symfony and Apostrophe CMS, but you can also take parts of the tutorial and implement them without these applications....

Perplexed Labs: Convert HTML to PDF in PHP (libwkhtmltox extension)

Perplexed Labs: Convert HTML to PDF in PHP (libwkhtmltox extension)
On the Perplexed Labs blog today Matt has this new post looking at a common issue developers face when they're trying to make their site easier for users to get their information off a site and onto their local machines - converting HTML over to PHP (using wkhtmltopdf).Often this involves using somewhat cryptic output primitives and creating the PDF by hand. Wouldn't it be nice if there were a way to re-use all that beautiful HTML, CSS, and maybe even Javascript that you already wrote? Well, there is....

Announcing Zend Framework's Bug Hunting Days: Today, Tomorrow & Saturday!

Announcing Zend Framework's Bug Hunting Days: Today, Tomorrow & Saturday!
Yep, it's the third week of the month again- and you know what that means: Zend Framework Monthly Bughunt! Today, Tomorrow and Saturday of September (the 16th, 17th and 18th 2010), we'll be hosting our monthly bug hunt. For those of you unfamiliar with the event, each month, we organize the community to help reduce the number of open issues reported against the framework.