Tag | API Posts

Here's a good guide on the MSDN Coding 4 Fun site about accessing the Flickr API using .NET.

I was checking out my Amazon account one day when I came across a blurb for their “Mechanical Turk” service, at http://www.mturk.com . It's built for what they call Human Intelligence Tasks (“HITs“), which computers can't do reliably yet. Tasks like comparing two photos to see if they're the same person, reading two product descriptions to verify if they're the same product, or summarizing a podcast in 200 words or less. You can even register (using your normal Amazon account) ...
Aral Balkan on Jeremy Keith, Hijax Riaz Kanani on the day so far at Barcamp London Matthew Pennell on Day One of BarCamp Frances Berriman on Day one, part one and also Day one, part two, Day 2 Riaz Kanani on morning of day 2.. v early morning James Stewart on day one Mike Davies on day one Write up of Matt Webbs future apps thing "The first rule of Barcamp..." write up by Luke Redpath "Talking about widgets" Jay on the widgets session Saturday afternoon "Talking about widgets again" Steve on the ...
Well I did get the updates made as promised. These updates include post editing using third-party tools that use the MetaBlog API (such as Windows Live Writer) and a more responsive Main Feed for the site. However, due to the link change in the feed, they will republish in your aggregator. I wish I could do something about that, but there isn't any way around that ...
In WSS v3, the concept of folders has been introduced into lists, and a folder is also a Content Type, which basically means that you could define your your custom columns/fields against a folder as a content type to track metadata of interest. For example within a Book list, you could have Genre as a Content Type derived from Folders, which could contain a series of book items. I am not going to argue that genre is more appropriate to be a field against the book item rather than a folder, but bare ...
We have two major problems with Geekswithblogs.net, well more but these are short time development problems I can fix quick. Here are the problems I hope to have fixed tomorrow. MainFeed flakes with Pheedo link Casting error when editing using MetaBlog API (Live Writer) These problems should be easy to fix and I should have them ready for tomorrow morning. If you have other site issues, use the Site Problems wiki page to publish your issues. [Update] Edit with MetaBlog API (Live Writer) will work ...
Last week I got some emails from colleagues regarding “C# Coding Standards”. Lance Hunt’s “C# Coding Standards for .NET” caught my eye and especially the part about Object Model Design. Always prefer delegation over inheritance. Avoid “Premature Generalization”. Create abstractions only when the intent is understood. Do the simplest thing that works, then refactor as time permits. Always make object-behavior transparent to API consumers. Always separate presentation ...
Billy McCafferty, another geek from GeeksWithBlogs, wrote about a project called “ASP.NET ActionPack”. The project is intended to leverage the same code-generation capabilities as Ruby-on-Rails, and does fairly the same job (creating Admin screens for Create/Update/Delete CRUD tasks), should end providing fair degree of classes customizations too. It's hosted on CodePlex by the way. I din't like Ruby On Rails since I saw some sceencast on it 2 month ago, and I have some comment on the ...
[This post is long, and is mostly a brain dump] I recently started a bender of coding where I am trying to move all of my transaction management code out of my Controllers (MVC controllers) and in to a more appropriate place. But since I am striving for a POCO model where in the hell can I put this code and still seperate all of my concerns? I start digging into "POJOs in Action" and see that Chris uses a class called a Facade to manage this transaction junk. It sits between the view logic and the ...

Remember guys use  the Metablog API service and the associated URL  http://www.geekswithblogs.net/[YOUR USER NAME]/services/metablogapi.aspx.

Hmm ... Well, I've got to admit, my first blog effort was a slight lie, I didn't actually use Live Writer to post it, I just copied and pasted the HTML (that I had to refactor :\ ) to make my first post, hoping that it would solve the Error message I was getting. It didn't. Ok, When I use Live Writer to either Post or view posts on my blog, I get "Server Error 0 Occured; User Does not exist". Apart from nullifying my existance :( I know I gave it the correct Service API as it downloaded my blog style ...
To me the adapter pattern is all about bringing someone elses code API into line with your Domain model. Their API may be a beautiful API but that doesn't mean that their concerns will match your concerns in the right way. Of course their API could be so clueless that the only to make sense of it is to hide it behind another class. These are both usage of the adapter pattern. Another benefit of the Adapter pattern is that it can keep your code decoupled from third-party code. By providing a wrapper ...
http://blogs.msdn.com/adiol... How to write a DCOM server in C# Well, why DCOM and not .NET Remoting? For one thing, DCOM offers a secure interprocess communication channel through TCP/IP... which .NET remoting doesn't have unfortunately. Also, a DCOM server can be hosted in almost any process, including Windows Services! The ideas are described below (this is pretty straightforward assuming you already know COM) 1) Your server process will expose a COM class factory ...
The Facts OK, as everybody, I had to write my first Windows Live Writer post, like everybody else did, that's what you are reading right now! If you haven't checked it out already, Windows Live Writer is a blog authoring software from Microsoft, which has become a top topic in the blogsphere lately; it's released with an SDK which some people also had good experience with, used mainly for posting to Windows Live spaces, yet supports many other blogging engines including Movable Type, Blogger.com, ...
Live Writer is another great tool for posting blogs offline. I used to use w.bloggar, but the site is down and who knows what is going on with the writer. Configuring Live Writer is very easy to do, here are the steps you need to take to configure it with Geekswithblogs.net. (Sorry for the long post, but people are asking for this). Start the Installation File: Agree to the terms (or don't install and stop reading): Decide if you want the toolbar, you can see my decision here: Go to Start, Programs, ...
I am currently working on a TFVC utility. Part of the functionality of the utility is for the user to select a sourcepath and have the system return all the branches that are related to the path. Here is what I was able to come up with to solve this. The sample will return an Item array that you can then work against to get the desired information. private TeamFoundationServer tfsServer = null; private VersionControlServer vcs = null; public Item[] GetMyRelatives(Item sourceItem){ tfsServer = TeamFoundationServerFactory... ...
uwin/uwin.mm mm document. The UWIN package allows UNIX applications to be built and run on Windows XP/2000/NT/ME/98/95 with few, if any, changes necessary. UWIN source and binaries are available under the open source Common Public License 1.0 at AT&T AST/UWIN open source downloads. UWIN contains: Libraries that emulate a UNIX environment by implementing the UNIX Application Programming Interface (API) Include files and development tools such as cc(1), yacc(1), lex(1), and make(1). ksh(1) (the ...
Kirk Allen Evans' Blog : Why Can't I Find a List of Zip Codes, Cities, and States?. Kirk, who’s part of the team that I just joined @ Microsoft (that’s another story…) has a post on Zip Code lookup and interaction. There’s a number of comments on how to get the data and a few good pointers: USPS as an API http://www.usps.com/webtool... Zip code DB http://sourceforge.net/proj... Yahoo Geo Coding API http://developer.yahoo.com/... The ...
Today I started messing with the Mobile Client Software Factory. It has a lot of potential and is backed by the right people so I thought it could come in very handy. I'm new to PPC development and recently got handed an app to build upon and improve, the initial developer being an offshore developer. Being a web developer used to such luxuries as an ORM, full API access on things such as UI controls and ADO when needed, it came as a bit of a shocker to discover the compact framework really is compact! ...
http://notepad-plus.sourcef... Notepad++ is a free source code editor (and Notepad replacement), which supports several programming languages, running under the MS Windows environment. This project, based on the Scintilla edit component (a very powerful editor component), written in C++ with pure win32 api and STL (that ensures the higher execution speed and smaller size of the program), is under the GPL Licence. This project is mature. However, as you can see it's a one-man-project, ...
Resume – Senior, Hands-On, .NET, C#, VB, ASP, XML, SQL, SharePoint, Crystal, Reporting Services Developer, Team Leader, Hard-Core Coder Rodney Vinyard, 29 Windermere Road, Montclair, NJ 07043 rodney.vinyard@gmail.com · Seeking North NJ/Manhattan .NET/SQL developer job. · Hands-on .NET, C#, VB, SQL, ASP, XML, XSLT, Reporting Services, Crystal. · 30 years of productive, software engineering experience. · Inventive, focused, hands-on software designer, engineer & coder. · Effective leader, writer ...
Clint Batman from ThinkGeo was nice enough to let me use their geocoding engine on Where's Tim. Their engine supports regular geocoding (enter an address and get latitude / longitude) and reverse geocoding (enter lat/long and get address). The API is easy to consume (3 functions) and the results are intuitive. So now when you are viewing Clint's real time location on Where's Tim , the extra stuff like city information, weather and Yahoo traffic will work ...
Microsoft is changing it’s development technology very frequently. By the early of this year I started to learn .net 2.0 and VS.NET 2005 seriously, and with in few months I was just able to capture few new features of this, although I was also engaged with project management, UML, Ajax and other software engineering issues, as I need to be on the track with other development tracks. Well, not only Microsoft, but also other technologies, relevant to software development is changing very frequently. ...
When a new development technology comes, the first thing that makes the developers busy, crazy and tensed is “how I can see the first ‘Hello World?’” Well of course you need to successfully install the corresponding software into your pc, then can write a new or open an provided sample, generally which is as simple as showing the “Hello World” message. After then the developer goes through the more complex samples, finds good tutorials and start discuss about it ...
Welcome to Basically Basic! About Me Hi, I'm Alex Loret de Mola, and I'm a VB programmer. I know the last two words in that sentence sound contradictory to some people: and indeed, I can't blame you for feeling that way. However, I'm hoping that this blog will help to change the perspective of VB doubters, and help those who have already succumb to temptation. On this blog, I'll be talking about how you can perform advanced security, set up complex data structures, manage large scale projects and ...
Innovation keeps on hitting me in the face, amazing ideas I wish I had thought of first. Comes a company called Flickr of which I'm sure you all heard about already, many times - and offers a great product, mostly for free. I will not go in to what they offer - its pretty simple and everyone knows about it. In addition to their "main" offering - they also created an open, free API to access all that, along with a scheme to allow other entities to authenticate for you (only if you allow them). Since ...
Yesterday, I was implementing site wide search functionality for the site I'm working on currently. The site consisted of both&;static XHTML pages as well as dynamic ones (dynamic in the sense that their content comes from DB based on query strings), and is going to be hosted on shared hosting service, so, implementing the search via DB queries or some sort of indexing service (or even writing my own index engine as windows service or so) were all non-available options. I thought, why not use ...
.Net Directory Services Programming – C# - Part 3 Topics DirectorySearcher – the other critical class in the DirectoryServices namespace. Review Because a lot of your Directory Services (DS) development will involve querying DS for data, it makes sense that this is a powerful class offered in the namespace, and below are some of the features: DirectorySearcher – Performs the initial queries against AD SearchResult – A single object reference from a search performed by DirectorySearcher ...
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'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 ...
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!