April 29, 2006

Meditating Again Harder Than Expected

Filed under: General — mmrobins @ 1:28 pm

I used to meditate regularly for a few months and I just seem to remember how good it felt. I forgot what a struggle it was to get to a point where I could sit down for 20 minutes at a time and turn my thoughts off. Now that I’ve started back up again I have trouble just sitting still for 10 minutes, let alone staying focused for 20.

I’m sure it’ll come back to me, but until it does maybe I need some assistance from a meditation soundtrack I used to use called Holosync. They make all sorts of crazy claims about its benefits, and it’s quite a pleasant soundtrack, but even after using it for a few months I’m dubious. I wish I had an EEG to measure my brain waves and see how much a different Holosync made. I’ve even considered building my own with designs from the Open EEG Project. Has anyone else tried holosync?

Garmin Forerunner 301

Filed under: General — mmrobins @ 1:19 pm

For some reason gadgets always motivate me, so I bought this GPS, heart rate monitor, stop watch. So far it’s very cool. I’ve used a heart rate monitor to train before, but it always bugged me that I couldn’t sync it up with my computer and analyze the data. This gives me nice graphs and maps of where I run. It’s nice knowing what distance and speed I’m going. With my old heart rate monitor I could pick a time that I wanted to run, but not a distance or a pace.

Another helpful feature is that I can design workouts by picking time intervals and setting goals for those intervals, like fast walk for 5 minutes, jog for 10, keep my heart rate above 150 for 10, run 3 miles at a certain pace, etc and then upload the workout to the unit. Then when I go for a run it keeps me going. I used to just jog around until I got bored and then start heading home. This keeps me focused.
I don’t even mind that it’s so large. I actually prefer it this big for the large screen. It’s not heavy enough to bother me while I run.

April 23, 2006

Juanita’s Birthday

Filed under: General — mmrobins @ 11:16 pm

Saturday night Kim and I went to Kim’s classmate Juanita’s 30th birthday party. It was a lot of fun because there were a lot of really cool people there. It seemed like everyone there had lived in Italy for a bit of time, and a lot of them worked for Microsoft or other tech companies so I had plenty in common to talk to people about. Juanita and her husband actually sound to me a lot like I imagine Kim and I might be at 30: well traveled, Kim cooking, me working for a tech company, owning some real estate as an investment, and planning to someday open a bed and breakfast.

Writing Down Goals

Filed under: General — mmrobins @ 11:08 pm

I’ve known for a long time that writing your goals is a major step toward achieving them, and I’ve done this in the past. I haven’t kept up on reviewing my goal list as much as I want to, and one thing that’s always been recommended that I’ve never done is share my list of goals with world. It’s a fairly scary thing to share your dreams. I worry about what people will think, and what will happen if I don’t achieve them.

I’ve been toying with the idea of posting all my goals on the web for a while now, and I just found a website that makes it really easy and interesting to do. 43things.com is a place where a ton of people are sharing their goals and encouraging each other. It’s a great idea and the positive environment helps me a lot. So now along with knowing all the music I listen to, anyone who wants can see my list of goals at 43Things. I hope this will further motivate me. Heck, I’m sure it will. There’s nothing like publicly declaring something in writing to light a fire under your ass to do it.

April 20, 2006

Rails Sortable Column Headers With Associations

Filed under: Technology — mmrobins @ 1:33 pm

Of all the magic things Ruby on Rails does by default, I’m surprised they didn’t automatically create sortable column headers. I figured out my own way to do it, but I couldn’t figure out how to sort columns correctly when the data for that column contained a foreign key – until now.

For example, I have a requests table with an employee_id field. This is an integer that references the id of some employee in my employee table. Sorting those integers doesn’t alphabetically sort my request list based on who made the request.

I finally found a good lead to the solution from a modified version of SortHelper2, by Jonathan Conway. His code worked great for me as long as I did my list function like this:

def list
      sort_init('id', 'asc', nil, 'cheeses', true)
      sort_update
      @cheese_pages, @cheeses = paginate :cheeses, :per_page => 30, 
      :order =>   sort_clause, :include => [:cheese_maker]
end

But I defined some functions in my class that I use so that I don’t have to rewrite finds every time, so I had to use custom/classic pagination. This got me to wonder what the code looked like for the find statement. I finally figured out how to use the :include statement in the find command to sort by an association.

find( :all, :include => :employee, :conditions => ["resolved_on is null"], 
                          :order => "employees.name asc",
                          :limit  =>  @it_request_pages.items_per_page,
                          :offset =>  @it_request_pages.current.offset)

Normally I think the api documentation for rails is great, but how am I supposed to know how to do this from the find function definition of :include option (:include: Names associations that should be loaded alongside using LEFT OUTER JOINs. The symbols named refer to already defined associations. See eager loading under Associations). Okay, I guess there’s a decent example if you do find the eager loading section of the Associations definition.

April 11, 2006

Moisture Festival

Filed under: Culture — mmrobins @ 8:43 pm

What a weird name for a festival. What a weird festival. Fun though. Kim and I caught the final marathon night with Becka and Michael. It’s cool that it’s in the back of a brew pub so that you can buy beer during the show. There were some really unique acts. The best was probably the acrobat, martial art, sword fighting jugglers. Yeah, that’s multi-talented. The guy who blew bubbles blew my mind! I never knew bubbles could do those things. Next year I’ll have to see the burlesque show too.

April 10, 2006

Jesse and Deborah’s Birthday

Filed under: General — mmrobins @ 8:46 pm

Saturday night was a party at Jesse’s to celebrate his and Deborah’s b-days. They made it fun with little contests that had prizes. I won a unicorn that stabs people, complete with interchangeable horns and people to stab. All I had to do for that little whacko thing was run around and collect Easter eggs in the dark. Hooray for hand free head lamps. Other people had those stoneaged flashlights. Jesse got an Atari for his birthday, so we played that for a while before settling in to playing asshole, a game that Travis must practice on a regular basis. It might sound like I’m calling him an asshole, but to the contrary, he was president most of the night. I’m still not sure how. I even saw Nichole Bronson since she was hanging out with Jacob’s sister. Oh, and the big news is that Travis has a new girlfriend named Lucy that he brought up from Portland with him. Quite a lot of fun with a lot of fun people. I think birthday parties are actually a lot better know that gifts aren’t the main focus. You know you’re starting to get old when you start saying that it’s more important that people show up than you get presents.