Archive for June, 2010

h1

PHP XDebug not formatting var_dump

June 11, 2010

XDebug is a great tool for PHP developers which, amnogst other things, is supposed to make var_dumps() easier to read. On a new install of Ubuntu 10.4 though I couldn’t get it to work. I finally tracked the problem down to not having html_errors=On in /etc/php5/apache2/php.ini. Set it to on, restart apache and it works fine!

Advertisements
h1

How to ignore files in a directory under subversion control

June 11, 2010

First thing to realise is that you don’t ignore a file, you set ignored files on the directory.

# ---------------------------------------------------------------------
# Ignore all the .txt files in the /trunk/Blah/ directory
# --------------------------------------------------------------------- 
# Go to the directory cd trunk/Blah/ 
# The directory with the files # Start editing the properties for the current directory svn propedit svn:ignore . 
# Opens an editor (SVN_EDITOR, EDITOR) 
# Add the following value with a new line, save, and exit: *.txt 
# See that things worked svn propget svn:ignore . 
# So you can see the properties svn status --no-ignore 
# You should see an 'I' next to the ignored files 
# Commit svn commit -m "New Ignores" # You must commit the new property change