I'm an RIA Developer who owns a motorcycle custom paint shop, who loves to race anything with wheels. I also enjoy woodworking, cooking, fine wines, liqueurs and dark beers. So if nothing else my blog should be eclectic.  

Viewing by month: August 2008

Aug 12 2008

Read text files one line at a time with ColdFusion

This is a pretty basic use of the how to capitalize on ColdFusion / Java, but I recently had to show someone else how to do this as well as use it myself today to parse a very large CSV file.

<cfscript>
    var f = "";
    var endOfFile = false;

    f = createObject("java","java.io.FileReader").init(arguments.csvFileLocation);
    f = createObject("java","java.io.BufferedReader").init(f);

    while (NOT endOfFile) {
        line = f.readLine();

        if (NOT isDefined("line")) {
            endOfFile = true;
            break;
        } else if (len(line)) {
            // {LINE PARSING CODE HERE}
        }
    }

    f.close();
</cfscript>

5 comments - Posted by Russell Brown at 11:38 AM - Categories: ColdFusion | Java | Development

Aug 2 2008

Thrice Baked Wedding Invitations

Some of you who know me, know that I'm getting married soon... Yesterday I ran into an issue that I felt was worthy of a short story. My girlfriend and I are trying to do a modest wedding and are keeping costs down where we can; one of the places we cut back was on wedding invitations and rsvp cards. We stopped into Michaels and picked up 3 DIY packs that should suffice our 100+ crowd of adults plus children and created them in MS Word. I have an small-office laser printer in my home office that prints faster than I thought was possible and it was WAY easier than I ever expected and we only spent $100ish dollars.

So 2 days after we printed them all and put them aside I get a call during the day: "Honey what are we going to do? All of the wedding invitations are still wet, and they smudge at the smallest touch!". When I got home that night and surveyed that they were in fact not drying that she wasn't nuts, I came to the most obvious conclusion that any sain purson could: "Lets put em in the oven".

Click Read More for Directions and Pictures!

Read more...

2 comments - Posted by Russell Brown at 1:19 PM - Categories: DIY | General News | Friends / Family

Categories

Monthly Archives

Tech Blogs I Read

Motorcycle Links