Category Archives: windows

Visual Studio 2008 release by end November, Sync Framework announced

News from Tech-Ed Developers in Barcelona: Microsoft has announced that Visual Studio 2008 will be available to MSDN subscribers “by the end of November 2007”. I’m a little disappointed not to find the RTM build here at Tech-Ed, but that’s not long to wait. Along with Visual Studio we get .NET Framework 3.5. The package includes LINQ (Language Integrated Query), and full designer support at last for WPF (Windows Presentation Framework) as well as WF (Workflow Foundation) and WCF (Windows Communication Foundation). It has taken a year since the first release of Vista to provide proper developer support for the frameworks which shipped with it.

S Somasegar, Corporate VP of the Developer Division, is also announcing the first preview of the Microsoft Sync Framework. Mary Jo Foley has a good summary. Interesting, given that  building online/offline synch into applications can be challenging. You can download it here. The description says it is “a comprehensive synchronization platform”.

He also has a few stats. He says:

  • Over 1 million professional developers use Visual Studio 2005
  • 17 million downloads of Visual Studio Express
  • 25% of Visual Studio developers are using Visual Studio Team System.

This last statistic is higher than I expected. I spoke recently to a Team System early adopter, who told me that while he was not exactly disappointed with it, nevertheless he had come across significant problems. His biggest issue was that you cannot manage work items across team projects, making it difficult for developers involved in several different projects. He also found the integration with Office poor, and the lack of a full Web UI frustrating. Nothing more than you would expect for a version 1 release.

Finally, Somasegar mentions a new release of Popfly Explorer with “an easy way to add Silverlight gadgets built in Popfly to web pages,” to quote from the brief press overview.

Why does audio glitch in Vista?

I eagerly read An Overview of Windows Sound and Music “Glitching” Issues by Steve Ball, Senior Program Manager for Sound in Windows Vista, hoping to find out. Sadly, it offers no insight other than saying what a tough job it is for a busy operating system to play back audio smoothly.

I’d like to highlight a few of the comments to his post

The last time I remember my MP3s glitching was back when I had a P75mhz (which should be of no surprise). The only other time I had my MP3s glitch was when I upgraded my PC to Vista. This same machine (exact same hardware) which had XP running on it, *never* had an MP3 glitch. On Vista, sound **constantly** glitched. Merely scrolling web pages caused sound issues…honestly my mobile phone can play MP3s, while I surf the web, on a call and text message; all without any glitches. [from ateharani]

and this from explorer5:

Steve – Thanks for posting this article.. I’m hoping that in the second part of the series you will mention how and why “glitching” is appearing (sounding) on Windows Vista computers when those same exact computers when Windows XP was installed had no issues with sound quality.

and this, from divil:

When MS first announced that Vista could guarantee glitch-free media playback because of new kernel scheduling APIs my first thought was “what glitching?” since I’d never experienced it outside of DOS on slow machines. Now ironically, with Vista, I do get that wonderful experience. On a new PC.

Couldn’t agree more. See here for my earlier post: Audio in Vista: more hell than heaven.

Technorati tags: , , ,

How ASP.NET began in Java, and the truth about Project Cool

A bit of nostalgia for you. Cast your minds back to 1999 or thereabouts. Microsoft is finishing off IIS 4.0 and there is no such thing as C# or ASP.NET. However, there are rumours that Microsoft is creating a Java-like platform codenamed “Cool”, in the aftermath of a dispute with Sun that was making it impossible to use Java itself. Microsoft denies the rumours. Here’s a report from February 1999:

There is no Java-like language under development at Microsoft, said Michael Risse,  Microsoft’s product manager for application development tools. Risse said the company is talking to developers about a concept called Cool, a much less ambitious project intended to tie Microsoft’s Visual C++ development tool more closely to its COM+ middleware. However, Cool is not yet in development, and is unrelated to Java, said Risse. He said Cool is strictly a “whiteboard” concept, and that no software code connected to the concept has been written at Microsoft. Cool is also unrelated to any Java technology within the company, Risse stated. “There’s no connection between Cool and Visual J++, and the Java lawsuit is irrelevant to the thinking we are doing [with Cool],” he said.

Even after C# was announced in 2000, Microsoft denied that it had anything to do with Cool:

Yesterday, Microsoft executives denied that C# was related to the rumored Cool project.

Now, over to Mark Anders, co-inventor of ASP.NET, whom I interviewed earlier this month at Adobe Max Europe. I asked Anders how ASP.NET came about.

Anders: “ASP.NET happened after we shipped IIS 4.0 and everyone went on vacation. Scott Guthrie and I – Scott worked for me at the time, he was 22 years old, straight out of college – and we took advantage of the time everyone was on vacation to start brainstorming new ideas. We looked at ASP and how it was being used. I had worked on Visual InterDev so I had a lot of friends on that team, and we were looking at the new version, I think it was Visual InterDev 6.0, and we noticed how messy the code was. We said, how can we do better? Scott and I worked for a month and a half, and then when everybody came back from vacation in January we showed them a prototype and a PowerPoint deck, showed them this vision, and people said, ‘keep working on it’.”

I asked whether the prototype was based on .NET from the beginning, or “Project Cool” as the rumour went?

Anders: “No, it was not. The original prototype was written in Java. I loved Java as a language and Scott did too. So it was done in Java, and we took that around to lots of different groups. The first group that we took it to was the tools team. The VB and the InterDev teams were in a feud, and when they saw our demo they liked it. They said, ‘If you build that, we will target it with our tools.’

“The VB team was working on developing a new runtime, what became the Common Language Runtime. It was not as complicated as COM, and it had a nice object system, it was garbage collected. So we made a decision that we would write our thing, which at the time was called XSP, in this new runtime. So we were the first ones to commit to writing anything on it. The VB team was going to be using it as their runtime, they were doing their forms, but we actually built the whole thing in .NET.

“The funny thing is, you mention Cool. It was called Cool at one time, but Microsoft denied it. Scott and I presented what was then called ASP Plus, but we presented it a long time before anybody talked about .NET. We went to a conference, I think it was in Washington DC or something, and Scott and I were up on stage. He is doing this demo, and he says, ‘Here is a directory listing’. And I glance up at the screen, and I see file1.cool, all these .cool files, and we’re busy denying that there is anything called Cool, and he has this directory listing. So I was worried that somebody would see that and put two and two together… but nobody picked up on it. They had asked if they could videotape me to re-broadcast, and I’d said fine, but when I realized that the Cool screenshot was shown, I contacted them and said, ‘I can’t let you have that videotape’, and they sent it back. So it never leaked.”

All these efforts did not prevent The Register posting a story in September 2000 which describes how a reader working with early C# samples:

…discovered that the original C# compiler was called coolc, subsequently renamed as csc.exec. Elsewhere, sample C# code has the HTML tag <script language=’COOL’ runat=’server’>, and Larry notes a couple of references to the string “C\temp\fact\factorial.cool”.

So why did Microsoft deny it? I’m guessing, but maybe the company felt that ‘Project Cool’ was related to Java in people’s minds, and wanted to emphasize that .NET was 100% Java-free. Any resemblance is purely coincidental, as novelists like to say.

Two spins on Microsoft’s excellent quarter

Microsoft has delivered an excellent set of results, showing growth in pretty much all areas.

It seems to me that you can spin this in a couple of ways. First, you could argue that Microsoft is alive and well and still in the race. Certainly, with figures like these you can hardly suggest that it is out of the race.

Second, you could argue that the figures demonstrate how monopolies can continue to make good profits even when their products disappoint, especially in a buoyant market like computing.

The truth? Somewhere in between. It doesn’t matter how good the financials are: the disappointment with Vista is real. Personally I have Vista working fairly well, though annoyingly slowly at times, but I notice plenty of people advising one another to stick with XP, for performance and compatibility. Maybe the long-awaited SP1 will fix it, but some are now resigned to waiting for Windows 7 (you know, odd-number release theory) for a really good upgrade. Vista’s problems have created an opportunity for Apple and even Linux to grab some market share.

Other shadows hanging over Microsoft that come to mind:

  • Lack of clarity over Internet strategy
  • Continuing security problems centered on Windows (for whatever reason)
  • Losing the search wars
  • Governments mandating ODF
  • Apple’s increasing market share, especially among thought leaders
  • Bureaucracy and litigation
  • PR and image problems

On the plus side I’d mention the strength of the .NET platform and languages; Silverlight’s promise; and the fact that most people still want to use Microsoft Office rather than Open Office (in my experience).

I am absolutely not a financial analyst; but I observe that having a good quarter does not fix what strike me as deep-rooted problems. At the same time it is a reminder of Microsoft’s huge resources and entrenched position; that’s not going to go away quickly either.

TechEd Europe the week after next; no doubt some more Microsoft reflections then.

Technorati tags: , , , ,

The curious silence of the IE team – Microsoft needs to rediscover blogging

There are huge numbers of Microsoft bloggers; yet in some important areas Microsoft seems happy to let its opponents make all the noise.

Internet Explorer is an obvious example. There is an official IE Blog, but you won’t find anything there about IE8, just occasional news of minor IE7 tweaks. The comments on the other hand are full of questions, many of them good ones that deserve an answer, or at least an acknowledgement that someone is listening.

I spoke to Microsoft’s Chris Wilson at the Future of Web Apps conference back in February, noting that he gave a “good bridge-building talk”. There have been other similar talks, but little of substance since then. Anyone searching the web for news of browser development and innovation will find little from Microsoft, lots from Mozilla and others.

This is not about Microsoft bashing. Rather, it is about web developers and designers who need to make stuff work. Having some idea about where Microsoft is going with its browser helps with that.

Microsoft needs to rediscover the value of high quality blogging that engages with the community. It is not just IE. Soon after the release of Office 2007 I was among those who reported on performance problems with Outlook. This blog still receives thousands of visits from users who search for why Outlook 2007 is slow. Where were the bloggers from the Outlook team? Months later there was a tech note and patch which helps a little, but Outlook 2007 is still slow and there is no real evidence that the company cares.

What about Open Office XML, viciously attacked by IBM and other sponsors of the rival Open Document Format? Brian Jones has a good marketing blog; yet I’ve seen relatively little technical blogging from the OOXML folk at Microsoft, in response to questions raised.

See also Dave Massy’s blog.

Technorati tags: , , , ,

Microsoft Office Live Workspace: what’s missing from the FAQ?

A lot. It seems that Microsoft’s Office Live Workspace is free hosted SharePoint. You will be able to save and open Office documents directly to and from the Internet. A genuinely useful service; but here are a few questions that are not covered in the FAQ:

Can I create or edit documents using just a web browser?

My guess: presumably not. Microsoft will require you to use Office, or whatever offline editor you used to create the document.

What do users not running Windows and/or not running Office see when they access a shared document?

I’m not sure about this one. Presumably they can download documents and open them if they have a compatible editor or viewer. That’s not online collaboration though. Sharepoint also has the ability to render office documents as html, through an HTML viewing server:

The HTML viewing server provides support for users who want to view the content of files on the Windows SharePoint Services Web site, but do not have Microsoft Word, Microsoft Excel, or Microsoft PowerPoint from Microsoft Office 97, or a later release of Office, installed on their local computer. Even users who only have a Web browser (Microsoft Internet Explorer or Netscape Navigator) can view content by having the native Office file format converted to HTML automatically.

Will this be part of Office Live Workspace? That’s not yet clear.

How do I access Live Workspace documents offline?

Good question. Mary Jo Foley has the best report on this, and quotes Corporate Vice President Rajesh Jha,:

Groove will be the way you take any Workspace offline, Jha said

Now, a Live Workspace plus synchronized offline store would really get my interest. But when, how, and at what cost?

What files types can be stored (and a few related questions)?

Live Workspace is not just for Office docs; you can store other file types as well. The FAQ says:

For your protection, we don’t allow the uploading of files that could cause security issues such as .exe files.

Does that mean any file type that is not on a security blacklist? Or is there a whitelist of safe file types? If we are saving from a non-Office application, will the Live Workspace appear as a virtual directory in the file system? What about saving from other operating systems?

How much space is available?

Can’t believe it’s not in the FAQ? If it is, I can’t see it. It says:

You can store over 1,000 Office documents in your workspace, based on the average file size and use of Word, Excel, and PowerPoint by students, work, and home users.

I hate being treated like an idiot. (PS: the consensus is that it is 250MB).

When will Office Live Workspace be available?

That’s not stated.

That will do for starters. Microsoft, how about adding these to your FAQ?

Ubuntu Desktop not used in business

I got a telling reponse from Canonical when I approached its Public Relations team looking for case studies of businesses that had switched from Windows:

… we find that the businesses using Ubuntu tend to use the server edition right now and so a windows comparison is not relevant. Ubuntu desktop is largely in the consumer space not business.

It hardly comes as a surprise to discover that most businesses use Windows, but I did think there would be a few examples. I’ve been running Ubuntu, mainly on my laptop, and find it perfectly solid and useable. In fact, it is possibly better suited for business than for consumers. The problem with Linux is that you always seem to run into one or two problems that require intricate, non-obvious steps to resolve. Well, they are obvious to Linux geeks, but not to the rest of us. In a business this can be mitigated by standardizing the hardware and providing a channel of support, but home users are more likely to get frustrated. Furthermore, in my experience home users install a greater variety of software. They get CDs from ISPs, or with their new scanner or camera, and expect them to work. They want to play games and enjoy DVDs. All these things can be problematic for home users, but are less relevant and more easily managed for business users.

I don’t mean to minimize the problems facing anyone switching to Linux. In the business world, that includes custom or niche software that is likely to be Windows-only. Every small business I encounter seems to have an Access or VB application that has become business-critical. Another snag is doing without Microsoft Office. Yes, Microsoft Office is over-priced (unless you are a home or academic user), but it is on the whole better to work with than Open Office, and if you are bashing out documents all day that makes a difference (I make an exception for Outlook 2007, which is infuriatingly slow). There is also the thorny problem of document compatibility, recently made worse by the format wars.

Another factor, under-appreciated by the media, is that Windows has a mature and very comprehensive administrative infrastructure for managing any number of desktops. For larger organizations this makes Windows the obvious choice.

Therefore I was not expecting very many examples, but I thought there would be one or two case studies, particularly as Canonical offers a table of prices for desktop support. I doubt many home users are taking this up. Of course Linux is mainly popular on the server, but Ubuntu has a particular desktop focus.

I am hoping that someone will read this blog and say, “this is nonsense, we use Ubuntu in business”. If that is the case, please contact me, especially if you are in the UK, and willing to be quoted. I’d also be interested in hearing from those who tried and failed, or explored the possibility and gave up.

Technorati tags: , , , , ,

Scott Guthrie on .NET futures

I’ve posted my interview with Scott Guthrie, from the UK Mix07. It covers topics including LINQ, Silverlight, the work with Novell/Mono on Moonlight (Silverlight for Linux), ASP.NET futures including MVC, and offline web applications.

Guthrie is a General Manager at Microsoft, responsible for most of the development teams working on .NET. He did some excellent presentations at the UK Mix, intermingling live coding and demos with slides, talk, and dealing with ad-hoc questions – not an easy task.

There were several things I found interesting in his answers to my questions. On a technical level, the way Microsoft’s various implementations of the Common Language Runtime share code is intriguing. In particular, I was fascinated to learn that Silverlight and the desktop CLR are built from the same code tree. There is a second code tree for the CLR, but it is for the Compact Framework, not for Silverlight. The implication is that the performance of Silverlight and its compatibility with other .NET code should be pretty good.

How then is Silverlight much smaller than the desktop CLR? The reason is that most of the Framework library is missing. That’s the trade-off.

Another point of interest is the strength of Guthrie’s reaction when I asked about offline web applications, and Microsoft’s platform versus other approaches such as Google Gears and Adobe AIR. When a spokesperson takes the trouble to trash the competition, it is often a sign of concern.

Want a job? Learn Silverlight, not WPF

I keep an occasional watch on technology trends in the UK by the haphazard technique of browsing to Jobserve.com, bashing in some developer platforms, and seeing how many vacancies come up. I last blogged about this in August 2006, and before that in January 2006, March 2005, and August 2004.

Real-world job vacancies trail the conversation we have about cutting-edge web platforms by some margin. To give you an idea, in March 2002, three months after the first official release of C#, Jobserve had just 153 vacancies for C# developers, compared to 1894 for VB and 2092 for Java. Today, C# has 2933, VB and VB.NET 1906, Java 3741.

But that’s not what caught my eye when I looked this morning. I searched first for WPF, and then for Silverlight. WPF went final in November 2006, at about the same time as Vista was released to manufacturing. That’s nine months ago, but Jobserve has only 28 jobs which specifically mention WPF.

Silverlight 1.0 was released earlier this month. It’s a great video player, but many developers are waiting for Silverlight 1.1, due sometime in 2008, which supports .NET programming as well as multimedia. Component vendor Infragistics told me at the UK Mix07 that it is not bothering to release components for Silverlight 1.0, but has lots in the pipeline for 1.1. Keen to work with Silverlight in the UK? Jobserve has just 30 jobs to choose from.

The numbers are tiny (thought let me note, even CodeGear’s long-established Delphi can only muster 93 jobs), but I’m intrigued that Silverlight is actually a hair ahead of WPF in this context. Tomorrow it may be different; but it accords with my own assessment. I like WPF; it’s a better API than Win32 for coding a GUI. But it is a hard sell to developers of those boring business apps that make up the bulk of software development today. Unless you are making big use of visualization, it’s likely you will be more productive with tried-and-tested Windows Forms, or native Win32 code.

Silverlight is different. It is an immediate win if you have desktop .NET apps which you would like to convert to web applications, or ASP.NET apps for which you would like a richer client. Why Silverlight and not WPF? For one thing, cross-platform, essential for public web applications and very useful internally as well, with all those Mac-using designers (and now the CEO wants a Mac too). For another thing, lightweight deployment. When you install or upgrade the .NET runtime on a Windows box, you hold your breath as it updates a gazillion system components and hope that no bizarre error code appears. When you install Silverlight, you just click OK to a browser dialog, and it works.

The contradiction in the title of this post is that both Silverlight and WPF use XAML, so in learning one you are to some extent learning the other. Nevertheless, I now believe that Silverlight will be a more significant platform than WPF, and I’ll be interested to see if future job vacancies back up that prediction.

Update: Ryan Stewart has some US figures which are more positive for WPF, though again the absolute numbers are small. Interesting to watch.

Tried Vista speech recognition yet?

I had not, but gave it a try today. It is almost a hidden feature, but if you go into Control Panel and double-click Speech Recognition Options, it all starts happening.

I have a few advantages. My microphone is of high quality, I use an external mic preamp, and my office is relatively quiet. After half an hour of so going through the tutorial (which also does basic voice training), I was ready to go. I have no complaints about the ease of setup. Once speech recognition was enabled, I simply opened Word and started dictating.

There are two ways to look at speech recognition. You can consider it an accessibility feature for users who prefer not to type, for whatever reason. For example, RSI is a common problem for writers and computer programmers. Alternatively, you can consider it as better way of entering text. After all, most of us can speak faster than we can type. Ideally I would like to use it to assist with transcribing interviews.

I had a simple question. Can I get a chunk of text into Word more quickly with speech recognition than with typing? To try this out, I used a few lines that are indelibly imprinted into my brain, since they make up the first stanza of Wordsworth’s poem Daffodils which I learned at school.

The test

First, I typed it. It took me about 25 seconds, which means I type at over 50 wpm (about 70 wpm according to this test).

Next, I tried speech recognition. I tried it several times, to give it the best possible chance. I found I could do the initial text entry in around 15 seconds, but correcting errors took longer. The best I managed for the entire stanza was about a minute – twice as long as typing.

The problem is that certain words and phrases seem to be difficult for speech recognition to get right, and correcting these takes so long that it wipes out any gains from the easy ones. In my case, the line that Vista struggled with most was this one:

That floats on high o’er dales and hills

As I repeated the experiment, I got different variations:

That floats on high powered tables and hills

That floats on high on the walls and hills

That floats on high ideals and hills

The speech engine will always try to make sense of what you say using its dictionary and who-knows-what clever algorithms, but this can work against you. In this case, it is really just the the word “o’er” that trips up the engine. If I dictate instead:

That floats on high over dales and hills

it usually transcribes perfectly. Unfortunately, in trying to make sense of “o’er”, it usually messes up several other words as well.

Does this mean that a poem with elided text is just a difficult case? Possibly, but unfortunately technical writing seems to pose the same kinds of problems. Everything is fine for a line or two, and then a difficult word or phrase causes garbage to be inserted into your text. Speech correction in Vista is nicely implemented and works well, but it takes time.

Pros and cons

I don’t mean to put you off. I’m actually impressed with Vista’s speech recognition, though it is early days and I’m not sure how well it compares to alternatives like Dragon NaturallySpeaking. I could definitely get some work done, and considered as an accessibility feature, it seems pretty good. Unfortunately, it doesn’t seem quite good enough to be useful even to a proficient typist – at least, not without more time spent voice training and learning to get the best out of it.

Technorati tags: