Search Results: "John Goerzen"

6 October 2006

John Goerzen: Updates

Well, what a week we're having here!

We've got all the excitement of a new baby in the house. Jacob is doing well, and Terah is too. It's a lot of fun to have him around. And also a lot of work (and some lack of sleep) -- but well worth it.

Then we're moving to an apartment in a little over a week, until our house is renovated. (Bad timing, but we really didn't plan it that way!)

I've had last week and this week off from work. That was nice, but it wasn't really a vacation.

Today I spent some time calling utility companies, etc. to arrange to have things turned off at one place and on at another. All that stuff that comes with a move, and we aren't even to the move yet.

So Terah and I are both a bit slow as far as blog posts go. We'll catch up -- sometime!

29 September 2006

John Goerzen: The News

Big news over here: earlier this week, our first baby was born: Jacob Simon Goerzen! He weighed in at 8 lbs, 12 oz and is doing well.

Terah was in labor most of the day, but eventually the doctor determined he was too big, so was delivered by C-section. Terah is still sore from all that, but otherwise is doing well, too. And of course we're both trying to catch up on sleep. (Not that we really expect to be able to...)

It's already been so wonderful to have him here. He already has a personality in some ways, and just is wonderful to be around. We've had a number of visitors, but the one that was extra special was when my 91-year-old grandmother stopped by and held him for awhile. Terah managed to get a photo of Jacob, me, my mom, and grandma -- 4 generations.

We've got a lot to tell, and I'm sure you'll be seeing more from both Terah and me in the next couple of days. But to start you off, I've got the first 5 pictures online already.

Here's one of the earliest pictures of him. This one was in the operating room, just a couple of minutes after he was born. The nurses had done their inital check, and gave him to me. I took him over by Terah so she could look (the doctors were still finishing up the operation). One of the people in the OR took the camera and got this picture:



Make sure to click here for the rest of the pictures in this set.

Debian folks -- do you see anything striking about Terah's gown in the photo of her holding Jacob? Something oddly familiar, perhaps? Something that my brother recognized instantly -- and burst out laughing -- when we asked him if he "noticed anything special" about the gown? More on that later...

Sorry, Cliff, for not posting sooner. Hopefully no more bait will be necessary...

24 September 2006

John Goerzen: Yellow

There are a lot of beautiful fall colors that will be showing up in forests around the world shortly.

But here in Kansas, we get a little jump on the colors because this is sunflower season.

If you drive around Kansas this time of year (roughly August and September), you'll see sunflowers all over the place. The wild sunflowers thrive anywhere there's nobody to plow them under or mow them down. If you pick the right country road, you can drive along and see what looks like a yellow wall in the distance. As you get closer, you realize that you're seeing sunflowers growing along a small stream or creek, though they've completely hidden it.

Although I grew up here, I had never really paid attention to the sunflowers. Back in 2002, as we were moving to Kansas from Indiana, Terah noticed the wild sunflowers. She'd never seen wild sunflowers and has really enjoyed them ever since (and so have I).

So, here are some sunflower photos, for those of you that have never had the chance to travel some of the back roads of Kansas.

First we start with a small bunch of wild sunflowers:



This small patch is growing in the ditch by our farm (our house is in that clump of trees in the background). These sunflowers are pretty young, so they aren't very tall yet. Also, there's a butterly fluttering around in that photo.

Most of the wild sunflowers get much taller than these. They seem to usually grow to about 5 to 7 feet (1.5 - 2.1m) tall. Here's a taller patch, about 1/2 mile away from the first one:



Neither of these two example photos show a very "deep" view of a group of sunflowers, because they are so dense that it's hard to really see what the individual plants look like in such a photo.

But here's a photo of a sunflower field:



These sunflowers don't grow as tall as their wild cousins, but their flower heads are quite a bit larger. This type of sunflower can be found many places. Wild sunflowers like we have here can be found in different places, too, but I've never seen them so common as here in Kansas.

John Goerzen: Almost Here

Well,it's just a few days until our baby is born! We're starting to get excited. And things are pretty busy, too -- so sorry for not posting more. Maybe it will get better in time...

John Goerzen: Almost Here

Well,it's just a few days until our baby is born! We're starting to get excited. And things are pretty busy, too -- so that explains why I haven't had many blog posts lately.

20 September 2006

John Goerzen: Disk encryption support in Etch

Well, I got my new MacBook Pro 15" in yesterday. I'll write something about that shortly. The main OS for this machine is not Mac OS X, though, but Debian.

I decided that, being a laptop, I would like to run dm-crypt on here. Much to my delight, the etch installers support dm-crypt out of the box.

Not only that, but they supported this setup out of the box, too:



Not only that, but it set up proper boot sequence for all of this out of the box, too.

So I turn on the unit, enter the password for the encrypted partition, and then the system continues booting.

Nice. Very nice.

Kudos to the debian-installer and initramfs teams.

17 September 2006

John Goerzen: Renovation: Weeks 10-12

Well, it's been awhile since I've posted photos of our renovation project. We've been very busy, and I'll write about that sometime soon, too.

But anyway, I've now posted photos of weeks 10 - 12 of the renovation.

Some of the highlights include: new windows, a new roof, two new staircases, three old oil heaters removed from the attic (some still with oil in them), and a little joking around from the workers.

Click above to see all of the photos.

Here are two samples from this set. First, how the house looks from the oustide now:



And this one:



Someone found that old commode from the attic. They put it on the dirt pile, and put a bucket under it for good measure.

Nobody actually used it.

That we know of.

12 September 2006

John Goerzen: Children and Consumer Electronics

Today on Slashdot, there is a story and interesting discussion about an article entitled Consumer electronics ate my child's imagination.

The main point of the article is that children today are spending a lot of time in front of the TV and playing videogames. As a result, they are less able to reason about the world, and even have a higher rate of depression. Apparently children today average about 2-3 years behind children from just 15 years ago on cognitive tests.

The Slashdot discussion was (surprise!) interesting as well. One point raised was that the entire notion of childhood is fairly modern concept since most children had to work as soon as they were able up until modern times.

This is something that Terah and I have been thinking about already. Terah was shopping for high chairs one day, and was reading reviews online at Amazon. We were both shocked that some chairs were being panned in the reviews because children "got uncomfortable after more than 2 or 3 hours in the chair". Huh?? After reading some more reviews, it seems that people are using high chairs as a place to just plonk down kids for a few hours while the parents are trying to get work done around the house. I can't imagine any high chair being a good place to put a kid for hours. Some parents also complained that the kids could get out of the chair if left unattended for awhile (which brings up a whole LOT of questions).

Then of course, there are plenty of parents that use the TV (or PlayStation or handheld videogames) as a cheap babysitter.

Terah and I have talked about this already, and though we don't have any sort of detailed parenting plan, we certainly do NOT want to be that kind of parents. Some people react by saying, "oh sure, you may say that now, but once you have the kids, you'll change your tune." Yes, that's right, some parents don't even try, and what's more, believe that it's impossible to treat children any other way.

We know plenty of parents that are successfully raising children without buying them hundreds of beeping electronic toys, using the TV (or high chair) as a babysitter, etc. We know it's possible and that's what we're going to aim for, too.

8 September 2006

John Goerzen: Two Stores I Like

There are a lot of places to buy stuff from online. Two favorites are cat5ecablguy and B&H Photo & Video.

First, cat5ecableguy. Well, despite the name, he sells cat3, cat5e, cat6, cable -- both patch cables and bulk -- as well as other things like speaker wire, jacks, coaxial cable, etc. He's got quality products and almost always the cheapest around. It's not unusual to see him selling things at about half the normal price.

I bought a lot of stuff from cat5ecableguy.com when we remodeled one room in our current house -- bulk cable, keystone jacks, and keystone plates, mostly. We also buy from him at work -- mostly patch cables there. He has prompt shipping and is great to work with. He's even been helping me track down black CAT6 keystone jacks for our remodel project.

Second, B&H Photo. It seems like if you use a service like shopping.com or froogle to find good prices on things like cameras, TVs, etc., that there are a whole bunch of companies that advertise good prices but then call you to "confirm" an order, only to use high-pressure tactics to sell you way overpriced accessories. Some of them even go so far as to cancel orders for people that don't purchase the accessories. Others just have bad prices or sell "grey market" merchandise (stuff intended for a non-US market that doesn't have a valid US warranty) without mentioning it.

This is not B&H. B&H has a bunch of high-quality stuff, good prices (often not the absolute lowest, but certainly among the lowest, and usually the lowest trustworthy store), and good service. They have some large print catalogs you can request as well.

I was surprised to see recently that they've added pro audio to their lineup, so when I got a digitial audio recorder, I got it from them. It was a $500 item or so. They called me to confirm the order -- on a *Sunday* morning no less -- but with them, that really is all it is. "Did you place an order for xyz from us?" "Yes." "OK, I've released it for shipping. Do you have any questions for us?" "No." "OK, thanks for using B&H."

I'm not quite sure why they call to confirm some orders, but I think it's a fraud protection measure.

So anyway, I haven't been paid to write these comments, and neither place even knows I'm doing this. I just wanted to pass along my experiences with two very nice, clueful, and honest retailers.

7 September 2006

John Goerzen: Vritual Baby Shower

Over on Terah's blog, she has a virtual baby shower going on. The idea:

"Leave a comment with a virtual gift. Your gift can be advice, a link to something that I should be registered for, a reflective thought, something you've learned from your own baby experiences, or whatever other creative thing that you can think of."


So if you'd like, head on over to her site and leave a comment.

5 September 2006

John Goerzen: Another Haskell Solution to Lars' Problem

Yesterday, I posted an 18-line solution to Lars' language problem. One problem with it was that it was not very memory-efficient (or time-efficient, for that matter). In other words, it was optimized for elegance.

Here is a 22-line solution that is much more memory-efficient and works well with his "huge" test case. Note to Planet readers: Planet seems to corrupt code examples at times; click on the original story to see the correct code.

import System.Environment
import Data.List
import Data.Char
import qualified Data.Map as Map
custwords = filter (/= "") . lines . map (conv . toLower)
    where iswordchar x = isAlphaNum x && isAscii x
          conv x = if iswordchar x then x else '\n'
wordfreq inp = Map.toList $ foldl' updmap (Map.empty::Map.Map String Int) inp
    where updmap nm word = case Map.lookup word nm of
                             Nothing -> Map.insert word 1 nm
                             Just x -> (Map.insert word $! x + 1) nm
freqsort (w1, c1) (w2, c2) = if c1 == c2
                                 then compare w1 w2
                                 else compare c2 c1
showit (word, count) = show count ++ " " ++ word
main = do args - getArgs
          interact $ unlines . map showit . take (read . head $ args) .
                     sortBy freqsort . wordfreq . custwords

The main change from the previous example to this one is using a Map to keep track of the frequency of each word.

4 September 2006

John Goerzen: A Haskell solution to Lars' Problem

Thanks to a little glitch in planet, one of Lars' posts from 2004 came to my attention. In it, he proposes a test for language benchmarking:

Read text from the standard input and count the number of times each word occurs. Convert letters to lower case. Order the words according to frequency, words with the same frequency should be ordered in ascending lexicographic order according to character code. Print out the top N words, where N is a decimal number given on the command line. Each output line must contain the count, a space, and the word (in lower case), and end in an ASCII LINE FEED character. Output must contain exactly N such output lines and no other output lines.

A word contains only ASCII letters A through Z and a through z (convert upper case to lower case) and ASCII digits 0 through 9 and is not empty. All other characters separate words and are ignored except to notice word boundaries. Word boundaries only occur at the beginning and end of the file and at non-word characters. You may not assume a maximum length for the word, line, or input file.


He provides a tarball with sample implementations in C, Python, and Shell.

His C code is 183 lines long, Python 57, and Shell 11. The specs for this test seem particularly suited for shell.

I wrote a version in Haskell, commented and formatted approximately the same as his Python version, but using an algorithm more like the shell version. It comes in at 18 lines. Here it is:

import System.Environment
import Data.List
import Data.Char
custwords = filter (/= "") . lines . map (conv . toLower)
    where iswordchar x = isAlphaNum x && isAscii x
          conv x = if iswordchar x then x else '\n'
wordfreq = map (\x -> (head x, length x)) . group . sort
freqsort (w1, c1) (w2, c2) = if c1 == c2
                                 then compare w1 w2
                                 else compare c2 c1
showit (word, count) = show count ++ " " ++ word
main = do args - getArgs
          interact $ unlines . map showit . take (read . head $ args) .
                     sortBy freqsort . wordfreq . custwords

Taking a look at this, one thing that might strike you is the function composition in main. This takes the output from one function and feeds it into the next -- and the Haskell syntactic sugar for this makes it look a lot like pipes in the shell version. The interact call takes, as a parameter, a function that takes a string and returns a string. interact supplies stdin as the input and prints the output to stdout. Note that, since Haskell is lazily, this does not mean buffering up the entire input or output -- it is read and written on demand.

The rest of the functions are also standard in Haskell, and you can find them in the index to the library reference if you want to learn more.

I understand and agree that short code doesn't necessarily mean good code, but I think that Haskell provides a very elegant and expressive solution to many problems -- one that also happens to be remarkably concise.

Updated 9/4: Changed isLower to isAlphaNum to fix a bug, and removed unnecessary Data.Map import

Branden Robinson: Alexander Schmehl, please fix your broken ElGamal key

$ gpg --list-key 8DF5C27F
gpg: buffer shorter than subpacket
gpg: signature packet without timestamp
gpg: buffer shorter than subpacket
gpg: signature packet without keyid
gpg: buffer shorter than subpacket
gpg: buffer shorter than subpacket
gpg: signature packet without timestamp
gpg: buffer shorter than subpacket
gpg: signature packet without keyid
gpg: buffer shorter than subpacket
pub   1024D/CD15A883 2002-09-28
uid                  Alexander Schmehl (privat) <alexander@schmehl.info>
uid                  Alexander Schmehl (private) <tolimar@schmehl.info>
uid                  Alexander Schmehl (knOEpix) <alexander@knoepix.org>
uid                  Alexander Schmehl (Skolelinux) <alexander@skolelinux.de>
uid                  Alexander Schmehl (university) <schmehl@cs.uni-frankfurt.de>
uid                  Alexander Schmehl (university) <schmehl@informatik.uni-frankfurt.de>
uid                  Alexander Schmehl (unused, but read) <alexander.schmehl@schlundmail.de>
sub   2048g/8DF5C27F 2002-09-28
Alexander, please repair your GPG key and upload a new version to the keyservers. The above spew every time I do ordinary gpg operations (like --check-trustdb) drives me up the wall, and I suspect I'm not the only one. John Goerzen used to have damage to his key — I think it was caused by a bug in a pre-1.0 version of GNU Privacy Guard (GPG). Maybe he has some tips for fixing the key. If it's only the ElGamal subkey that's damaged — which is how it looks to me — then it should be possible to replace it. It might just be that the public keyservers (like subkeys.pgp.net, which I use) have a corrupted copy of your key. You might try re-submitting it, like this:
gpg --keyserver subkeys.pgp.net --send-keys CD15A883
Interestingly, of all the key exchanges I've done over the past 6 years or so, I can only think of these two instances of key corruption. I suspect that says a lot for the robustness of GPG. This message was brought to you by the Pedantically Correct Public Key Cryptography Association. No Alexander Schmehls were harmed in the creation of this message (I hope ;-).)

Isaac Jones: Announcing Haskell'

let haskell' = succ haskell98 in
Announcing the Haskell' ("Haskell-Prime") process.  A short time ago,
I asked for volunteers to help with the next Haskell standard.  A
brave group has spoken up, and we've organized ourselves into a
committee in order to coordinate the community's work.  It will be the
committee's task to bring together the very best ideas and work of the
broader community in an "open-source" way, and to fill in any gaps in
order to make Haskell' as coherent and elegant as Haskell 98.
Our task is broadly defined by our mission statement:
    The Haskell programming language is more-or-less divided into two
    "branches".  The Haskell 98 standard is the "stable" branch of the
    language, and that has been a big success.  A lot of progress has been
    made over the last few years in the "research" branch of the Haskell
    language.  It is constantly advancing, and we feel that it is time for
    a new standard which reflects those advancements.
    Haskell' will be a conservative refinement of Haskell 98. It will
    be the work of this committee to adopt a set of language
    extensions and modifications and to standardize a new set of
    libraries.
    We will strive to only include tried-and-true language features,
    and to define them at least as rigorously as Haskell 98 was
    defined. This standard will reflect the realities of developing
    practical applications in the Haskell language. We will work closely
    with the rest of the Haskell community to create this standard.
Your Haskell' Committee is as follows (slightly munged email addresses
follow):
 * Manuel M T Chakravarty <chak at cse.unsw.edu.au>
 * John Goerzen <jgoerzen at complete.org>
 * Bastiaan Heeren <bastiaan at cs.uu.nl>
 * Isaac Jones <ijones at galois.com>
 * John Launchbury <john at galois.com>
 * Andres Loeh <loeh at iai.uni-bonn.de>
 * Simon Marlow <simonmar at microsoft.com>
 * John Meacham <john at repetae.net>
 * Ravi Nanavati <ravi at bluespec.com>
 * Henrik Nilsson <nhn at cs.nott.ac.uk>
 * Ross Paterson <ross at soi.city.ac.uk>
 * Simon Peyton-Jones <simonpj at microsoft.com>
 * Don Stewart <dons at cse.unsw.edu.au>
 * Audrey Tang <autrijus at gmail.com>
 * Simon J. Thompson <S.J.Thompson at kent.ac.uk>
 * Malcolm Wallace <Malcolm.Wallace at cs.york.ac.uk>
 * Stephanie Weirich <sweirich at cis.upenn.edu>
The editors are Isaac Jones and John Launchbury.
Feel free to contact any of us with any concerns or questions.  If you
don't know who to direct your questions to, email Isaac Jones
ijones at syntaxpolice.org.
Community involvement is vital to our task, and there will be a way
for members of the community to make formal proposals.  In the opening
phases, please use these more informal resources to help us coordinate
Haskell':
 * The haskell-prime mailing list.  All technical discussion will take
   place here, or (if other meetings take place) be reported here.  Anyone
   can subscribe, and any subscriber can post questions and comments,
   and participate in discussions.  Anyone can read the list archives.
   http://haskell.org/mailman/listinfo/haskell-prime
 * A wiki / issue tracking system to document consensus and to track
   ongoing tasks.  This system is publicly readable, but only
   committee writable so that we may present it as the "official"
   output of the committee.  If you ever feel that the wiki is not
   accurate as to the consensus, please alert the committee!
   http://hackage.haskell.org/trac/haskell-prime
 * A darcs code repository for experiments, proposed libraries,and
   complex examples.  darcs is a decentralized system, so anyone can use
   it, but patches should be sent to Isaac Jones:
   http://hackage.haskell.org/trac/haskell-prime/wiki/SourceCode
Please join us in making Haskell' a success.

John Goerzen: Lazy big-O and Haskell Answers

First, Evan has a host of interesting articles about Haskell, and I found his lazy big-O article particulary interesting.

Next, Eric Warmenhoven has recently taken up Haskell and posted some Haskell questions on his blog. Eric, here are some answers for you.

First, regarding shared libraries. While Haskell can be compiled to machine code, and GHC is a popular way to do that, a standard C way of representing information about a library (.h and .so files) is not really rich enough for Haskell. Consider, for instance, that functions may accept arguments of a wide range of types (or even things such as lists of any type). Haskell also performs type checking, and thus must know the type of arguments a function expects, as well as its return type, at compile time. So you do not generally compile Haskell code directly to .so files, but rather use the compiler's module or package support to do that. See Cabal for more information on packages. Through the FFI (Foreign Function Interface), it is possible to both call into C and be called from C with Haskell code, if that's where you want to go. It is actually easier in Haskell than in any other high-level language I've dealt with before.

Regarding circular module deps -- I've never used them and can't really comment. I can say, though, that the .boot files are internal files created by GHC.

Regarding practical stuff in tutorials -- I share your complaint there. I have found a few that are better than the others: Yet Another Haskell Tutorial, and Haskell: The Craft of Functional Programming, 2nd ed., by Simon Thompson. Several of us are working intermittently on a project called Haskell V8 -- take a look and darcs send me patches! I would say that Haskell's I/O system is the most powerful I've seen in many ways -- especially with regard to laziness -- and in the upcoming GHC 6.6 release, it will be both lazy *and* blazingly fast. Very nice.

There isn't much Debian-specific documentation, but there is a draft policy and a mailing list (link to it is in the policy doc).

Hope this helps!

28 August 2006

John Goerzen: Renovation: Weeks 8-9

We've been very busy lately, so I'm a bit behind on renovation updates.

I've posted the photos for weeks 8 and 9. The new kitchen is starting to take shape!

We're also going to get a nice heating/air system. My great uncle, who is doing that work for us, came up with a 3-zone system. We'll have one furnace & AC, but three temperature sensors. There will be motorized dampers in the ducts that are controlled by that system, so we can direct hot or cold air only where it needs to be. We'll break even on it now because we can make do with a smaller AC and furnace, and will save money over the long run due to lower utility bills.

We also learned that the wood floors in pretty much the entire house can be saved, so that'll be nice, too.

Here's a sample:



Click here for the rest.

14 August 2006

John Goerzen: Renovation Update: Weeks 6-7

The big news out at the farm this week is the foundation on the house. In 6 days of work, the foundation people have already demolished the old foundation, leveled up the house, dug out the area for the new foundation (which is digging down and out to expand the foundation to cover the whole house), and poured the walls. So the house is now sitting on new walls.

Here are some photos of the foundation work in progress.

John Goerzen: HP Officially Supports Debian

Yes, it's true.

I have two words for this: Woohoo! Finally.

John Goerzen: Peter

I was meaning to write this story two weeks ago, but then the fire happened... So better late than never.

My brother Peter is participating in a ministerial inquiry program this summer. College students can spend a summer as an intern at a church and start to get a real feel for what it's like to be involved with ministry.

Two weeks ago, Peter gave his first sermon at the church he's with this summer. He compared the task of a bunch of college guys trying to figure out how to get their bathroom clean to that of figuring out how to spread Jesus' word. A great (and entertaning!) sermon for sure.

We went back to hear his second sermon today -- a more serious, but no less vibrant, one about how Elijah felt that he wasn't up to the task the Lord had in mind for him. Peter did a great job again, and gave me some things to think about.

Now, since I've been going through pictures this weekend, here's a picture of Peter back when he was 6. Our parents were having drywall installed at the time, and Peter and I found the stilts that the drywall installers were using one evening. We had a lot of fun walking around on them.

Peter is the one on the left with the smile, toy sheriff's badge, hat, and pen on his shirt. (He still has the smile and pens, but I haven't seen the badge or hat in awhile.) I'm the one on the right, looking annoyed that I'm not on my preferred side of the camera lens. I really was enjoying myself until then ;-)

John Goerzen: Bowling with Grandpa

I've been taking photos for a long time. Today I found some pictures I had taken back when I was 11.

My grandpa used to like to take my brother and me bowling. Grandpa was a good bowler and played on a team. I wasn't a good bowler. But it was fun because it was the two of us and Grandpa, and he'd always take us out to eat afterwards, too.

Here is a picture I took while bowling with Grandpa back in 1991:



It's fun to look at some of these old pictures. They sure bring back the memories. And sometimes there are worthwhile ones like this in between all the photos of pets and household objects.

Next.

Previous.