Monday, October 20, 2008

RAYS WIN RAYS WIN RAYS WIN RAYS WIN RAYS WIN RAYS WIN RAYS WIN

So I'm more than a little excited. Watching David Price absolutely destroy the Red Sox restored my faith in baseball (even if I'm even more convinced that Price is an alien robot from the future):





And just for fun, some pics from the Rays-Sox brawl earlier this year:



Thursday, October 16, 2008

Walk the Walk!

So I talk about development here. F#, nullable types, Walrus, Falcon... but what have I done lately? Nothing!

I have so much crap going on in the fall that I just get drained of energy. Pep band on Tuesdays and Thursdays, plus the games on Saturdays. Winterizing the home. Softball games.

Well, it all ends in November. Pep band and softball will be done, plus the house should be mostly winterized. If I don't start being productive by my birthday, I'm in trouble.

F#: For Me?

So I realized that Walrus could possibly use F# for the rules engine for recommendations. How cool would that be? I could have a second project in F# that takes the draft object (containing the team rosters, draft order, league settings, and free agents) and spits out the recommendation list. I think that's what I'll do.

Schwehmdawgs Chronicles

So we won the first round of the playoffs, 18-9. We played the same team we played in the last regular season game, and it was a resounding victory. Shabooya!

Wednesday, October 15, 2008

Only People Who Know Me Care About This

My softball team, the "Schwehmdawgs" (I campaigned against that name), starts the playoffs tonight. every team makes the playoffs, but we're 7-1, good for the second seed. We've really gelled together this year. Sure, the top 2 teams from last season didn't play this season. Still, we're a better team and I'm really looking forward to a deep October run.

Don't Visit This Site!

I once interviewed at TripAdvisor.com. I wasn't especially impressed by the interview, but I chalked that up to my own inexperience. I didn't get the job because the CEO misunderstood a question.

I asked, "TripAdvisor.com looks pretty complete to me. What features do you plan to add in the next 1-5 years?"

He heard, "TripAdvisor.com looks pretty complete to me. Why bother doing anything else?"

Recently, a friend of my interviewed there and was rebuffed as well. Though he managed to not offend the CEO, he was tripped up by several weak interview traps (e.g. asking him to write code to determine if a number is a triangular number, but not telling him what a triangular number is). He didn't get the job either.

Upon hearing about adventures in interviewing at this company, I decided to take a look at their website and see how it has changed.

I can't say I'd ever use the site. Even with AdBlock enabled, the site is still cluttered with advertisements. I tried searching for Tahiti; the site was just so ADD I couldn't parse any of it. It's so Web 1.0* it hurts my eyes.

What bugs me the most is that they actually seem to be doing very well! Look at these Alexa rankings:

It's beating the sites where you can actually book travel (ok I get it, travel research and travel booking are not the same category of webpage)! And in case you're wondering, that's good for a 414 ranking! I mean, this is just ridiculous for a terrible website! I'm just blown away by how people can actually use that site.

* One of the questions they asked me in the interview was How would I go about adding a table to a page. I described the table syntax, and the dev manager was all "No no I meant what would you do?" I tentatively asked "Well, if it was just HTML changes, I'd do the changes on a dev page, then copy that page to production." He turned to the computer in the office and asked me to demonstrate on the Tripsadvisor.com homepage. Thinking it was a trap of some sort, I was careful to explain every step as I saved a copy of the live page, made the change, saved, then opened in IE. He nodded then explained that's how they made many changes. This was their dev process? Yuck!

Tuesday, October 14, 2008

Don't Be an Idiot: Vote!

I hear all too often voters talk about being disenchanted: "Why should I vote? I don't like either of the candidates?" "It doesn't matter who you vote for. They are all crooks and will all lie to you in the end." These viewpoints really scare me.

We live in a democracy. That means we elect the government. The government works for us. Yes, there is corruption, but it's so much better than it used to be (just think Boss Tweed). You know why it's better? Because people don't stand for it. Citizens get up and vote. They express their opinion, debate conflicting ideas, and support the candidate who most closely represents their viewpoint.

You have other more pressing issues? That's fine. If everyone were significantly involved in politics, it might get a little crazy. But take a few moments to look over the candidates' platforms and voting records, then take a little time out of your day on November 4th and vote. Seriously, it comes around once a year. You find plenty of time to play video games, right?

If you don't vote, you officially lose the right to bitch about anything the government does. You also lose the right to be patriotic, glad, or proud of anything related to the nation. You're supporting the corruption of our government. You're handing the government over to corporate lobbyists and evil men (think Dick Cheney). You are a part of the problem you claim to hate so much.

Get out and vote!

Monday, October 13, 2008

I Just Can't Do It

With the Yankees not making the playoffs, I decided I'd turn over a new leaf. While I can't root for the Red Sox, I decided to be happy for them if they won. Hell, I know enough Red Sox fans to make it worth it to me socially.

Yeah, that lasted all of two games in the ALDS. Come on Rays, kick the crap out of the Red Sox!

Friday, October 10, 2008

Gift Censoring; or, You'll Poke Your Eye Out!

Every kid knows the story; they want a pony, a My Buddy, or an official Red Ryder, carbine action, two-hundred shot range model air rifle, with a compass in the stock and this thing which tells time, but their parents instead get them socks and sweaters (or maybe Legos if they're lucky). Their parents are gift censoring. Makes sense for kids. Not as much for adults.

I'm a nerd. I like video games. I maintain a wishlist on Amazon that is mostly video games, movies, and books. Yet when my birthday rolled around last year, I received zero video games from my parents, Annie, or Annie's parents (I only received one other gift, from Brian and Jay, that was a Gamestop gift card. Hello, Worms 2!). I didn't expect Annie to get me a video game, but I expected at least one game from the collective parents (note: I really liked their gifts, but this post is about censoring. If you read this, parents or in-laws, please take no offense! I love you!).

Annie normally acts as a sort of gift czar for me, so for Christmas, she tried to get more video games bought for me (I love this girl). I also changed the priority of all the games on my Amazon wishlist to "highest" and everything else to "medium" or less. I made out pretty good, but my parents still didn't get me any video games. When I asked them about it (in the most diplomatic way possible, as the gifts they did get me were awesome), they said that they didn't think I should really be spending my time playing games so they didn't get me any.

It is obvious that you can't dictate what gifts people buy you (though some people try). Even if you provide a large detailed wish list, some people will go off the list to add their unique spin to their gift, and that's encouraged. But outright avoiding a type of item from someone's wants? It can be annoying!

Thursday, October 9, 2008

Trade Strategery

Sometimes you need to upgrade a position on your fantasy team. Earlier this season (July) in my roto league, I needed help in HR, RBI, and AVG in the outfield, but I had extra starting pitchers. I saw a combination of need and excess that matched my excess a needs; a team with plenty of batting but that needed a top-line starter. We entered negotiations based around Josh Beckett for Ryan Braun but couldn't get anything done (he wanted more).

I noticed another team had a hole at 2B and a surplus of SPs. We worked out BJ Upton (whom I had been trying to get rid of), John Bowker (fresh out of free agency), and Mike Cameron for Cole Hamels, Edwin Encarnacion, and Alexi Casilla. I then turned and flipped Hamels, Kevin Slowey, and Mark Reynolds for Braun and Joel Zumaya.

So the entire trade for me looked like:

Upton, Bowker, Cameron, Slowey, and Reynolds
for
Braun, Encarnacion, Casilla, and Zumaya

Sure, the Zumaya-Slowey swap didn't work out so well (I needed saves badly). But the point is sometimes you have to run an end-around to get the stats you need.

New Project, Codenamed Falcon

I've started working on a new project. It's codenamed "Falcon." Why? Because that was the first animal name I thought of when I decided to name it after an animal. Now I've got Walrus and Falcon.

I have to keep mum on Falcon though, because I actually think it could be really cool.

Wednesday, October 8, 2008

Sorry This is a Boring Post

Eric and I recently had a conversation about how a candidate's personal life morals and ethics reflect their ability and skill at governing. I happen to believe that a person's morals are consistent throughout all of their dealings; a person who is immoral in one aspect of life has the capability to be just that immoral in all aspects.

John McCain had an affair while still married to his wife. He has admitted this as his greatest moral failure. I believe that moral failure is still a part of his DNA, and he is still capable of that failure. What could happen if he were president and were faced with a moral dilemma. Would he do the hard but right thing or the convenient but immoral thing? Just look at his life.

McCain is not the only person who has had an affair. No one is perfect. And having a divorce doesn't make one an immoral person. But it does say something about the man.

McCain's Health Insurance Scam

So McCain wants to give individuals a $2500 credit and families a $5000 credit to buy their own health insurance. I once had to buy my own health insurance at a cost of $450/month. That works out to $5400/year. The difference works out to $241.67/month. I paid $70/month for a single plan at my last job (for a single participant).

So McCain essentially wants to increase health insurance rates on unmarried people by $170/month. Now that's leadership.

McCain's New Plan: Problems Again

So John McCain announced a new plan at the debate to buy individual mortgages from troubled homeowners and renegotiate those adjustable-rate mortgages (ARM) into fixed-rate mortgages. He claims this is different from the existing government bailout plan because it goes directly to the homeowner and makes their life easier.

That's all well and good, but if he wants to buy Joe Sixpack's ARM, he has to find out who owns it. The whole point of this mortgage crisis is that the banks no longer own the mortgages; they package up thousands of them and sell shares in the package. That's where you get the mortgage-backed securities. I bet my mortgage (30-year fixed) is in part of a security, but it would be in one of the good ones (full of fixed-rate mortgages owned by people with high credit). The bad ones are backed by ARMs owned by people with bad credit and too low an income to pay the mortgage.

So if McCain wants to fix these bad mortgages, he has to first buy them. To buy them, he has to buy the bad-mortgage backed securities. So McCain's new plan is basically the exact same thing Congress has already voted on, with the added idea that the government would renegotiate the mortgages once it bought them. That added idea is a good one, I'll give him that. But if this is his attempt to make it a race, then hello President Obama.

Tuesday, October 7, 2008

This Drives Me Nuts

It kinda bugs me when I see campaign contributions from company employees lined up next to candidate's names. Just because Smallpants McFry (Joe Sixpack's neighbor) happens to work at Goldman Sachs doesn't mean he represents big Wall Street. And just because a candidate accepts the money doesn't mean he is going to represent the views of the voter's company. Sure there can be a correlation, but it's not proof.

Monday, October 6, 2008

From the "Maybe They Should Rethink This" Department

Have you seen this commercial for the Lincoln MKS? It's part of their "Our car is like a spaceship" series of commercials, most of which are pretty cool (though I'm waiting to see Patrick Stewart in the driver's seat saying "Engage!"). This one, however, has "Major Tom" as the soundtrack.

They might want to rethink the association there, as the character Tom in the song ends up lost in space, presumably dead, lost in space, committing suicide, or an alien. Oops.

Sunday, October 5, 2008

In The Spirit Of Sharing Information: SQLBulkCopy Class in .NET

I had an annoying problem at work the other day; how to copy a subset of data from one SQL Server database to another. This set included data from six tables. I looked at my options:
  • bcp (bulk copy) command-line utility
  • Dynamic SQL (select "insert into items (" + items.* + ")")
  • write a c# app to load the data into a dataset, then insert it into the new DB.
  • Use the Import/Export Wizard.
The first three didn't look particularly appealing, and the wizard only exports queries to data files; I'd have to do a lot of work to get those files to work.

Then I discovered the SqlBulkCopy class. In the .NET Framework 2.o and beyond, the SqlBulkCopy class gives bcp functionality in the managed code world. It made my life much easier.

Music Makes the People Code

So I finally set up my speakers in the basement with my computer (Brittany, aka ed-255). Holy crap, I get so much more pumped down here with music! Wahoo!

Friday, October 3, 2008

I Haven't Ranted Against The Press Lately

Filip Bondy: I swear, you really don't have a clue about how baseball franchises are run and how the baseball talent pipeline works.

Let's talk about player talent progression, shall we? The average baseball player spends several seasons in the minor leagues before being promoted to the bigs. The average age of these players tends to be mid 20's. I can't get numbers on this, but most players progressively get better until their high 20's or low 30's.

That in mind, let's look at the current state of Yankees youth who played in the Bronx this year:
  • Joba Chamberlain: age 23, less than 1 year in the minors
  • Phil Hughes: 22, 2+ years
  • Ian Kennedy: 23, 1 year
  • Robinson Cano: 25, 3 years
  • Melky Cabrera: 24, 2 years
  • Brett Gardner: 24, 3 short years
  • Justin Christian: 28, 3 years
  • David Robertson: 23, 1 year
  • Phil Coke: 25, 3 years
I look at that list and figure that at least half of those guys should get better over the next 3 years. Bondy, however, has decided that they're all crap:

"We aren't sure about Phil Hughes or Phil Coke."

I think you might be the only person on the planet who isn't sure about Hughes. I haven't heard a scouting report ever that thinks he won't make it. And yeah, we've only seen 14.2IP of Coke, but it was a damned good 14.2IP.

"We already see that Brett Gardner doesn't have the power to play center field on a regular basis."

I guess Bondy doesn't care that most center fielders are not power hitters, but let's forget about that. Yes, Gardner had a rough year this year. Yet he went from AAA to hitting lead off for The Most Storied Franchise in Sports. I'm willing to bet he had a little bit of a shocking transition. He also had a .296/.414/.422 line in AAA this season, and that .414 OBP sticks out. Plate discipline is a skill that translates directly from the minors to the bigs.

"Robinson Cano took a serious step backward in 2008."

I'll bet you in 2009 he beats his 2007 numbers. This kid is full of talent.

"Melky Cabrera is ordinary at best."

It's boring to say at this point, but he's 24! It's very rare for a player to peak at 22 (when he took over for Bernie Williams in CF and had a great year).

"Their starting rotation requires yet another injection of free agents."

This line is what gets me. Here is the current best guess 2009 rotation: Wang, Chamberlain, Pettitte, Hughes, Kennedy/Rasner/Aceves/Giese. Aside from the #5 spot, that looks pretty awesome. The Yankees do not need CC Sabathia (but they may as well grab him if they can). Add in a AJ Burnett or a Derek Lowe and that rotation starts to look awesome.

But the best part about that line is that Bondy doesn't understand what he's saying. You don't have to trade for free agents. Cashman will be careful about signing type A free agents (meaning the Yankees would have to cough up their 1st round draft pick), and if he managed to net any picks with teams signing his type A free agents (Marte comes to mind), then that changes the game too.

The Yankees get to drop $80 million off their books this year. Cashman has been saddled with these big contracts for the entire time he's been top dog. Now is when he really gets to shine. I can't wait to watch the Hot Stove League this year.

Wednesday, October 1, 2008

Wednesday Bold Prediction

Mets sign Sabathia to a $31M/6 year contract.
All rights reserved. Take that!