Tag | API Posts

Media Type Formatters in the WCF Web API provide a way for the consumer of your service to not only specify the format they want for their response, but also specify the format they are using on their request. Typically the desired response format is specified in the “Accept” request header and the request body format is specified in the “Content-Type” request header. Media types are central to building any RESTful service. Two of the most common media types are “application/xml” and “application/json”. ...
I was chatting the other day with someone about adapters for connecting to LOB applications and an interesting point came up which I thought id share my thoughts on. The scenarios is that if you have a line of business application for arguments sake lets say its dynamics CRM which has a BizTalk adapter available but also has an existing web service API (or some other protocol based API). Which should you use for integration? In my opinion the answer to this is the usual "it depends" answer. I think ...
I spent some time today summarising the new features in the Windows Azure AppFabric May CTP for SolidSoft consultants. Microsoft released the CTP a couple of weeks ago and has a second CTP coming out later this month. I might as well publish this here, although it has been widely blogged on already. There is nothing that you can’t glean from reading the release documents, but hopefully it will serve as a shorter summary. The May CTP is all about the AppFabric Service Bus. The bus has been extended ...
In this Issue: Alex Golesh, Walter Ferrari, Kunal Chowdhury, Rob Eisenberg, Michael Crump(-2-), WindowsPhoneGeek(-2-), Jesse Liberty(-2-), and Nigel Sampson. Above the Fold: Silverlight: "The ABC of streaming in Silverlight" Walter Ferrari WP7: "Switching between Windows Phone 7.1 Mango and 7.0 RTW developer tools and vice versa" WindowsPhoneGeek From SilverlightCream.com: Windows Phone Mango–What’s New? (“Profiler” - Part 9 of 8) Alex Golesh risks overlowing his buffer with this Mango - What's New ...
Windows Phone 7 and Windows Phone 7.1 codename Mango was the topic of the event held today in Helsinki at the Finnkino movie theater Tennispalatsi. Microsoft Finland had invited two top notch speakers from Redmond namely Brandon Watson and Jaime Rodriguez. Following the recent public announcement of the new version of the platform this was one of the first events on the subject. The keynote of the event mostly concerned the overall vision and idea of the Windows Phone 7 platform but the following ...
“Design Patterns 100? is a prerequisite for .NET Developers. (Part 4 – Excerpts from July 2010 – PhillyNJ.NET Presentation) Continuing our discussion from Part-3 we ask. What are the “Gang of Four” (GoF) Structural Patterns and where can we find them in the .NET Framework? Let’s look at a list of the Strutural Patterns as defined by the GoF. Adapter Pattern – is used to match interfaces of different classes Bridge Pattern – is used to separate an object’s interface from its implementation Composite ...
Here are the updated links for quick reference: Windows Phone SDK Beta Download Center: http://go.microsoft.com/?li... Go live license– http://go.microsoft.com/?li... WPDT 7.1 Documentation Windows Phone Developer Tools 7.1 Release Notes: http://go.microsoft.com/fwl... What’s New in Windows Phone Developer Tools: http://go.microsoft.com/fwl... Code Samples for Windows Phone: http://go.microsoft.com/fwl... App Hub Links Announcement: http://create.msdn.com/en-U... ...
Today a new set of tools targeting the Windows Phone 7 “Mango” release is available. This toolset is being called Windows Phone Developer Tools 7.1 This by not means can be translated into the actual product name for the final release! The download is available at Create.MSDN.com [might take a few hours to appear on that site] Direct Download Link Documentation and What’s New is on MSDN: http://msdn.microsoft.com/e... Using these tools a developer can write WP7 application for 7.0 ...
In this blog, by external library I really mean any jar (yours or someone else's) that has some functionality you want to include in an Android app. The Android SDK makes this seem very easy to do. You can add other jars to your android project, and they get DEXed and included in your .apk file for upload to Android emulator or other device. If you are using the Eclipse ADT, this isn't any harder than putting the jars on the build path for your project, using the Java Build Path properties dialog. ...
Over the last few months we have been developing custom SharePoint timer jobs. Since the jobs run under a Windows Service it makes it difficult to debug them. The saving grace we found is called ULS. It gives you a logging location that is consistent with the native timer jobs and an API which resembles most other logging frameworks. In order write events you first need to include the Microsoft.SharePoint.Admini... assembly. Then it is simply a matter of getting an instance of a SPDiagnosticsService ...
Windows Azure Boot Camp: Diagnostics (http://wabcdemos.cloudapp.... Remote desktop MonAgentHost.exe starts Auto, listener wired up in app/web.config Need to define a storage account User can set quota Source to Storage: Example: Trace log to Azure Table; IIS Logs to Blob; Windows Event to Azure Table, Crash dump to Blob, ... Load Diagnostic Agent <Imports><Import moduleName="Diagnostic" /></Imports> OnStart({DiagnosticMonitor.... TransferFilterLogLevel and ...
In my quest to dig into how people use social media to communicate about wine I ran into a snag. One of the things I really wanted to do was collect geographic data about each post. When you do a twitter search, a post can contain latitude and longitude data if the source supports GPS, but so far almost none of the posts about wine actually have this data. So the next best thing is to figure out where the user lives. A twitter user profile has a location field. Its free text unfortunately, but its ...
One of my application is used in warehouse operations. It has a weather control to keep dispatchers and drivers informed. Here are two screen-shots Powered By: XtraGrid Google Weather API ...
Sometimes, the way that LINQ to Twitter materializes queries into entities isn’t immediately clear. It’s easy to get confused until you see the patterns or make a correlation between the Twitter API results and their representations as LINQ to Twitter entities. In this post, I’ll explain some of the logic behind the design of LINQ to Twitter entities and demonstrate an example of one of the more oddly designed entity types, Search. Note: They'll be talking about MVC3 during multiple sessions at Tech-Ed. ...
Intro I’m sure by now you have heard that the Silverlight 5 Beta has been released. I recently had a chance to Guest Blog for SSWUG on “Getting Started with the Silverlight 5 Beta” Now before we get started learning about it, let’s look at a few new features: What is new in the Silverlight 5 Beta? Multiple Window Support - Trusted app can create additional Windows. Ancestor RelativeSource Binding – Enables a DataTemplate to bind to a property on the control that contains it. Implicit DataTemplates ...
In this Issue: Michael Washington, Morten Nielsen, John Garland, Bil Simser, Adam Nathan, András Velvárt, WindowsPhoneGeek(-2-), Jesse Liberty(-2-), Martin Krüger, Damon Payne, and Xianzhong Zhu. Above the Fold: Silverlight: "Using ICustomTypeProvider in Silverlight 5" Damon Payne WP7: "Hardware Back Button + Marketplace Certification" Adam Nathan Lightswitch: "Deploy Your LightSwitch Application As A DotNetNuke Module" Michael Washington From SilverlightCream.com: Deploy Your LightSwitch Application ...
In this Issue: Dave Davis, Oren Gal, Colin Eberhardt, Dan Wahlin, Jeff Prosise(-2-), @yuriylsh, Bill Reiss, Richard Waddell, Andrea Boschin(-2-), András Velvárt. Above the Fold: Silverlight: "Working with User Names and Roles in Silverlight Applications" Dan Wahlin WP7: "Silverlight for Windows Phone Programming Tip #7" Jeff Prosise MIX11: "MIX11 Mass Download Tool" @yuriylsh From SilverlightCream.com: Controlling Silverlight Child Windows Using MVVM Dave Davis has a post up that revisits a subject ...
Last week at MIX11, Preview 4 of WCF Web API was released. If you missed it, you can watch the video here. One way to get Preview 4 and start playing with it is to download it here. However, an even easier way to to just grab the bits from NuGet: When you download the latest Web API bits, there are a couple of sample applications that show off the latest features of the Web API (these are in the CodePlex download, not the NuGet packages). The first one is a Contact Manager “Simple” project which ...
In this all submittal Issue: Manas Patnaik, Walter Ferrari, Kevin Hoffman, Joost van Schaik, Alex Golesh(-2-, -3-, -4-), Dave Davis, Tony Champion, Kunal Chowdhury(-2-), Rudi Grobler, Colin Eberhardt. Above the Fold: Silverlight: "Safe event detachment ‘pattern’ for behaviors" Joost van Schaik WP7: "A Fast Loading Windows Phone 7 NavigationList Control" Colin Eberhardt From SilverlightCream.com: Implicit DataTemplates in Silverlight 5, With practical case study Manas Patnaik's latest post is a Silverlight ...
Ajax enabled data centric applications are getting popular day by day in web development space. While these type of web applications provide rich user experience, building a robust and powerful application quickly is a great challenge for developers. Fortunately Microsoft has started providing great frameworks, plug-ins and APIs to facilitate this process. Last week Microsoft announced a new version of java-script API “datajs”, which is intended to help web developers to build data centric AJAX applications ...
On Day 2 of Mix 2011, it announced the new version of Silverlight. The main features in this first beta version are: XAML Debugging with breakpoints for binding debugging Implicit data templates for easy UI reuse Double (and multi) click support GPU-accelerated XNA-compatible 3D and immediate-mode 2D API Low-latency sound effects and WAV support Real operating system windows and multi-display support Significant performance improvements, fixes and much more You can see all necessary information and ...
No we are not dead - the SharpBox project is alive. We prepared so many things for you driven by the community in SharpBox 1.1 that we need your help. Just a brief overview about what's currently in the trunk: Support for generic WebDav storage provider Changed WebRequest subsystem to ensure that we up and download directly into the network streams Combined everything into one assembly to make your life easier Brand new storage provider API to make it easier for storage provider developer Reference ...
I recently asked question this question as a post on the Microsoft modeling and tools forum: Various Microsoft attempts at MDD have failed or been put on the back burner: WhiteHorse, Software Factories, Oslo. Does Microsoft have any strategy for Model Driven Development? Will any of the forementioned tools ever see the light of day? Stuart Kent responded to my question here: http://blogs.msdn.com/b/stu... - Have a look at his post: ...
Like it or not, we humans make mistakes. If we embrace the fact that we are going to make mistakes, we can direct our efforts to reduce mistakes in areas that are critical in exchange for potentially making more mistakes in areas that aren’t. Gasp! We need to get over the silly notion that our work can ever be 100% perfect and try to maximize in the areas that matter. Does it really matter? These are the things I’ve found that typically don’t matter as much in the grand scheme of development. Start ...
(these are lifted verbatim from Microsoft here, here and here and are presented below only because it’s convenient to have them lumped altogether…) Getting Started with Windows Phone Windows Phone development platform supports both XNA Framework and Silverlight. This unit takes you through the step-by-step creation of your first Windows Phone Silverlight application. Hands-On Labs · Hello Windows Phone This lab intends to be the classic "Hello World" application, introducing you to the tools and ...
I have written about adding support for specifications to NHibernate’s ISession type. Shortly afterwards Paul Stovell moaned on twitter that no one had demonstrated how to mock ISession. Since my implementation relied upon an extension method (QueryBySpecification) I googled how to mock extension methods – and discovered that you can’t. What I did find was Daniel Cazzulino’s post about converting extension methods to methods that return a Func that exposes your extension method. That way you can ...
You want to avoid the pitfalls of object oriented design? Then this is the right place to start. Use Flow-Oriented Analysis (FOA) and –Design (FOD or just FD for Flow-Design) to understand a problem domain and design a software solution. Flow-Orientation as described here is related to Flow-Based Programming, Event-Based Programming, Business Process Modelling, and even Event-Driven Architectures. But even though “thinking in flows” is not new, I found it helpful to deviate from those precursors ...
My blog has been quiet recently, mainly because I've been spending a bunch of time putting together an iPhone app which talks to a set of RESTful WCF services hosted in Azure, backing onto SQL Azure for storage. This post is a technical walkthrough of that architecture and some of the learning experiences, but after this it will be back to normal. I have a couple of nice open-source projects which are coming soon, including a log4net appender which writes to Event Tracing for Windows (ETW), and a ...
In this Issue: Lazar Nikolov, Rudi Grobler, WindowsPhoneGeek, Jesse Liberty, Pete Brown, Jessica Foster, Chris Rouw, Andy Beaulieu, and Colin Eberhardt. Above the Fold: Silverlight: "A Silverlight Resizable TextBlock (and other resizable things)" Colin Eberhardt WP7: "Retrofitting the Trial API" Jessica Foster Shoutouts: Rudi Grobler has a post up that's not Silverlight, but it's cool stuff you may be interested in: WPF Themes now available on NuGet From SilverlightCream.com: Simulating rain in Silverlight ...
There are several things any XNA developer should know/consider when coming to the Windows Phone 7 platform. This post assumes you are familiar with the XNA Framework and with the changes between XNA 3.1 and XNA 4.0. It’s not exhaustive; it’s simply a list of things I’ve gathered over time. I may come back and add to it over time, and I’m happy to add anything anyone else has experienced or learned as well. Display · The screen is either 800x480 or 480x800. · But you aren’t required to use only those ...
There are a million plugins for jQuery and when a web forms developer like myself works in MVC making use of them is par-for-the-course! MVC is the way now, web forms are but a memory!! Grids / tables are my focus at the moment. I don’t want to get in to righting reems of css and html, but it’s not acceptable to simply dump a table on the screen, functionality like sorting, paging, fixed header and perhaps filtering are expected behaviour. What isn’t always required though is the massive functionality ...
Recently I had a problem with opening a common dialog from a WPF appication. I ended up doing in from WinForms application instead. I wish I had known then about the Windows API code pack and Vista Bridge. They are free downloads from: http://archive.msdn.microso... http://archive.msdn.microso... ...
(This is my first review as a part of the GeeksWithBlogs.net Influencers program. It’s a program in which I (and the others who have been selected for it) get the opportunity to check out new products and services and write reviews about them. We don’t get paid for this, but we do generally get to keep a copy of the software or retain an account for some period of time on the service that we review. In this case I received a copy of Red Gate Software’s ANTS Memory Profiler 7.0, which was released ...
So, I needed to add about 30 people to several different Skype groups today, and I didn’t want to repeat the /add [skypename] thing over and over and over. Building the list was a pain . . . I couldn’t find a good way to extract all of the users in an existing group. There’s probably an api or something, but I just did that part by hand. Adding them to the groups was pretty easy with Windows Scripting Host. Basically, I just ran this: <package> <job id="vbs"> <script language="VBScript"> ...
Ever work somewhere where processes dump files into folders to maintain an archive? Me too and Windows Explorer hates it. Very often I find myself needing to organize these files into subfolders so that I can go after files without locking up Windows Explorer and my answer used to be to write a program in something like C# to do the job. These programs will typically enumerate the files in a folder and move each file to a subdirectory named based on a datestamp. The last such program I wrote had ...
In this Issue: Robby Ingebretsen, Victor Gaudioso, Andrea Boschin(-2-), Rudi Grobler(-2-), Michael Crump, Deborah Kurata, Dennis Delimarsky, Pete Vickers, Yochay Kiriaty, Peter Kuhn, WindowsPhoneGeek, and Jesse Liberty(-2-). Above the Fold: Silverlight: "Silverlight Simple MVVM Printing" Deborah Kurata WP7: "Creating theme friendly UI in WP7 using OpacityMask" WindowsPhoneGeek Tools: "KAXAML v1.8" Robby Ingebretsen Shoutouts: Peter Foot posted Silverlight for Windows Phone Toolkit–Feb 2011 Rudi Grobler ...
Overview · With HPC 2008 R2 SP1 You can add Azure worker roles as compute nodes in a local Windows HPC Server cluster. · The subscription for Windows Azure like any other Azure Service - charged for the time that the role instances are available, as well as for the compute and storage services that are used on the nodes. · Win-Win ? - Azure charges the computer hour cost (according to vm size) amortized over a month – so you save on purchasing compute node hardware. Microsoft wins because you need ...
It’s about 3 months later when I registered the SQL Azure Reporting CTP on the Microsoft Connect after TechED 2010 China. Today when I checked my mailbox I found that the SQL Azure team had just accepted my request and sent the activation code over to me. So let’s have a look on the new SQL Azure Reporting. Concept The SQL Azure Reporting provides cloud-based reporting as a service, built on SQL Server Reporting Services and SQL Azure technologies. Cloud-based reporting solutions such as SQL Azure ...
Applications get data from lots of different sources. The most common is to get data from a database or a web service. Typically, we encapsulate calls to a database in a Repository object and we create some sort of IRepository interface as an abstraction to decouple between layers and enable easier unit testing by leveraging faking and mocking. This works great for database interaction. However, when consuming a RESTful web service, this is is not always the best approach. The WCF Web APIs that are ...
This short list is what I consider to be the “cream-of-the-crop” in developer conferences. This is also a list of the conferences that I plan on attending in 2011. If you feel your conference is just as good, then shoot me an email at [michael[at]michaelcrump[do... and if possible I will check it out. In-Person Event Las Vegas on April 18th-22nd, 2011 Redmond on October 17th-21st, 2011 Orlando on December 5th-9th, 2011 Visual Studio Live – I attended this event in November of last year and blogged ...
In this Issue: Vikas, Tony Champion, Peter Kuhn, Ollie Riches, Rich Griffin, Rob Eisenberg, Andrea Boschin, Rudi Grobler(-2-), Jesse Liberty, Dan Wahlin, Roberto Sonnino, Deborah Kurata. Above the Fold: Silverlight: "Silverlight double click event" Vikas WP7: "Logging in Silverlight and WP7 with MVVM Light" Tony Champion XNA: "XNA for Silverlight developers: Part 3 - Animation (transforms)" Peter Kuhn Shoutouts: Vikas deserves congratulations for passing the beta Silverlight 4 exam, but in the process ...
Jesus Rodriguez has blogged recently on Tellago Devlabs' release of an open source RESTful API for BizTalk Server Business Rules. This is an excellent addition to the BizTalk ecosystem and I congratulate Tellago on their work. See http://weblogs.asp.net/gsus... The Microsoft BRE was originally designed to be used as an embedded library in .NET applications. This is reflected in the implementation of the Rules Engine ...
A few months ago myself and colleagues had open sourced the BizTalk Data Services. We were meanwhile working on other artifacts which comes along with BizTalk Server like the “Business Rules Engine”. We are happy to announce the first version of BRE Data Services. BRE Data Services is a same concept which we covered through BTS Data Services, providing a RESTFul OData – based API to interact with the Business Rules Engine via HTTP using ATOM Publishing Protocol or JSON as the encoding mechanism. ...
We are in the process of upgrading our BizTalk Environment from BizTalk 2006 R2 to BizTalk 2010. The SAP adaptor in BizTalk 2010 is an all new and more powerful WCF-SAP adaptor. When my colleagues tested out the new adaptor they discovered that the format of the data extracted from SAP was not identical to the old adaptor. This is not a big deal if the structure of the messages from SAP is simple. In this case we were receiving the delivery and invoice iDocs. Both these structures are complex especially ...
I’m working on several large posts right now. So in the interim, I’ve decided to do shorter posts that contain something I find very helpful. This is the first. I’ve been using Windows 7 since April 2010. It’s the first OS I’ve ever worked with that I actually enjoy. I’ve used many over the years (KERNAL; PC DOS; MS-DOS 3.x+; Windows 3.0, 3.11, 95, 98, 98 SE, Me, NT 3.51, NT 4, 2000, XP, Vista, 7; various GNU/Linux distros starting with Debian 1.2 – most recently Ubuntu 10.04; ProDOS, Mac OS 9.X, ...
Long time no talk? So to make up for it, here is something very new – update to WP7 Dev Tools! The Windows Phone 7 Developer Tools January 2011 Update provides bits that you would install on TOP of the current WP7 Dev tools on your machine. If you are just installing the tools for the first time, this update replaces previously released October patch. In fact, it is no longer available as this January 2011 update replaces the patch entirely. What is in this update? TextBox support for Copy&Paste ...
Neural Networks · I recently read a book Introduction to Neural Networks for C# , by Jeff Heaton. http://www.amazon.com/Intro... Not the 1st ANN book I've perused, but a nice revision. · Artificial Neural Networks (ANNs) are a mechanism of machine learning – see http://en.wikipedia.org/wik... , http://en.wikipedia.org/wik... · Problems Not Suited ...
In this post I'll demonstrate how to make a simple collapsible menu using jQuery. To get started let's go ahead and fire up Visual Studio and create a new WebForm. Now let's build our menu by adding some div, p and anchor tags. Since I'm using a masterpage then the ASPX mark-up should look something like this: 1: <asp:Content ID="Content2" ContentPlaceHolderID="MainC... runat="server"> 2: <div id="Menu"> 3: <p>CARS</p> 4: <div class="section"> 5: <a href="#">Car ...
I recently read a book http://www.amazon.com/Scien... - the Excel Scientific and Engineering Cookbook. The 2 main tools that this book leveraged were the Data Analysis Pack and Excel Solver. I had previously been aquanted with Microsoft Solver Foundation - this is a full fledged API for solving optimization problems, and went beyond being a mere Excel plugin - it exposed a C# programmatic ...
Overview · a curve is a functional map relationship between two factors (i.e. a function - However, the word function is a reserved word). · You can use the EO API to create common types of functions, find zeroes and calculate derivatives - currently supports constants, lines, quadratic curves, polynomials and Chebyshev approximations. · A function basis is a set of functions that can be combined to form a particular class of functions. The Curve class · the abstract base class from which all other ...