Prine’s Blog

Archiv für September 2009

Add already added file to the svn:ignore list

Verfasst von: fedoraswiss in: September 11, 2009

cp addedfile addedfile_bkp
svn del addedfile
svn commit -m „delete because we will add it to the ignore list“
svn mv addedfile_bkp addedfile
svn propset svn:ignore „addedfile“ .
svn update
svn commit -m „add file to the ignore list“

Ruby problems with Date.parse.. (3 elements of civil date are necessary)

Verfasst von: fedoraswiss in: September 11, 2009

On older machines you get problems using Date.parse. The problem occured on a debian 4.0 machine with Ruby 1.8.5 installed.
Instead of using:
Date.parse(„2008/03/07″)
Use:
Date.strptime(„2008/03/07″, ‘%Y/%m/%d’)