Category Archives: microsoft

More Oslo hints in PDC schedule

Wondering what exactly Microsoft’s “Oslo” is? Here’s a few hints from the PDC 2008 schedule:

A lap around Oslo

"Oslo" is the family of new technologies that enable data-driven development and execution of services and applications. Come and learn how to capture all aspects of an application schematized in the "Oslo" repository and use "Oslo" directly to drive the execution of deployed applications.

Oslo: The language

“Oslo" provides a language for creating schemas, queries, views, and values. Learn the key features of the language, including its type system, instance construction, and query. Understand supporting runtime features such as dynamic construction and compilation, SQL generation, and deployment. Learn to author content for the "Oslo" repository and understand how to programmatically construct and process the content.

Technorati tags: ,

JavaFX – just for Java guys?

JavaFX is Sun’s answer to Flash and Silverlight, and it’s partially open source under the GPL. I’ve just downloaded the bundle of NetBeans plus JavaFX SDK. JavaFX Script is a new language for creating rich multimedia effects. I’ve also downloaded “Project Nile”, which includes “a set of Adobe PhotoShop and Adobe Illustrator plug-ins that allow graphics assets to be easily exported to JavaFX applications”. Unlike Microsoft, Sun is choosing to work with the designer’s existing favourite tools rather than trying to wrench them away to a brand new set (Expression).

According to Sun JavaFX is happening quickly: it is promising “Version 1.0 of JavaFX desktop runtime by the fall of 2008”.

The bit that makes me sceptical, aside from the speed of events, is that if I’m reading the following diagram right, users will require both the Java Runtime Environment (could be Java ME) and the JavaFX runtime in order to enjoy the results:

By contrast, Microsoft’s Silverlight does not require the full .NET runtime to be present, making it a much smaller download; and Flash has always been small.

The win for JavaFX is access to all the services of Java:

…JavaFX applications can leverage the power of Java by easily including any Java library within a JavaFX application to add advanced capabilities. This way application developers leverage their investments in Java.

On the other hand, it means a more complex and heavyweight install for users who do not have the right version of Java itself already installed. The Windows JRE is currently around 15MB for the offline version – there’s a 7MB “online” version but my guess is that it downloads more stuff during the install. I suspect that Adobe’s Flash would never have taken off if it had been that large a download.

When I spoke to Sun’s Rich Green earlier this year I recall that he agreed that a small download was important. Maybe I have this wrong, or a smaller runtime is planned for some future date.

It’s interesting that in his official blog post today, Josh Marinacci takes a Java-centric view:

So why am I excited about JavaFX? Because it gives us the freedom to create beautiful and responsive interfaces like never before. This isn’t to say you can’t do it in plain Java. If you’ve been to any of the last 4 JavaOne’s then you’ve seen great interfaces we’ve built. But these demos were a ton of work.

Right; but you could easily build these “beautiful and responsive interfaces” in Flash, both then and now. It’s a question of positioning. Is JavaFX just a new GUI library for Java – which will be welcome, but limited in appeal to the Java crowd? Or a serious alternative to Flash? At the moment, it looks more like the former.

Technorati tags: , , ,

Analysing Mojave: is Vista really that good?

Microsoft’s Mojave Experiment is now online. As I understand it, a group of people with negative perceptions of Windows Vista were shown a forthcoming version of OS code-named Mojave. In the cases Microsoft is choosing to present, they liked it much better – one woman scored Vista 0, and Mojave 10. Finally, it was revealed that Mojave was in fact Vista.

It’s a fun promotion and strikes me as a good effort in persuading people to take another look. Still, a few things puzzle me. The web page is somewhat frustrating, since to get all the content you have to click all of the little boxes – there are 55, but some repeat – but we still never see a complete video of what one of these subjects saw demonstrated.

I’ll describe one of them. Early on in her session (I presume), a woman is asked:

“Have you heard of Windows Vista?”

“Based on all the negative comments and frustrations I’ve seen my husband having to deal with I wouldn’t touch the thing,” she replies.

Now we get a snippet from the end of her session:

“Windows Mojave is actually Windows Vista”

“Oh is it [laughs] … Maybe it has more to do with the user than the application.”

I am going to defend her husband. Sure, users can be unpredictable and frustrating to deal with, but consumer software is meant to be “user-friendly” which means that if someone – and in Vista’s case, many people – have a negative and frustrating experience, then something is wrong with the software. That’s not necessarily Microsoft’s software; it could be third-party drivers, or lack of drivers, or the ugly stuff that gets bundled with a new computer.

Personally I moved to Vista back in 2006 and have never wanted to return to Windows XP. Then again, I did my own clean installs. I’ve also had problems including buggy display drivers flashing the screen, Windows Search causing painful delays in Explorer, stuttering sound with supposedly high-end audio cards, hours spent getting a new laptop ready for use,  Explorer wrongly displaying files as music, Media Center corrupting itself, and network weirdness (today) which knocked me off the Internet. Finally, when I compared Vista and XP performance, XP came out noticeably faster.

Few computers operate entirely without problems. Even so, I’ve seen enough to understand why someone might get frustrated; and that’s with clean installs of the OS.

There’s not much wrong with the core of Vista, as demonstrated by the generally solid performance of Server 2008, and now by Mojave. That doesn’t excuse the numerous problems that have spoilt the release. Let’s hope lessons have been learned.

Technorati tags: , , , ,

Nearly three years on, what’s the verdict on the Office 2007 ribbon?

Mitch Barnett has had enough:

I can’t take it anymore. I am re-installing Office 2003 and forgetting about Office 2007. Why? It’s the ribbon man! For all of the usability design, I find it unusable. No offense to Jensen Harris or Microsoft, but for me, the consumer of the product, and after trying it for over a year, I just can’t get used to it.

It is a thoughtful post, mainly about Word, and worth a read if you are interested either in Office or in usability design. His main point is that there are too many features:

Honestly, Word should have been “refactored” into perhaps multiple products or features split into a desktop publishing application or a whole other suite of applications. But instead, the UX team went through an honorable and noble design process of solving the wrong problem.

Trouble is, users are conservative. Lotus tried to re-invent the spreadsheet with Improv, but despite good reviews it failed to compete with 1-2-3, let alone Excel. Another noble failure which comes to mind is OpenDoc:

OpenDoc is a revolutionary cross-platform technology that replaces conventional applications with user-assembled groups of software components. With OpenDoc, users can create virtually any kind of custom software solution.

Wikipedia also describes OpenDoc and why it failed. Evolution, or doing the same thing as before but slightly better, is easier to sell than revolution.

That brings me back to the ribbon. I recorded my first impressions just after the public announcement of the ribbon at PDC 2005:

It’s a bold move for Microsoft. Most people here seem to like the new look, but will the average office worker appreciate or resent these major changes? There is no "classic mode"; you have to use the new interface. If it catches on, it will make near-clones like Open Office look dated; if it’s just too different, it could boost the competition.

My reflection nearly three years later is that – despite Barnett’s comments – the ribbon has proved both less controversial and less revolutionary than I had expected. I’ve had the experience of introducing users to Office 2007, and generally they take a day or two to work out where their favourite features are hidden, and then carry on much as before. Only a minority seem to dislike it as much as Barnett, and Office 2007 seems to have been a success for Microsoft. The ribbon is good marketing, because users can easily tell the difference between this and earlier Office releases.

On the other hand, Microsoft has not convinced the world that the ribbon concept is the future of UI design; and I’ve not detected any great pressure on the developers of Open Office or other popular applications to change to the ribbon style. Here I am typing into Live Writer, which has conventional menus, and it is perfectly comfortable; I’d rather the Writer team worked on features other than a ribbon UI. Sorry, I mean other than an Office Fluent User Interface.

Personally I get on OK with the Office 2007 ribbon, thanks to the Quick Access Toolbar. I also like the way the ribbon is somewhat protected from customisation, so that it is the same from one profile to another. That said, I agree with Barnett that there is too much UI on display, though I am not sure of the solution, and some of the UI decisions seem strange.

I still believe that while the effort to improve usability was genuine, Microsoft was also determined to make Office 2007 distinctive from its rivals in some way that could be patented. The key question: did that constraint weaken the outcome?

Note that Microsoft has hinted at plans for the ribbon that go beyond Office. It may be a core part of the UI in Windows 7.

Hey, I know plenty of developers read this blog. Are you being pressed to implement a ribbon UI for your applications? Or is this top-down initiative passing you by?

Microsoft Office is ludicrously expensive

What’s a reasonable price for Microsoft Office? An impossible question, of course. It’s mostly decent software (with the exception of Outlook 2007 and its disgraceful performance problems). It has its foibles, but is the best office suite in my opinion; and given the importance of office software to most of us, having the best is arguably worth it almost irrespective of price. No doubt gazillions of investment has gone into Office; but then again, gazillions have been sold.

In reality, Microsoft practices variable pricing. Just like travel companies, it aims to charge what the market will bear at any level. It also ensures that influencers – like software developers, partners or indeed journalists – get it for next to nothing. For example, registered Microsoft partners can get the Action Pack with mountains of software, including Exchange 2007 and 10 licenses for Microsoft Office Enterprise 2007, restricted to “internal-use software for internal business purposes, application development and testing”. The cost varies around the world: in the UK it is £199.00 plus VAT. A bargain.

Home users get a break too. I’ll quote prices from ebuyer.com, a UK retailer with generally keen prices. Office Home and Student 2007 comes with 3 licences for £64.59 plus VAT – that’s just £21.53 each before tax. Now let’s ride the escalator. Business prices start with Office Basic 2007 (just Excel, Word and Outlook) OEM edition. £96.09. OEM means you are only meant to buy it with a new PC, and the license is only valid for the PC on which it is installed; it dies with the PC. Office Small Business 2007 OEM is perhaps reasonable at £122.70 plus VAT – you get Excel, Powerpoint, Publisher, Word and Outlook.

How about an upgrade package? Office Standard 2007 Upgrade (no Access) is £175.41 plus VAT. Getting pricey; but then again Office Standard 2007 complete package (legal in any scenario) is £269.01. You want Access too? Your best unrestricted deal is Office Ultimate 2007 – Access, Excel, InfoPath, Powerpoint, Publisher, Word, Outlook, OneNote, Groove – at £314.39 plus VAT.

Curiously that costs less than what the customer probably asks for – Office Professional 2007 – Access, Excel, Powerpoint, Publisher, Word, Outlook but no OneNote or Groove, which comes in at an eye-watering £397.50 plus VAT.

Ah, but you should get a site license or even Software Assurance. Believe me, it is not much less – unless you are a megacorp or government department and negotiate a special deal.

Just to put this into context, I can get a basic PC with Linux for just £119.14 plus VAT – pic below in case you don’t believe me – and an HP office-ready PC with XP Pro for £204.24 plus VAT.

If Office were specialist software with a niche market, I could understand the high prices. But this is commodity software; everyone uses it. In what universe it is worth £397.50 – and I’m sure you could pay more if you worked at it – more then three times the price of a PC which (after adding Windows) would happily run it?

You’d be an idiot to pay that, of course. Except – what choice do you have? If you accept the terms of Microsoft’s strange OEM license, which means that the software is not applicable to an existing PC – and that of the Home and Student license which forbids “commercial use” – then you are stuck with prices from £269.01 and up. Though given the popularity of the OEM editions I suspect that many people take a liberal attitude, or consider that they are “refurbishing” their PCs (which is allowed).

What this means is that the most conscientious or financially careless buyers are paying a price which strikes me as unreasonable. I can understand Microsoft’s reluctance to change this situation; but in time it will have no choice.

Technorati tags: ,

WCF Sessions with Silverlight and Flex

I wanted to adapt my Silverlight CRUD sample (which I also ported to Adobe Flex) to fix a glaring weakness, which is that any user can amend any entry.

I decided to add some logic that allows editing or deleting of only those rows created during the current session. The idea is that a user can amend the entry just made, but not touch any of the others.

WCF has its own session management but this is not supported by the BasicHttpBinding which is required by Silverlight.

Fortunately you can use ASP.NET sessions instead. This means setting your WCF web service for ASP.NET compatibility:

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]

Then you can write code using the HttpContext.Current.Session object.

This depends on cookies being enabled on the client. In my simple case it worked fine, in both Silverlight and Flex. In a real app you would probably want to use HTTPS.

I’d post the sample but unfortunately my Windows web space doesn’t support WCF.

Technorati tags: , , ,

Testing a web service with IIS 7 on Vista

Not long ago I created a simple CRUD example using Silverlight 2.0 beta 2. I used Visual Studio 2008 and the ASP.NET Development Server. I wanted to test the same WCF web service with a different client (more on that soon), so I decided to deploy it to the instance of IIS 7.0 which comes with Windows Vista. I created a new web site on a different port than the default.

Nothing worked. Reason: although I have installed .NET 3.5 SP1 beta and Vista SP1 – which should do this automatically – the IIS 7 mime types and  handler mappings were not configured for Silverlight and WCF. How to fix the mime type is here and the handler mappings, here.

The web service still didn’t work. I got:

A first chance exception of type ‘System.ServiceModel.ProtocolException’ occurred in System.ServiceModel.dll.

I changed the debug options to break on all managed exceptions, and got this further detail:

The remote server returned an unexpected response: (404) Not Found.

Problem: Silverlight is looking for a cross-domain policy file.  The reason was that at this point I was still running the Silverlight app from the ASP.NET Development server, and it considered IIS to be on a separate domain. The 404 error does not make this obvious; but a quick Google for Silverlight 404 shows that this is a common problem.

Silverlight is designed to support cross-domain policy files in either Microsoft’s format (clientaccesspolicy.xml) or Adobe’s format (crossdomain.xml). If the service is just for Silverlight, use Microsoft’s format; otherwise I suggest adding both.

Nearly there; but I still had to fix SQL Server authentication. I normally use Windows authentication, and if you are using the ASP.NET Development server this just works. Move to IIS though, and it does not work unless you set up ASP.NET impersonation, or create a SQL Server login for the account under which the application pool is running. Oddly, when I tried the app without fixing the SQL Server login I still got a 404 exception; I’m not sure why.

Incidentally, I noticed that if you configure ASP.NET impersonation for a web site, the username and password gets written to web.config in plain text (bad). If you configure the application pool to run under a different account, the password is encrypted in applicationHost.config (better). In the end I decided to use good old SQL Server authentication.

One last tip: when debugging a web service, put the following attribute on the class which implements your ServiceContract:

[ServiceBehavior(IncludeExceptionDetailInFaults = true)]

Otherwise you get generic fault messages that don’t help much with debugging. Remove it though for release builds.

Once I’d fixed the SQL server login, everything was fine.

Why I can’t use Microsoft Live Search for real work

I’ve complained before about the quality of Microsoft’s Live Search vs Google; but today’s example seemed too good an illustration not to mention.

I needed to update Windows XP to SP3. In particular, I wanted what Microsoft calls the “network” download; that is, the entire service pack, not the launcher app that initiates a piecemeal download tailored to the specific machine.

I pulled up Live Search and entered “windows xp sp3 download”.

To my surprise, Live Search offered me only third party download sites in its first page of results. Actually, that’s not strictly true. At number 8 is the download for “Windows XP SP3 RC2 Refresh” (obsolete); and at number 10 the general home page for XP downloads:

Find popular Windows XP downloads, including PowerToys, trial software, tools and utilities

I tried Google. Same search. The official network download is in first place. The official piecemeal download is second.

I know: you can argue that this is just an isolated search, and that some other search might show Google in an equally bad light. However, I find this constantly: Google gets me much better results. Further, this case is particularly telling, since a third-party download site is not what you want when patching Windows. Quite likely those other sites do point you to the correct official download eventually; but getting Microsoft downloads from Microsoft’s site is safer.

I am not surprised Microsoft has a tiny share of the search market; and I don’t believe this is simply because of Google’s clever marketing.

Update PS: The above screen grab still matches what I get today. However, users in different countries may get different results; from the comments below I suspect that US users get better results in this instance. Maybe Live Search is worse in the UK than in the US; I’d be interested to know.

Technorati tags: , ,

Lively attack on Microsoft’s poor marketing – from within

Microsoft employee Kirk Allen Evans has a go at Microsoft’s marketing efforts:

I am so completely and utterly sick, as an employee and a Microsoft shareholder, of seeing empty spending on crap like "People_Ready".  Remember the completely ridiculous Office Dinosaur spots?  C’mon, marketing, grow a pair… let’s see some results.  No, I don’t want to see a retort ad making fun of the "I’m a Mac, I’m a PC" goons.  That ship has long since sailed.  Let’s see what all that Microsoft money and some of the smartest people in the world can come up with.

He’s right. So are the comments to his post, observing that marketing isn’t the only problem, or even the core problem.

Still, Vista is now actually better than its reputation. That’s a marketing issue.

Technorati tags: , ,