||Windows Vista (14) blog.crowe.co.nz.Models.Category
I see that there is now offical talk of a Code Camp in Christchurch, New Zealand in November 2007 which is good to see. I hope for some confirmed dates soon.
This is great news as the Mainland as we call it (the South Island of New Zealand) has never had a Code Camp before.
For pre-registrations and more details see http://dot.net.nz/Default.aspx?tabid=108
The theme of the code camp is Next generation, back to basics.
New releases of C#, VB, .Net, ASP and SQL are iminent. This code camp will focus on getting up to speed with all of this, plus cover migration stratigies and many non-technology specific topics such as Architecture and Development Life Cycle. Hopefully something for everyone - noobs, gurus, youg and old.
I have been asked to speak on IIS 7 and will be providing a session on this somewhere over the two day event.
I also spoke to Daniel Wissa ( at TechEd 2007) who runs the Christchurch .NET user group with Peter Jones [MVP] about running a shared session some time this year on Windows Vista Gadget Development. The code camp may be a good time for this session as well.
I am trying to get some sponser support as well - but I will keep it quiet until I know the result.
I recieved the following error The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine on my Vista 64 bit machine today. I made no code changes since I run it on a 32 bit OS.
Aparantly there is not a 64bit Microsoft.Jet.OLEDB.4.0' provider and you have to force your build to 32 bit.
In the settings for the project under the Build Tab you must set Platform target to x86 instead of Any CPU
The post is available at this url:
The user asked this question:
"Looking at the standard Microsoft Clock Sidebar Gadget, I was wondering whether it would be possible to change the jumping second-hand into a sweep second-hand, i.e. one that moves smoothly like an old mechanical clock or mechanical wrist watch. I looked into the code but had to give up after about two hours of trying. Anyone knoews hoe to do that? Thanks! "
You can download my re-write of the default Clock to support smooth scrolling seconds.
I have been using an old OKIPage 8Z for a while since I do not do a lot of pritning from home. I originally has problems with drivers for that for 2003 server. No new drivers were ever released for 2003 Server.
I decided to splash out and buy a Fuji Xerox Docuprint 203a A4 Mono Laser Printer for the sum of $99+GST
This little printer looks nice and doesn't have a huge footprint but a lot more than the OKI, but then this is a laser printer.
Well I now only run VISTA, no more XP around here. I went to their www.fxprinters.com web site and quickly found my printer and the drivers they offered.
No Windows Vista Drivers.
I decided to phone the support number and after a long time got put through to an answering machine asking me to leave my name and they will return my call. Cool...
I did that and about 3 minutes later they rang back. I said to the man from Sydney that I just purchased the printer and I could not find a VISTA driver. He said well that is because there is no VISTA driver for that printer. It was made before Vista was around and officially there has not been any word of a driver being released for VISTA.
The man then said he has heard on the grape vine that a driver may be released at the end of May? he did not mention the year!
He also said he heard that a Brother driver may work, and he had heard that someone who installed the XP driver found that when they printed from Outlook 2007 it would bluescreen the box.
Well I decided to have a bit of a look and see what I could do to get the thing working from my VISTA 64Bit machine at work ( I havn't even got it home yet )
Well after installing about 10 drivers I found a solution ( well it looks like a solution )
I installed the “SHARP AR-160 PCL 5e“ driver and it worked. I tried it from Outlook 2007 and it worked, no BSOD!
I will let you know if I have any problems with this driver but if you are like me running VISTA and have one of these printers that driver appears to be working for me.
I came across a forum that has a special topic on reproducable bugs in the Windows Vista Sidebar.
Most of the bugs have a work around so well worth a look if you are experiencing some strange issues with Vista Gadget development.
Here is a current list of bugs
Bug# 1: The bottom and right are incorrectly cropped when rotation is applied to <g:background>
Here is a very simple gadget that shows how to play a stream from an ASX file that is in the Gadget folder for the current gadget.
It is very basic
font-family: Segoe UI, Tahoma, Sans-Serif;
border: ridge 2px
<title>ASX Player< FONT>title>\
<link href="css/Radio.css" rel="stylesheet" type="text/css" />
This is a simple sample of how to play an ASX file
<OBJECT id="mediaPlayer" width="0" height="0" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
mediaPlayer.url = System.Gadget.path+\\asx.asx;
<ref href="http://ac1.streaming.net.nz/trn-zmonline-chc?MSWMExt=.asf" />
Basically this gadget just loads Windows Media Player and when you click on the link in the html file it will start streaming.
The reason this was written was to help answer a forum question http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1442023&SiteID=1&mode=1
AIR NEW ZEALAND have made their RSS feed unusable as it contains no details any more of the prices, flights etc and hence this gadgetno longer has any value unless you want to see the source code!
With the flyout open it looks like this:
You can download it from my Windows Live Gallery profile:
What you need to know: These fares are only available online for one day only or until sold out. Seats are strictly limited - see the online 'counter' for the number of seats left. Travel periods are strictly limited and fares may not be available on all flights or days during stated travel period. Flight restrictions and routing restrictions apply. Prices are per person, child discounts do not apply. General terms and conditions and Smart Saver and/or Global Saver Max terms and conditions apply.
I came across an interesting message in a forum and tried it out and it works.
I have created a simple example of a Windows Vista Gadget that will talk to SQL Server using OLEDB with ADO.
This code is very similar to code that one would have used in the past with writing code for ASP pages.
Basicall the code works like this:
<body scroll="no" onload="loadMain()">
Our simple code in the loadMain event is as follows:
var serverName = "server";
var database = "northwind";
var username = "sa";
var password = "-";
if (password == "-")
This code shows a simple way to to talk to SQL Server, run a query and then render the results to an HTML tag.
You can download this code from here
For you to run this code there are a few things you will need to do first.
This is just an example and is really up to you how you may use it. I hope it helps with your gadget development.
I have been playing aroung with Windows Vista Gagets lately and have currently written about 10. Some are for my work - simple things like who is on Helpdesk duty today, and another for our IS Severity system that will show up planned outages and unplanned outages, colour coded based on the rating of the problem. This is similar to an RSS feed except the data is always live and not cached so that when a job is closed it is removed from the list.
Another is the Weather Gadget for http://weather.cobbnz.com, a collegue at works owns the site and I have written the Web Site UI and a few tools. This has become quite popular in the last few days since it was uploaded to http://gallery.live.com
The weather and the radio station gadgets are all available from live.com and clicking on my profile link will take you to a page where they all are.
For those looking into writing your own gadgets see these resources
Hint: If you want to see the source for any gadget, download it, and then rename from .gadget to .zip and you have all the source code.
I came accross this posting on www.iis.net this morning and thought I should post it here as it could be relevant to someone in the near future.
When using Failed Request Tracing, you are unable to configure or use the ASP.Net trace provider (it does not show up in the list of providers to select when creating a new trace rule) even after ensuring that ASP.net & .Net extensibility are installed.
This is a known setup timing issue that causes the ASP.net provider definition to get accidentally deleted. It has been fixed in current Longhorn Server & Vista SP1 builds.
Workaround is to do the following:
Hope this helps you out in the mean time.
Program Manager - IIS
Release/Proj Mgmt & Support/Health/Instr/Tracing/Logging
We all know there is a lot of Weather Gadgets out there for Windows Vista Side Bar. Well I have written one as well and it utilizes the data from Weather Display users. These users are mainly private indiviuals who have an interest in Weather and provide this data to users on the Internet through there web sites.
The Vista Gadget that I have written reads a file that these Weather Display users expose to the Internet called clientraw.txt and clientrawextra.txt.
Some of the features of my gadget is:
I would be interested in any comments anyone has on the gadget.....
The gadget can be downloaded from my friends web site http://weather.cobbnz.com/vistaGadget.aspx
The list of sites that you can display the weather from is limited at this time as we want each site owner to add them selves to the list. We expect the list to grow when the gadget is known to more people.
It was only released last week and we are currently at version 22.214.171.124
Here is a couple of screen snaps of the gadget...
When you try to download a Microsoft Vista Gadget on IIS 6 you will by default get a 404 error if you have not configured a mime type for .gadget
The correct mime type is:
Note: There is a “.” before the gadget above in the extension
So I now have my fully activated Windows Vista Ultimate and I have my old Compaq IPAQ 3870 Pocket PC running Pocket PC 2002 Operating System.
I download Active Sync 4.2 from http://www.microsoft.com/downloads/details.aspx?FamilyID=7269173a-28bf-4cac-a682-58d3233efb4c&DisplayLang=en and proceed to install it.
When I first run it I get this dialog.
Ok, so Active Sync doesn't work but they have a nice message about connecting my device and then going to Windows Update to get the new product called Windows Mobile Device Centre. I do what I am told to do and connect my device and then go to Windows Update but I am told that there is nothing to update.
No software called Windows Mobile Device Centre for me to install?
I then decide to click the Check for solutions online button which takes me to the Windows Mobile Device Centre web site.
I see this as my introduction to the Windows Mobile Device Centre - Beta 3 for Vista RC1
Where is the full version?, well it has not been released yet!
I then scroll down the page and it all sounds rather good until I reach the Supported Devices section
There is no mention of my Pocket PC 2002 OS... Well I suppose they forgot to include it in the web site.
I click to download and notice that the package it is going to install Beta 3 for RC1 is dated 4 months ago!
4 Months ago - That is a long time especially since Vista was released to Businesses in Late November and to everyone a few days ago. But what can I do it is the latest version that is available on their site.
Opps! Well I guess they did not actually forget to include Pocket PC 2002 - they don't support it.
So I now have my trusty old Compaq IPAQ 3870 - I suppose I can use it as a Paper Weight!
Why do Microsoft do this?, there is nothing wrong with my device. How many more people are going to go through this stupid process to find out that their device is not going to be supported.
I do not want to buy a new device the old one works fine to sync my appointments and notes.
Please add support back for Pocket PC 2002 in your new tool. How many 1000's of these devices are out there today?
I suppose I could just go back to XP where my device is fully supported!