Notes from Daily Encounters with Technology RSS 2.0
 
# Sunday, October 22, 2006

The whitepaper sample code doesn’t exactly follow the guidelines for web development therefore I wrote my own sample with clearly separated HTML structure, CSS styles and JavaScript code. I decided to make it publicly available in case anyone else finds it useful. A few things are worth mentioning.

  • Empty XHTML tags. For some reason the XHTML style empty tags don’t work as expected when they are filled from JavaScript code. It seems as if the engine would parse them as opened tags without the corresponding closing tag. Therefore you should always use the long form <span id=”mySpan”></span> instead of the short one <span id=”mySpan” />. This problem seems to be specific for gadgets. The same code runs just fine in IE7.
  • Localization. I haven’t managed to get the localization to work at all. I suppose the engine uses the files from the locale directory corresponding to the current display language not the locale settings. This does make sense but with only English language available in Vista there’s no way to check that the current file organization in my sample gadget is really ok. I kept it in the sample since I’m pretty convinced that it is.
  • Deployment. If you double click a file with a .gadget extension in Vista, you will automatically start the gadget installation process. The file needs to be a zip or cab archive containing the actual gadget directory structure. Vista behaves as if an application setup was started. This means that you should sign the file to increase the end user trust. You can use the Sign Tool to do that but in this case you need to make a cab file since zip files can’t be signed with it. I tried to make the cab file using a CAB Project template in Visual Studio 2005 but I couldn’t make the correct directory structure. I ended up using Cabarc. After all, I only had to run the following line in the gadget directory to build the cab file correctly.
    cabarc –p –r N ..\HelloWorld.gadget *
Sunday, October 22, 2006 2:14:03 PM (Central European Daylight Time, UTC+02:00)  #    Comments [0] - Trackback
Development | Vista | Web | Downloads | Sources | Windows
HelloWorld.zip (3.99 KB)
# Monday, March 03, 2003

Recepti screenshotI wrote this program because I was unsatisified with available programs for managing the personal recipe collection. I wanted to have nice printouts, extensive search capabilities and simple entering of new recipes. A Slovenian user interface was also important.

Because I found nothing that would suite my needs I wrote this program myself. The recipe collection is stored in the database, the interface makes editing, searching and printing simple. The collection is organised in a two level tree hierarchy, preentered ingredients, measurement units and recipe sources make entering recipes quicker.

The program is based on existing Microsoft technology: database management system (Access and MS SQL Server / MSDE are supported), ADO for database access, Internet Explorer user control. Rapid application development tool Visual Basic was used to bind all this technology into one application. The downside of the technologies used are the requirements to have all of them installed on the client computer. Most users should already have them but just in case all the above mentioned technologies link to their downloads.

The program only has Slovenian user interface, therefore it will be of limited use for those who don't speak it. The program probably won't be developed any more.

Monday, March 03, 2003 12:33:21 PM (Central European Standard Time, UTC+01:00)  #    Comments [1] - Trackback
Downloads | Windows
Recepti.exe (978.89 KB)
Page 1 of 1 in the Downloads|Windows category
Sponsored Ads

About Me

Microsoft Certified Professional

Microsoft Certified Professional

View Damir Arh's profile on LinkedIn

Profile for ExAmigan

ExAmigan

Twitter
Snow pushed wild animals down from the hills again. Just saw a roe deer couple in a garden at the edge of the town while walking the dog. 18 hours ago
I finished the redesign of http://www.damirscorner.com - now it's time to write some new content. 11 days ago
Firebug is great. It helped me solve a CSS problem within minutes. http://getfirebug.com/ 11 days ago
Enjoyed watching Coraline. Would love to get my hands on a scottish terrier puppet from the movie. http://digs.by/1ZsY 11 days ago
@DanijelMalik I guess it depends on the project you are deleting. 13 days ago
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

All Content © 2010, Damir Arh, M. Sc. Send mail to the author(s) - Privacy Policy - Sign In
Based on DasBlog theme 'Business' created by Christoph De Baene (delarou)