<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/">

<channel>
<title>Codewalkers - Web Developer Tutorials</title>
<link>http://www.codewalkers.com</link>
<!-- PubSubHubbub Discovery -->
<link rel="hub"  href="http://devshednet.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
<link rel="self" href="http://www.codewalkers.com/rss.xml" xmlns="http://www.w3.org/2005/Atom" />
<!-- End Of PubSubHubbub Discovery -->
<atom:link href="http://www.codewalkers.com/rss.xml" rel="self"/>
<description>Codewalkers Tutorials at Code Walkers.  Code Walkers is a community focused on beginner, intermediate and advanced tutorials in PHP, MySQL, PECL and other Open Source Web technologies.</description>
<language>en-us</language>
<lastBuildDate>Sun, 12 Feb 2012 08:38:42 -0500</lastBuildDate>
<pubDate>Sun, 12 Feb 2012 08:38:42 -0500</pubDate>
<item><title>Control Flow Constructs</title>
<pubDate>Wed, 08 Feb 2012 08:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Control-Flow-Constructs/</link>
		<description><![CDATA[This nine-part article series examines the variety of control structures Perl programmers can use to set up the way a program gets to where it's going. It is excerpted from chapter three of the book Beginning Perl, Second Edition, written by James Lee (Apress; ISBN: 159059391X).]]></description>
		<content:encoded><![CDATA[Most of the programs we have seen so far have been very simply structured-they've done one statement after another in turn. If we were to represent statements by boxes, our programs would look like this:   This sort of diagram is called a flow chart, and programmers have used them for a long time to help design their programs. They're considered a bit passÃ© these days, but they're still useful. The path Perl (or any other language) takes by following the arrows is called the flow of execution of the program. Boxes denote statements (or a single group of statements), and diamonds denote tests....]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Control-Flow-Constructs/</guid>
</item>
<item><title>More Time Manipulation with PHP</title>
<pubDate>Wed, 01 Feb 2012 08:00:06 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/More-Time-Manipulation-with-PHP/</link>
		<description><![CDATA[In this conclusion to an eight-part article series on manipulating date and time in programs with PHP, you'll learn how to use the getWeekday() method, the getDayOfYear() method, and many more. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[More Manipulation Methods  getWeekday()   integer getWeekday()   The getWeekday() method returns the numerical offset of the day specified by the date object. An example follows:   $date = new Date(); $date- gt;setDMY(30,4,2006); echo $date- gt;getWeekday();   This returns the following, which is a Sunday, because Sunday's numerical offset is 7:  --------------------------------------------7  --------------------------------------------  setToWeekday()   boolean setToWeekday (int weekday, int n [, int month [, int year]])   The setToWeekday() method sets the date to the n th weekday of the mon...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/More-Time-Manipulation-with-PHP/</guid>
</item>
<item><title>Validating and Manipulating Dates with PHP</title>
<pubDate>Wed, 25 Jan 2012 08:00:05 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Validating-and-Manipulating-Dates-with-PHP/</link>
		<description><![CDATA[In this seventh part of an eight-part article series on handling dates and time with PHP, you'll learn how to use the date function's validators, and how to easily manipulate dates. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Validators  Date offers a method for determining whether the date falls on a leap year and a method for validating the date's correctness. Both of those methods are introduced in this section.    isLeap()   boolean isLeap()   The isLeap() method returns TRUE  if the year represented by the date object is a leap year, and FALSE otherwise. The following script uses isLeap() in conjunction with a ternary operator to inform the user whether a given year is a leap year:   $year = 2005; $date = new Date(date( quot;j quot;),date( quot;n quot;),$year); echo  quot;$year is  quot;. ($date- gt;isLeap() =...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Validating-and-Manipulating-Dates-with-PHP/</guid>
</item>
<item><title>Using the Date Constructor in PHP</title>
<pubDate>Wed, 18 Jan 2012 08:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Using-the-Date-Constructor-in-PHP/</link>
		<description><![CDATA[In this sixth part of an eight-part article series on working with time and dates in PHP, you'll study the date constructor in depth, and learn about accessors and mutators. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[The Date Constructor  Before you can use the Date features, you need to instantiate a date object via its class constructor. This constructor is introduced in this section.   date()   object date ([integer day [, integer month [, integer year [, integer weekstart]]]])   The date() method is the class constructor. You can set the date either at the time of instantiation by using the day , month , and year parameters, or later by using a variety of mutators (setters), which are introduced next. To create an empty date object, just call date() like so:   $date = new Date();   To create an object ...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Using-the-Date-Constructor-in-PHP/</guid>
</item>
<item><title>Calendar Construction with PHP</title>
<pubDate>Wed, 11 Jan 2012 16:00:03 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Calendar-Construction-with-PHP/</link>
		<description><![CDATA[In this fifth part of an eight-part series on handling date and time with PHP, you'll learn how to create a monthly calendar and validate dates and times. We'll also start discussing the date() class. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Creating a Monthly Calendar   These days, grid-based monthly calendars seem to be one of the most commonly desired Web site features, particularly given the popularity of time-based content such as blogs. Yet creating one from scratch can be deceivingly difficult. Thankfully, Calendar  handles all of the tedium for you, offering the ability to create a grid calendar with just a few lines of code. For example, suppose we want to create a calendar for the present month and year, as shown in Figure 12-1.  The code for creating this calendar is surprisingly simple, and is presented in Listing 12-1...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Calendar-Construction-with-PHP/</guid>
</item>
<item><title>PHP`s Calendar Package</title>
<pubDate>Wed, 04 Jan 2012 08:00:05 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/PHPs-Calendar-Package/</link>
		<description><![CDATA[In this fourth part of an eight-part article series on working with date and time functions in PHP, you'll get an introduction to the Calendar package, which can help you handle many chronological tasks automatically. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Creating a Calendar  The Calendar package consists of 12 classes capable of automating numerous chronological tasks. The following list highlights just a few of the useful ways in which you can apply this powerful package:     Render a calendar of any scope (hourly, daily, weekly, monthly, and yearly being th e most common) in a format of your choice.    Navigate calendars in a manner reminiscent of that used by the Gnome Calendar and Windows Date  amp; Time Properties interface.    Validate any date. For example, you can use Calendar to determine whether April 1, 2019 falls on a Monday (it do...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/PHPs-Calendar-Package/</guid>
</item>
<item><title>Getting Modified Versions and Correct Dates in PHP</title>
<pubDate>Wed, 28 Dec 2011 08:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Getting-Modified-Versions-and-Correct-Dates-in-PHP/</link>
		<description><![CDATA[In this third part of an eight-part article on working with date and time functions in PHP, you'll learn how to get the last modified version of a document, calculate dates, and more. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Displaying the Web Page's Most Recent Modification Date  Barely a decade old, the Web is already starting to look like a packrat's office. Documents are strewn everywhere, many of which are old, outdated, and often downright irrelevant. One of the commonplace strategies for helping the visitor determine the document's validity involves adding a timestamp to the page. Of course, doing so manually will only invite errors, as the page administrator will eventually forget to update the timestamp. However, it's possible to automate this process using date() and getlastmod() . You already know date(...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Getting-Modified-Versions-and-Correct-Dates-in-PHP/</guid>
</item>
<item><title>Combining Date Functions in PHP</title>
<pubDate>Wed, 21 Dec 2011 08:00:03 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Combining-Date-Functions-in-PHP/</link>
		<description><![CDATA[In this second part of an eight-part article series on working with date and time with PHP, you'll learn how to use the date() function, among others, and how to combine these functions for very effective and powerful results. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Working with Time  The date() function can also produce time-related values. Let's run through a few examples, starting with simply outputting the present time:   echo  quot;The time is  quot;.date( quot;h:i:s quot;); // The time is 07:44:53   But is it morning or evening? Just add the a parameter:   echo  quot;The time is  quot;.date( quot;h:i:sa quot;); // The time is 07:44:53pm   getdate()   array getdate ([int timestamp])   The getdate() function returns an associative array consisting of timestamp components. This function returns these components based on the present date and time unless...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Combining-Date-Functions-in-PHP/</guid>
</item>
<item><title>Using PHP for Date and Time in Programming</title>
<pubDate>Wed, 14 Dec 2011 13:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Programming-Basics/Using-PHP-for-Date-and-Time-in-Programming/</link>
		<description><![CDATA[PHP offers up some excellent ways to handle and manipulate the date and time in your programming. This eight-part article series explores them in detail. This article is excerpted from chapter 12 of the book Beginning PHP and PostgreSQL 8: From Novice to Professional, written by W. Jason Gilmore and Robert H. Treat (Apress; ISBN: 1590595475).]]></description>
		<content:encoded><![CDATA[Temporal matters play a role in practically every conceivable aspect of programming and are often crucial to representing data in a fashion of interest to users. When was a tutorial published? Is the pricing information for a particular product recent? What time did the office assistant log into the accounting system? At what hour of the day does the corporate Web site see the most visitor traffic? These and countless other time-oriented questions come about on a regular basis, making the proper accounting of such matters absolutely crucial to the success of your programming efforts.  This cha...]]></content:encoded>
<category>Programming Basics</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Programming-Basics/Using-PHP-for-Date-and-Time-in-Programming/</guid>
</item>
<item><title>Completing a Book Inventory Management System</title>
<pubDate>Wed, 07 Dec 2011 11:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/Completing-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this conclusion to a 12-part article series on building a book inventory management system with the scaffolding feature of Ruby on Rails, we'll finish the View Book User and Edit Book User stories. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Completing the View Book User Story  The View Book user story also needs some cleaning up before George is happy. The code created by the scaffolding displays the values of all database columns directly to the user. This means, for example, that the publisher's ID is shown instead of the publisher's name. We'll fix this and also add code that displays the authors of the book and the book cover.   Changing the View   First, change app/views/admin/book/show.rhtml as follows:    lt;dl gt;  lt;dt gt;Title lt;/dt gt;  lt;dd gt; lt;%= @book.title % gt; lt;/dd gt;   lt;dt gt;Publisher lt;/dt gt;  lt;...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/Completing-a-Book-Inventory-Management-System/</guid>
</item>
<item><title>Uploading Images for a Book Inventory Management System</title>
<pubDate>Wed, 30 Nov 2011 08:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/Uploading-Images-for-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this eleventh part of a 12-part article series on using the scaffolding feature of Ruby on Rails to build a book inventory management system, we'll complete both the Upload Book Cover user story and the List Books user story. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Completing the Upload Book Cover User Story  The Upload Book Cover user story is performed by the administrator, George. When adding a book, George should be able to select an image and upload it to the Emporium site. This image is then shown to customers when they are viewing the details of a book.   Adding File Upload Functionality   We don't have to reinvent the wheel to implement file upload functionality. Sebastian Kanthak has already implemented the file upload functionality we need and released it as the FileColumn plugin. The plugin contains view helpers and an extension to ActiveRecor...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/Uploading-Images-for-a-Book-Inventory-Management-System/</guid>
</item>
<item><title>Finishing the Add Book Story for a Book Inventory Management System</title>
<pubDate>Wed, 23 Nov 2011 08:00:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/Finishing-the-Add-Book-Story-for-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this tenth part of an ongoing series on building a book inventory management system with the scaffolding feature of Ruby on Rails, you'll learn how to finish the Add Book Story we started working on in the previous part. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Changing the View   Next, we will use the collection_select view helper to generate the drop-down list for publishers. The format for the collection_select helper is as follows:    lt;%= collection_select :book, :publisher_id, @publishers, :id, :name % gt;   The first and second parameters tell the helper to which model and attribute to bind the field. The third parameter is used to pass a list of publishers that should be shown in the drop-down list. The two last parameters, :id and :name , are used to specify that the value for the drop-down list should be the publisher's id and that the lab...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/Finishing-the-Add-Book-Story-for-a-Book-Inventory-Management-System/</guid>
</item>
<item><title>Integration Testing for a Book Inventory Management System</title>
<pubDate>Wed, 16 Nov 2011 08:00:05 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/Integration-Testing-for-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this ninth part of a multi-part series on the scaffolding feature of Ruby on Rails, we'll finish the add book user story, and start creating an integration test for our book inventory management system. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Completing the Add Book User Story  As you have noticed, throughout this chapter, we haven't followed TDD very strictly. Instead, we first created the code using scaffolding. Although we can add, list, view, edit, and delete books, the functionality is not tested and we are not confident that it is working as George desires. We'll have to talk to George to find out what exactly should be implemented.  We call George over to our cubicle, which happens to be the only cubicle in the office, reserved exclusively for consultants. George tells us that when adding a book to the system, he must be abl...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/Integration-Testing-for-a-Book-Inventory-Management-System/</guid>
</item>
<item><title>User Stories for a Book Inventory Management System</title>
<pubDate>Wed, 09 Nov 2011 10:30:04 -0500</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/User-Stories-for-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this eighth part of a twelve-part series on the scaffolding feature of Ruby on Rails, we'll start implementing the front end of our book inventory management system. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Generating Book Administration Code with the Scaffolding Script  With both the database schema and ActiveRecord model in place, we are now ready to start implementing the front-end. The requirements for book administration include five user stories: Add Book, Upload Book Cover, View Book, Edit Book, and Delete Book.   Tip It's good practice to run all your tests-including unit, integration, and functional-after you make any big changes, as we have done in this chapter. This can be done by running the rake command without specifying any parameters. However, at this point, it will throw an error...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/User-Stories-for-a-Book-Inventory-Management-System/</guid>
</item>
<item><title>Unit Testing a Book Inventory Management System</title>
<pubDate>Wed, 02 Nov 2011 08:30:04 -0400</pubDate>
<link>http://www.codewalkers.com/c/a/Database-Articles/Unit-Testing-a-Book-Inventory-Management-System/</link>
		<description><![CDATA[In this seventh part of an article series on the scaffolding feature of Ruby on Rails, we'll continue testing our example book inventory management system. In this part, we'll focus on one-to-many and many-to-many mapping. This article is excerpted from chapter three of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).]]></description>
		<content:encoded><![CDATA[Unit Testing the ActiveRecord Mappings  You want to be sure that the mapping between authors, books, and publishers works. George won't be happy at all, if there's a bug in the code that prevents him from adding the latest best-sellers to the catalog.  Adding Fixtures for Books and Publishers   We'll verify that the mapping works by creating unit tests for the mapping code. But let's first add some useful data to the books and publishers fixture files, which we'll use in later tests.  Open test/fixtures/books.yml and add the following two books:   pro_rails_ecommerce: id: 1 title: Pro Rails E-...]]></content:encoded>
<category>Database Articles</category>
<guid isPermaLink="true">http://www.codewalkers.com/c/a/Database-Articles/Unit-Testing-a-Book-Inventory-Management-System/</guid>
</item>
</channel>
</rss>

