longford, kansas

bethel evangelical united brethren church

I drove to the small town of Longford Kansas on Saturday to help my wife complete a part of her family story. Her father was born in Longford in 1905, moving to Pennsylvania along with his older sister and mother when he was four. The circumstances surrounding their move back to Pennsylvania is heartbreaking.

In 1909 a third child, a daughter, was born into the family. While still an infant she became ill. A local doctor diagnosed the illness and a method of treatment that required medicine. The husband took the money and went off, ostensibly to buy the medicine. Instead he got drunk. He didn’t buy the medicine and the daughter died. Rather than go back and face his wife, he traveled to Reno, Nevada, and got a quick divorce with some of the money he had left. The mother, already distraught over the loss of her baby, now had to deal with being a single parent with two young children, two children she refused to abandon. She wired back to her sister in Pennsylvania and had the sister wire enough money back to her to bury the child and then travel back east with her remaining two children. They passed through Harrisburg, finally settling in Williamsport, where the mother became a school teacher and remained a school teacher for the rest of her life.

The four year old boy grew up to become a Methodist minister and the father of my wife, who was the youngest of his three daughters. He spent the majority of his ministry in the Harrisburg area, eventually moving to Emporium, his last charge.

Longford played a part in my father-in-law’s life even after he’d grown up and was a minister. He needed to travel to Oxford, England, as an outstanding Methodist minister in 1967 (the 200th anniversary of John Westley’s establishment of the Methodist church) and he needed a passport. Then, as now, you needed a birth certificate. But back then, in 1905, in Longford, you didn’t get a birth certificate, your birth was registered at the local church through baptism. Sure enough church records recorded his birth and baptism as well as who his mother and father were. With that information wired back east, he was able to give credible evidence of his birth as an American citizen and get his passport.

I drove out, looking around the town, took some photographs, and then tried to find the spot where the young infant might be buried. Unfortunately the church was closed and I couldn’t find the parsonage where I might have spoken with minister. I found a close-by cemetery, but didn’t find anything that might have been a children’s section or even anything that might have been her final resting place.

I didn’t expect to. I believe that the mother had just enough money to cover the cost of a funeral. I’m still looking through other means to see if I can at least track down the cemetery where she might have been laid to rest. I don’t believe, after all this time, I’ll ever find the grave site.

My father-in-law (who has long since passed away) and his family’s story is not the only one like this, I’m sure. Turn of the 20th century life in America was still harsh (and in many ways, still is), and this story played out innumerable times across the west. Women had a hard time of it, particularly mothers with children. Although Kansas would pass full suffrage in 1912, and the 19th amendment granting women the right to vote would be passed in 1920, this was the first decade of the 20th century and out in the rural farmlands of Kansas. There was no structure in place to go after the wayward husband, neither for child support or the greater charge of manslaughter. To add insult to injury, a divorced woman at that time was considered a pariah, regardless of the circumstances. What husband would be so selfish to abandon his wife to such a fate, or a father so inhuman to allow their child to die?

chruch cornerstone

infant angel

city hall

edge of town

gathering of hay

For a town that was so small, I still managed to spend nearly three hours there, walking around. I spent a good portion of that time at one of the local cemeteries about three miles north of the town. While I was there in town it was totally quiet. No urban noises to be heard anywhere. The single spot in the business center of town consisted of a gas station, a bank, the town hall, and a place to eat. I grabbed a “beef sandwich” while I was there, which consisted of a bit of roast between two large pieces of white bread, with mashed potatoes on top and all of that slathered in gravy. I ate some of the mashed potatoes, and then dug through the bread to eat the beef. It was a short meal, with one of the patrons deciding to sit next to me to chat. I’m no chatterer, which made for long periods of silence at my table. I was quickly finished and left cash at my table, the cost of the meal plus a tip.

I mention the lack of noise, but it wasn’t silent. What I did hear was birdsong and the constantly blowing Kansas wind. It was strong enough at one point to push forcefully against me, up on a hill in the cemetery. I can’t even begin to imagine what it might be like to live with constantly blowing wind like that. And yet, in spite of it, I find a strong spiritual pull to the land.

The trip to Longford was nearly three hours one way, from Lansing just south of Leavenworth, west on I-70 through Topeka, and further west out to Longford. I’m a product of my American culture, from the mid-twentieth century, and one of the things we like to do is drive. And drive I did. The speed limit on I-70 is 75, and I was driving even faster, between 80 and 85. I have a Ford Fiesta rental this time, and its gas mileage, regardless of speed, averages 32MPG. If I’d had my Prius I’d have done at least 15MPG better.

I drove through a lot of Kansas history on the way to Longford. I expect to be coming back out to Leavenworth later in the year, so I’ll be headed back out to spend more time at some of those historical spots. Although Kansas City is a lot closer, and has a lot more conventional activities, I’d rather spend my time studying the “real Kansas.” Life’s too short to let those kind of opportunities pass by.

Camera

It’s been a very long time since I wrote about the camera I used when I posted an entry with photographs. But perhaps not this time. I’m in Kansas with my Olympus E-M5 and three primes; the Olympus 1.8/17mm, the Pan-Leica 1.4/25mm, and the Olympus 1.8/45mm. It’s the 17mm that’s the latest, and for all practical purposes, last addition.

This is the third 17mm I’ve purchased, the first two being the 2.8/17mm pancake lenses. The first was sold, the second given away. This third was bought the Saturday before I flew out to Leavenworth, with funds I got from KEH on the E-PL3 I traded in at Colonial Photo and Hobby in Orlando. I got pretty much all the money back I originally spent on the E-PL3, and Olympus had an additional $100 off sale on the 1.8/17mm at the time, so I picked up that lens.

It’s a very nice lens, all metal. I got the silver version, and to be honest, it looks good on the all-black E-M5. It’s not a true silver, but more a champagne color. I don’t care about lens colors any more. The lens is totally silent in operation and very quick to auto focus. The results are quite good to my eyes, especially the lack of chromatic aberrations. I pixel peeped the raw files a bit, and didn’t see any, especially in the branches. It was all over on the 2.8/17mm, especially in bright back lighting. But I had a lot of fun with the 2.8, and I’m having fun with this latest version.

teaching an old dog updated languages

For reasons I won’t get into just yet, I’ve been looking at cleaning up my moldering Python skills. It’s been years since I coded anything of significance in Python, and “back in the day” I did it because I had few other options, one of them being Perl. I refuse to write anything in Perl anymore, even though I started my long journey into interpreted languages with the pink Perl book published in 1991.

In the early days I fell upon Perl like a man dying of thirst falls upon an oasis in a desert. In my case, the desert was a mix of bourne and AWK scripting (and I came away positively loathing TCL). With Perl 4 I could build highly sophisticated tooling completely in Perl, and just use my shell scripts to launch my more sophisticated Perl scripts. I started with Perl sometime around 1993 and kept using it until 2000 when I upgraded to Perl 5. With Perl 5, Perl fell out of favor with me, and Python began to rise in its place. I found that Python, in spite of its FORTRAN-like use of spaces to determine scope, was close to C++ and Java than Perl. I found it easier to user Python, both as wrapper for Java and C++ applications as well as being a powerful development language in its own right.

But time moved on and the reasons for using Python fell away. I stuck with C++ and Java, with occasional forays into JavaScript.

And then, for reasons as I said I won’t go into just yet, I had a need to brush up on my Python skills. Except this time, rather than staying in Python 2, I decided to jump whole sale into Python 3, or 3.4.0. I grabbed a copy of the source tarball off the Python website, unpacked it in my Ubuntu 14.04 VM, built it with the configure/make/make install kabuki dance, and started to work with it.

To refresh my skills I started with simple apps, to get a feel for the basics in Python 3. I quickly put together a factorial application, the source and output of which follows:

#!/usr/bin/env python3

import sys

def fact(n):
    a = 1
    print( n, end="! = ")

    while n > 0:
        a, n = a * n, n - 1

    print(a)

if __name__ == '__main__':

    if len(sys.argv) <= 1:
        print("Factorial calculator. Must call with at least one number as argument.")
        sys.exit()

    for i in range(1, len(sys.argv)):
        fact(int(sys.argv[i]))

There’s not much to say about this application. It has one function (fact()). It can test for command line arguments and print out a message with no arguments. It has a tight, simple iteration in main to walk through any and all arguments. The output shows that Python can easily handle arbitrarily large numbers without invoking special features. That alone is one reason it’s used in scientific computing.

While I don’t like how spacing is used to delineate scope, it does remove the need for curly braces used in other languages such as C++, Java, and Ruby, to name but three. What follows is the same application, this time written in Java 8.

import java.math.BigInteger;

public class Fact {
    public static void fact(String num) {
        System.out.print(num + "! = ");
        BigInteger a = new BigInteger("1");
        BigInteger n = new BigInteger(num);

        while (n.compareTo(BigInteger.ZERO) > 0) {
            a = a.multiply(n);
            n = n.subtract(BigInteger.ONE);
        }

        System.out.println(a.toString());
    }

    public static void main (String[] args) {
        if (args.length < 1) {
            System.out.println("Factorial calculator. Must call with at least one number as argument.");
            System.exit(1);
        }

        for (String number : args) {
            fact(number);
        }
    }
}

The syntax is radically different between the two, which is to be expected. Of significant difference is the use of java.math.BigInteger to match Python’s ability to use numbers of arbitrary size and precision. When I first wrote this I used regular integers (int) and could only calculate factorial 11 (11!) before the integer product became negative (sign overflow) and then went to zero. Using BigInteger solved that problem, but introduced a far more complex coding method. While the Java application is only six lines longer, its fact() function is a lot more complex than the fact() function in the Python example. Whereas the Python code can handle the numbers with the same old syntax, special functions within the BigInteger class have to be used to perform basic math (multiplication and subtraction) and the while loop comparison is a somewhat obscure big class function in Java, while with Python its the straightforward comparison we’ve all come to know and love.

In this specific example, the Python code wipes the floor with the Java code, or at least it does for me. There’s a certain sparse (dare I say beautiful?) elegance with the Python code not needing all the matching curly braces that Java requires (and C++, too, for that matter). From a purely coding standpoint, and with this very very narrow example, I find I prefer writing in Python. Maybe larger, more complex coding projects will continue to favor Python over Java, and then again, maybe not. While I want to continue working this kind of duality and comparison, it’s going to reach a point where I’ll need to make a decision when to use which, and stick to it.

I’m surprised, however, how much I like coding in Python. Have I reached a point in my coding life where I should do the majority of my work in Python, moving on from C++ and Java? Maybe even from JavaScript as well.