Programming

Jan 042012
 

Create a Web Service with .NET WCF. Plink, plink, done. Create a simple Java client to call that web service. Using the default Java SE 7u2 SDK + runtime downloadable from Oracle, you run wsimport to import the service WSDL and generate proxy classes. You write a little code to instantiate the service class and [...]

Feb 182011
 

I’ve been exploring the recent CTP5 release of .NET Entity Frameworks 4.0.  I find the advancements in the “Code First” model of entity modeling encouraging, though I am a little concerned about discoverability.  If things just magically happen when you name your properties just the right way, how will you know how to diagnose and [...]

Jan 132011
 

If you’re trying to generate classes or a dataset from an XSD schema file using the Visual Studio XSD.EXE command line utility and the only thing you’re getting out of XSD.EXE is an error message of  Error: There was an error processing ‘xyz-schema.xml’.   – DataSet cannot instantiate an abstract ComplexType for the node . [...]

Nov 122010
 

If you do a web search for how to use the LINQ XPathSelectElement function, the example code you will find falls into two categories:  Those that don’t use namespaces at all, and those that use the same namespace prefix in the query as in the original document. Using no XML namespace at all when querying [...]

Oct 022009
 

When you’re writing a rich Internet application (RIA) in HTML and JavaScript, sometimes you need to programatically place a DOM element relative to the right or bottom edge of the visible browser window. For example, if you want to popup a help balloon near an item of interest, you probably want to make sure that [...]

Jun 292009
 

If software programming logic and statements were viewed as literature, what form of literature would yours be? Novel: multiple independent story lines that you hope will eventually converge to make a point. Short story: a limited number of characters with only one point to make Essay: tell ‘em what you’re going to say, say it, [...]

Apr 152009
 

Have you ever run into a situation where you need to bridge between code that uses the old custom EventHandler pattern for events and code that wants to use the new parameterized EventHandler<> code style? EventHandler style delegates are not assignment compatible with EventHandler<> delegates.  You’ll run into this if you’re writing a new API [...]

Dec 182008
 

About two days ago, my Google homepage suddenly became hostile toward me.  By hostile, I mean my IE7 browser is suddenly reporting a bunch of JavaScript errors and faults when loading the Google homepage that it wasn’t reporting before.  Whenever I visit my Google homepage now, I have to wade through 5 or 6 JavaScript error [...]

Dec 152008
 

I’ll be speaking at the next Bay.NET user group meeting this Wednesday Dec 17 on Live Mesh application development using Live Frameworks.  There will be a few slides, mostly for the infamous but necessary system stack diagrams, but the majority of the session will be spent showing and running code.  I’ll open by exploring the different types of applications [...]

Nov 242008
 

SondreB asks I’m working on a scenario where I need to process mesh data at intervals. My concern is how I can do delegated authorization in a secure way. How and where do I store the user credentials (or their auth token) in my Windows Azure service? Is there a way of doing interval based [...]

Nov 142008
 
How Do I Mesh Thee?  Let Me Count The Ways

A few folks I’ve talked to in the Live Frameworks CTP forum or in email have expressed a little bit of confusion or a lot of surprise at what you can do with the Live Mesh platform and Live Frameworks. Let’s run through a few of scenarios to give you an idea of the breadth of options you have to leverage Live [...]

Nov 052008
 

Oran Dennison has been dissecting the new Live Framework Tools for Microsoft Visual Studio (“VS tools”) and raised a few questions about how the VS tools are uploading Live Mesh application files into the cloud. “Why does VS upload files to the cloud individually instead of as one zip file?” VS uploads individual files to the cloud because [...]

Nov 042008
 

We’ve discovered a bug in how the Live Framework Tools for Microsoft Visual Studio (“VS tools”) set permission values for Live Mesh-enabled web apps uploaded using the VS tools.  This results in your mesh app running with fewer permissions than the intended default permission set, which will prevent your app from modifying mesh feeds for contacts or news. [...]

Oct 292008
 

In looking back at yesterday’s post on Windows Azure and Live Framework Tools I suddenly realized I didn’t provide any links to content about the VS tools I work on!  Let’s see if we can remedy that… Live Framework SDK and Tools  (dev.live.com) Getting Started using the Live Framework Tools (msdn.microsoft.com) Cloud Computing Tools Technology [...]

Oct 282008
 

Yesterday at PDC Microsoft unveiled Windows Azure, a new platform for global scale distributed computing services, often called “cloud computing”. Today Microsoft rolled out tools for creating apps that use Live Services, access the same Mesh Objects you see in Live Mesh, or execute in the Windows Azure cloud.  Mesh-enabled web applications can even update themselves thanks to Feedsync-enabled Live Services [...]

Oct 142008
 

Dion Almer of Ajaxian fame has announced he is leaving Google to head up a new developer tools group at Mozilla with longtime friend and Ajaxian cofounder Ben Galbraith.  The two are quite the dynamic duo in the web development sphere and should bring a lot of energy and fresh ideas to the table in [...]

Oct 082008
 

Here’s a quick note for a solution I discovered the hard way that isn’t covered well in the MSDN documentation:  If you are writing a Visual Studio extension and adding a menu item to an existing menu (such as the project context menu) using a .vsct (Visual Studio XML Command Table) file, the priority field of [...]