OffBeatMammal

Searching for monkeys in Cyberspace

MIX09 is Coming - Random Blog Bling time again

clock November 21, 2008 12:01 by author offbeatmammal

MIX09 is the Microsoft event of the year for all things web, so if you don't know what it is you should head over to VisitMIX and find out.

If you do know, you probably want to promote it... and just displaying the same old image for every visitor is so old fashioned, so I turned to my handy 4 lines of javascript to spice things up a little...

   1:  <script type="text/javascript"> 
   2:  var v1= Math.round(Math.random() * 6) + 1;
   3:  document.write('<br><a href="http://2009.VisitMix.com"><img src="http://blog.offbeatmammal.com/samples/MIX09/MIX09_BlogBling_' +v1 + '.jpg" border="0" alt="Visit MIX09"></a>');
   4:  </script>

or... even easier is to just insert this one line of Javascript into your page and as I find new bling I can update it automatically

<script type="text/javascript" src="http://blog.offbeatmammal.com/samples/mix09/mix09bling.js"></script>

if you define two variables in your javascript before you call the random blog bing script then you can over-ride the width and height - just like this

<script type="text/javascript">
var bling_width=120;
var bling_height=160;
</script>
<script type="text/javascript" src="http://blog.offbeatmammal.com/samples/mix09/mix09bling.js"></script>

and you can see the results here (just refresh the page to see it change)



JavaScript - always something more to tweak

clock November 7, 2008 21:10 by author offbeatmammal

Thanks to a bunch of projects over the years I've learnt one or two handy tricks to make sure web pages load quickly, but there's always something new to learn!

In the past I've always tried to delay loading JavaScript files until the very end because most browsers block the loading of other files when they hit a <script type="text/javascript" src="xyz.js"> tag ... I guess it makes sense as the script being loaded may make some fundamental changes to the page layout.

But what if you do have a load of scripts that you need to load, but they won't really be relevant until the page is displayed anyway (ajax helper libraries, entry validation etc)?

Well, you can fool your browser into loading them just like ordinary files outside the control of the JavaScript engine - and the great thing is that the code is pretty simple and flexible (which was good as I had to drop it into a site where I've not looked at the code in over two years but other folks have added a bunch of scripts and couldn't work out why the page load had got significantly worse!

 

function loadJavaScriptAsync()
{
var args = arguments.length;
for (var i=0;i<args;i++)
{
document.write("<script src='" + arguments[i] + "'></" + "script>");
}
}
 
....
 
loadJavaScriptAsync(
"JSfile1.js",
"JSfile2.js",
"http://remoteserver.com/scripts/JSfile3.js",
"jsFile4.js");
 


Hard Rock gets Silverlight Widgets

clock October 14, 2008 10:39 by author offbeatmammal

When Silverlight 2 was first announced at MIX this year Vertigo and the Hard Rock Cafe launched a pretty amazing memorabilia site.

To celebrate the official release of Silverlight 2.0 the site has been upgrade and enhanced. The collection now contains more images, the zooming is faster and smoother and as well as being easy to share links to individual items you can now grab widgets to embed on your own site

It just keeps getting better :) Check ScottGus blog for more information on the Silverlight 2.0 release.



Web Platform Installer

clock October 3, 2008 16:42 by author offbeatmammal

Web Platform Installer I hate configuring a new dev machine. You know you’re going to have to kill a few hours downloading and installing components and getting things working nice with each other.

I always wished there was a tool where I could click one button and get IIS, SQL, Visual Studio and the .Net Frameworks installed and running.

Of course, now I don’t have to build dev machines and write code every day for a living… along comes a tool that does just that!

The Web Platform Installer is pretty much the answer to my prayers! It allows you to take a default build or customize exactly what gets installed (including out-of-band features like bit rate throttling, URL Rewrite and Web Playlists and some unexpected extras like the SQL Server Drivers for PHP – yes, PHP runs really well on IIS7).

It’s currently in beta so now would be a really great time to check it out and use the forums to provide lots of feedback to make it great.

Thanks to Scott for the pointer to this.



A Website Named Desire

clock October 3, 2008 15:11 by author offbeatmammal

Over the last decade I’ve worked on many website projects, but I’ve never been able to answer a fairly simple question: “what’s actually involved in building a site” without the discussions rapidly spiraling off in many different directions as I try to describe the many dependencies and skill sets that somehow come together to deliver the magic.

Now, thanks to the talented folks responsible for A Website Named Desire, I no longer have that problem. I can simply point them to a great visualization which sums up all of the aspects of the job that people sometimes try to describe when they say “designer” or “developer”.

If you want the Javascript that delivers the random image from the poster above feel free to snag it below but make sure you check out the site it all it’s glory for the full effect!

   1:  <script type="text/javascript">
   2:  var v1= Math.round(Math.random() * 4);
   3:  var v2= Math.round(Math.random() * 3);
   4:  var ZoomLevel= 11;
   5:  document.write('<br><a href="http://awebsitenameddesire.com"><img src="http://awebsitenameddesire.com/ClientBin/awebsitenameddesire/GeneratedImages/dzc_output_files/' + ZoomLevel + '/'+ v1 + '_' +v2 + '.png" border="0" alt="A Website Named Desire"></a>');
   6:  </script>


Big Picture – getting your Deep Zoom on

clock April 9, 2008 20:55 by author offbeatmammal

At MIX08 one of the projects I helped along the way was the Hard Rock Memorabilia site developed by Vertigo to show off the Deep Zoom capabilities in Silverlight. These are the guys who also released the great Silverlight Codeplex Slide.Show project that I’ve used a couple of times.

Silverlight + Seadragon = Deep Zoom

What I discovered recently is that they’ve shared another project on Codeplex to help make your life easier. This one is called BigPicturetm and it helps by providing a lot of the basic framework for building a Silverlight Deep Zoom app. Now you still need to get your hands dirty with the Deep Zoom Composer and Visual Studio… but this gives you a real headstart.

BTW while we’re on the subject Jon Galloway (also from Vertigo) has written a great breakdown on how Deep Zoom compares to some other solutions and fellow evangelists Laurence Moroney and Jaime Rodriguez (both far cleverer than I) have posted some great write-ups on how to develop Deep Zoom apps in Silverlight.

If you build (or know of) a cool Deep Zoom sample please share it in the comments here.



Detecting Silverlight

clock March 27, 2008 10:21 by author offbeatmammal

image A while ago I posted about BrowserHawk adding support for Silverlight detection and for a while, apart from writing your own code, that had been it.

The good news is that as Silverlight is getting more popular the options are improving… I got a comment on the post to let me know that BrowserObject now also supports Silverlight detection in the same way as other plug ins.

The free version doesn’t detect plugins, but does give you some basic information for very little effort. The upscale product works for both .Net and PHP infrastructure and comes with some easy getting started samples to make you productive.

Good to see the eco-system growing.



Are you still using IE6?

clock March 25, 2008 10:22 by author offbeatmammal

IE7 has been available for a couple of years, and IE8 has just gone into beta. Firefox 2 is getting on nicely with v3 in the wings and even Safari with version3 is looking pretty good on Windows. Some people even like Opera (actually, it’s pretty cool on the Mobile platform).

So why are folks still persisting in using IE6? 31% of internet users in recent reports. That’s almost a third. More than all the non-IE browser population combined.

It’s old, and it’s got some quirks. And those quirks make developers lives a misery (I should know, I spent many happy years wrangling browser incompatibility issues).

popdown.gif

If all those folks using a version of any browser older than IE7 could just upgrade, get with the program and do their bit (it’s only a few moments to download and install and it doesn’t even insist on a legal copy of Windows these days!) then developers could concentrate on making great web applications using all the cool Ajax, Silverlight and Javascript features without having to worry about testing a load of different quirky behaviors.

It’s not just old versions of IE that are a problem – if you’re running anything older than the current version of a browser then you’re part of the problem – be it Firefox, Opera, IE, Safari, Maxthon or one of many others. The newer browsers still can’t quite agree on what standards they’re complying with and how they interpret some of the instructions in the standards (and I’ve read some of those documents… they’re not exactly unambiguous in places) but they’re better.

I’m not saying you should run business critical processes on bleeding edge beta versions of IE or the alternatives, but at least upgrade to the latest “released” version – you’ll save a lot of developers a lot of pain.

Please. Save the developers. It’s a great cause and supporting it won’t cost you much more than a few moments of your time.

savethedevelopers.gif



IE8 and RSS feeds in the links bar

clock March 19, 2008 19:19 by author offbeatmammal

clip_image002

In my previous post I looked at using WebSlices to expose updates to my blog but Joshua pointed out there’s a much simpler solution in IE8 if you have an existing RSS feed…

Rather than subscribe to a web slice or an RSS feed as you normally would simply drag the URL of the RSS feed to your links bar (or in Favorites add it to your “Favorites Bar” just like any other link) and thanks to the goodness of the underlying RSS platform in Vista you not only get subscribed to the feed but in your links bar you get a notification when a new item arrives (just like for WebSlices) and can even see unread and read items at a glance.

The more I play around with IE8 the more ways I’m impressed with it. Things like standards compliance and improved Javascript and rendering performance are, without a doubt, exciting – but the subtle things that are happening in the chrome itself serve as a reminder than innovation is alive and kicking on the IE team ;)



MIX08 is coming...

clock February 13, 2008 22:21 by author OffBeatMammal

It's really frustrating at the moment as almost everything I'm working on relates to MIX08 coming March 5-7 in Las Vegas.... and I don't want to spoil any of the surprises!

So all the really cool stuff that's keeping me busy in the office and on the road at the moment has to stay under wraps.

Come March 10th though you'll have read all about it on VisitMIX and all I'll need to do it link to it ;)

As well as my stuff (which of course I'm excited by!) I'm looking forward to dropping in on Franks panel - "Web 2.0 and beyond - what is the business reality" and some other sessions.

If you're coming to MIX look me up.... but not until day 2 when all my stuff has been presented ;)



Search

Calendar

<<  March 2010  >>
SuMoTuWeThFrSa
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910

Sign in

Twitter


    follow OffBeatMammal at http://twitter.com



     
    Donate unused CPU cycles with BOINC Stats and Account Management from BOINCStats.com



    Blogroll

    Archive

    Tags

    Categories


    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010