www.francisfish.com

Click Bookshop to see my novels. Buddhist, father of 2, Ruby on Rails programmer for money, and fiction writer.








Latest Articles:

Archive

Tag Cloud:

Stats:

  • Entries = 358
  • Notes = 35

General Links

    follow me on Twitter

    Teensy bugettes

    I discovered that the doReplace function in my utilities library had a small bug, where if the to string contained the from string it would loop forever. I also put in a guard variable to stop it doing more than a certain number of replacements, not

    Comments (0) . Monday, 15 September 2003

    Progress

    Using the utilities package given below I've now managed to generate all of the implementation beans for my data model. I created a template that creates the guts of the code and then iterates through the columns using a different template to put in

    Comments (0) . Friday, 12 September 2003

    Simple multiple search and replace in Java

    Here it is (Note that 1.4 Strings have replaceAll and replaceFirst with Regexp so use them instead): Current VersionNote that I have removed the Java from the Post and added it to the files area so I can keep it up to date. 

    Comments (0) . Wednesday, 10 September 2003

    Writing code properly - good programmers are lazy

    Currently generating out my ejb-jar.xml file and I've got code that looks like this:    currentTable = initCap (att.getValue("name"));    os.println("\t\t<entity>");    os.println("\t\t\t<description>Enti

    Comments (0) . Wednesday, 10 September 2003

    The Bardo, Pain and Renunciation

    The Bardo Well, the Bardo is just a place or state where things change. A lot of westerners mistakenly think that it only relates to death, because of the Tibetan Book of the Dead (Bardo Thodol). In fact we are always in a state of change throughout

    Comments (0) . Saturday, 6 September 2003

    JBOSS driving me nuts

    Download JBOSS, get latest version, why not? (not knowing that DR on the end means Developer Release, so stay away if you aren't testing it or coding to new features). Download quick start, only for version 3, download v 3.2, Find webpage that gives

    Comments (0) . Friday, 5 September 2003