• Flickr
  • Last.fm
  • Twitter
  • Linkr
  • About
  • Favourites
  • Comments
  • XBox

Blog posts in General

Truth about Silverlight: it's not so bad!

Posted on February 27, 2010 at 09:12PM

When Microsoft announced Silverlight, many people declared it dead before it hit production quality. Generally the complaints were that it was Microsoft, competing against the juggernaut of Flash, or that it's a "stupid plugin". And for a large part, I've had very little interaction with it... until now.

For the last two weeks, the Winter Olympics have been just 60km east, across the Georgia Strait, in Vancouver. Despite being so close to the games, I've stayed home to avoid the massive crowds, long transportation times and to save money. Because of that I've been stuck with the amazing online coverage on CTVOlympics.caVancouver2010.com and the occasion televised broadcast.

To get more to the point, CTVOympics.ca surprised me a little bit when I was prompted to install Silverlight in order to watch the games. And because I knew I wanted to watch, I did it. Beyond a slow initialization time, it was always very smooth video playback at a very high quality. It was very intelligent at dynamically adjusting the incoming bitrate to eliminate buffering periods, and when possible, providing a very high quality stream that looked amazing.

I'd have to say it was likely the best online streaming video experience I've had to date. Prior to that, it was likely Hulu. I realize a lot of the quality was made possible by it being coverage of a huge event, but they did it in a great way. I wouldn't have been surprised to have a low-quality stream that was only watchable because you had no other choice, but they made a legitimate alternative to watching it on television.

I'm not saying Silverlight is #1, but this is indeed proof that Silverlight can be used for something great. Something I likely wouldn't have admitted a few weeks ago.

Passwords and Windows Live

Posted on February 8, 2010 at 06:14PM

I've discovered something very interesting about Windows Live passwords. They get truncated after 16 characters. Don't believe me? Go to hotmail.com and start inputting characters into the password box. It should stop accepting characters after 16.

I found this out while creating a new Live ID and transferring my XBox Live gamertag over to the new email address. While inputting trying to authenticate, I kept getting errors. Eventually I went back the browser and discovered the character limitation. Sure enough, when I put in the first 16 characters on my XBox, it accepted it happily.

This isn't a scary issue by any means, but it is a weird limitation to put in place. I tend to prefer longer passwords for anything that could hold sensitive information, like an email address (even though I'm only using this account for XBox Live). If anything, I was mostly frustrated that I was never told it would be truncated, hence the failed authentication attempts on the XBox.

The current shortcomings of the video tag

Posted on January 31, 2010 at 10:20PM

A disclaimer -- I work with both HTML/CSS/JavaScript and Flash. I see the value and need of both. They thrive together and have created some of the most interesting interactions when the two are used together.

Unified codecs

To date, HTML5's <video> doesn't have a unified codec. As seen with YouTube and Vimeo, they only support some browsers due to vendors not agreeing on a single codec. This is of course, a temporary issue which will eventually be solved. But until then, it's adding a lot of work to use it today. h.264 is an obvious choice to create the easiest transition. OGG is the obvious choice for licensing. Either way, one needs to be picked. And for the record, YouTube and Vimeo are using h.264, which caused Opera and Mozilla to uhh, get upset.

Content Protection

I'm sure millions of Hulu users are familiar with how great the service is. The reason it's possible is because Flash Player allows for a layer of content protection. If you want content like this, or live streaming video (like NHL GameCenter), Flash is currently the only option. It's fixable in the future of HTML, but that will be years down the road. So if you love your streaming content from Hulu or sporting sites, don't get a device that doesn't support Flash or Silverlight (hint: iPad doesn't support either).

Recording

Video recording is possible in Flash through the use of either FMS or Red5. The client connects to a server and the server records (usually) a webcam stream. This feature is implemented in several popular video websites, such as YouTube, and once again can't be done with a video tag. Whether this is something HTML and JavaScript want to take on, I don't know... it's not overly common, so I'm not sure they'd rush to add it to HTML6.

Advanced (x)

I've seen some people say that the video tag won't be able to do closed captioning, advanced timelines, advertisements, etc... but in reality, it generally can. The element is quite programmable through JavaScript meaning that it can do a lot of the stuff, but it won't be pretty or fun doing them. And since JavaScript is run locally, it wouldn't be impossible to bypass required advertisements through even a simple UserJS/Greasemonkey script.

In conclusion, the video tag should be welcomed, but you won't be uninstalling that Flash Player plugin anytime soon. There's still a few steps before Flash-powered video needs a coffin.

Saving money 101

Posted on January 12, 2010 at 04:39PM

Sometime soon, hopefully tonight, I will be closing off my hosting services with MediaTemple. Not because they're a bad host, but because I don't really want to spend $20 to host a link blog (which I've now replaced with Google Readers shared feed) and a simple GeoIP service to show dots on a map.

I haven't decided what to do with the content of my former link blog. There's options ranging from importing it to this blog, to nuking it, to selectively sharing some links on Google Reader. I'm not sure yet, but a MySQL dump will preserve it at least temporarily.

The map on the other hand was a fun project in college that just doesn't make sense to show publicly. I get a nice map from Google Analytics to show me locations of my visitors. That said... I think I may, at some point, simplify the codebase into a AS3 component and throw it onto Github.

The beauty of this is that I'll be saving $20/mo and still produce the same amount of content (maybe even more if I open source the map). The only downside to this is that I'll lose a production place to launch projects. However, I don't have any on the go that couldn't be placed on Viviti, and when I do, it's easy to re-open an account.

Dear 2K Sports

Posted on January 2, 2010 at 09:53PM

After sitting through some NHL 2k10 and playing the hell out of NHL 10, I thought I would do a comparison of the two. Point out where each game excels. You know, give some pointers to those debating which game to get. Unfortunately I couldn't.

NHL 2K10 feels like an alpha or maybe a beta. So much of the game is unpolished that I actually felt bad. I expected this game to be mediocre, but it failed to meet even that. I found this game so frustrating to play on so many levels. The menu is confusing, the controls are over-complicated, animations are choppy or laggy, graphics are below this generation, gameplay is pathetic, and it's littered with bugs.

It has a few things NHL 10 doesn't (mini-games, winter classic, "Ovi moves"), but they don't make up for the terrible quality of the game. It could be a good party game in the pond and 3 on 3 modes, but apart from that, it's just terrible.

So 2K Sports, I don't know what to suggest you do. The whole game is badly broken. I don't think there's a simple fix for making it a real competitor. But if you don't do something to improve it soon, I could see investors pointing at the franchise graveyard.

Dark Field wins the test

Posted on December 29, 2009 at 05:54PM

I picked up a Logitech Performance Mouse MX at Best Buy thanks to a generous Boxing Week Sale. It'll be an upgrade for my MX Revolution, which I'll take to work. And I gotta say, though it's a nice upgrade, the new stuff definitely won't overwhelm a user of the old MX generation.

As you can see in the image, it's mostly looking the same, though a bit more stylish. I think the side button layout is a bit improved, though I'm not sure switching the side scroller for a zoom button was a good idea. The USB plug is also tiny... really, really tiny. When it's plugged into my keyboard, I can't even see it sticking out. As an added plus, if I buy another wireless device from Logitech, it'll work with the USB plug I'm already using.

Charging is also very different with this mouse, in a very good way. The MX Revolution used a cradle charging system, which meant you couldn't use the mouse while it charged. This time around, it's charged via a USB cable so you can continue using your mouse while it charges. It's a huge plus, but there's two weaknesses. You either need to use a second USB port, switch the plug with the cable, or use a USB AC adapter. And secondly, when the cable is plugged in, it adds a lot more drag and resistance than a typical wired mouse.

Finally... does Dark Field, the special laser that lets it work on glass, actually work? Yes! I tried the mouse on damn near anything I could find and it worked. I'm sure it doesn't work on some things, but it worked on everything I'd ever think or want to use it on. And for those people that love to use their laptops in bed, it works great on blankets or sheets.

That said. It's not a huge improvement over the MX Revolution. It's better, but it's not the leap forward that the MX was over previous mice. I look forward to killing dragons in Dragon Age with it while playing on glass, or something... 

For Christmas, I give you Frogger!

Posted on December 18, 2009 at 07:16PM

Well, it's Christmas time and while I'll be off work from now until the new year, I likely won't be blogging. So to give you something from the past, I'm embedding a high-school student-quality version of Frogger.

Flash Player 8 required. You'll also need to view it on the site as many RSS readers won't render Flash.

Merry Christmas!

iPhone app sale badges wreck aesthetics

Posted on November 27, 2009 at 08:09PM

Icons are aften very beautiful, in both terms of appearance and what they represent. They're allowing you to see what an application or file is just by glancing at it. The iPhone does a great job of showcasing icons in a neatly aligned grid.

Sales are awesome. You save money on something you generally want (unless you're compulsive about buying stuff on sale). That's awesome. What's interesting is when developers learned they could get an extra ounce of marketing by advertising their sale in their applications icon.

I'll admit, it's clever marketing. It probably does help generate additional sales, which is hopefully increasing their revenue.

I'll also admit, it's really annoying seeing that sale badge when the application is on my phone. That icon will continue to display the badge until the next update (or perhaps until you force a new download, which I'm sure most people are too lazy to do). Maybe I'm the only one that finds these icons irritating, but I'll usually remove an application that has a badge.

I'm sure there's ways around this... like an officially supported sale section of the app store? Rejecting applications using the badges would be my preferred deterrent, but I could live with a sale section. And if a developer that likes to use these sale badges reads this, please stop making my homescreen less pretty.

The Web Designer's Idea Book

Posted on November 26, 2009 at 10:43PM

All designers need a place of inspiration and ideas. Some use nature, others use other websites for inspiration, and there's probably a hundred other ways too. If you're one of those that get inspired by seeing other sites, you'll probably want to check out The Web Designer's Idea Book.

Basically what you'll find is a collection of sites categorized in a number of ways (type, colour, elements, etc...). So say you're going to be designing a forum theme, you can lookup forums and see examples of well designed forums. You can see what they do to make it pretty, usable, and well designed. Hopefully that will stir the brain with some ideas to create a fresh new design.

Flex Links - Nov. 19th

Posted on November 19, 2009 at 08:44PM

Just a few links I've found in a past couple days.

I'll probably post these weekly or monthly depending on how much time I get with Flash and Flex.

Working on Flex and AIR with vim

Posted on November 17, 2009 at 09:33PM

I've recently been challenged at work to use a "real" editor instead of Textmate or Netbeans. I had to use both vim and emacs for a full day of work. They're both quite different from what I've been used to, but I've ultimately had more success with vim (likely due to more exposure to it).

Vim is find and dandy with the usual Ruby, HTML, etc... that I typically do at work. However, at home I usually work with Flex or Adobe AIR. And as you may be well aware, that work is often done in Flex Builder because of the robust feature set. Flex Builder is definitely great, but eclipse is very often slow and using an excessive amount of memory. So for those times I just want to quickly work on something without the need for the Flex Builder goodness, I found some vim files for actionscript and mxml.

Being able to edit the files is a great start. You still need to be able to compile a SWF or AIR file for this to really be useful. Fortunately you can pretty easily do it with the mxmlc or amxmlc. I'd recommend throwing command for compiling into an executable file for easy access:

#!/bin/bash
mxmlc -load-config flex-config.xml ./example.mxml -output ./example.swf

I haven't spent a lot of time working with this, just an hour or so this evening, but it was rather nice for a small project. Definitely missing some of the nice features of Flex Builder, but it's also a lot more lightweight.

Making OSX prompt dialog buttons usable

Posted on November 6, 2009 at 04:28PM

At work, Jerrett asked how you can switch between buttons in a dialog using the keyboard. We were all a little stumped and couldn't figure it out. It's not a solution of using certain keys or modifiers, you have to change a system setting. Just open up the Keyboard panel of System Preferences, click on the Keyboard Shortcuts tab and change the Full Keyboard Access option to All Controls (see below).

With that option changed, you can tab between the various options in a prompt dialog, like so:

It should probably be the default setting, but it's not. At least now you can stick to using the keyboard more often... having to use the mouse when one of those pop-up can really kill your flow.

Learning Flex 4

Posted on October 27, 2009 at 07:32PM

In Flex 4 (Gumbo), there's some pretty substantial changes in the way you can create an interface, especially when you throw Flash Catalyst into the mix. If you're already proficient with Flex, you'll just need to learn some of the differences and apply some small changes to your workflow. If you're new the Flex world, well, there's no better time than now to get going.

What you'll need:

Where to learn:

And fortunately for the community, there's a few people keeping ontop of what's new and helping everyone get caught up to speed.

There's plenty of other resources too, just search on Google or Twitter.

NHL Gamecenter: A new year

Posted on October 5, 2009 at 08:18PM

Well, it's another season of hockey and the first weekend was broadcast online, for free on NHL Gamecenter. It was a great test to see what they've done in the past year to make things better. And, well, the interface is definitely nice. There's a lot more focus on the game video and it looks great.

The streams are smooth at 1600 kbps and look better than standard TV broadcasts. It's really quite impressive. If you want to watch a team you probably don't care about. Yep, blackout policy is exactly the same. It's still impossible for me to watch a Vancouver Canucks game as it's more than likely being broadcast in my area. So once again NHL GameCenter is an amazing product, but failing due to restrictions that just don't make sense.

Yes, NHL, I would be willing to pay you $200 to watch all 82 games of the Canucks live (plus the other benefits you offer). And now I know I'm not the only person who feels this way. The most popular page on my blog since the start of the season is: Epic Fail: NHL GameCenter.

HTML5 thoughts and anticipation

Posted on September 28, 2009 at 10:50PM

I spent the last couple hours reading various articles and specs of HTML5... yeah, I know, a pretty geeky way to spend an evening. I've been meaning to do it ever since the last Mid-Island Web Workers Users Group meeting. That was the topic of the meeting, and I'll admit now, I went through the whole meeting thinking "but Flash already does this...", because, well, I'm a Flash developer.

And yes, Flash does do a lot of what HTML5 is bringing to the table (most of it isn't really applicable to Flash), but that doesn't mean it's not worth doing. For example, the audio tag. You can drop a simple tag sourcing to an audio file and just have it work. No embedding a player or anything. If the browser chrome isn't enough, or you want to script it, you can! You can make a simple playlist-based audi player using HTML, JavaScript and CSS. Do you get as much power and control as you get in Flash? No, but developers should recognize their needs and use the appropriate technology.

HTML5 is really focusing on making the language capable of meeting more needs without looking to plugins. This is a good thing, regardless of whether you think it's trying to compete with Flash, Silverlight or Java applets. The addition of several new types of input fields is awesome and reduces the amount of custom scripting required to create them. There's a lot to like... and some things to not like.

This came up in the meeting... the addition of some elements are oddly blog-centric. It seems strange to focus on a particular type of website with elements instead setting a standard microformat, which would then be backwards compatible. I'm not against adding new elements, I just think these are too centred around blogging to be all that beneficial.

And I'm sure everyone's heard about the codec issue... which who knows when that will get sorted out. No one will want to use the video element if only one browser supports both codecs and the others are split. In my opinion, MP4 is the better choice for two reasons: hardware decoders and it's already widely used with support in both Flash Player 9 and Silverlight 3. I haven't read much about audio codec support, but I presume MP3 will be the defacto standard as usual... though as a format, kinda sucks in terms of bitrate/quality.

All I know is that as browser versions come out, there's more and more support for HTML5. This will hopefully quicken the adoption once the spec hits recommendation status. It will definitely be nice to take advantage of some of its offerings.

Flash on the Beach

Posted on September 22, 2009 at 02:45PM

Unfortunately I couldn't go to Flash on the Beach, but I found a great round-up on the events thus far by Marc Hibbins. Definitely some cool stuff going on in Flash right now.

XBox Live and your network

Posted on September 21, 2009 at 07:24PM

More recently, I've been playing NHL 10 on XBox Live with some co-workers and friends. The first few times I tried to play, the lag was terrible. I tried 5 games or so without completing a single one. I blamed the EA servers for being crappy. Until I heard other people played almost lag-free at about the same times.

Home networks are generally stable, reliable and you never really notice issues. However, they're also quite fragile to certain types of traffic. Two things I've found to make XBox Live nearly impossible to play on are torrents and oddly enough, network time machine back-ups.

Torrents are pretty obvious in their affect. You connect to hundreds of peers and overwhelm your network to the point it generates a higher latency. If you set things up properly, you should minimize the impact, though it'll often slow the potential download speed.

Network Time Machine back-ups surprised me a bit. Network inspecting showed it generally used about 2MB/s to transfer files around. But if it was running, I was getting lag on XBox Live.

The unfortunate thing is that you can't always control what other people do on the network. So at any time someone could start torrenting or start a back-up. But at least you have an idea of what to look for if it starts to lag. 

Embedding favicons

Posted on September 10, 2009 at 12:26PM

I recently dealt with an issue reported by one of our users. They claimed that favicons worked in all browsers except IE8. I thought it was kind of weird as we were using the method recommended by W3. So I decided to investigate.

The code we were using to embed the icon was something like this:

<link href="/files/favicon.ico" rel="icon"/>

And the code that IE8 wants is this:

<link href="/files/favicon.ico" rel="shortcut icon"/>

Not really much of a difference, and it works in all other browsers (that I could test). The simple addition of "shortcut" is all that it takes.

Now, it's worth mentioning that this is technically a misuse of the rel attribute. Spaces are supposed to denote list items, like the class attribute. So really, most browsers are seeing this as [ 'shortcut', 'icon' ] instead of [ 'shortcut icon' ]. I guess we could pretend Microsoft is requiring two values instead of one string, but I find that unlikely (you could test by switching the word positions). Fortunately all browsers see their required "icon" value in the list and work as they should.

So yes, you can use "shortcut icon" as your value and it's perfectly valid. It's a poor implementation on Microsofts part, but at least they did it in a way that's still technically valid.

The few Snow Leopard incompatibilities I've actually run into

Posted on August 29, 2009 at 09:10AM

Upon upgrading to Snow Leopard, I looked over some of the documentation of stuff that no longer works, and found that the list of stuff that affects me is fairly small, and at that, minor.

After installing, those items listed seemed to be true. They're all somewhat nice to have around, but completely non-necessary and they've all said fixes are in the works. On the plus, I only found a couple other items that seem to be broken too.

  • ruby-debug (gem) (Compiled gems need to be recompiled)
  • CocoaSuite (works with Safari running in 32-bit mode)

I mentioned this to a co-worker and he thinks a re-compile is all that's needed, which sounds about right. Definitely a good reminder that it'll be smart to wait a while before installing it at work.

CocoaSuite on the otherhand was discontinued. All I used it for was mouse gestures in Safari. I'm not sure whether it's worth finding an alternative or not... I only use them with more casual browsing. I did find an alternative, but like CocoaSuite, requires Safari to be run in 32-bit mode.

These minor things aside, it was a pretty successful upgrade. I won't review the OS though... there's probably a million or so by now.

Mobile Browser Engines

Posted on August 26, 2009 at 08:18AM

After reading Haavard's article about Webkit this morning, it became apparent about two things: 1) open-source means you can fight back by branching and innovating, 2) the mobile market moves much more quickly than the desktop.

Apple on Webkit

Claiming that Apple is too tight on webkit -- fair enough. Claiming that a different open-source engine is needed? That's not fixing the problem. Webkit is open-source already, so why not tackle Apple on their control? As far as I've heard, it wasn't an issue with Adobe contributing code in the past. Why should it be difficult for RIM or any other vendor? If it's really such a huge issue, vendors could create a separate branch/fork and leave Apple in the dust.

Speaking of open-source engines... where's yours, Opera?

Mobile Market

That said, the mobile market is definitely different than desktops. It seems like the lifetime of a handset, especially moving into smartphones, it much lower than a desktop or laptop. And with contracts averaging 2-3 years, there's great incentive to upgrade frequently. I think it's fair to say there won't be much of a IE6 issue (outdated browsers still having a large usage rate) a few years down the road.

What does this mean? There's plenty of room to evolve and innovate. If you make the next best browser, you can gain market very quickly through fast-paced cycles. If Haavard is right about another engine being needed, mobile is definitely the place it can happen.

Displaying posts 1 - 20 of 804 in total