| Adding an RSS Feed to an Online Book Catalog |
Rating: 0.00 (0 votes)
In this conclusion to a three-part series on building an online book catalog application with Ruby-on-Rails we ll finish creating the search ability and add both a regular page and an RSS feed that lets users see the latest book titles to arrive at the store. This article is excerpted from chapter four of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
Cloud Servers in Demand - GoGrid Start Small and Grow with Your Business. $0.10/hour |
|
|
|
 |
| NETTUTS.com: Why you Should be using PHP's PDO for Database Access |
Rating: 0.00 (0 votes)
According to this latest tutorial from NETTUTS.com, you should be using PHP's PDO database access layer to interact with your database of choice.
Many PHP programmers learned how to access databases by using either the mysql or mysqli extensions. Since PHP 5.1, there's been a better way. PHP Data Objects (PDO) provide methods for prepared statements and working with objects that will make you far more productive!
The introduce what PDO is, what kind of databases it supports and, of course, some code to get you started in connecting your application to the backend. They show how to handle exceptions, how to use placeholders, and performing inserts and selects on your data.
|
|
|
|
 |
| PHPBuilder.com: Use PHPUnit to Implement Unit Testing in Your PHP Development |
Rating: 0.00 (0 votes)
On PHPBuilder.com today there's a new tutorial introducing PHPUnit, the popular unit testing framework (based off the ideas from JUnit). Jason shows how you can use it to make a more robust and easier to maintain application.
We are creating web applications, with one important difference between the two being that the latter are built using a rigorous process, and with that, a rigorous testing program. [...] The PHP community has long had a great testing utility at their disposal known as PHPUnit, and in this tutorial I offer a brief introduction to its benefits.
He shows how to get it installed (via PEAR), writing up a first unit test to check for the contents of a string (making HTML) and executing the test to verify the outcome. He aso mentions something interesting you can use when you need to send a lot of information over to a test - providers.
|
|
|
|
 |
| Brandon Savage's Blog: Revisiting: Why Every Developer Should Write Their Own Framework |
Rating: 0.00 (0 votes)
In a recent post to his blog Brandon Savage revisits one of his older posts taking about why he thinks every developer should write their own framework. In this more recent post that brings up another idea - people who write frameworks together are very smart.
I've always known that a group of very committed people could be much more effective at producing a good product than I could be on my own, and for a simple reason: the collective mind usually irons out ideas that work much more quickly than a solitary developer or thinker. [...] The point of this article is to encourage developers to experiment, but remind them that at the same time, there are already existing solutions that work exceptionally well for many if not most needs.
He still recommends developing a framework as a learning tool, but maybe not to use in production applications. There's bigger, more well-developed frameworks out there that can do the job and have the benefit of a "hive mind" of talented developers with perspectives you might not even think of.
|
|
|
|
 |
| Site News: Blast from the Past - One Year Ago in PHP |
Rating: 0.00 (0 votes)
Here's what was popular in the PHP community one year ago today:Ask About PHP Blog: Google Analytics API class for PHP
Symfony Blog: The new Getting Started tutorial
Matt Curry's Blog: Connecting CakePHP Plugins
ITNewb.com: PHP Encryption / Decryption Using the MCrypt Library (libmcrypt)
PHPClasses.org Blog: Book Review: Pro PHP: Patterns, Frameworks, Testing and More
Coders' View Blog: The Strategy Pattern Using PHP
Wenbert Del Rosario's Blog: Zend Framework: Making the Built-in Breadcrumb Helper Work
Adam Jensen's Blog: Distributing Zend Framework Modules
PHPFreaks.com: or die() must die
Stefan Mischook's Blog: PHP Video: the Zend Framework and Web 2.0
Community News: PHP.JS gets a new home (and compiler)
Learn.IIS.net: Build a High-Performance PHP Stack with Windows IIS and Zend Server
TheWebSqueeze.com: PHP5 Abstraction for the Rest of Us
NETTUTS.com: How to Set Up a Killer WordPress Testing Environment Locally
Community News: Guide to Date and Time Programming (php|architect)
|
|
|
|
 |
| Keith Casey's Blog: Event Driven Programming |
Rating: 0.00 (0 votes)
In a new post to his blog today Keith Casey talks about something that might be a bit foreign to some PHP developers out there event driven programming. He relate it to the Flex world where it's more commonly used.
When you initially dive into the world of Flex development, most PHP'ers will quickly notice something weird. We're out of the world of Request/Response that we know and understand and into an odd world of Events, Listeners, and Publishers/Subscribers where things just don't play well together.
He talks about the Observer design pattern and how it works to provide an interface to other objects who are listening in and waiting for events to happen (he uses an airline analogy). He also gives a more concrete illustration - uploading a file - and how the events would be used to handle each part of the process.
|
|
|
|
 |
| PHP.net: TestFest 2010 |
Rating: 0.00 (0 votes)
A new announcement on the PHP.net site today talks about this year's TestFest, an even to help increase the code coverage of the tests on the PHP language itself.
During TestFest, PHP User Groups and individuals around the world organize local events where new tests are written and new contributors are introduced to PHP's testing suite. Last year was very successful with 887 tests submitted and a code coverage increase of 2.5%. This year we hope to do better.
The SVN repository and reporting tools are back again this year (a great improvement over years past) with the new additions of an automated test build environment and screencasts showing the tools in action. You can find out more about this year's event on the TestFest page of the PHP.net wiki (including finding an even near you to participate in).
|
|
|
|
 |
| Ole Markus' Blog: Gentoo Linux and PHP-FPM |
Rating: 0.00 (0 votes)
Because of a recent addition to the the Gentoo PHP package (FPM support) they're looking for people to test it out and report back the results. To help, Ole Markus has written up some instructions on how to get it up and working on your system with nginx.
PHP just added the FPM patch to their 5.3 branch, making it likely that PHP 5.3.3 will support the FPM SAPI. The FPM SAPI is an improved fcgi SAPI that allows for more advanced configuration than the original fcgi SAPI. One of the most useful features is process management, which makes it very useful for lightweight webservers, such as nginx, that does not handle process management of fcgi themselves.
There's only a few commands you'll need to get this new package installed and working with your local nginx install with the help of the emerge and layman tools. He also includes the configuration change you'll need to make to the nginx config file to get it working as a FastCGI module.
|
|
|
|
 |
| Forum Implementation: Viewing Posts |
Rating: 0.00 (0 votes)
In this third part of a four-part series on setting up a forum for an online bookstore using Ruby on Rails we pick up where we left off we ll also start setting up the sections that allow visitors to view forum posts. This article is excerpted from chapter six of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
IT Training Programs Get The It Skills That Gets Jobs! Further Your Career Today |
|
|
|
 |
| Going Global with Multiple Language Support |
Rating: 0.00 (0 votes)
In this second part of a four-part article series on adding support for multiple languages to a Ruby-on-Rails ecomerce application you will learn how to use Globalize to add this important capability. This article is excerpted from chapter 1 of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
Microsoft Exchange Server 2010 Simplify Administration and Deployment of Messaging - Free Download. |
|
|
|
 |
| Gennady Feldman's Blog: Leveraging Oracle connection metadata functionality |
Rating: 0.00 (0 votes)
Gennady Feldman has a new post to his site looking at a feature of the Oracle connection functionality that comes with PHP's integration with the powerful database - metadata functionality.
Now with OEM finding what the query is is really easy (you might need to buy Oracle Performance pack to monitor vitals and performance information). So you know which query caused the spike. Do you know where that query is in your application code? [...] You already have a ton of applications written, having to go through every query to add this meta information is a ton of dev effort. What do you do?
He's found a way to help solve the problem - you can use a few handy functions to let you set some more information about the connection. These settings can give you more information about the client, a client identifier, module information and what action or function is performing the query. This information can then be queried in via the V$session variable on the server side.
|
|
|
|
 |
| Building an Online Book Catalog |
Rating: 0.00 (0 votes)
Now that we ve built an online bookstore application in Ruby-on-Rails it s time to serve our customers by building a book catalog of the store that they can use for browsing viewing book details searching for books and finding out about new titles at a glance. This article the first in a three-part series is excerpted from chapter four of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
AutoCAD LT® 2011 Trial Try The New AutoCAD LT® And Benefit From Consistent 2D Drafting Focus. |
|
|
|
 |
| Browsing and Searching an Online Book Catalog |
Rating: 0.00 (0 votes)
In this second part of a three-part series on building an online book catalog in Ruby-on-Rails you ll learn how to set up the application to allow users to view book details and search for books. This article is excerpted from chapter four of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
Download a Free Trial of Windows 7 Reduce Management Costs and Improve Productivity with Windows 7 |
|
|
|
 |
| Simon Jones' Blog: Understanding the stack index for Zend Framework Controller plugins |
Rating: 0.00 (0 votes) 
New on his blog today, Simon Jones has posted a handy guide for those using the Zend Framework out there to the stack index for plugins the framework uses.
Zend Framework Controller plugins are a powerful way to inject logic into your controller system at various points, such as before and after an action dispatch. Plugins are run in the order they are added, though it is possible to change the order by defining a custom stack index. ZF internal plugins such as Zend_Controller_Plugin_ErrorHandler, which displays a nice Error 404 page, has a stack index of 999 to ensure it runs at the end of any plugin cycle. However, it's not so obvious from the ZF manual how to set a custom stack index.
He shows how to use the second parameter of registering a plugin to define the stack level and how to get the listing of the current stack to see just where yours might need to be placed. He also includes code samples and an output example of the default Zend Framework stack.
|
|
|
|
 |
| jQuery Image Gallery: Working with Progressive Enhancement |
Rating: 0.00 (0 votes)
In this second part of the series I redefine from scratch the behavioral layer of the image gallery built in the previous article. In this case the layer is implemented with jQuery but naturally it s possible to use the JavaScript library that best suits your needs and get the same results....
$2.95/mo Web Hosting Unleashed Host your ASP.NET 3.5/2.0, & Java/JSP, PHP, Ruby, CGI, etc. web apps. 24/7/365. |
|
|
|
 |
| Working with the Google Font API`s bolditalic Argument |
Rating: 0.00 (0 votes)
In this seventh part of the series I demonstrate how to work with the bolditalic argument included with Google s Font API. The use of the argument is very similar to its counterparts italic and bold discussed in previous articles so understanding its underlying logic is truly a breeze....
Microsoft Exchange Server 2010 Simplify Administration and Deployment of Messaging - Free Download. |
|
|
|
 |
 |
| Basic Tests for Forum Implementation |
Rating: 0.00 (0 votes)
In this second part of a four-part series on setting up a forum in Ruby on Rails you ll learn how to unit test a model generate a forum controller and view and more. This article is excerpted from chapter six of the book em Practical Rails Projects em written by Eldon Alameda Apress ISBN 159 597818 ....
Windows 7 Deployment in Your Future? Free Guide: IT Tips & Best Practices for a Simplified Migration to Windows 7. |
|
|
|
 |
| NETTUTS.com: How to Create Blog Excerpts with PHP |
Rating: 0.00 (0 votes) 
On NETTUTS.com today there's a tutorial (a screencast) that'll show you how to create excerpts for the posts in your blog. Their method could be applied to just about any PHP-based blog software out there since it uses base PHP functions and MySQL features.
Ever visited a blog, and noticed that each posting's overview only contained a hundred characters or so, which is then followed by '?'?'?? Ever wondered how to do that yourself? It's not quite as easy as you might think. What if character number 100 occurs in the middle of a word? Do you want to display half of a word on the page? Of course not. In this video tutorial, I'll show you how to compensate for this, as well as a host of other neat little things, like working with MySQL's LEFT() function, using PHP's strrpos, and substr, creating the beginning's of an actual blog, and more.
They show you how to use the MySQL LEFT() function, strrpos and substr to make creating these summary blocks of text simple.
|
|
|
|
 |
| Zend Developer Zone: Twice the Amount of Bugs and Twice the Amount of Winners! |
Rating: 0.00 (0 votes) 
On the Zend Developer Zone today Ralph Schindler has posted the results of the latest Zend Framework Bug Hunt Days (for July 2010).
Zend Framework has recently wrapped up it's July 2010 Bug Hunt with some fantastic results. Collectively, we closed 50 issues in 3 days. That's nearly twice what we have seen in recent months- a trend we hope continues into the coming months!
Top bug hunters this month were Dolf Schimmel and Ramon Henrique Ornelas tying with 14 bugs each with Michelangelo van Dam coming in third.
The fixes in this bug hunt that have been merged into the 1.10 release branch will see the light of day in our next scheduled mini release 1.10.7 during the week of July 26th.
|
|
|
|
 |