Monday, August 20, 2007

Papapalooza

Yes it is almost here, the second annual Papapalooza party is this Saturday August 25th.

Alright, I know what you are saying, what is Papapalooza. Well it is three local bands playing for free at Papas Social Club to benefit charity. There is no cover charge to get in. How it works is all money raised from raffles and a percentage of the bar goes to Penfield Children's Center.

The bands playing this year are Modern Giants, Single Barrel, and First Kiss. As an added bonus, yours truly will be playing cowbell with Single Barrel. That's right I will be making my first stage appearance and let me tell you I got a fever, and the only prescription... is more cowbell.

You can see the skit here.



----------------
Now playing: Sean Kingston - Beautiful Girls
via FoxyTunes

----------------
Now playing: Red Jumpsuit Apparatus, The - Face Down
via FoxyTunes

Wednesday, August 15, 2007

Odds and Ends

Note 1
So you might have noticed that at the end of my last couple posts there was an inserted footnote of the music I was listening to when I posted the blog update. Well I use Foxy Tunes plugin for Firefox, and the latest update give the user the ability to attach that info in emails or blog posts or what not. I really don't use it in my email, however I thought it would be interesting to track what music I was listening to over time. Like five years from now when I am reading an old blog post and see I was listening to the Foo Fighters.

Note 2
I recently bought NCAA 2008 for the XBox360. I haven't really put much time into the game yet, however here are my initial thoughts.

One, there are too many turnovers in the game. I have noticed that there are like 4+ fumbles a game and 4+ interceptions per game. This might not seem like a lot but I play 5 minute quarters, and you might only get 10 possessions a game. Plus on top of that sometimes the game cheats since the computer AI is poor. What do I mean by cheat, well the cool thing in the game is that you can view replay in super slow motion and watch when the football passes through the body of my defender and into a the arms of a wide reciever.

Two, I am upset the EA still hasn't added the create a school back to the game. It was present on the last XBox release but failed to make the cut in the two 360 releases after. It was one of my favorite parts of the game. When I play dynasty, i like being able to create a weaker school, join a small conference, build it up to a conference power, then jump up the chains of conferences and win at every level. It made the game fun. Anyone can take over the reins of a powerhous and lead them to glory.

Three, the graphics are awesome.

----------------
Now playing: Foo Fighters - My Hero
via FoxyTunes .
----------------
Now playing: Rihanna - Unfaithful
via FoxyTunes
----------------
Now playing: Barenaked Ladies - Brian Wilson
via FoxyTunes

Wednesday, August 08, 2007

Dotnet 2.0 Generic Lists

So I am working in .Net 2.0 and have to deal with a lot of generic List<t> types. I have been using anonymous delegates to find items in them since I am not in .Net 3.5 and can’t use lambda expressions. So for example if I need to get one item out of the list I simply use the following code...

<t> = List<t>.Find(predicate<t>) or for some code

String dogName = "Max";
List<Dog> dogs = some list of dogs;
Dog aDog = dogs.Find(delegate (Dog match)
{
return match.name.Equals(dogName);
});

That will return the first dog in the list that is named Max.

There are many operations you can do this way and none of this is all that new or really interesting, except I came across ForEach(Predicate<T>).

To use this, it is List<t>.ForEach(Predicate<t>).

So I found it interesting that they would include the ForEach on the list. I started a message post at work asking about this. When should you use the list ForEach vs. the regular foreach. Is one better than the other and what not.

Geoff shared that by using ForEach looping becomes a natural part of the list and it reduces the amount of code that needs to be written. Grant took it one step further in summing up Geoff's response.

He states "Imagine you want to be able to talk about solving problems using some sort of “natural” set based language. The chained delegates *do* this, and in doing so reduce boilerplate code. Still, the question of why do this at all, why bother, why does this exist, why solve problems this way exists. The answer is *list comprehensions*; and it is well worth the read."

You can find out more about List Comprehensions here.

I am not going to lie and say I understand List Comprehension fully, however my point of the story is I like that when I ask the people I work with a question about why use a ForEach instead of a foreach, the discussion ends with a lesson on list comprehension.

By the way, I can't wait for Lambda Expressions in .Net 3.5.

----------------
Now playing: Amy Winehouse - You Know I'm No Good
via FoxyTunes

Friday, August 03, 2007

Brewers Slump

For the last three weeks I have seen the Milwaukee Brewers drop a 7 game lead on the cubs in the NL Central division race. Yesterday it got even worse with manager Ned Yost and some Players getting into a heated argument in the dugout during the game.

I knew the Cubs were playing well, but I thought the Brewers would be able to hold on to the lead. Don't get me wrong, I think the Brewers will come out of this slump and win the division, I am just surprised that is all.

here are some keys for the Brewers if they are to win the division (in no order of importance).
  • Clean Sheets
    • Ben Sheets needs to come back from injury and not miss a beat.
  • Long Outing with the Guys
    • Starters you need to start pitching seven inning and help your pen so they can help you.
  • Rolaids
    • The pen needs to stop the leak and start pitching like they are capable.
  • All Hail the Prince
    • Prince Fielder needs to start producing like he did in the first half of the season
  • Rookie of the Year
    • Braun needs to continue his high level of play on offense, and improve on defense.
  • Help the Prince and the Rook
    • The Brewers need soem other players to get hot. It doesn't always need to be the same people, but they need six or seven people in the lineup that are producing daily. Hart, Hall, Hardy, Estrada, Graphy, Mench, Council and Jenks I am talking to you.
I honestly don't think all these things need to happen, however if the brewers can achieve four of these goals, I think they will enjoy their first post season game in 25 years.



----------------
Now playing: Plain White T's - Hey There Delilah
via FoxyTunes