Tag | API Posts

My team has been working on and off all week trying to find out why one of our windows services was crashing at the same time every day with a very unhelpful eventlog message. Like all good errors, a search on the error message returns many results where people get the same message but for a bunch of different reasons and where many of the search result threads are left unanswered. This service was first developed in .NET 1.1 way before I joined the company (only 5 months ago). It had been running ...
When initially setting up Live Writer with CS 2.1 it has some issues with the initial setup. Basically it doesn't work - at first. After some sniffing, it's getting an Http 301 redirect that causes it to fail. So, if you type in the site as http://www.cicoria.com/..... to the metablog api endpoint, it fails. However, just strip off the www and change to http://cicoria.com/.... and your good to go ...
This week marked the release of my latest book - Professional XML. I wrote this with friend Kent Sharkey and some other authors including Michael Kay (editor of the XSLT specification and other things). This book came out really nice and after quickly covering XML - goes straight into covering all the major technologies that are based upon XML. The Amazon site doesn't seem to provide the table of contents at the moment, so here it is: 1. XML Syntax 2. XML Editors 3. XHTML and CSS 4. XFL-FO 5. Document ...
[Originally posted on 6th July 2006] WinToolZone.Bluetooth, the managed Bluetooth API for the desktop that I am working on, now has the support for enumerating devices as well. The snippet below exemplifies it: . 1: Bluetooth bth = new Bluetooth(); 2: 3: // EnumRadios(bth); 4: 5: if (bth.RefreshDevices(false, true, true, true, true, null) == false) 6: { 7: Console.WriteLine("Unable to enum devices"); 8: return; 9: } 10: 11: foreach (BluetoothDevice device in bth.Devices) 12: { 13: Console.WriteLine("Devicename: ...
[Originally posted on 5th July 2006] One of the communication protocols not present in .NET Framework class libraries is Bluetooth. So today, I started to work on my implementation of a managed API for Bluetooth programming - WinToolZone.Bluetooth. I am authoring it using Managed C++ and leveraging the Microsoft Bluetooth stack APIs. I just completed implementing the support for enumerating the Bluetooth radios on a machine. Below is a C# program that exemplifies how they can be enumerated: . 1: ...
The Google Maps API blog talks about adding support for GeoRSS enabled feeds on Google Maps. That means you can take the Where's Tim Messaging Feed and view the last 50 message people sent me on Google Maps You can also take my location feed and view it on Google Maps. Since my location feed contains Yahoo Maps, clicking on the GIcon will show a Yahoo Map on the Google Map! Technorati tags: GeoRSS, Where's Tim, Google Maps, Yahoo Maps ...
Alex Iskold posted a great article here http://www.readwriteweb.com... Which made me think of another blog entry that I read here by Ismael Ghalimi http://itredux.com/blog/200... ... and after looking thru the various comments got me thinking about what it would take to provide a SIMPLE API over the Web. 4 Hours later, it came up with this http://www.universaldatafee... and this http://www.universaldatafee... ...
Almost as common as the debate over which .NET language to choose is the argument about whether to use DataSets or not. As described above, typed data sets are easy to generate through the designer, provide a type safe API for containing business entity data, and already support advanced features such as change tracking, sorting, filtering, and searching. Some of the resistance to DataSets resulted from several performance shortcomings in the .NET 1.1 implementations. These problems included poor ...
More technical than most reviews, Peter Bright covers the APIs and what makes Vista different under the hood, including: Windows API history User interface - Windows Presentation Foundation and the Desktop Window Manager. Printing - XPS documents Under the hood - Windows Communication Foundation and Windows Workflow Foundation Video and Audio - Media Foundation A follow-up article promises to cover security and the features that got cut. Read Windows Vista: more than just a pretty face ...

To blog with Live writer on the geekswithblogs site setup as other and use the Metablog API service URL as  http://www.geekswithblogs.net/[YOUR USER NAME]/services/metablogapi.aspx.

Well, I'm pretty fed up with Microsoft's Windows Live Dev Team. Not that they have really done anything wrong, it's just that they haven't done anything!!! Add new abilities to the Windows Live Messenger client with the Messenger Add-in SDK beta. Published Friday, June 09, 2006 2:55 PM So, it's almost been a year since MS has put out anything to support development with Messenger. Whats the deal?? To top things off the existing Add-in sdk is crap! While it works, it only give you access to events ...
This is a simple example of using Win32 api in .NET. I'll use the FlashWindow() API from user32.dll so as to make the window go flashing and get attention. Take a simple Windows form and add a button to it. Add a reference to System.Runtime.InteropServices namespace. And heres the code. // --------- code -----------[DllImport("user... static extern int FlashWindow(int hWnd, int bInvert); public partial class Form1 : Form{ public Form1() { InitializeComponent(); } private void button1_Click(object ...
I recently had the not-so-great-or-fun pleasure of a pure .Net to Oracle application show-down :) And yes, I say that with some pun. In summary, keeping to proper form, I developed a DataProviderFactory that provided the following: SQL Server native client API Oracle BDC to SQL Server BDC to Oracle Now, BDC = Business Data Catalog - a new service provider native to MOSS (Micrsoft Office SharePoint Server) 2007. And trust me - the BDC ROCKS!!! Back to providers. My provider factory basically provided ...
All I can say is, "Wow!" I just looked at my blog and realized that I posted 34 posts for last month. I'm sure some of you may not think this is a large amount, but for me it represented the single busiest month of blogging since I started almost a year ago. I don't know how busy I'll be blogging this month, but I know I will be busy. Here is my current list of projects (outside of real work, that is): Update my File Downloader component with asynchronous download support. Update my Framework Version ...
As I began fooling around with my new Geekswithblogs blog I noticed a little checkbox in the Options section called "Allow webservices". Obviously that was some sort of API for uploading new blogentries, but how do I access it? Did I have to write my own app access it? No, Office 2007 has an awesome feature for blogging. It allows you to hook up to pretty much any blogging API including Blogger, the company Sharepoint, CommunityServer, Windows Live Spaces, WordPress, TypePad and most importantly ...
I was stumbling around the web, and decided to stop by Coding4Fun, which has been improved since I last saw it. If you haven't looked around that site, it's an interesting site from MS that shows a lot of fun little applets that are also tutorials. And today on the top of the list when I looked at it is this article mentioning that mono now supports VB, including "an almost complete API model for ASP.NET 2.0". I'm shocked, MS actually said something nice for once ...
Here are some good Cryptography related resources.Cryptography Overviewhttp://msdn2.micros... and improved Security in the .Net Framework2.0 http://msdn2.microsoft.com/... the examples are very useful Protect Private Data with the Cryptography Namespaces of the .NET Frameworkhttp://msdn.micros... should help you get an insight on .NET Cryptography essentials. Walkthrough Creating a Cryptographic Application.http://msdn2.mi... ...
Today I got my brand new Zune MP3 player which I did win at a Microsoft Event. Lucky me ;-). Ok install the software and you are ready to rockn roll, I thought, and I was wrong. Very wrong. At 94% of the installation it did stop with an error which was there even after a reboot. A quick Google search did confirm that other users had this problem also. One of the possible installation problems was the the Users group has the wrong name. Aha! I have a German Windows XP where the Users group is named ...
As I mentioned in my previous post, there is an apparent bug in the Metaweblog API that prevents me from specifying the full path to the FxCopCmd executable. I'm not entirely sure what is actually happening, but I do know that it doesn't allow the post to be submitted through either Windows Live Writer or through the blog Admin UI. The strangest part of this is that it appears to only care about this particular executable. I've tried several others, both command line and GUI applications and they ...
I don't know about you, but I have always felt that Microsoft did a huge injustice to the development community by leaving the Static Code Analysis capability out of Visual Studio 2005 Professional Edition. Just in case you don't know what this is, it is an integrated version of FxCop that allows you to configure Code Analysis and view the results from within Visual Studio. I'm not going to go into details about why Code Analysis is beneficial (perhaps I'll save that for another post), but having ...
As Bush's goverument proposed the extension of daylight saving time period, the daylight saving time will start in March and end in November in 2007 instead of April and October previously. This will cause a problem for unpatched system not to display time correctly. Therefore, several vendors have provided a patch for their own system including Microsoft. Microsoft released a KB928388 patch. What this patch does is to modify some registry keys that keep information about time offset and daylight ...
If you're like me and you have a Zune Pass (I know there are at least a few of you out there) you probably have spent more than a few hours building your library. I finally have all the artists that I own CDs for downloaded so I can get all the songs I like without buying more CDs. I also re-downloaded all my MP3s in Zune format just to keep things simple and have complete tags and album art. Now I spend time checking the home page to see what's new and also pick an artist I already have to check ...
http://www.pinvoke.net comes with handy C# /VB.Net signatures for invoking with core Win32 API.for example if we search for MessageBox in http://www.pinvoke.net we get the following result: C# Signature (Original): [DllImport("user32.dll", CharSet=CharSet.Auto)]public static extern uint MessageBox(IntPtr hWnd, String text, String caption, uint type);This is the bare minimum and we can use this straight way in our application but I always prefer to write a Wrapper around it. Which turns into something ...
Yep, that is the case at it is unfolding on the SharePoint team blog site about the "RTM" release of the SDK that is supposed to be the cornerstone of information for the product. Unfortunately it has come down to many very pissed off developers that are trying to keep up with a high demand of the new system from their customers and finding that there just isn't any good information any where on much of the API or other parts of the system that seem to be in high demand. I for one am suffering the ...
UPDATE (12/17/2007): My blog has moved. This post is now located at: http://jason.whitehorn.ws/2... When multithreading on the Xbox 360, here are a few things to keep in mind. Affinity In multithreaded programming, programmers often lack the ability to specify the Processor Affinity of a thread. Even when API calls are available to specify a processor, it is usually ignored. The reason for this is that modern operating systems have many processes running, ...
Recently I've read the AMQP (Advanced Message Queuing Protocol specification http://www.amqp.org/). Obviously this is the different protocol level then BizTalk messaging system but... The AMQP specification let me get some thoughts. And take in mind this topic is not a critic of AMQP or BizTalk, not at all. And this is not a comparing them, maybe sometimes ;) After discussion with Tomas Restrepo http://www.winterdom.com/we... I've made several changes in the text. Thanks Tomas! AMQP: Thoughts: ...
The CTP doesn't have a lot of documentation, but there is a reasonably detailed Release Notes document explaining what's new. Here's a quick summary of what you can expect: Core Source Code installer Partial Trust Support Strong-Named Binary Assemblies Validation Application Block Core validation API Minimal Validator Library Attaching validators to objects via attributes Attaching validators to objects via configuration Not included yet (but in the works): Configuration tool support, complete validator ...
Quote from the original post by O'Reilly Radar: In an odd move Google has quietly deprecated their Search SOAP API, will no longer be issuing keys, and have removed the SDK from their site. They did not even issue a blog post about it. They will continue (for how long?) to support existing users, but will not do any bug fixes. They are urging developers to use their AJAX Search API ((Radar post) instead. Read More Hmm. I can understand what business goals they want to achieve by this. It's sad cause ...
Name: The Plug and Play SOA Description: I have seen occasions where BizTalk has been stuck between two systems simply because it is perceived to decouple them. One case was where System A called an API on System B which was exposed as a set of web services. All BizTalk was planned to do was accept the web service call from System A and forward it to System B. Some of the design thoughts included: Thought Other consideration "We can replace System B and System A is not affected" Well yes but the ...
I am glad to inform the release of SmartCodeGenerator CTP 2.0 in both .Net1.1 and .Net2.0. As a result Templates can be generated both in VS2003 and VS2005. Please download from Codeplex:http://www.codeple... Notes:1. I am not using the Asp.Net Profile object in the core api to generate user interface, instead introduced a Custom class "TheProperties". Please refer to tutorials at www.smartcodegenerator.com for more details.There are some other changes made to ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. This week’s newsletter will be short and sweet. We will go over the new Application Recovery and Restart API. The API itself is very small and very simple to use (which, in my opinion, is “A Good Thing” TM). What is Application Recovery and Restart? Application Recovery is a set of technologies that give applications the opportunity to control what actions are taken on their behalf by the system when they (the application) ...
Security is one of the areas which I am constantly interested in and as my work revolves around smart clients in the last few years I decided to write down this post. Many of these items described below would apply not only to smart clients but for most applications (irrespective of Web services, Server side apps, alike). I don't consider myself a strong SQL developer hence I am not comfortable right now to post such security considerations for SQL code. May be some day later. Do note that these ...
Calling Win32 DLLs in C# with P/Invoke http://msdn.microsoft.com/m... Now let's look at the direction in which string information is being passed between your code and the unmanaged function. There are two ways that you can know which direction the information is being passed in when working with strings. The first and most reliable method is to understand the purpose of the parameter in the first place. For example, if you are calling a parameter with a name like CreateMutex ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. In this week’s edition of the “Longhorn Server Feature of the Week”, we will be taking a look at a new feature in Vista and Longhorn Server: the Restart Manager. What is the Restart Manager? The primary reason software updates require a system restart during an installation or update is that some of the files that are being updated are currently being used by a running application or service. The Restart Manager enables all ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. This week, we take quick dive into some of the enhancements that have been made to Windows Error Reporting (WER) in Vista and Longhorn Server. What is Windows Error Reporting (WER)? Windows Error Reporting enables users to notify Microsoft of application faults, kernel faults, and unresponsive applications. Microsoft can use the error reporting feature to provide customers with troubleshooting information, solutions, or updates ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. This week, we will be looking at the robust replacement for boot.ini in Windows Vista and Longhorn Server: Boot Configuration Data. What is Boot Configuration Data? Boot configuration data (BCD) provides a store that is used to describe boot applications and boot application settings. The objects and elements in the store effectively replace Boot.ini. The data in the store can be managed by a command-line utility, bcdedit.exe, ...
Hello everyone, and welcome back to the “Feature Of The Week” newsletter. In this fifth installment, we will take a short little peek at a series of enhancements coming in Vista and Longhorn Server to the Task Scheduler. What is the Task Scheduler API? The Task Scheduler API is an API that enables you to automatically perform routine tasks on a chosen computer. The Task Scheduler does this by monitoring whatever criteria you choose to initiate the tasks (referred to as triggers) and then executing ...
Lately I have been having a crisis of faith about MonoRail and have been looking at ASP.Net again. All of the neat controls, and IDE support are sooooo tempting. So late last night I happened to catch Ayende online and here is what he had to say: ASP.Net Pro Because it is what everyone use. Has controls Isolate from web Con Isolate from web You work in a different model than what really is - leaky abstraction view state Very complex model for doing really simple stuff. Encourage mixing of UI / BAL ...
From yesterday's Betanews: A statement released to the press very early this morning from Ben Fathi, Microsoft's corporate vice president for security technology, gives some subtle but clear indications that, if McAfee wants to take its claims against Windows Vista security features off the streets and into a more formal setting, Microsoft might be willing to make a battle of it. "It's unfortunate that McAfee's lawyers are making these kinds of inaccurate and inflammatory statements," Fathi's statement ...
Back to Earth after my Channel 9 video. In this post I want to discuss some of my recent experiences implementing SOA. It’s important to take everyone with you. SOA is a Sea-Change in the way programs are developed and implemented in an organisation. The concept of an ‘Application’ is very much redefined. It’s so important that the reason why are communicated not only to key stake-holder in business, but everyone in the I.T department, specially those that are at the coal ...
I've been working exclusively alone on a project for a while and have as much liberty as any developer could hope for. I'm a blessed man. Nonetheless, I have tried to kind of "pretend" like I am working in a team environment that has regimented deadlines. This is mostly due to integrity and partly due to prevention for laziness...how easy is it to constantly be researching solutions without implementing them? There was a necessary period of growth in skill sets that had to occur and while I certainly ...
Here's a library for manipulating the clipboard using C#. Why do we need such a library? Because the Windows.Forms.Clipboard class only allows you to manipulate serializable data. You need to escape out to the Windows API if your data doesn't conform. This class does all that magic for you. From the introduction: The code uses Windows API calls to read and write into the clipboard. It provides a ClipboardHelper, an easy to use API bridge, which offers, in addition, functions to serialize complex ...
I noticed this weekend that viewing geocoded flickr pictures on Where's Tim wasn't working quite right. It would only grab one or two pictures and I know there is over a thousand geocoded pictures in Lawrence. The code looks fine and my geocoded pictures in flickr were still there. I ran my code through flickr's api explorer and it looks like their api is returning a limited result for some reason. Maybe there is a glitch somewhere ...
Jaroslaw Kowalski has announced the birth of NLog 1.0. This is a free logging library for .NET. It seems to be much more streamlined than what's in EntLib, which is probably a good thing. From the website: NLog is a .NET logging library designed with simplicity and flexibility in mind. With NLog you can process diagnostic messages emitted from any .NET language, augment them with contextual information, format them according to your preference and send them to one or more targets. The API (application ...
OK, so, clearly, this is a 3 parts article, so, if you haven't already, I guess you need to check the first part first. So, where did I stop last time? Oh yeah, Cyra. Thanks again. In fact I have a problem with the rest of the day; the day before I just kept working until 1 AM (hey, it's not a nature for work in Silver Key. They keep preventing me from this, and I was truly kicked out of the office by my PM a couple or three times for that!!!), and when I left home I was too lazy and reached at 3AM ...
I'm a .net (c#) programmer, through and through, but work needed someone to port an API that I had recently written in C# to Java, so guess who got the job! So for the last 3 days, I've been fighting an issue with Java and Eclipse 3.2 and my own code. I've been getting the dreaded NoClassDefFound exception, and been unable, completely unable, to debug eclipse. Basically, when I attempted to instantiate a particular class, the NoClassDefFound exception was thrown, even though other classes in the ...
So again courtesy of Bink.nu I came across the other Blog that Alessandro writes at Security Zero, where I have normally just been tracking what he writes at virtualization.info What I also found interesting was the stats - 1,951 Participants for Network Monitor 3 Beta 2, 38 Bugs, 20 Active. This has been available since 6/06/2006. Network Monitor 3 Details:Upcoming Network Monitor 3 will offer several new features and will finally be an uncapped, free, stand-alone application for Windows XP/2003/Vista/codename ...
Have you ever wondered why instance methods in java are virtual by default and in C# not? In C# to make a method virtual you have to explicitly do it right? Why is that? I think better to ask from creator of the C# language. :) So this is what Anders Hejlsberg says: There are several reasons. One is performance. We can observe that as people write code in Java, they forget to mark their methods final. Therefore, those methods are virtual. Because they're virtual, they don't perform as well. There's ...
I've known about Channel 9 for quite some time, but a colleague of mine just shared the Going Deep section of it with me today. Here is a short description of what it is: “Charles Torre travels around Microsoft to meet the company’s leading Architects and Engineers to discuss the inner workings of our core technologies. Going Deep is primarily concerned with how things work, why they are designed the way they are, and how they will evolve over time.“ Check out the current line-up ...
From the Microsoft SoCal site I gleamed the following: Micrsoft have just released two great resources for BizTalk BAM aficionados. The first, BAM Frequently Asked Questions covers great topics like BAM tracing, common errors, maintaining the BAM databases and more. Good stuff. The second doc. Developing with BAM goes through the BAM API and explains (with code snippets) how to use the API. Obviously you could write volumes on the tactics for BAM programming, but this document is a great start for ...