Sunday, May 2, 2010

Pet Days

Yesterday the boys and I went to a Pet Days event at OSU. I thought it would just be a little petting zoo type thing where people brought their dogs and bonded. It ended up being more of a pet carnival. It was fun. They had all kinds of farm animals to be pet, a bounce house, a dunk tank, face painting and all kinds of displays set up.

I took the camera but Ethan was on a mission to see everything and be everywhere at once that I could only get some pictures with my phone. (Oh my gosh, that kid is fast and LOUD)

The bunnies were a huge hit with both boys.



At first Ethan expressed his love for bunnies by trying to eat one.



He did get to hold one and whispered sweet nothings to this little guy. I heard "love bunny", "sweet" and "so cute". Lucky little bunny.


This is pretty much Ethan's expression the whole time we were there. I had no idea such loud squealing could come out of such a little guy. People were actually stopping to point at Ethan.



Neither boy was very impressed by this pony.

Thursday, April 1, 2010

Running, T-Ball and Blazers, Oh My!

I decided that I wanted to run 50 miles in March. I counted up the miles yesterday and it came to 61! I was so excited!! I've been wanting to run more and more regularly and also speed up a bit. I think I accomplished both goals! Now to think of a goal for April...

Rian's first T-Ball practice was tonight. He was so excited and it's fun seeing him try a new sport. He's so into basketball right now (AWESOME, love this) but it'll be fun trying T-Ball.

The Blazers are taking on the Denver Nuggets right now. I freaking HATE the Nuggets. Mostly because of this guy...freaking Andersen....


Oh, and this guy...freaking Martin. ARGH!!!


And these guys....(I don't actually think Chauncey is that bad, just hate that he plays for the Nuggets)








Wednesday, February 17, 2010

SUNSHINE!!

The sun was out yesterday and it was SO nice! Yay! It's supposed to be nice the next few days (of course, right as we're getting ready to head out of town).
The boys and I spent a couple hours at the park to run around and enjoy it.

I love this boy.


Ethan stood for maybe a second before he was off and running again.







Wednesday, February 10, 2010

Birthday Boy



Happy 2nd Birthday, Ethan!


I can't believe my crazy little boy is 2 already. He's such a fun, sweet little guy. I'm proud to be his mamma.

A few things about Ethan (that I don't want to forget!):

-He ADORES Yaya (Rian). He follows him around and laughs at everything silly Rian does. When we pick Rian up from school, Ethan waits by the door and then squeals "Yaya" with arms stretched out for a hug. Pretty dang cute.

-He LOVES dogs ("Puppies". Every dog is a puppy)

-He LOVES daddy

-He's really into trains and cars. We played with cars the other day for 2 hours straight. Yes. Mostly his car saying hi to mine and driving around on the carpet following each other. If I stopped for even a second he would pick my car up and hand it to me grunting "truck". Lots of fun.

-He can be challenging. I know, I know, all kids can be. He has a strong will and knows what he wants. A good thing. But it seriously wears me out. However, when he's happy, he's extremely happy and SO much fun.

-He's copying almost everything we say, especially Rian.

-He HAS to carry something to bed with him to sleep with. He won't go unless he has something in his arms. It's been anything from a book to a train, a piece of the train track, a toy car, legos, to a stuffed animal. It was even a container of play dough once. Lately he has to have his stuffed "Puppy". I ADORE this.


-He shouts "Go! Go!" at the TV when there is a basketball or football game on.

--He LOVES Hummus. The other day he ate it for breakfast, lunch and dinner.

-He's very huggable and when this kid wants a hug or to hug he is all over you. Whenever we are sitting on the couch he has to be on someone's lap or pushed up against one of us. I love it.

-He sings. And can really boogie. He's got some moves that I'm a little jealous of.

He's a great little guy. I think we'll keep him. :)

Saturday, November 7, 2009

List Comprehension

I am enrolled in an Artificial Intelligence class this quarter which consumes about 20 hours per weekend every other weekend for the fortnightly programming assignment. (This is just how long it takes to complete the programming assignments, and doesn't include time spent preparing for the weekly quizzes, doing the required reading, completing the regular homework assignments, and studying for tests. Not that I'm complaining. I signed up for this, after all. :)) The programming part isn't usually too bad -- maybe eight hours of work -- but then I have to write a paper about the assignment. The writing usually takes quite a bit longer. Anyway, this is one of those weekends, but I'm taking a short break to talk about my current assignment and this sweet use of list comprehension I just whipped up.

We are studying constraint satisfaction problems and our latest assignment is to solve the game of Sudoku using some specific heuristics. We can use any programming language we choose, so I have used Python for all of the assignments so far. Python is so awesome that sometimes I feel like I'm cheating. For example, for this assignment, in order to implement one of the heuristics, I had to get a list of the coordinates for each block in the puzzle.

The "board" is basically a 2-dimensional array, where the top-left cell is at (0, 0) and the bottom-right cell is at (8, 8). Recall that the board is broken into 9 blocks of 9 cells each. The first block consists of the first 3 cells in each of the first 3 columns. What I was trying to get was a list of the coordinates for each cell in each of the blocks. The first block would look like this:

[(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2)]


The standard way to do this kind of thing, and the approach I would have taken if I were writing this in Java or C++, is to put together a couple of for loops and iteratively populate a big array. The whole thing might take 3-5 lines of code. But in Python, we can take advantage of some really cool features, like list comprehension, that can save the programmer a lot of time.

So here it is, the coordinates of each block in a Sudoku puzzle, in one line of Python:


>>> x = [[(i + a * 3, j + b * 3) for i in range(3) \
for j in range(3)] for a in range(3) \
for b in range(3)]
>>> x
[[(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2)],
[(0, 3), (0, 4), (0, 5),
(1, 3), (1, 4), (1, 5),
(2, 3), (2, 4), (2, 5)],
[(0, 6), (0, 7), (0, 8),
(1, 6), (1, 7), (1, 8),
(2, 6), (2, 7), (2, 8)],
[(3, 0), (3, 1), (3, 2),
(4, 0), (4, 1), (4, 2),
(5, 0), (5, 1), (5, 2)],
[(3, 3), (3, 4), (3, 5),
(4, 3), (4, 4), (4, 5),
(5, 3), (5, 4), (5, 5)],
[(3, 6), (3, 7), (3, 8),
(4, 6), (4, 7), (4, 8),
(5, 6), (5, 7), (5, 8)],
[(6, 0), (6, 1), (6, 2),
(7, 0), (7, 1), (7, 2),
(8, 0), (8, 1), (8, 2)],
[(6, 3), (6, 4), (6, 5),
(7, 3), (7, 4), (7, 5),
(8, 3), (8, 4), (8, 5)],
[(6, 6), (6, 7), (6, 8),
(7, 6), (7, 7), (7, 8),
(8, 6), (8, 7), (8, 8)]]
>>> len(x)
9
>>> x[0]
[(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2)]
>>> x[1]
[(0, 3), (0, 4), (0, 5),
(1, 3), (1, 4), (1, 5),
(2, 3), (2, 4), (2, 5)]
>>> x[8]
[(6, 6), (6, 7), (6, 8),
(7, 6), (7, 7), (7, 8),
(8, 6), (8, 7), (8, 8)]

Tuesday, October 27, 2009

Go Blazers!

This is SO EXCITING! We are watching the Blazers' first game of the season and LOVING it. Love this team. Rian even made a special sign.

Tuesday, September 29, 2009

Ethan loves toy cars and trains. More than anything else right now. He's been known to carry one around ALL DAY. I've even put him to bed and he'll still be hanging onto one.






This Thomas the Train bedtime shirt is Ethan's favorite shirt. He LOVES it! He even carried that around one day. (I got this thing for free from a clothing donation place where my mom has been volunteering. Bonus!!)







He wore it to bed the other night and I take it off to change him the next day. He started throwing the biggest fit. As soon as he's dressed he takes off for the bedroom and comes back out carrying the Thomas shirt. He's still wailing and saying "Dis? Dis? Choo-choo?" It was pretty sad so we changed his shirt. He immediately stopped crying, laughed (all the while saying "choo-choo") and lifted his shirt up so that he could kiss Thomas.

After all this excitement I gave him a snack. I put a handful of goldfish crackers on the table and turned away to get his water. I come back to see him stuff all of them in his mouth. He didn't chew, just shoved them all in. He turns to look at me and immediately starts signing "more".

The boys and I have been going for walks a lot lately. We found this awesome path that is away from the road so Ethan can get out of the stroller and walk (try to run) with Rian and I. This is what happened during our walk on Sunday....

Ethan got out, Rian got in. Ethan then started pulling Rian in the stroller.....

Then changed his mind and found that pushing was much more efficient.
(He's a little nutty!)