Pascal Triangle in Java

Pascal Triangle - Heuristic [code language="java"] void printTriangle(int rows) { for(int i=0; i<rows; i++) { for(int j=0; j<rows-i; j++) { System.out.print(" "); } int ... Read more

How to Edit svn:externals from the command line

Issue the following command to invoke and editor: [code]svn propedit svn:externals .[/code] Edit the entries in the file: [code] http://project.test.xyz/svn/project/abc/trunk abc http://project.test.xyz/svn/project/cde/trunk cde [/code] If not editors are set you won't be able to edit the file. On UNIX like systems export SVN_EDITOR=vi should do it. On Windows systems, SET SVN_EDITOR=Notepad will set Notepad as the SVN property editor. Read more

How to Recursively Delete .svn Directories

Windows: [code]FOR /F "tokens=*" %G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%G"[/code]   UNIX/Linux: [code]rm -rf 'find . -type d -name .svn'[/code]   Read more