I'm not sure why but, for some reason I've been having issues with Subversion; the error message is meaningless... since the working copy is completely up to date, cleanup, update, replace with, etc... none of that helps:
svn: File or directory 'somefile' is out of date; try updating
The solution is to trash the all-wcprops cache within the parent's .svn folder... but you often need to do this multiple times, the solution:
find . -name all-wcprops -type f -print0 | xargs -0 rm
It would be much better to just switch to Git :)
2009-09-30
2009-07-01
Exceptional Song
Inspired by: http://jnb.ociweb.com/jnb/jnbJan2008.html
JFugue: http://www.jfugue.org/
public class ExceptionalSong{
private static Pattern toMusicString(String input){
StringBuilder sb = new StringBuilder("I[").append(input.length()).append(']');
for(char c : input.toCharArray()){
if(!Character.isWhitespace(c)){
char cx = Character.toUpperCase(c);
int cxx = 'A' + ((cx % 7));
sb.append((char) cxx).append(' ');
}
}
System.err.println(sb.toString());
return new Pattern(sb.toString());
}
public static final String throwableStackTraceString(Throwable t,boolean indent){
StringBuilder sb = new StringBuilder('\n');
sb.append("StackTrace {\n");
String tabsString = indent ? "\t" : "";
for(StackTraceElement ste : t.getStackTrace()){
sb.append(tabsString).append(ste).append('\n');
if(indent){
tabsString += '\t';//Indent
}
}
sb.append('}');
return sb.toString();
}
public static void main(String[] args){
Player player = new Player();
RuntimeException rte = new RuntimeException("I'm a Runtime Exception!");
Pattern song = new Pattern();
song.add(toMusicString(rte.toString()));
song.add(toMusicString(rte.getMessage()));
song.add(toMusicString(rte.getLocalizedMessage()));
song.add(toMusicString(throwableStackTraceString(rte, false)));
player.play(song);
}
}
2009-06-12
Subscribe to:
Comments (Atom)