2009-10-09

I like Ruby

I'm working on something at the office in which I have a client running in C# .net code and a web server running with Ruby On Rails. Occasionally, when switching between them, I'll sometimes think of a Ruby solution to some code I'm writing in C#.

Recently, I had a loop that looks like this:
bool matchedOne = false;
foreach ( ScalarMatch match in MatchSet.Matches )
{
if ( match.PerformMatch(check) )
{
matchedOne = true;
break;
}
}
if ( ! matchedOne )
return null;

And I realized that the Ruby method would look like this:
return nil if not matchSet.matches.all? {|m| m.performMatch(check) }

I like Ruby.

2009-01-21

Christmas Cards - better late than never

I suppose we could claim we're just really early for next year.  Oh, except that the date is on the pictures.  Oh well.

Yes, we got cards out about a month too late.  We were so on the ball at first.  We went to Sears Portrait Studio, let them talk us into getting their cards instead of making our own... and then it started to slowly and subtly fall apart.

First, it took us at least a week after the date we could have picked up the cards before we actually picked up the cards.  Sadly, we were at the mall at least twice before that... we just forgot.

The "the snow" happened.  I'm sure everyone knows what I mean by that, but just to make the point again, we had snow on the ground for something like 2 and a half weeks.  That delayed packages, it rescheduled a play that we were going to see (Wizard of Oz at the Children's Theater, very good, by the way) and it screwed with our sense of time.  (Our kids were out of school for three weeks instead of two and, for that first week were bouncing off the walls... we realized a week too late that the day care center was, in fact, open.  We just assumed they would be closed when the school district was closed.  Oops.)  Dawn and I both worked a bit more over the holidays than we might have otherwise, because of the weather and needing to have someone in the office.  I worked overnight twice, which really messes with your internal clock.

We actually got the cards home a few days before Christmas, if I remember correctly.  Then they got lost in the paper trap that we call a desk.  They remained there, forgotten, until the first week of January.  When we decided to take a look at the list of people to send to, it only took an extra hour of looking before I found the cards again and less than two hours after that we had them all addressed, stuffed and stamped.  Whew!

Then they sat in the car for two weeks...

2009-01-02

Christmas 2008

Christmas in 2008 was weird.  The snow here in Portland was so out of the ordinary that we didn't have things happen quite the way we expected them to.  A few presents that we intended to get were left out (I never got back to the store after I decided what I was going to get Dawn... and it's not like I left it until the last minute!).  Also, we ended up getting packages out to family late, and things sent to us arrived late as well.

Here are some pictures of Christmas Day.

In fact, we ended up having a "second" Christmas this year, on New Year's Eve.  It was good timing, actually, as we had gotten the package from my mom a couple days previously and, about a half hour after we opened those things, the package from my brother arrived.

Oh, and one more note: One of Bryana's presents came with a promotional DVD of space came.  Between that and the space helmut, Bryana has now decided that she wants to go to space camp earlier than she had wanted to before... so that may be only a year or two out as an adventure for her.


2008-12-22

Reviews

When you write something, reviews can make or break your effort.  While I accept this, and I was looking forward to Index Dice being reviewed, I must say that I was frustrated at one of them that showed up.  (I will quickly say that the first review was excellent... he had some complaints, but they were constructive criticism.)

Frankly, the issue is that you should write something helpful to the developer, don't just complain.

He said: "It's not zilch nor it should be compared."

Okay, fair enough.  Although, I didn't promise it would be zilch, I said it was similar to and that the rule customization would allow you to get close.  Of course, in some searching on the internet, the first two rules sets I found online - one was very similar to how I have Index Dice set up, the other was a bit different (and ironically claimed that the game didn't have many variations).  I'm not sure what to think, but since this user didn't tell me what's wrong, I can't fix it.

He said: "It would be great if it had record keeping. Stats."

This is a good point and I agree wholeheartedly.  It's on the to do list...

He said: "It also has very suspicious rolls. Almost always when the pc id down it gets a very hi score."

This is funny, at least from where I sit.  I can honestly say that the rolling mechanism has no idea "who" it's rolling for.  I can also say that the AIs are very simple (I keep meaning to make them smarter) and pay no attention to how many points you have or if you're close to winning. (They do, however, know if you are about to win because you went over the limit.  They will keep rolling at that point until they beat you or bust.)

This is similar to the turmoil about iTunes and the iPods being non-random.  This is a classic example of observation bias in statistics.  The observer is remember some data points better than others, specifically the ones that are more significant.  For example, I thought for a time that it wasn't rolling the dice when you passed, since I would see a four replaced by a four.  When I actually took the time to write down what was happening a few times in a row, I could see that this wasn't the case... my brain had just filtered out what it considered to be the "significant" events and brushed the others under the rug.

So, while I understand that it might appear that the computer has some awesome run at just the right time, I can assure everyone that I have many other things I'd rather be doing with my time than making the game arbitrarily more difficult to play... like adding stats.  

2008-12-14

Snow!

It's snowing in Portland now... this may be the first time we've seen this much snow before Christmas since we've moved here.  At any rate, this is also the first time that Allison has really experienced snow (last year was only a dusting just after Christmas, and it had basically melted by the time we went outside).

Fortunately, since we had hoped to go sledding around Thanksgiving, Dawn had already gotten some snow pants for the girls... so we could go out without worrying about getting too cold (although I still held them to only about a 1/2 hour for now).

While we were out there, it picked up again, so it looks like we may have a good amount by tomorrow.

2008-11-26

Index Dice is live in the App Store


It's live!  I submitted the app Saturday night and Apple approved it last night.  Strangely, searching for "10000" isn't very effective, but searching for "farkle" or "index dice" is (well, of course on the last one).

I was planning to take some time off, and then slowly add some more features, but since there are about 6 other Farkle clones in the app store already, I've started working on the next feature set for release, to try and complete a little bit.

Next up: Scoring variations, since everyone plays different, I want to allow different rules depending on how each person likes to play.

After that: Horizontal viewing, showing detailed statistics, maybe other stuff... I haven't nailed it down completely yet.

2008-11-23

We will pie you!


I'm not a big fan of fund raisers... not sure why, since I think they're for good causes.  I think it has to do with never getting anything fun out of them myself when I was younger.

Well, not so with Bryana.  In her first major fund raiser, in which we made her pitch her school's cause to various people around the office and family (instead of doing it for her), Bryana managed to set the record for the largest number of contributions.  As a result, she was one of five or six students that were honored with the chance to put a pie in the face of one of the school faculty.  In Bryana's case, the PE teacher.

So, to cheers of "We will, we will pie you!" (to the tune of "We will rock you")... Bryana delivered a pie to her PE teacher.

All in all, the school raised around $11,000 - which was just a touch shy of the $12,000 goal that they had.  So far, we've been impressed with the involvement of the PTA and the community at Tobias, the kids really seem to feed off the energy of the staff and I think that makes for a better learning environment.  We're happy to have Bryana there!