Everyone’s On It

I just made something! For the first time ever I made a stupid little ruby program to do something that a PivotTable was giving me fits over at work. I had a spreadsheet like so:

Spreadsheet of Traits

But what I really needed was a text file that I could print and hand out to people like so:

Formatted Strengths

And I did it with the power of Ruby! I was so proud of myself. I’ve never taken a real world problem (from my work no less) and made a tiny bit of code do exactly what I want it to. It just adds to my love of coding.

require 'csv'

contents = CSV.open "strengths.csv", headers: true, header_converters: :symbol
File.open("out.txt", 'w') do |f|
  contents.each do |row|
    headers = contents.headers
      name = row[0]
    strength = {}
      i = 1
    while i < row.length
      if row[i]
        strength[(row[i].to_i)] = i
      end
      i += 1
    end
    f.write("#{name} \n")
    stren = strength.sort_by { |k, v| k }

    stren.each do |k,v|
      f.write("\t #{headers[v].to_s.capitalize} \n")
    end
    f.write("\n")
  end
end

And yes, those are my StrengthsFinder top 5 in the second picture. Everyone at work had to do them and I think mine are very accurate.

Who Needs Sleep?

I’m up late listening to the entertaining people discuss numbers and psychics on Coast to Coast. I’m also sitting on a mattress on the floor of my best friend’s apartment. There are two tiny Chihuahuas snoring at my feet and I just want to grin.

I’m on vacation from the real world for a week. I took a week off, flew down to California and I’m basking in the sun and the closeness of friends who really get me. I’ve even made a new friend in the past few weeks and of course she lives down here too. I’m tired but happy and I’m positive now that this is the place I want to live. All the time. Everyday.

I want to move to California. I want to shake things up and become a web developer and live the life I fantasize about. I kept waffling between computers and accounting, but accounting was the safe and easy way out. I knew the path. I knew it would be another two years before I had to start making tough decisions. For computers, the tough decisions start NOW. I need to get down to California, try to get into a program and then figure out what exactly it means to work in a little development company that could disappear in 5 years. It’s terrifying and yet I can’t stop smiling.

Also, I’m back with A Small Orange hosting. I just loved them too much not to go back.