• Getting There

    I spent a very short time working on the house this weekend, due to a graduation party and very hot weather. But I did manage to take out all the wood that I’m going to replace with the new maple flooring. Here’s how it looks.

  • Transit of Venus

    We had perfect weather to see the transit of Venus today. I took my telescope and solar filter down to Mark’s house and had some fun with Jack and Abby. They both have now seen the transit and know that they won’t see it again, unless they live to 117 and 113 respectively.

  • Congrats!

    Congratulations to Emily and Tori on their graduation!

  • On the Downward Slope

    I was feeling pretty good going into the 5K this morning, but thanks to the turkey below, I have now found myself on the downward slope of life.

  • Fun Weekend

    This Memorial Day weekend was quite a good one. I got the holes in my floor all patched. Now I just have to work on the section that I’m replacing with new wood. We had beautiful weather for Bike the Drive on Sunday. And today, we had a nice barbeque and birthday celebration for my Mom. Included were my brother John bringing his new motorcycle around and giving rides to all the kids and my Mom.

  • Living Room Patched

    I finished patching the holes in the living room. I’m no expert at working with wood floors, but I think I did an ok job. At least, I’m not too embarrassed to say that I did the floor. Now, I have two small areas to do in the dining room, a small area in the bedroom and then the big patch of maple. I’m getting excited because I can definitely see the progress and the end seems near.

  • Patching Continues

    I biked out to a lumber liquidators store on Friday and ordered ~80 square feet of maple flooring. I’m going to cut out the big section between the dining and living rooms and put maple in there. It will look very different, but I’m ok with that. I had wanted to use a bunch of different kinds of wood, but since you have to buy 20 square feet at a time, I would have had to buy a lot. So I decided to just go with maple.

  • Patching Begins

    Over the weekend, I finished the basic sanding (yay!) and started patching. I think it’s going to turn out ok. Here’s how it looks now.

  • Don’t Know Why This Didn’t Work Yesterday

    [~]# gem install rails -v "3.1.3"
    
  • Another Day…

    I’m getting close to finishing the first sanding layer. Here’s all I have left to do in the living room. After this, I should be able to start patching holes.

  • Chugging Along

    No work last weekend, since I was suffering with back issues. Today, I went for a run and then back to the house to work on the floor. The dining room is basically done, at least with paint/finish removal. Now I’m working on the living room. Here’s how it looked about halfway through.

  • Ransack with Nested Attributes

    In my app, I track plates which have a number of properties. They also have a location because I need to track where each plate has been. However, for the most part, what I really care about is where the plate is now, its current location. When I do my ransack search on the plates, I want to be able to have some check boxes with the possible locations. So, for example, people could search for all the plates that were annealed at a certain temperature and are located at Chicago. This means I have to search the locations for a given plate, but only for the latest location. I tried a number of different ways to do this in ransack and didn’t have much luck. I got it working how I wanted, but I’m fairly certain that this isn’t the best way to do it.

  • Ruby Enumerators

    I have a rails app that handles a lot of information about a set of experimental plates. Along with holding information about each plate, I have another table locations, that’s nested with the plates, as in plates has_many locations and locations belongs_to plates. The locations is a separate table because these plates can get shipped to different locations a lot. This is a way for us to track where all the plates are. Most importantly, we want to know which location for a give plate has the latest date, because this will tell us where the plate currently is.

  • Ransack Update

    I have an earlier post describing the way I set up a ransack search that sets up check boxes for possible search values in a given field. This was my first time using ransack and to say I had no idea what I was doing was not too far off. I’ve recently had to use it for another app and took some time looking into it again. And I think I’ve found the correct way to do a search like this.

  • More Floor Work

    Pulled a muscle in my back yesterday, so today was spent lying around making sure I didn’t make it worse. I bought the movie “The Visitor” and watched in a large number of times. Julie always says that I like sad movies and I guess she’s right. I do love that one.

  • Floor Status

    Work on sanding the floor has begun. It’s painful to my knees and back and very slow. On day 1, I rented a floor sander for a few hours to do the bulk of the work. Now, I’m trying to clean things up with my little belt sander. We’ll see how long it lasts before I burn out the motor.

  • Rails Forms with Check Boxes

    In my latest rails app, I want to compare a number of objects. My first solution was to create a new search page with a form on it.

  • Ransack Integration Test

    In my efforts to test the right stuff, I wanted to test that my basic search was working properly. I have a collection of plates that we’re storing a bunch of information on. Each plate has a unique serial number. We also have a unique id for each plate, but for our users, the serial number is what they’ll use to identify it. So I wanted to make a form that would let people search for a particular plate based on the serial number. And since this search form will be on my home controller and not the plate controller, I need to use an integration test to do this.

  • Interesting Evening

    I spent the evening poking around The National Archives. I found some neat images that I downloaded. I did a search for Theodore Roosevelt, because I’m currently reading a biography of him and I’ve been fascinated with him since I visited his birthplace a few years ago. And I searched for Thomas Edison because he’s always been one of my favorite people.

  • Dropdown Lists

    In the event that I want to make a simple dropdown list in a form in rails, I can use this:

  • IPhone Saga Continues

    I was feeling pretty full of myself after replacing the screen on my iphone. Alas, I now have new troubles. It seems that my iphone thinks that headphones are plugged in all the time. This means that I cannot take calls, listen or speak on my phone without putting it on speaker. I thought that this was related to my changing the screen, but I don’t think it is. First of all, I didn’t have this problem after I replaced the screen. It appeared about a week later. Secondly, I searched this issue online and found that lots of people have it. Just another great apple product.

  • Typical Weekend

    As I spend most weekends, I was working at my house today. I met my contractor in the morning to discuss putting in the back door. He’d rather just come back one more time to finish everything, so I have to buy my lights and then give him a call. So, I may be able to get all that done in a few weeks. Good thing I did my taxes, so I’ll have a little money to buy the lights.

  • A Full Day

    Earlier this week, I had a bad day. I had two cars that I couldn’t drive, my bike had a flat, my iphone was in pieces, the power supply for my laptop was working sporadically (ended up buying a new one) and I was dreading doing my taxes. Today is much, much better.

  • Ransack Gem

    Recently, I started using the ransack gem (https://github.com/ernie/ransack) for searching in one of my apps. I’m putting this here as an example, in case I ever need to make any more changes. The basics of ransack are pretty easy to do and work decently well. First step, add a search method to your controller. It should look something like this:

  • Ready for Grout

    I didn’t feel like posting yet another pictures of the floor in my kitchen. However, it is now done, up to the back door. The next step is grouting. I’m debating whether I should grout or wait until I finish the whole thing before grouting. Either way, the tiles are all in. Took a while, but I think it looks pretty good.