Setting the $Id$ Tag in Subversion

Some excerpts from: Setting the $Id$ Tag in Subversion [StartupCTO]<br />/* * @author David Ordal, david -at- ordal.com * @version $Id$ * */

If you want something like:

<span class="coMULTI">/*
 * @author David Ordal, david -at- ordal.com
 * @version $Id: test.php 110 2009-04-28 05:20:41Z dordal $
 *
 */

</span>

Configure subversion to automatically add the $Id: $ tag

Set your ~/.subversion/config with the following info:

[miscellany]
enable-auto-props = yes

[auto-props]
*.php = svn:keywords=Id
*.js = svn:keywords=Id
<br />

Set props on existing files

That configuration will automatically apply the svn:keywords property (which sets the $Id$ tag) to all new
files. But what about existing files? For these, you’ll have to set the
property manually. Go to the root of your source tree, and run this
command:

find . \( -name “*.php” -o -name “*.js” \) -exec svn propset svn:keywords Id {} \;


SVN Diff GUI for MAC

Using FileMerge with SVN

I have been just using console diff with svn until now. But I needed to
see some changes -> comparing example config files with real ones.

Here is a really good article with some good scripts.

http://www.defraine.net/~brunod/fmdiff/

local copy of scripts — put in /usr/local/bin

either run svn like:

$ svn diff --diff-cmd fmdiff <other diff options, files or URLs>

$ svn update --diff3-cmd fmdiff3

$ fmresolve <conflictfile>
$ svn resolved <conflictfile>

or make changes to ~/.subversion/config

editor = vi
diff-cmd = fmdiff
diff3-cmd = fmdiff3
merge-tool-cmd = fmmerge

PHP Build Test Errors with PHP 5.3.6 on RHEL 6

I have built PHP many times, and most of the time I just ignore the failing tests. This time I needed it for a production server, so I went thru each test and figured out why it was failing. As I did this, I put together a patch that would address the issues. There are a few things that are broken – all of these don’t apply to me and in general are minor, so I added SKIPIF statements to the tests, but most were just poorly written or the underlying library changed they way it handled incorrect input.
Continue reading

Mobile Application Development

I was looking into how to run simulators of the Mobile platforms see links below:

Blackberry
http://www.selikoff.net/2009/08/16/how-to-test-a-local-web-application-in-blackberry-simulator/
https://www.blackberry.com/Downloads/entry.do
http://developerlife.com/tutorials/?p=427

Droid
http://developer.android.com/sdk/index.html
http://developer.android.com/guide/developing/tools/emulator.html
http://www.selikoff.net/2010/01/02/how-to-test-a-local-web-application-in-droid-simulator/
http://wiki.netbeans.org/IntroAndroidDevNetBeans#Running_your_project

Apple iPhone
http://www.testiphone.com/
http://developer.apple.com/programs/ios/develop.html