Tag | API Posts

To achieve cross-blogging the target blog must be Metablog API enabled. Its then a simple case of setting up the target URL in my case it would be: http://www.geekswithblogs.n... and then adding username and password. This is all done in the Ping & Cross-posting section of My Blog in Community Server. Previously posted at blog.Solidsoft.com ...
I'm rewriting a class in our GPS object that handles the geographic coordinates of GPS points. We need more flexibility in converting between types of coordinates. I'm torn between designing the class for performance or for ease of consumption. From an architectural point of view, the class should be easy to consume. So when somebody has this class loaded, they could use a .DecimalDegrees or .DMS property and it would take the existing data, convert it on the fly and spit it back. However, I know ...
For Authorization we had the requirements that we had to be able to easily assign a specific user to a certain "role" and they would have all the priveledges associated with that role. We had to be able to make users members of multiple roles. We also had to be able to configure what specific priveledges belonged to each role. In addition, we had to be able to assign a specific user to a specific role, but then also give them access to one or more specific priviledges in addition to those granted ...
This is adapted from a recent email conversation I had about network I/O models for a GUI client running on .NET. I ended up on a tangent, covering APIs available for 3 major platforms. Since all this info was gathered in one place, I figured I might as well post it :) There's also some discussion about when blocking and non-blocking models are appropriate, but I don't actually draw any conclusions. Hopefully there's enough background here for someone to make the call on their own. Let's start by ...
CT MSDN Event announced. Thursday, August 31, 2006 1:00 PM -5:00 PM Welcome Time: 12:30 PM Session #1: Exploring the System.Net Namespace in the .NET Framework 2.0 Developers are increasingly being asked to create applications that interact with common network services. So, it’s a good thing the .NET Framework 2.0 enables you to write connected applications with less hassle and fewer lines of code. This session will delve into the System.Net namespace, including: • How to create applications ...
I was reading about signing up for a Google Maps API key, and I just thought this was funny(from http://www.google.com/apis/... There are some uses of the API that we just don't want to see. For instance, we do not want to see maps that identify the places to buy illegal drugs in a city, or any similar illegal activity ...
I'm not a big fan for “social networking” sites, but when it comes to Orkut, there's my friends! Orkut is an online community that connects people through a network of trusted friends. The scrap feature really sucks! To reply to one of the scraps you received one has to go to the sender's profile and then to her scrapbook and then post the content! This is very boring and I searched a way thru this. Found a couple of not so satisfactory Grease Monkey scripts, a Scrapboy (which keeps saying “Orkut ...
Recently, for a very large customer, I had to fix some issues with regards to SharePoint My Site lists. Destroying and recreating each person's My Site was not an option. This scenario actually happened due to the fact that should you get the dreaded SPException which indicates a "Save Conflict" while updating a SPList object, it will wipe out some of your properties. I will show an example in code in a Console Application. So, let's start with the Main method: [STAThread] static void Main(string[] ...
Kernel Transaction Manager (KTM) Before Vista, applications had to do a lot of hard work to recover from errors during the modification of files and registry keys. Windows Vista implements a generalized transaction manager called the Kernel Transaction Manager (KTM) which provides “all or nothing” transaction semantics. This means that changes are committed only when the associated transaction is completed and commits. The KTM is extensible through third-party resource managers and coordinates between ...
I/O Completion Port Improvement I/O completion ports allow threads to wait efficiently for completion of multiple I/O requests. Before Vista, each completion caused a context switch to the issuing thread. Now, the I/O completion is deferred to when the thread pulls off the completion port, which avoids the context switch. I/O Scalability Improvements Vista adds a new extended version of the GetQueuedCompletionStatus API named GetQueuedCompletionStatusEx which can return multiple I/O results in a ...
Resource Quotas Prior to Vista, quotas were system-wide. Vista supports per-user hard resource quotas that cover: CPU usage working set minimum page file usage nonpaged pool paged pool Process and thread creation have new extended attributes contained in the STARTUPINFOEX structure and new API functions: *ProcThreadAttributeList. Unfortunately, none of this information is documented yet, but keep an eye out. It promises to make quotas a lot more useful for the system administrators. Symbolic File ...
Cycle Time Counter Prior to Vista, the kernel accounted for CPU time based on the interval clock timer which had a resolution of between 10-15ms. This timing interval was not always fair or accurate since threads where charged for interrupts that occurred while they were running and a thread might not get a turn to execute or could get up to three turns to execute. Vista changes this timing mechanism by reading the Time Stamp Counter (TSC) at each context switch. This allows the CPU to charge the ...
In my last post, I talked about wanting to add GeoRSS tags to the RSS feed of the text messages people send me on Where's Tim. The first thing I need is to find out the users location based on their IP. So I wrote a class that communicates with the hostip.info API to generate a object that contains location data based on that ip. The article with the code is here: http://geekswithblogs.net/t... ...

I added the Where's Tim API + Google Maps demo code to the article about showing the code from my AJAX.net talk.

http://geekswithblogs.net/thibbard/articles/79447.aspx

So, how do you make money off your blog? Convince a publishing company to turn your blog dump into a book! Hey it works for Joel Spolsky and Erik Sink. True, I like to read Joel on Software's blog, although he doesn't post very often anymore. I haven't read Erik Sink's blog. Now APress has taken their blog entries and turned them into books. How effective is this? A book takes several months to produce and ship. Any entries would be older. Indeed, looking at these books at the store, many of the ...
So a simple design question to get feedback about what folks think regarding ASP.NET usage of a Service Layer. In an application (non-distributed web app) that wants to implement a Service Layer to provide a simple API for a relatively complex business logic layer, there seem to be two options for communicating data from those clients...in our case a web page. In the code-behind, we can grab the values from webcontrols and send those primitive types directly to the service layer methods - our basic ...
As most developers these days, I try to do as much design as possible prior to diving into coding. Typically, ever project consists of UML in one shape or another. Usually the design takes shape with class, activity, and sequence diagrams. Depending on your task or company’s documentation requirements, you may or may not model every state or behavior in every class you design. Personally, I try to publish my public methods and properties since this is my API to the class. Protected and private ...
A P R E S S . C O M : Pro WCF: Practical Microsoft SOA Implementation. Well, they’ve started the marketing on the book that I’ve been involved with for some time now. Actual “initiation” was July 2005. This book is a focus on the WCF stack as part of WinFX, err, I mean .NET 3.0 – but that’s another story. Pro WCF: Practical Microsoft SOA Implementation Part of Microsoft’s radical new WinFX API is the Indigo foundation, more formally known as the Windows Communication ...
Microsoft Win32 to Microsoft .NET Framework API Maphttp://msdn.microsoft.co... This article identifies the Microsoft .NET Framework version 1.0 or 1.1 APIs that provide similar functionality to Microsoft Win32 functions. One or more relevant .NET Framework APIs are shown for each Win32 function listed. The intended audience for this article is experienced Win32 developers who are creating applications or libraries based on the ...
Ready for some feedback. Download the library and let me know what you think. There is a csharp winforms demo included that shows how to use the GSheet class that is contained in the dll. Contents of the zip: csharpDemo - Folder containing the csharp source code of the demo GoogleSpreadsheetsAPI.dll - Library containing the GSheet class. nsoftware.IPWorksSSL.dll - IP*Works! SSL library for communications code Update: Download it here, source included. Update 2: The library is no longer available. ...
Lots of people are talking about Google Spreadsheets. Yesterday I wrote some c# code to enable me to access my Spreadsheets account from my .net applications: a Google Spreadsheets API. So far I can authenticate, list all my existing spreadsheets, create a new spreadsheet, edit individual cells, delete a spreadsheet, rename a spreadsheet, import from a local XLS file, and export to a local XLS or CSV file. I will post some code later today. properties: string Email string Password string CurrentSheetKey ...
Few days back someone made a comment “what the hell you know about VISTA” .. I didn't respond much ..but smiled... Slowly I tried to navigate and gather information about Vista if not knowledge about it.... somehow I felt Comfortable enough to write some lines about it... Here I go ... SIDE TRACK :- Few days back we had three day Session on VISTA for dev MVPS and Vinod provided some nice presentations and demos...although I being long away from DEV but still enoyed it asDI was able to ...
Tonight we had a user group meeting on XForms. First let me tell you that I think it is a big shame that we don't get Xforms capabilities in IE6 or in IE7.It would get rid of all the javascript hassle and hoops we have to go through to get the simplest things done. Anyway, I've been working with The asp.net 2.0 atlas framework a bit more now. And it is really cool just a shame that i can't use other libraries in conjunction. But I still have to explore the animation api maybe if i can do things that ...
As an intro, I have been building a BizTalk 2006 adapter (http://www.zouak.com/Produ... starting from the new framework and base adapter code. The adapter is a transport-type adapter. One of the initial challenges was wrapping my head around the property definitions. With BTS, each adapter has two types of properties: Handler and Location (aka Port). In addition, at runtime there is the message content itself and the message "Context" properties which can be considered. Once you add an adapter ...

You can do magic:

Big thanks to Jeff Julian for his guidance on how to setup Word 2007 for blogging. As proof of the success I’m blogging from Word for this article!

Jeff points out that for Geekswithblogs.net members, the Metablog API service URL is located at http://www.geekswithblogs.net/[YOUR USER NAME]/services/metablogapi.aspx so set this up with ‘Other’.

Thanks Jeff!

 

Several people have tried out blogging from Word 2007 (as I am now) and are having problems with .Text. This issue is in the CookComputing.XmlRpc.dll and a dateTime error they fixed. This is used in the Post struct which blows up the newPost method. If you update the dll to a later version (http://www.xml-rpc.net) then you should have no problem posting after that using the Metablog API. For Geekswithblogs.net members, the Metablog API service URL is located at http://www.geekswithblogs.n... ...
Update: Put a comment in if you want the C# version of this code and I will get it to you In previous days, I discussed the methods and properties to be implemented with the BITS wrapper BackgroundCopyJob. Let's go over some of them today. Let's start off with the IDisposable pattern which must be implemented when using these unmanaged objects. Here is the simple implementation required: // BackgroundCopyJob finalizer Podwysocki::Services::Backg... ...
Over the years, when I needed to get quick information for a Microsoft Platform SDK function, I would Google it and find the MSDN reference page at the top of the list. Recently, the MSDN pages have all but disappeared, or are far down the Google index. I'm now forced to search with Yahoo. Has anyone else noticed this? For example, I'm working on a Crypto API issue right now, and wanted to get the reference for this function: CryptVerifyDetachedMessageS... If you Google it, you get everything ...
Say I have a Facade layer which sits just beneath my UI (in this case ASP.NET) layer. This, of course, provides the API for my controller (code-behind) classes to interact with my domain as well as encapsulating my Application Logic. I understand it is good to do some kind of Session management in this layer too, but I just don't get the best way to do this without directly referencing the Session object from HttpContext. This limits my Facade to being a Web-facing service layer, though, so that ...
Mini-Tools announces that all of its .NET components are now free for non-commercial use. In addition, Mini-Tools offers a Blueprint Edition for each .NET component that includes the original C# source code for as low as $99.All Mini-Tools components include a sample application to evaluate the component with no programming required, C# and Visual Basic .NET sample code and templates to get started quickly, and a detailed help file and API reference guide. Mini-Tools components may be distributed ...
Now that 2.0 (with its detection of accessing control properties from an incorrect thread) has become main stream there are numerous people realizing that they had many bugs in their 1.1 code. I could write up a bunch of information about why you need to do this but I think http://weblogs.asp.net/just... and others already do a great job of this. I am instead going to talk about how things work (that you probably don't care about). Once upon a time in a land far away there ...
After schemas have been published using Web Services Publishing wizard there’s a high chance we’d want to update and re-publish them later on. In the post about web services deployment automation I mention the way of scripting publishing process. Here is some more information on it. Web Services Publishing wizard creates temp folder under the publishing target directory. There’s a file confusingly named WebServiceDescription.xml (does not have anything to do with WSDL). It contains ...
UPDATE: See Day 9 of the Background Intelligent Transfer Service (BITS) Managed Wrapper for the source code plus binaries. In previous lessons, I laid out the basic API for BITS. Now I think it's time for us to start doing the actual planning on how to wrap this API. Let's start by mapping out the BITS types and then creating our own wrapped types. Below, I have a table of those native types and what the wrapped types will be: Enumerations Unmanaged BITS Type Wrapped Type BG_AUTH_SCHEME AuthenticationScheme ...
Update: Put a comment in if you want the C# version of this code and I will get it to you In my previous lesson, I gave a brief overview of the Background Intelligent Transfer Service. Today we will dig a bit deeper into some of the API as well as give reasons why I chose Managed C++ over a C# implementation. First off, there was plenty of reading to do from the last time. If you want to read more about the uses of BITS as well as the key technologies behind it, please check out this link: http://msdn.microsoft.com/l... ...
puh, schon wieder sind einige Wochen vergangen und ich habe nix zu diesem Blog beigetragen. Diese Woche hatte ich dann ein Erlebnis was mich zum Bloggen nötigt. Wie der Titel schon verrät, soll es um einen Teil des .NET Frameworks gehen, der nicht unbedingt gut dokumentiert ist und den Name "Unmanaged API" trägt. Die Unmanaged .NET Api stellt ein Set von COM-Interfaces zur Verfügung um auf die Meta-Daten eines .NET-Assemblies aus native Code heraus zuzugreifen. Eine Populärer Anwendung dieser API ...
Basically:.NET 2.0 is too cool :))) After exploring the smo classes the last part of the afternoon was about creating migrating the data. I hadn't used the ado api fully but remembered something about the commandbuilder. My conclusion : Worth taking a look at. I do realise that it isn't the worlds prettiest sql that gets generated but it gets the job done. And in the case of my 125 tables that i need to migrate FAST it will save me about 1-2 weeks of writing import procedures etc. Generic datatable ...
table of contents Introduction. 3 Context. 3 Adapter Communication Patterns. 3 Implementation. 4 Design Time. 4 Runtime. 8 Registration. 9 Case study. 10 Conclusions. 10 Introduction So when actually you will think of writing a custom adapter? There are various BizTalk adapters developed by third parties that could be leveraged in your integration project. But what happens if the adapters available do not support the functionality that your solution requires? What if you have your own custom server ...
Lately, I have been doing rather large data migration to and from SharePoint Portal Server 2003 using the API and was running into performance issues (Not a surprise really). Anyhow, I needed to find out some basic information about memory usage as well as some of the .NET related information. I found the solution with Process Explorer, written by Mark Russinovich. The tool is available via this link: http://www.sysinternals.com... When you first launch the application, ...
Partha, a gentleman who posted on my blog, left some suggestions that ultimately made getting the page and browser hwnd much easier. I made some slight changes to his code to do what I wanted, and here's our result: Public Function OpenBrowser(byval URL,ByRef strBrowser, ByRef strPage) Dim oIE 'As InternetExplorer.Application Dim WaitCount 'As Long Set oIE = CreateObject("InternetExplo... oIE.visible = 1 oIE.Navigate2 URL WaitCount = 0 Do While oIE.ReadyState <> 4 And WaitCount ...
There is several factors can affect the performance of an ASP.NET application 1) Page settings. in a @Page directive in their source code. Settings that can affect performance and scalability such as : • Debug. For production sites, this setting should be false to enable batch compilation and remove the overhead caused by additional debugging information. For pages with no specified debug value, the setting is determined by the value of the debug attribute of the compilation element in the ...
Tom Rizzo has moved from the SQL product team to the SharePoint product team, and I have been following his blog here But here is an entry from Scott Guthrie's blog (ASP.NET product team) that sounds like really good news for developers using the next release of SharePoint (due out 4th quarter 2006??). I was able to attend a couple of Scott's and a couple of Tom's presentations at Dev Connections last month; both of them were some of the favorite conference sessions. I'll definitely be watching Tom ...
In .NET 1.x if you wanted to modify the stack size of a thread you created you would have to go through some pretty nasty code .. Here is a hint :) [DllImport("kernel32.dll", SetLastError=true)]static extern int CreateThread (ref SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, ref int lpStartAddress, ref object lpParameter, int dwCreationFlags, ref int lpThreadId) In 2.0 a new overload has been added to the Thread class to support alterring your stack size directly through managed code http://msdn2.microsoft.com/... ...
This weekend, we migrated Where's Tim to ASP.net 2.0 and Google Maps API v2. We also added some "Get directions" functionality to SmartStart of Kansas Find a location page. And we just got dugg! [Where's Tim] [EnGraph] [Google Maps] [GPS] ...
I am working on a DLL that I can call that will open an instance of Internet Explorer, and then return its Browser handle and Page handle. I am trying to write procedures that will handle functionality totally independent of the text in the title, the text on the page, or whatever else QTP uses to reference these objects. Basically, I am frustrated having to fix regular expressions or whatever to make sure my references work. It seems like a no-brainer to me that I should be able to open a browser, ...
One of the things we did with ASP.NET 2.0 was to work very closely with the SharePoint and CMS teams within Microsoft to enable much richer architectural and developer integration than we had with previous releases. Specifically, we tried to drive many of the core architectural requirements and scenarios they and other portal/CMS vendors had into the ASP.NET 2.0 runtime (for example: web parts, virtual path providers and compilation, site navigation, membership and role management, personalization, ...
The last month was pretty rich in terms of the free downloads I found available online, so, thought I needed to list some of those, and clearly got busy/late for that! however, I thought I'll also drop the list in case someone missed any. Form Scott Guthrie (AKA: ASP.NET Hero)'s Blog: Source Code for the Built-in ASP.NET 2.0 Providers! This really a BIG hit. The source code for the whole set of ASP.NET 2.0 providers downloadable for free, and also, Scoots points to 130+ pages of awasome pages walking ...
I am sailing: The Two Connect BizTalk 2004 Adapter for SalesForce.com is a full feature BizTalk 2004 adapter with two-way transmit and one-way response functionalities and a design-time Schema Wizard. The adapter also takes advantage of all features available through the BizTalk 2004 Adapter Framework. The adapter leverages the functionality available through the SalesForce.com Web Service API to provide a quality integration solution for the SalesForce.com solutions Platform. Features Adapter Schema ...
Anyone ever try a WinAPI callback function call in VBScript? Here's the deal: I am trying to write a procedure that will open an internet explorer browser, and return the browser's Widows handle. I can use the EnumWindows API call to do it, and I can write something in VB6 that does this very well. However, I need to write this so that it is portable without dealing with DLL hell issues. Also, QTP needs to be able use it. I am going to see if I can get this to work, but thought someone might've tried ...
Sometimes is very usefull for testing purposes to create a VS2005 instance, and them use that instance to have access to the DTE API stuff. So, here is a code snippet to create a VS2005 instance and to open a solution: Type t = Type.GetTypeFromProgID("Vis... DTE dte = (DTE)System.Activator.Creat... true); try { dte.Solution.Open(@"C:\Temp... //Wait some seconds to let VS open the solution System.Threading.Thread.Sle... } finally { dte.Solution.Close(false); ...
or how Flash broke SQL A few weeks ago, my SQL Server 2005 installation lost the flat file data source option and could not import or export no matter the format. An error was thrown up. ===========================... connection manager could not be created from one or more data sources. (Microsoft Visual Studio)====================... The connection type "OLEDB" specified for connection manager "{F3C4B394-E196-4AFD-A2F6-3... is not recognized as a valid connection manager ...