Object Oriented Vancouver

July 29, 2005

New Feed - movie trailers RSS (beta)

Filed under: RSS — kevinw @ 12:20 pm

Trailer: Harry Potter and the Goblet of Fire

I am a fan of movie trailers. That sounds a little odd to some people, but I really enjoy the anticipation I get from watching a good trailer. One of my favorite sites to check out trailers is apple trailers. They have a good, up to date selection of trailers all viewable in quicktime. The downside is that they don’t have an RSS feed. So I made one.

I built a screen scraper that parses the site and looks for all of their latest releases and outputs it into rss, then uploads it to polymercode.com. The feed is very much in Beta, so don’t be surprised if it isn’t readable by your RSS reader. Also - I am going to schedule the reader to scrape the trailers web site only a couple times a day - so don’t be surprised if the feed it slightly out of date with what is actually on the site.

I would appreciate your comments, and any errors you find. I’m going to release the source code for the application once it’s stablized and production ready - so keep checking back if you’re interested.

Apple - Movie Trailers RSS 2.0 Feed

July 27, 2005

Google Hacks - follow-up

Filed under: Blogs — kevinw @ 7:01 pm

It seems that google is the hot topic lately. After posting about it last week, a number of other Google related articles have come to my attention.

For a number of years Google has been publishing various search statistics on Google zeitgeist. Whatsuppop.com has turned zeitgeistinto an rss feed for them. Get your daily does of zeitgeist delivered straight to your aggregator.

LifeHacker has another couple of interesting google links. The Google search index of Google’s free community and discussion group service, Google groups, now supports email alerts. The article also points to more information on the Google blog - Staying Alert. Another article links to GMail Drive shell extension a nifty tool that turns GMail into a 2Gig drive on your computer. All it requires is IE 6+. I’m going to try it out tonight.

Both LifeHacker and Google blogs have links to the announcement that Google maps now supports Hybrid mode. Hybrid mode is a tight integration of the street map mode a satellite image mode of google maps. I like that it is very easy to use, does a good job of displaying the information the user (me) expects to see, and that they easily provide the ability to switch between the 3 modes at the click of a button. They do it all and keep it simple - a very good addition.

Trying to keep up, and building a half a product, is a competitive offering from MSN - msn virtual earth. MSN Virtual Earth is the equivalent of google maps - without hybrid view, missing satellite photos of many locations, and some of their satellite images are not current.

Searching for Vancouver BC on MSN virtual earth displays one result - International House Vancouver BC University Worldwide. At least it’s in Bellingham , just a couple hours drive from Vancouver. Google seems to know where Vancouver is(65 results).

MSN puts in a good effort - but like many Microsoft products it focuses on being feature rich instead of being simple. To get the above permalinks to Vancouver and Bellingham, I had to select the appropriate search dialog, then popup a new window then copy the text in the new window. With Google all I had to do was click the permalink button and copy the contents from my address bar. MSN did offer the ability to display multiple search results, while google does one at a time. But the quality of the google search results, as well as the quality and relevance of the satellite imagery definitely makes google maps my choice; at least for now. MSN should have ironed out its quirks before launching.

The popularity of these products is primarily driven off of the technologies they employ, not the quality of product they deliver. Anil Dash points out that

“The criteria for success include things like “It made my client pay faster.”, “It reminded me to collect from someone that hadn’t paid.” or “It reduced overhead in creating an invoice.”. I’m disheartened that so many people, especially those in the design community who are (ideally) focused on creating a good experience for users, don’t judge an application by the goals it’s supposed to accomplish.”

July 20, 2005

Google Hacks

Filed under: Blogs — kevinw @ 7:13 pm

From around the blogosphere this morning came the news of Google’s latest Map application - Google Moon.

I wasn’t going to mention it since everyone else is already on that bandwagon. Then I wandered upon a couple more great Google Hack blogs.

If you like GoogleMaps, you’ll want to check out Google Maps Mania, a blog about Projects that use the Google Maps public API

O’Reilly Radar has another Map Hacks collection.

On a similar vein is the Google Earth Hacks blog, that things like the Tour De France race routes, some great close-ups of famous theme parks like Disney land, other Random Cool Stuff.

Of course, google has a search engine too. There are a couple of interesting search blogs that post news and notables about Google and their uber-secret search technology. I check out John Battelle’s Search blog every now and then.

Another impressive search blog is Henk van Ess’s Search Bistro. This blog got some notice with it’s first posting about google labs. If you read the article, he goes into some detail about how he used functionality provided by Google to hack the url, and find out just what the http://eval.google.comis. Luckily (?) for him, Slashdot picked up his first post - so naturally he was hammered with traffic. What a way to start!

July 15, 2005

Extending the ActionScript 2.0 Drawing API

Filed under: Flash, Object Oriented Design — kevinw @ 10:03 am

In my spare time I’ve been working on a project for PolymerCode. I’ve been building a Rich Internet Application in Flash MX 2004 with ActionScript 2.0. I’ll post some more details about it when it’s closer to completion.

In the first weeks of development I’ve already encountered a number of shortcomings of the ActionScript 2.0 API. One thing that I’ve found annoying is the richness of the designer tools available, compared to the tools available via the ActionScript API. For example, to draw a dashed line with the drawing tools, you simply draw a line, and set the line type to dashed. In ActionScript there is the MovieClip.lineTo() which does not support dashed line types.

Convinced there was a better solution, I asked the all-knowing Google the way to enlightenment. Lucky for me, someone wrote a solution. Ric Ewing wrote Advanced drawing methods in Macromedia Flash MX. Unfortunately, he and his colleagues at Macromedia wrote the solutions back in 2002, in ActionScript 1.0. To use it I’ve had to update it to ActionScript 2.0. Much of the code is the same, with only a couple of tweaks.

Since Ric offered up this code for use, I think it’s only right that I do the same. I have provided the code in two flavours. One is in the form of a helper class that any AS2.0 class can call to draw a shape on any MovieClip. The second is an extension to the MovieClip class. All of the examples below use the helper class. To use the MovieClip implementation simply subclass it, and write whatever code you need. The attach it to am item in your library selecting ‘linkage’ then checking ‘Export for ActionScript’, and typing your class into the “AS 2.0 Class” text box. I’ll post an example application of this implementation soon.

I offer the following code without warranty explicit or implied. They are presented as is, and in the words of Ric Ewing,

“Some are useful, others whimsical, but all of them are free to use as you see fit. They are free of charge or obligation. I have endeavoured to make these methods robust and useful, however I can make no guarantees about their suitability to your specific needs. I similarly make no guarantees that they are bug or problem free”

Feel free to download the source code for all the examples below.

As2_draw_methods.zip

You will need the latest Macromedia Flash Player to view the demos below.
Download it now


Draw.dashTo() is for drawing dashed lines with ActionScript 2. It is the method I use the most. I was surprised when I found out that the standard lineTo function didn’t support dashed lines.


Draw.arcTo() an ActionScript methog for drawing an elliptical arc. The arcTo syntax is very similar to the lineTo method.


Draw.oval() is used to draw circles and ovals simply with ActionScript. ActionScript has methods for drawing arcs. This method is meant to simplify the process.


Draw.polygon() draws equal-sided polygon shapes. Use this ActionScript method to draw equalateral triangles, sqaures, pentagons, hexagons, octogons and any other polygon. This method encapsulates the math involved in drawing these shapes, making it much easier to include these shapes in your applications.


Draw.roundedRectangle() draws rectangles with nice, rounded corners like those in the Macromedia Flash rectangle tool. Rounding corners is very common in application development. This method is intended to simplify the process in drawing them.


Draw.burst() is used to draw those oft-loved/loathed graphical elements… the Starburst. Loved by advertisers everywhere. Now you have a simple element to draw starbursts from ActionScript 2. At least creating them is no longer painful.


Draw.star() very similar to Draw.burst(). It draws straight edged stars with sharp lines instead of arcing lines of the starburst. You can change the number of points, both the inner and outer radii, and even rotate the star to get the look and position you like.


Draw.gear() draws gear shapes. OK, this is neat, but I doubt I’d ever use it. Ric Ewing implemented this method mostly as a way to illustrate how to reuse some of the code within the other methods shown here.

July 13, 2005

Tour de France

Filed under: Blogs — kevinw @ 9:31 pm

I have been totally hooked on Tour de France this year. Unfortunately our VCR bit the dust - we’re pretty sure it died in its sleep. Instead of buying a new VCR, it gave me the excuse I needed to buy a PVR card for my computer. I bought the Hauppauge WinTV-PVR 150 personal video recorder.

It connects to regular coaxial cable output from your local cable provider and installs easily into a standard PCI slot. It comes with software for viewing, recording and scheduling recording of TV programs. The programs are a little shoddy. The video quality is not great, to be fair, my VCR wasn’t all that hot either… It also comes with a remote control that I haven’t used yet as my office is so small it is easier to reach for the wireless mouse bother with a[nother] remote.

I rate it 2.5 out of 5. It got the extra .5 because it’s affordable at less than $100.00.

The main thing is, I can schedule it to record Lance on his quest for 7 each day.

Other techies out there also appreciate the sport. 37Signals has a great post about the history of the yellow jersey. And of course, some people have been mapping the tour with google earth.

Flash Player 8 (Beta) available

Filed under: Flash — kevinw @ 8:49 pm

In case you hadn’t heard, Flash Player 8 (beta) is available for download. . . .

July 12, 2005

More benifits of Video Games

Filed under: Video Games — kevinw @ 7:33 pm

I’ve come across a burst of video game related information since posting my own views on evolution of video games. TechDirt has an interesting article that suggests video game players develop better visual scanning abilities. Is this an added benefit for the US Army?

This is along the same lines as a previous article Techdirt linked to on BBC about how regular play video game players may have improved visual skills. This follows up their posting about video game players being better business thinkers.

CollisionDetection, another blog I visit regularly, has an article that suggests that kids today would rather play the virtual sport than the actual sport. I think he’s off the mark at suggesting that NBA video games should be broadcast instead of (or as well as) the actual games. I don’t think people would actually watch it for any length of time unless the players were extraordinarily good. When it comes down to it, you’d be encouraging players to specialize at non-life skills.

If the Video game is doing better than the actual game, then shouldn’t the NBA be looking at ways to market it’s game better through the game, while gaining a better understanding of what people are looking for in their product?

The latest video game article on CollisionDetection links to a failed baseball game promotion that effectively leverages the popularity of the video games with real sports. The promotion would have had 2 baseball video game players play the first 2 innings of a baseball game, and the rest of the game to be played by the real teams. While the promotion failed to pass the commissioners office due to league rules, it is the kind of thinking that could encourage use of the video game and promote the popularity of the real sport.

Just another way a video game could make a better marketing tool.