Sunday, February 14, 2010

Overdose

So, many of you are probably tired of my foosball obsession. But I did say I would post this one thing and after that, no more. Unless people actually want to see this, then whatever.


This is the back view of my snake shot. For those who don't know, the snake shot is where you pin the ball to the ground using the front of your foosman. The shot is also know as the rollover shot, because when you execute the shot you move the rod to the left or right and then spin it so it strikes the ball. This, if done properly, is virtually impossible to simply react to, or to "race" as foosball players say. Instead, the defender is forced to present a series of seemingly random open holes and tries to bait the shot into a spot he is about to cover.

There's not much to say about this, because the foosman blocks the view. You will notice that I screw up the first time, curse, and succeed in sounding like a 7-year-old thanks to recording equipment. There is something actually important that I noticed here. I have a "tell." Similar to a poker tell, a foosball tell reveals something about your shot, which good defenders pick up easily. You'll notice that on both attempts, my rock (the side to side motion before I shoot) slows down considerably just before I hit the shot. It's a huge advantage to know when exactly your opponent is hitting their shot. Since they're unlikely to aim it right at your defense, you can just move to cover a new hole and freeze. I get blocked like this a lot.

For those of you who simply don't care about foosball, I would like to point out the lovely little happy faces on the foosmen. Isn't that awesome? You'll also notice the door in the background that has a swipe-y thingy for access. One time, my friend tried to swipe his card, apparently confident that he had some sort of inside contact in the CMU services. He was sadly mistaken, and a rather embarrassing alarm went off. That was awkward.


This second, shorter clip is of my attempt at the same shot from the front. Here we get a better view of how the ball travels into the goal. There's another significant problem here. The ball is supposed to travel along the white line and into the goal. My shot very clearly "sprays" to the corner instead of going straight to the corner. This makes it harder to shoot around defenders. If I spray my shots they are easily blocked by pointing the guys outward. This is strange because if you examine the slow motion of this video, you can see that my foosman actually pulls past the ball before swinging at it and sending it in a straight line.

For those of you who don't care, that video was probably short enough to skip. It's like, literally 2 seconds or something.

Anyway, It's 10 pm. Which means I have been awake for the last 25 hours. Given that I have my first 251 exam tomorrow, I think it's time to head off to sleep.

Cheers,

Ved

Spacing

What have I been up to lately? The usual: 251, dragging my friends into my 251 problems. Bridge, foosball, chess.

If all goes well I'll have a video of my snake shot by today, and I'll post it with some analysis that you may or may not care about >_>

Until then, cheers.

Ved

Monday, February 8, 2010

Maintenance

Many of you read my status on chat clients. It usually consists of one or two things that have recently occurred to me.

However, there are plenty of instances of where I either don't have enough space or don't want to clutter my status.

These simple thoughts, observations, etc. are not really in-depth enough for blog posts either.

The solution? Twitter.

Haven't exactly been using it as often as I should, but I hope to change that.

In somewhat related news, I will keep my formspring open as well, for people to ask me questions and tell me stuff that I need to hear.

Here are links to both (they will be permanent elements of my status as well), so read what you want to and ask away.


Cheers,

Ved

Edit: In related news, A-Rod bought the camera that you suggested, Luke. Let's hope it works. Maybe I'll post some videos of our shots if all goes well.

Tuesday, February 2, 2010

Continuity

Truth be told, I was going to write another essay of a post here. As is the case with most long blog posts, I spend the spare moments of the day, like standing in line to get food or walking from class to class, marshaling my thoughts and trying to come up with important themes.

Unfortunately, I don't have as much time as I once did, and so the ideas that I had come up with today can't be expressed in their usual format.

This post was going to be about A-Rod.

A-Rod, my friend from high school. Never a close one, but always a friend.

But as friends go, he's been a great one in CMU.

Basically, what it comes down to is the following:

A-Rod loves to play foosball, as do I. He's looking for new ways to get better, ways to measure improvement, and ways to quantify the game. Perhaps it's our computer science training kicking in, or even our research experience. We want a scientific approach to the game. And finally, we have the freedom and the resources to do it.

Here's the problem. Foosball shots are too fast to see with the naked eye. Too fast to see with a video camera, even. The standard 30 frames per second simply isn't good enough. Here's an example: pull shot

Note how entirely useless the slow motion is. Granted, our shots aren't that accurate, but they can be the same speed (depending on whether the defender is trying to react to our shot or simply blocking arbitrary holes in the goal).

We spent an entire dinner trying to figure out how we might increase the frames per second of our video. The discussion was pretty fruitless, but highly entertaining. Our only remotely feasible idea was to get two cameras recording, but one delayed by 1/60th of a second. That way we could interlace the frames and double the frame rate.

There are obvious problems. How do you offset the recording time by 1/60th of a second? Obviously this would have to be computerized and not manual. I was skeptical of the existence of software that would allow cameras to take pictures on command from computers. Ever the computer science major, A-Rod told me that messing around with firmware should be "no big deal." Still don't believe that.

Other problems exist as well. With two cameras, the two different viewpoints would cause problems when trying to interlace the two clips. Maybe those 2.5 years I spent at MITRE weren't entirely useless, because I thought we could use some sort of beamsplitter, one that divides the light based on wavelength. Of course, this entirely messes up the color, but that isn't important in the overall scheme of things.

The consummate photographer, A-Rod began worrying about things that I have no understanding of - the lighting of the game room, the reflection off the table and players, who knows. The discussion carried on. One of A-Rod's friends stopped by and thought of possible solutions. Plates were clean and napkins were piled high, but we sat there thinking and trying to come up with alternatives to a complex, costly, and horrendously inefficient plan.

In the end we decided we'd look around online and talk about it later. As soon as I get home, A-Rod links me to this

Well that was an hour of our lives wasted.

Not really, actually. Problem-solving, applying knowledge, getting better at foosball. Although it's at a low level on all three of those counts, it really does combine the best of many worlds. On top of that, to sit and debate the implementation with a close friend while making random jokes that probably aren't funny in the slightest is not time wasted.

This semester has been hard. This semester is hard.

But it's things like this that keep me afloat. Foosball. Solving awesome math problems. Playing chess.

And on top of that, getting to do it with friends.

Maybe that hour wasn't useless in any sense. A-Rod suggests that 60 frames per second might not be enough, and that we would be better suited to trying to take 120 frame-per-second clips. We'll have to discuss this another time...

Tuesday, January 26, 2010

Heh

I have lots and lots of work this semester.

That is all.

Tuesday, January 19, 2010

Sports

No one in my family follows sports. At best my dad will make the occasional completely incorrect comment when I'm watching football ... something like "Why didn't he throw it a second time?!? The other guy was free!"

But of course, I'm making this joke to the wrong crowd. Barely any of my friends follow sports.

So why do I?

At first I was inclined to think that I picked up the habit in New Jersey. There, people were on top of their sports. Everyone knew how well the Jets, Giants, Nets, Knicks, Devils, Rangers, Islanders, Yankees, and Mets were doing. People even followed the now-defunct MetroStars, the local soccer team. For 3 years in a row, my parents took my friends and me to their games.

But even now, I pick up new sports like I pick up stones. In 2006 I began following the professional Super Smash Brothers Melee scene. In 2007 I began following baseball more closely than ever before. In 2008 I began following the Korean Leagues of Starcraft: Broodwar.

Why? Well, for the same reason everyone else follows sports. Sports bring people together. It's kind of strange how a game that pits fierce rivals against one another can do so, but there's no denying this fact.

These games inevitably have winners and losers. Recently, I've been fortunate enough to have my favorite team and player accomplish impressive feats in their respective sports.

It's a great feeling. Of course, with it comes the pain of defeat. It really does sort of darken your day when you find out your favorite team lost, or that your favorite player dropped out of a league, or any one of the multitude of things that can go wrong in professional sports.

But watching Pound 4, the biggest Super Smash Brothers tournament to date, I realized why I subject myself to this.

Two of the best Captain Falcon players in the world were playing against each other. It was an intense game. Both players are well-liked, they each had their own cheering section. The participants kept topping each other. The level of their game play rose to incredible heights, spurred on both by their opposition and the cheers of the crowd.

The crowd did a funny thing then. People stopped yelling things like, "Kick his ass, Jeff!" or "Kill this noob, man!" They began to appreciate what the game was giving them. Entertainment. And when someone started up the cheer "Fal-con! Fal-con! Fal-con!" I seriously doubt there was a person in the room who didn't join in.

Bitter rivals or not, the entire room could appreciate what they were seeing. They could agree on something. Even something as trivial as a video game goes a long way toward establishing a little more appreciation, a little more respect, and a little more love in the world.

And I guess that's what I'm really after.

Tuesday, January 12, 2010

My New Life

Traditionally in high school, I'd write about all my classes after the first day. It feels strange doing it in the middle of the year, but since all my classes are new, I suppose it's appropriate. Unfortunately (or perhaps fortunately), since I have work to do and it's rather late, I will keep this brief.

15-251 (Great Theoretical Ideas in Computer Science): This class is half the reason CS classes are referred to by number and not by name. Supposedly one of the most challenging classes at CMU, it's required for all computer science majors. Do not be misled by the title. This is a math class. The computer science department just decided that having the word "math" in one of their required courses was unacceptable. Therefore, at least according to Arvind, they replaced "math" with a synonym - "Great."

21-484 (Graph Theory): This is a required class for me, but in reality the reason I'm taking it now is because of the Professor. John Mackey, the most popular math professor in the school, is teaching it, and as you may recall he reminds me distinctly of Dr. Osborne. He is absolutely hilarious, quite informative, and very approachable. Actually, this worked to my disadvantage once, because I'm fairly sure he noticed me skipping class one day in Concepts of Math.

21-341 (Linear Algebra): The professor here is some old Russian dude with a heavy accent. I have no idea why, but he gives everyone the impression that he's really nice. I wonder how we got that impression, because it's at times very difficult to understand what he's saying. Today he couldn't figure out how to work the projector and consequently had to write the entire lecture in a 1 ft. by 1 ft. box of blackboard. I think his arm was tired from erasing.

15-123 (Effective Programming in C and Unix): Maybe the CS department needs to work on its course titles. Was the "Effective" really necessary? It would surprise me if they taught us to program ineffectively ... regardless, programming is the necessary evil of my major (at least in my opinion) so I'm hoping I can get this over with and not fail. That would be awesome.

82-132 (Elementary Chinese II): The original class size, in Elementary Chinese I, was around 20 students. I walked in to find a small circle set up, and to find that I was the last person to arrive. The problem? There were only 6 students already there. I can't hide when I don't know the answer anymore :( I also have a new teacher. He began the class by informing us that he had only given 2 B's last semester, and those were to people who didn't show up for the final presentations. Well ... okay then ...

Overall it was a good, if brutal day. I had to sit through 5 hours of class! How did I ever pull that off in high school ...