api

How to create a new source code branch using TFS API?

Hi I am trying to create a new branch using the API, and have used both PendBranch() and CreateBranch(). The problem with CreateBranch() is it commits immediately and I want to be able to add comments as the branch is checked in. So, I what I did is shown below. Basically I get all the information like server item and local item to be ...

Why shouldn't I give outsiders access to my database?

Lots of sites today have APIs that allow users to get data from the site as XML or JSON using a GET HTTP request. Flickr and del.icio.us are example of sites with APIs. These APIs require the server to access the database, and then output the result as either XML or JSON. Why do we need this translation though? Why not just create a us...

What is a good example of an __eq__ method for a collection class?

I'm working on a collection class that I want to create an __eq__ method for. It's turning out to be more nuanced than I thought it would be and I've noticed several intricacies as far as how the built-in collection classes work. What would really help me the most is a good example. Are there any pure Python implementations of an __eq...

How to get the response?

Hello! My problem would be that I make a POST request with jqurery, and if there is an error I modify the HTTP status to for example 401 and echo the error. (I'm using $.ajax();) So, the problem is that I don't know how to print out that error message. If I check it in firebug I get something like this: {"*THE URL OF THE FILE*":{"rc":4...

BIRT report created via eclipse throwing error on execution

I've a particular birt project which I've created using the eclipse ide. I am trying to understand how to deploy the report without having to use alternatives which would cost something. So ultimately I am left with the birt report engine api. I've downloaded the report engine runtime package from the birt-exchange web site. I've found ...

Writing data to cells in Excel 2007 / PowerShell

Hello, Why can I not write values to Excel using the Worksheet class, or Sheet interface? I would expect to be able to do something like this: [Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Interop.Excel") $Excel = New-Object Microsoft.Office.Interop.Excel.ApplicationClass $Workbook = $Excel.Workbooks.Add() $Worksheet = $...

how to check special permissions in facebook

hey how can i check in javascript if user has granted my site the publish stream permission ? ...

What's the recommended way of designing my public-facing API to support multiple POD types while minimizing the chance of breaking binary compatibility?

I'm currently designing a public-facing C++ API for a product which will require a precompiled binary/DLL (it will be cross-platform). I'd like for the API to allow the user to use any POD we support (where applicable), however the base requirements are maximum flexibility and binary compatibility. I'm doing something a bit similar to CP...

WURFL's New API Question

Hi all, I have a simple stupid question. Here's the problem, for years, my company has been using the old WURFL PHP API. Now, with the release of the new WURFL PHP API that promises a better performance, we want to use it. What I want to ask is, how do I update the cache? Can I use the old *update_cache.php*? ...

Cannot get a list of valid users in TFS for AssignedTo field while creating new Workitems via API

Hi I am trying to create new workitems via the TFS API and this is the method I have used below to get a list of valid users who can be assigned workitems. Somehow, it gives me a null reference exception on validUserSids line. Anyone know what's wrong here? Thanks Tara. private string[] TFSUsers(string server) { // Get a Re...

Twitter: Unread direct messages using the Twitter API

Twitter: I must be blind, but how would I find out how many unread direct messages a certain user has? I'm using this documentation: http://apiwiki.twitter.com/Twitter-API-Documentation ...

Boolean method naming readability

Simple question, from a readability standpoint, which method name do you prefer for a boolean method: public boolean isUserExist(...) or: public boolean doesUserExist(...) or: public boolean userExists(...) ...

Does sourceforge.net have a search API?

Does sourceforge.net offer an API of any sort for accessing their data base programmatically, e.g. for searching all projects that use a certain programming language? ...

how to build plugin to connect to 3rd party API in Rails

This may seem a bit subjective but I am also looking for specifics on implementation if possible. The existing popular how-to's on creating plugins seem to assume you want to get into the guts ActiveRecord itself, or write an acts_as_* plugin, which is not really the case here. The requirement is to connect to a non-RESTful API at a 3rd...

Updating Twitter Status: Character Escaping and URLs

Hello all, I pass text from a POST variable from a form on my site to Twitter and I save this message on my own site. When I view the entry on my site it is absoultly fine. However, in some cases when there is an apostrophe in the message twitter updates the status of a user but escapes the apostrophes and this can be seen on the users ...

Alternative to google visualisation api

Is there a good (&free) alternative to goggle's visualization api? Some thing to provides support for drawing 3d charts using js and/or SVG , that also doesn't require installing new plugins on the clients browser ? ...

speech to text conversation through API

Hi, can anybody suggest API either free (that's very good) or paid to convert speech in to text for iPhone application. Thanks, AAryan ...

Library to read a MySQL dump?

I am looking for a library that will allow me to read a mysql dump. I don't want to have to create a MySQL database and import the library and use the MySQL API. I would prefer simply a library that can parse the mysql dump format. I prefer a python library, but other scripting languages are okay. ...

Google Spreadsheets API - updateCell via PUT or PHP?

I cant seem to get updateCell to work. API reference: HTP>code.google.com/apis/spreadsheets/data/1.0/developers_guide_php.html This is equivalent to sending an authenticated PUT request with the updated cell's XML representation to the URL: PUT HTP>spreadsheets.google.com/feeds/cells/key/worksheetId/private/full/cell/version I h...

Cannot add new Workitems using TFS API

Hi I am trying to add new workitems to the TFS repository using the API, but when I validate the workitem before it is saved, it returns an error. I previously got exceptions regarding the field definitions for a bug namely, Symptom, Steps to Reproduce and Triage. (Error code TF 26027). The code snippet is shown below: Can anyone tell me...