<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Chris Sedlmayr</title>
	<link>http://chris.sedlmayr.co.uk</link>
	<description>Real World Development</description>
	<lastBuildDate>Wed, 07 Jul 2010 08:38:48 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Textmate tip: Automatic PHP spl_autoload class name from file path</title>
		<description><![CDATA[Create a new textmate command, and set the output to 'Insert as snippet'
Paste in the following.

#!/usr/bin/php
&#60;?php
$path = $_ENV&#91;'TM_FILEPATH'&#93;;
$path = trim&#40;$path, '/'&#41;;
$path = trim&#40;$path, '.php'&#41;;
$parts = explode&#40;'/', $path&#41;;
$lastPart = end&#40;$parts&#41;;
echo 'class ';
foreach &#40;$parts as $id =&#62; $part&#41; &#123;
    // textmate placeholders start at 1
    $id = $id+1;
    [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/134-textmate-tip-automatic-php-spl_autoload-class-name-from-file-path/</link>
			</item>
	<item>
		<title>Slides from Symfony Live 2010</title>
		<description><![CDATA[
Just going to post links to all the slides I can find from #sflive2010 yesterday.
Fabien Potencier - News of the Symfony2 World
Fabien Potencier - Unit and Functional Testing with Symfony2
Fabien Potencier - Caching on the Edge with Symfony2
Francois Zaninotto - Symfony2 meets propel 1.5
Jonathan Wage - Symfony2 and Doctrine2 Integration
Bernhard Schussek - The new form [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/113-slides-from-symfony-live-2010/</link>
			</item>
	<item>
		<title>Git pull and git merge between developers</title>
		<description><![CDATA[I use git locally, but the main upstream repo is an SVN one, there are also a couple of other devs that also use git locally.
We are using git svn as the bridge between these 2.
If we want to share code or update each other it was generally the case that we would have to [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/86-git-pull-and-git-merge-between-developers/</link>
			</item>
	<item>
		<title>Git manuals, docs and handy links</title>
		<description><![CDATA[As i am a recent git convert I find myself reading a lot of guides etc on the best way to use git and how my workflow can change now i'm using a DVCS.
This is an attempt to collate my more useful findings, partly for myself, but it may prove useful for you too.
Git Books
http://book.git-scm.com/index.html
http://progit.org/book/
Git-SVN [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/66-git-manuals-docs-and-handy-links/</link>
			</item>
	<item>
		<title>Renaming multiple files by rule</title>
		<description><![CDATA[I recently had the need to rename a bunch of files according to a simple rule.
In the directory, any files that had a prefix of "Gee_" should have the prefix changed to "Kif_"
After a little digging I found a simple but quite tasty solution.
Simply run this at your cli.

&#160;
for f in Gee_*; do mv &#34;$f&#34; [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/17-renaming-multiple-files-by-rule/</link>
			</item>
	<item>
		<title>The use of 301 rewrite</title>
		<description><![CDATA[If you are hosting a domain (or multiple domains) using VirtualHost entries, it is bad practice to use individual entries for the same domain just to cover the inclusion or exclusion of the www in the address, amongst other things it is bad for SEO, but of course you still want visitors to be able [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/54-the-use-of-301-rewrite/</link>
			</item>
	<item>
		<title>Imagemagick sfThumbnail Plugin Fix for Scaling under Symfony</title>
		<description><![CDATA[I've been using the sfThumbnail Plugin in symfony for image resizing when users upload. When I asked the plugin to resize an image with scaling there was a problem and the image came out skewed and distorted. After a little research I found the following fix.
Once you have installed the plugin, edit the sfImageMagickAdapter.class.php in [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/49-imagemagick-sfthumbnail-plugin-fix-for-scaling-under-symfony/</link>
			</item>
	<item>
		<title>HOWTO: collapse the web debug toolbar in symfony by default</title>
		<description><![CDATA[To automatically collapse, hide, shrink (or whatever you want to call it) the web debug toolbar to just the SF and close buttons; add this line
window.onload=sfWebDebugToggleMenu;
to the end of this file ...\symfony\web\sf\sf_web_debug\js\main.js
This handy little tip courtesy of IsRobot.
]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/44-howto-collapse-the-web-debug-toolbar-in-symfony-by-default/</link>
			</item>
	<item>
		<title>Using helpers within an action in symfony</title>
		<description><![CDATA[If you ever need to use a helper outside a template, you can still load a helper group from anywhere by calling

sfLoader::loadHelpers&#40;$helpers&#41;

where $helpers is a helper group name or an array of helper group names.
For instance, if you want to use simple_format_text() in an action, you need to call

sfLoader::loadHelpers&#40;'Text'&#41;;

first.
I know this is covered in the [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/38-using-helpers-within-an-action-in-symfony/</link>
			</item>
	<item>
		<title>Zebra Striping with PHP The Easy Way</title>
		<description><![CDATA[Using one of the built in Math functions of PHP we can easily create zebra striped lists.
Let's say we have an array of entries stored within the $comments variable.
All we have to do with this is to use the fmod function and assign a css class that alternates per entry.

&#60;ul&#62;
  &#60;?php foreach &#40;$comments as [...]]]></description>
		<link>http://chris.sedlmayr.co.uk/archives/29-zebra-striping-with-php-the-easy-way/</link>
			</item>
</channel>
</rss>
