|
|
Aggmedia blogMusings on software engineering, the artisans and the craft. Colouring svn diff outputMonday, 11th May 2009 - 8:31pm (EST, GMT+1000) by Richard BF svn diff doesn't colour diff output, and all the fixes on the web are dodgey hacks and wrapper code that don't really do what most of these authors really wanted in the first place: svn diff to be coloured. So here's my solution: Enter the following into a file called "svn-coloured-diff.php" in your home directory and chmod it to 755 (be careful of newlines and line wrapping caused by web site layout): #!/usr/local/bin/php -q Next edit ~/.subversion/config and find the line: # diff-cmd = diff_program (diff, gdiff, etc.) Replace it with this: diff-cmd = /home/your-user-name/svn-coloured-diff.php There's two booleans at the top of the script to make it a little more flexible. $showColour allows you to turn off all the colour coding, in case you need the original diff output; and $forceColour forces it to always include ANSI colour coding, when normally it doesn't colour code if there's no screen (i.e. you're piping or something similar). New Aggmedia siteMonday, 11th May 2009 - 8:28pm (EST, GMT+1000) by Richard BF Welcome to the new Aggmedia site. |
Link blog
Email Blacklist Check - See if your server is blacklisted. Great parody of Agile vs. waterfall methodologies. Hitler goes crazy when he learns his team has not been following the tenets of the Agile Manifesto. In IE, there is a little known feature called conditional compilation. Supported since IE4, this feature starting getting some attention when it began showing up in some Ajax related JavaScripts. Often you will see in computer books and articles a pattern where a function is applied to some but not all of it's required arguments, resulting in a function of fewer arguments. [..] This is called "partial function application" In computer science, currying, invented by Moses Schönfinkel and later re-invented by Haskell Curry, is the technique of transforming a function that takes multiple arguments (or more accurately an n-tuple as argument) in such a way that it can be called as a chain of functions each with a single argument. Today there are two leading debug protocols: DBGp, an open source protocol and Zend Studio's protocol. Both protocols have been used in commercial products in the last few years and are good solutions for debugging PHP applications and PHP web servers. With more than members located around the globe, the Agile Alliance is driven by the values and principles of the Manifesto for Agile Software Development. We recommend agile approaches to software development because they deliver value to organizations and end users faster and with higher quality. |


Creative Commons