Tech Thought

Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX

Entries for February 26th, 2008

SVN: How to Ignore a File

To ignore a file or directory inside a SVN repository use the following command: svn propset svn:ignore <filename> This also works for directories. 

Leave a Comment

URL Encoding a string with javascript

The following javascript function returns a URL encoded string so that it is safe to use in URLs or as a GET request: function URLDecode (encodedString) { var output = encodedString; var binVal, thisString; var myregexp = /(%[^%]{2})/; while ((match = myregexp.exec(output)) != null && match.length > 1 && match[1] != ”) { binVal = [...]

Leave a Comment