Jeremy LaCivita

blog

BattleUK II - Attack of the Cones

Nov 26, 2007

Well, i’m a bit late in writing, but since BattleUK was my first event last year, I guess I should write something now that I’ve been going to competitions for a full year.

I’m pretty happy with my performance. My goal was to get into the quarter finals, which i did. I also almost made it into the semi finals. Me and Mark Kempton both had to skate an extra run because the judges couldn’t decide who to send into the semis. In the end Mark won, and I left proud of my self, carrying a new resolve to add some more technical tricks to my arsenal. Overall I placed 9= (which means i tied with 4 other skaters for 9th place) out of 22 skaters, i think.

While i was there I got a new pair of the 2008 Seba Highs, which i’m working on breaking in currently.

Naomi and I also discussed details of starting a world freestyle team, which i’ll write more about soon.

my quarter final group

tags

Battle, Video, skate

No Comments »

Race Conditions in Flex VideoDisplay

Nov 14, 2007

The Flex mx.controls.VideoDisplay object is a double edged sword. If you’ve used it for anything complex, you’ve likely noticed that it gets very finicky under certain conditions. Thats really a shame, since it provides many useful features, like rtmp vs http connection management, bandwidth detection, and various optimizations to connection speeds to name a few.

On the Fan, we’ve occasionally had problems with playing lists of videos with VideoDisplay, and we’ve had to jump through a few hoops in order to continue to use it so that we’d still get all its benefits. The problem generally consists of the VideoDisplay getting into a state where it stops responding to subsequent calls to load() & play().

We had worked around most of these by moving around our code to avoid apparent race conditions in VideoDisplay, and we even had to monkey-patch the VideoDisplay & VideoPlayer classes to get around a problem were it would load the netstream twice for the same video and you’d get a double/echoing audio stream. While working with one of our partners recently, we came up against another bug in VideoDisplay that we couldn’t get around. This time it was throwing an error like this:

ArgumentError: Error #2126: NetConnection object must be connected.
  at flash.net::NetStream/construct()at flash.net::NetStream()
  at VideoPlayerNetStream()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\videoClasses\VideoPlayer.as:2883]
  at mx.controls.videoClasses::VideoPlayer/createStream()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\videoClasses\VideoPlayer.as:2712]
  at mx.controls.videoClasses::VideoPlayer/_load()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\videoClasses\VideoPlayer.as:2170]
  at mx.controls.videoClasses::VideoPlayer/load()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\videoClasses\VideoPlayer.as:1486]
  at mx.controls::VideoDisplay/load()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\VideoDisplay.as:1361]

It actually involves not only VideoDisplay but also VideoPlayer (which VideoDisplay has an instance of) and even NCManager (which does some of the stuff mentioned above). My counterpart at the other company wasn’t seeing this error in his test environment, but eventually we realized what the crucial difference was: autoplay was set to false in the Fan, while it was left to its default (true) in his test player.

Since he had it working with no problem, i decided to see what would happen if i left autoplay at its default value of true.

Well, there were some side effects related to videos playing before i was ready for them, however the broken state of VideoDisplay went away! Now I simply pause the VideoDisplay right after i set the source to simulate having autoplay set to false. This has the added benefit of buffering the movie right away instead of later on, so i’m pretty happy with the solution (although i think VideoDisplay should do that anyway if it was written properly)

Update: here’s the code we used to patch mx.controls.videoClasses.VideoPlayer:

public function ncConnected():void {
  if (_ncMgr == null || _ncMgr.netConnection == null)
    setState(CONNECTION_ERROR);
  else{
    if (!alreadyLoaded) {
      alreadyLoaded = true;
      createStream();
      setUpStream();
    }
  }
}

Obviously we also added a variable declaration for alreadyLoaded, and we also reset it to false in the _load function (you can’t miss it, there’s a ton of variables getting reset in the function)

Update: here’s a screenshot of my project structure showing how to “underride” the adobe class.mx_packages.png 

tags

The Fan, flex, hack

13 Comments »

BattleUS: a Blast!

Sep 17, 2007

Well, we had BattleUS last week, and it was really an awesome week! There’s the obvious things like all the great skaters and learning new tricks, but we even had plenty of great food, and drew some rather large crowds at Union Squre.

The Union Square sessions
chloeOn Wednesday night, Sebastien and Naomi met us at Union Square for our usual skating. We had a much bigger turn out, though, and the energy was really high. Then on Friday, Phil and Jim (from the UK) and Igor, Chloe and Olivier (From France) joined us, and as you can imagine it got even more interesting. The mix of Union Square freestyle with European freestyle slalom actually drew quite a large crowd. So big, in fact, that a break dancing performance that was originally on the other side of the square (two blocks away) actually moved their show right next to us to try to get their crowd back! After these two nights, I was already content with how the event had turned out, and it hadn’t even “officially” begun yet!

The Competitions
The International Battle was great to watch, and we even had two Americans make it to the semi finals (Evan and myself both got 3rd in our semi-final groups, just missing the finals, and tying for 5th place). Then came the US Battle, which was also pretty exciting. You could really see each skater pushing their limits to try and do their best. The top four were me, Evan, Stacy and Denni. Next we had an off-cones freestyle battle, with Team USA vs Team World. It was a bit light hearted and involved lots of trash talk between the teams, but the audience decided that Team USA was the better freestyle team, giving two of the top three spots (1st & 3rd) to Americans. Oh we did speed slalom as well :P.

Battle US 2007 Results

The Food
battleus foodI’d be letting a major part of the event slip if I didn’t mention all the great restaurants that the local New York skaters took us too. We had a tour of asia, with some of the best Japanese, Schechaun and Korean food I’ve ever had. Thanks to Pete, Shawn and Young-sang for picking great places to eat.

tags

Battle, Slalom Event, USFSA, events, skate

1 Comment »

Milestones: Team and Individual

Aug 24, 2007

Well, we launched the Fan 4.0 with an extremely low amount of friction. Other than M$ gimping Adobe’s Flash auto updater code in Vista, there weren’t any problems. We pushed a quick HTML only fix, and within 24 hours, Adobe had fixed their installer anyway (well, they did the same thing we did and put up a message saying Vista sucks)
Read the rest of this entry »

tags

Comcast, The Fan, hack

No Comments »

Jared Weinstock on PBS

Aug 9, 2007

Well, not on TV, but the flash game that he created, Farmation, for my DIGM 242 class won a competition to be featured on PBS’s website for an upcomming documentary: To Market to Market to Buy a Fat Pig

check out the site, and play the game which is in the main navigation:

To Market To Market…

tags

Announcement, teach

No Comments »

Fruit of my labor - Fan 4

Aug 3, 2007

We just uploaded the latest Fan 4 Beta to the preview servers. I’ve spent lots of hours implementing the design, so check it out and tell me what you think!

(Be sure to check out “Square” view, as thats were most of the changes are)

tags

Comcast, The Fan, flex, hack

5 Comments »

I’m in a Seba Ad!

Jul 29, 2007

Woo hoo! Its really tiny, but i’m in a UK Seba ad that will go in a UK skate magazine.

Naomi is gunna buy me a copy, and she send me a scan of it already.

They decided that Sebastien would be good for all the action shots, while Naomi and I would be best to portray the attitude of a true skater.

follow the link for the picture…

Read the rest of this entry »

tags

media, skate

6 Comments »

New Site

Jul 29, 2007

If you’re looking for course materials, I’ve redone the site a bit. Syllabi should still be at the same URLs as before, but if not, just go to the “teach” section and click the links.

tags

Announcement

No Comments »

At Comcast for a month

Jul 29, 2007

Well, its been about a month since I started working at Comcast Interactive Media. The first thing i’ve noticed is that there is a distinction between Comcast and CIM. The culture at CIM is not at all like your typical workplace, and thats a good thing.

Working on the Fan is really fun and interesting. I’m getting to learn Flex and also work on a very high profile consumer entertainment app at the same time. I can’t wait until we release the latest version to the public. Until then, you can check out our regular preview releases at CIM|Labs

tags

Comcast, The Fan

No Comments »

Hello world!

Jul 28, 2007

This is my first post. Well thats not actually true. Its the default post that wordpress puts into a new installation. I’ve changed the text here to make it my own though. I’ve also imported all my old skating posts from theSlalom.com. I need to find a way to keep this blog and that one in sync.

tags

hack, teach

2 Comments »