As much as i wish to upgrade my Rails 2.3.x application Daily Fratze to the newest tag of the Rails 2.3.x branch, i cannot. First there was the epic fail of release 2.3.6, that broke all HTML Helpers and forced the Rails XSS protection upon us. This release was immediately followed by 2.3.7 and 2.3.8. […]
I’m migrating some old projects to Maven and i need to move all resources out of the source tree. find . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -printfind . -type d -name ‘\.svn’ -prune -o -type f -not -iname "*.java" -print Prune every directory named ‘.svn’ Or Type is file […]
Next time i see umlauts in source, I’ll scream. Loud. In the mean time I try this: find . -iname "*.java" -exec sh -c ‘iconv -f cp1252 -t utf-8 {} > {}.utf8’ \; for i in `(find . -name "*.utf8")`; do mv $i ${i/.utf8/}; donefind . -iname "*.java" -exec sh -c ‘iconv -f cp1252 -t […]
After a server crash a wanted to compare all actual files with the backuped data. An easy way is to compare the md5 hashes like that: First create recursively md5 hashes from all files in that directory: find ./backup -type f -print0 | xargs -0 md5sum > /checksums_backup.md5find ./backup -type f -print0 | xargs -0 […]