Archive for November, 2006


Page 4 of 5«12345»

xml request message validation error

Hi,

My request message is :


Comments

Welcome to TechEd Europe

I just got in last night into Barcelona for TechEd Europe.. One thing I love about my job is that I get to span the full range of application space supported by the .NET Framework… As such I think I am the only speaker at Teched doing a server based talk and a smart client talk! Should be fun to see how well I bridge those ;-) The first one is all about the developer designer interaction… For the vast majority of this talk Sam and build up a site from scratch. He plays the role of the designer, and I play the role of the developer… Sam starts with a couple of “comps” (static images of what the site should look like) then uses Expression Web to build up a very compelling site layout and design. Then I use the magic of ASP.NET AJAX to make the...(read more)

Comments

Microsoft Extends OSP to Office XML

Microsoft has added its Office XML File Formats its Open Specification Promise (OSP) not to enforce its patents no matter who uses it and what their business model is. It started the OSP in September with a variety of web protocols like SOAP that it wanted broadly used and tucked its Sender ID e-mail authentication protocol under its umbrella last week.

Comments

At Connections in Las Vegas

Just got into Las Vegas, and I must say THEHotel is the best hotel in the strip (still). I'll be at the show until Wednesday, be sure to check out our booth, and the keynotes Monday evening and Tuesday AM. Drop by and say hello and enjoy the show! Read More... Share this post: Email it! | bookmark it! | digg it! | reddit!...(read more)

Comments

Writing A Notes C-API Program in Visual Studio Express, Part 3 (Sunday, Nov 5)

Following up on my earlier blog entries about writing a Lotus Notes C-API program in Visual Studio Express (Part 1 and Part 2), here's another thing you might want to do that isn't really obvious.

You know how when you view the properties of most commercial EXE and DLL files, and you see properties like the program description and the version number and so on? For example:

SoapLog DLL Properties Dialog

In the full versions of Visual Studio, there is something called the Resource Editor that makes it very easy to create all those properties for your EXE or DLL. However, in the free Visual Studio Express offering that's one of the components they took out.

Luckily, you can still create a resource file and include it with your project, you just have to do it manually. Here's how:

  • Open up your favorite text editor and create a resource file (see example below), and save it with an .RC file extension -- you'll probably want to save it in the same directory as the other files in your project
  • In your VS-Express project, select the menu option Project - Add Existing Item...
  • Change the file type to "Resource Files" and choose the resource file you created

Badda bing, badda boom, you've got yourself a resource file. The next time you compile up your project, it'll have some of those fancy-schmancy properties lists that everyone wants these days.

The exact format and information that you put into a resource file is a little cryptic (which is why there is such thing as a Resource File editor in the first place), but you can usually start with an example and modify it to work for you. Here's the resource file I used for my SoapLog DLL:

//////////////////////////////////////////////////////////
// resource file for soaplog.dll
//////////////////////////////////////////////////////////

#include "soaplog.h"
/*
soaplog.h contains definitions like:
#define RC_FILEVERSION  1,0,3,0
#define RC_FILEVERSION_STRING  "1, 0, 3, 0"
*/

1 VERSIONINFO
FILEVERSION RC_FILEVERSION
PRODUCTVERSION RC_FILEVERSION

FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
  FILEFLAGS 0x1L
#else
  FILEFLAGS 0x0L
#endif

FILEOS 0x4L
FILETYPE 0x2L    // 0x1L = EXE, 0x2L = DLL
FILESUBTYPE 0x0L

BEGIN
   BLOCK "StringFileInfo"
   BEGIN

      //////////////////////////////////////////////////////////
      // The BLOCK number here consists of a 4-digit language
      // value (0409 = US English) and a 4-digit codepage
      // number, in hex (04e4 = 1252).
      //////////////////////////////////////////////////////////

      BLOCK "040904e4"
      BEGIN
         VALUE "CompanyName", "http://www.nsftools.com"
         VALUE "LegalCopyright", "(c) 2006 Julian Robichaux. All rights reserved."
         VALUE "FileDescription", "Domino DSAPI SOAP logging filter"
         VALUE "FileVersion", RC_FILEVERSION_STRING
         VALUE "InternalName", "soaplog"
         VALUE "OriginalFilename", "soaplog.dll"
         VALUE "ProductName", "soaplog"
         VALUE "ProductVersion", RC_FILEVERSION_STRING
      END
   END
  
   //////////////////////////////////////////////////////////
   // for valid language and charset values below, see:
   // http://msdn.microsoft.com/library/en-us/tools/tools/versioninfo_resource.asp
   // NOTE that the language value below (409, US English)
   // MUST match the StringFileInfo BLOCK number above, and
   // the 04e4 suffix on the BLOCK number is a hex version of 
   // the 1252 codepage that is also defined below.
   //////////////////////////////////////////////////////////

   BLOCK "VarFileInfo"
   BEGIN
      VALUE "Translation", 0x409, 1252
   END

END

One thing that is useful to do is to maintain the file version and product version information in a header file (as I did above with RC_FILEVERSION and RC_FILEVERSIONSTRING), because that's something that may change often. Since you can't edit a resource file in VS-Express but you can edit all the header files you want, keeping this information in a header file is a lot easier than having to remember to open the resource file in a separate text editor every time you update the version of your file.

I suppose you could go whole hog and maintain all the String values in a header file, if you really felt like it.


[ permalink ] [ e-mail me ] [ read/add comments ]

Comments

PHP as a Deployment Platform

PHP has been incredibly successful as a deployment platform for web applications. The WordPress blog brags that the WordPress 2.0 series has been downloaded 1.2 million times.

However, PHP as a platform is far from homogenous. With many different versions installed and the vast configurability of php.ini, there can be a great deal of variation from PHP installation to PHP installation. PHP developers often ask what should I target? The question is the same if you want to write the next WordPress, or if you want to make sure your code is reusable for the next client that knocks on your door.

Nexen has been publishing PHP version adoption statistics for some time. Damien Seguy has really gone the extra step now by collecting and publishing configuration statistics. These are generated from scanning publicly available phpinfo() output.

The stats range from useful to blog candy.

One thing to keep in mind is sample bias. Damien compared the php version number of the sample against the version data collected from expose php and found they correlate well. But, perhaps there is a bias toward certain configuration settings (or versions) among those who have public phpinfo() data and those who do not. (The stats do have suitable disclaimers.)

Its hard to look at stats like this and decide what they represent. According to the Zend blog, 81% of their customers are using PHP 5, while the nexen monthly numbers report 11%. I think its fair to say that all of Zend's customers use PHP, while many servers that expose_php are domain parking or serving static pages. What is the adoption rate for php 5? Who knows.

It would be interesting to see the correlation between those installations with expose_php off and the monthly version data, collected from the broader set of servers with expose_php on. I think it would also be interesting to see what functions are being disabled with disable_functions. Which extensions are being loaded? How many servers are running an opcode cache?

Which version of PHP to use? PHP 5 versus PHP 4? Unless you are constrained by legacy PHP 4, the answer is definitely PHP 5. Targeting PHP 4 isn't going to make you the next WordPress. Its just going to put you as far behind the version adoption curve as they are.

PHP 5 is vastly easier to develop in than PHP 4. Development is expensive. Hosting is cheap. Don't let the tail wag your dog. If your host doesn't support 5, change hosts. PHP 5 hosting is not rocket science.

I know the decision is that not simple, but the excuses for remaining with PHP 4 are dwindling.

Which configuration options to target? There was some talk recently on the PHP internals list about creating a recommended .ini profile for development environments and one for production environments. I think this is a great idea. Hopefully, then folks installing PHP can choose a profile instead of setting individual .ini options. Perhaps this would help reign in some variability and reduce some Paradox of choice style unhappiness.

Comments

Proposal for multi-format ebook authoring tool; Vex open source XML

[cc: John Krasnay, lead developer of Vex] Everyone, In a nutshell, as part of the OpenReader Consortium effort, we are interested in preferably an open source

Comments

Tips/Tricks and LINQ Slides+Demos from my Talk in Dallas

I had a great time presenting fora fewhours to the North Dallas .NET User Group this past Thursday.I covered two topics: ASP.NET 2.0 Tips and Tricks This talk covered ASP.NET UI, AJAX, Caching and Deployment Tips and Tricks, and Visual Studio 2005 tips/tricks. Click here to download the slides+demos for this talk. You can learn more about the Visual Studio build performance optimization suggestions by reading this past post of mine on improving build performance. You can also find several dozen more ASP.NET and Visual Studio Tips/Tricks of mine by browsingmy past blogposts marked with the "Tips and Tricks" tag. Building Data DrivenWeb Applications using LINQ This talk provided an overview of the cool new LINQ technology that is shipping next...(read more)

Comments

Re: Transitioning from older (e.g. FrameMaker) environments

See www.adobe.com/products/framemaker/pdfs/faq_xml.pdf ... Jenny Pournelle Documentation Manager LEAD Technologies ph. 704-332-5532 Skype: jpournelle ... From:

Comments

Dynamic languages in ASP.NET

David Ebbo wrote a very interesting article that explains in great details how they gave ASP.NET the ability to be driven by dynamic languages. The compilation system, on which David worked for a few years, is explained, as well as why it doesn't apply to dynamic languages. Then he goes on to explain how they were able to integrateIronPython anyway, taking advantage of an existing feature, no-compile pages.One of the surprising things is that dynamic languages will actually perform better for a whole class of applications.Check it out: http://www.asp.net/ironpython/WhitePaper.aspx?tabid=62 Share this post: Email it! | bookmark it! | digg it! | reddit! Read More... Share this post: Email it! | bookmark it! | digg it! | reddit!...(read more)

Comments

Meet the team in Vegas next week

I'll be in Las Vegas next week for ASP Connectionswith some other people from the AJAX team. If you're going too, stop by and say hi.We're going to talk about some new exciting features, in particular some great localization and globalization stuff. Share this post: Email it! | bookmark it! | digg it! | reddit! Read More... Share this post: Email it! | bookmark it! | digg it! | reddit!...(read more)

Comments

Calendar Display vs. Free Time Search

Today I'd like to discuss two calendar preferences which are similar, but actually configure very different things. ? They are the beginning and end times for your work day, and your availability times for meeting scheduling. ?The first controls what times you see displayed on your calendar representing your "work day". ?The second controls which hours of the day other people can potentially see you as available for meetings.

I previously explained calendar view beginning and end times here, but I'll quickly explain them setting again. ? In your mail file's calendar preferences

Image:Calendar Display vs. Free Time Search

you can configure the time range that you want to see displayed representing your work hours. ?The background of times outside this range are shaded grey, helping you distinguish the different areas.

Image:Calendar Display vs. Free Time Search

Since the times you "work" during the day may differ from the times you wish to allow people to schedule you for meetings, Lotus Notes allows you to control this separately.

In your mail file's preferences, under Calendar & To Do > Scheduling > Your Availability, you can define the days, and hours during those your are available.

For example, above I defined my work day as 9 AM to 5 PM, but below you can see that I define my available hours to exclude Noon to 1 PM.

Image:Calendar Display vs. Free Time Search

When someone tries to schedule a meeting with me, the scheduler will show anytime before 9AM, 12 PM to 1 PM, and any time after 5 PM as "Unavailable".

Image:Calendar Display vs. Free Time Search

Comments

Sharing a web “bussiness” tier as web service ?

Hi

I need some information on how to best expose the model layer of a struts web application to other clients (typically other web

Comments

Generating xml xchema

Hi,

Can anyone tell me if there is any tool that'll generate an xml schema from a xml file(similar to something like xsd.exe in .net)? I have

Comments

Coding4Fun v2 (redesigned) is now live

DanielFeand team shipped a new design for Coding4Fun -- it ROCKS, definitley check it out Get more info from Dan's blog Read More... Share this post: Email it! | bookmark it! | digg it! | reddit!...(read more)

Comments

Bunko (Yeah, right…) (Thursday, Nov 2)

My wife went to play Bunko with a bunch of the neighborhood women tonight. Apparently there's a monthly game, and she thought it would be a good way to meet the neighbors.

I asked her what Bunko was, since I've never actually seen it played before. She didn't know because she's never played before either, but she's always heard it's fun.

Then I talked to one of my friends tonight, and he said that his wife likes to go play Bunko too, and he also had no idea what it is. Which leads me to one of two conclusions:

A. It's a drinking game.
B. It's the female equivalent of a snipe hunt where the women just hang out all night, unless there's a new member, in which case they go through some sort of Bunko initiation routine before letting on that it's just an excuse to get out of the house and drink wine and do girly stuff.

I'm going to grill her when she gets home to find out which one it is...
;-)

(NOTE: before you consider leaving a witty comment, please make sure it's not going to be something that will be insulting about my wife. We don't want to go there. Thanks.)


[ permalink ] [ e-mail me ] [ read/add comments ]

Comments

Usage xsd:any types with Axis 1.x

Hi, there.

I have a technical question about usage xsd:any type.

For example in my wsdl I have such complex type:

<

Comments

Re: Transitioning from older (e.g. FrameMaker) environments

... That's a topic we've discussed here fairly often. (I'm not complaining, this is a low-volume group, but you might get some answers faster by checking the

Comments

Best approach for transforming xml tag elements

Hi All

I hope you guys can help me with a solution to the problem. I tried with google but could not get any similar solution to the problem I

Comments

Re: Transitioning from older (e.g. FrameMaker) environments

... Hash: SHA1 Hi, you can look at that recent thread on docbook list: http://lists.oasis-open.org/archives/docbook-apps/200610/msg00145.html Suggested

Comments

Page 4 of 5«12345»