Microhoo and Silverlight Penetration

Friday, February 1st, 2008

One of the knocks I have heard against Silverlight has been around how long will it take Microsoft to obtain the same penetration as the Flash Player and if not how long, how will they do it?

If Microsoft is able to acquire Yahoo!, it certainly puts them in a much better position to quickly drive adoption of the Silverlight plugin.  Based on Alexa traffic ranking, if Microhoo becomes reality, Microsoft will own 3 of the top 5 web properties on the internet.  Yahoo is ranked one with a reach of 28% of all global Internet users.  Live.com is ranked number four with a reach of 25% and  MSN.com is ranked number five with a reach of 17%.  Do the math and you  get 70% of all global Internet users visiting a Microsoft property every day!

Now of course, MS would have to integrate some Silverlight apps into the popular Yahoo properties, but really that shouldn’t be all too hard.

Dynamically Resize Yahoo! Map in Flex 2.0 Application

Sunday, November 25th, 2007

The topic around dynamically resizing Yahoo! Maps in Flex came up in the Yahoo! Flash Developer Group last week. At the same time, I had also been trying to solve this problem for a project I’m working on. At first this problem seemed quite mysterious. I could resize the map, but it was always resizing to a 3×2 aspect ratio. If I had a container was not 3×2, the map would pin itself to the top of the container and have white borders to the right and bottom. I tried all possible combinations of properties (height, width, percentHeight, percentWidth, scaleContent) with no luck.

Yahoo! provides an AS3 API for Flex 2.0 developers that includes a SWF (built in AS2.0) and a SWC. The AS3 AstraWebAPI libraries are a set of wrapper tools that facilitate access to Yahoo!’s Web APIs from Flex 2.0 and Flash. This library works quite well, but it only exposes a subset of the API calls that are allowed by the Yahoo! API’s - so as a Flex developer you only have access to the most common calls. Unfortunately the AstraWebAPI swc does not include the setMapSize method that is defined in the as2map.swf file. So how do we access this method?

A little background. as2map.swf is an ActionScript 2 swf that you load into your Flex application when you instantiate a Yahoo Map. The AstraWebAPIs.swc file then provides a set of wrapper classes that uses ExternalInterface to communicate between your Flex application and the as2map.swf. It sounds kind of ugly - and is - but until Yahoo! releases an AS3 version of their mapping tool, this method will have to do.

So how do we make API calls to methods not exposed by AstraWebAPIs.swc file? My solution is to call the ExternalInterfaceBuffer directly from within your Flex application. It’s pretty easy to do…


import com.yahoo.webapis.maps.utils.ExternalInterfaceBuffer;


private function resizeMap(someWidth:int, someHeight:int) : void {
   // SWFDOMID and UNIQUEID are constants set in your existing map code
   var apiCall:String = SWFDOMID + ".setMapSize" + UNIQUEID;
   var EIBuffer:ExternalInterfaceBuffer = ExternalInterfaceBuffer.getInstance();
   EIBuffer.addCall({method:apiCall, data:{w:someWidth, h:someHeight})
}

I have provided an example (with source available here) that you can look at.

YUI Team Hiring Engineer To Work on Firebug

Monday, May 7th, 2007

Yahoo! likes Joe Hewitt’s Firebug extension for Firefox so much that the YUI Team Is Hiring an Engineer To Work on Firebug.  This is great news and hopefully will help Joe make this tool totally kick ass!

Badge Any RSS Feed With Yahoo! Pipes

Tuesday, February 20th, 2007

Badger uses Yahoo! Pipes and JavaScript to create Web badges out of any RSS feed. One of the neat features of Pipes is its ability to sent output in JSON format. This allows you to use Pipes as a proxy for any type of data or mashup you can think of.

Create your Master Feed with Yahoo! Pipes

Thursday, February 15th, 2007

The ever cleaver Gina Trapani from Lifehacker documents how to Create your master feed with Yahoo! Pipes. What is your master feed? Well is is an aggregation of your feeds from all your social networking sites like Flickr, del.icio.us, or any other site that provides you with an RSS feed of your activities.

5 Cool Ways to Use Yahoo! Pipes

Tuesday, February 13th, 2007

Frantic Industries presents 5 cool ways to use Yahoo! Pipes. Some great ideas are in this list that may open you eyes to the power and possibilities of this new service from Yahoo!

Mash the Web with Yahoo! Pipes

Thursday, February 8th, 2007

Yahoo! Pipes looks like a product that could change the way web designers and developers consume and user RSS. Pipes are a familiar terminology if you have ever done any Unix command line work. Pipes in Unix-land allow you to route the output of one tool into the input of another tool. The pipe character | is used as a separator between each command. So what makes Yahoo Pipes revolutionary? Well to start it provides a drag-and-drop interface that allows you to connect RSS feeds from multiple sources and perform operations like sorting, counting, and grouping. And it does this without requiring the developer or designer to write a single line of code.

There is some really good discussion and analysis of this new service from the likes of Tim O’Reilly, Jeremy Zawodny, Niall Kennedy, Richard MacManus, and even Google’s Matt Cutts.

A JavaScript Component for Resizing Elements

Thursday, November 30th, 2006

Jack Slocum has created an excellent reusable component for resizing elements. The component uses his custom version of the YUI JavaScript library and is very easy to include an use in your scripts. Be sure to scroll down his page to check out some very cool examples.

Microsoft, Google, Yahoo! Unite to Support Sitemaps

Thursday, November 16th, 2006

Wow! Did I miss hell freezing over? Microsoft, Google and Yahoo! - the three major search engines - have United to Support Sitemaps. This can be nothing but good for web developers and content creators. Sitemaps are simple XML files that help search engines determine how to spider your site and how often to do it. For more coverage of this news check out some of these links…

15 Things you can do with Yahoo! UI

Monday, July 3rd, 2006

Yahoo’s! Dustin Diaz has a great overview of the Yahoo! UI library in a featured article at Think Vitamin. 15 Things you can do with Yahoo! UI is a great starting point for looking at the many features of this JavaScript library.