api

SharpSVN is there an easy way to Export a previous version of a file at a revision where it was deleted? [Debunked]

Hello, when going through revisions I would like to download the last version of a file (That has been deleted in the revision the code is at) Right now I have been trying to export the file at the ((revision number I am at) - 1) however that does not always work. Is there an easy way to do this? Thanks. Edit: Well after doing some exte...

how to Custom build a javascript API based on Jquery and some questions about the syntax used in Jquery.

Hi all, I come here with quite a bunch of questions so lets start: I want to know some things about the syntax used to make jquery as I wish to learn from it an use it for my self. Question 1: The starting of the jQuery library (function( window, undefined ) { // Define a local copy of jQuery var jQuery = function( selector, conte...

How do you render hashes as JSON in Rails 3

I have found how to render ActiveRecord objects in Rails 3, however I cannot figure out how to render any custom objects. I am writing an app without ActiveRecord. I tried doing something this: class AppController < ApplicationController respond_to :json ... def start app.start format.json { render :json => {'ok'=>true}...

How to get BS_DEFPUSHBUTTON to work?

My button has these styles: WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON it creates and lights up properly, but in my edit control, when i press ENTER, it does nothing! Heres the styles of my edit control: WS_CHILD | WS_VISIBLE | ES_AUTOHSCROLL | WS_TABSTOP I am not using a dialog, i have created my windows using CreateW...

API of price-comparison website. is there any ?

i'm try to work on e-commerance stuff. i would like to know whether there a price-comparison website that support API ? ...

Sinatra - API - Authentication

Hi All, We going to develop a little API application in Sinatra. What are the authentication options available to secure the API calls? Thanks, Imran ...

Insert html using jquery .html()

I want to insert a large chunk of html into a pre-existing <td>. I am using this method: $("td#content").html(LOTS_OF_HTML_CODE_HERE); But it doesn't work. I am a noob, there are a lot of quotes and ' within the HTML chunk that seems to be breaking it. What is the correct method for doing this? ...

blogger (python) API - How to query none draft blog entry

I would like to retrieve through the python blogger API the list of published (not draft) blog entry from my blog. What parameter do I need to add to specify draft=false. query = gdata.blogger.client.Query() query.max_results = 3 feed = bc.GetPosts(blog_id=blog_id, query=query) ...

Skinning MSI pckages.

I have a game application developed using C#. Is there any way to skin my MSI (installer) package ? ...

How to read out specific values from an OWL Ontology using Java.

Hello, i´ve got an OWL Ontology: <?xml version="1.0"?> <rdf:RDF xmlns="http://www.owl-ontologies.com/Ontology1272923485.owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xml:base="http:...

how to update a single contact's group membership with Google Contact API and .NET?

I want to retrieve a specific contact, and update its group membership. I already know the self link of the contact. To get the specific contact, the developer's guide says to do this: //The example assumes the ContactRequest object (cr) is already set up. Contact c = cr.Retrieve<Contact>("http://www.google.com/m8/feeds/contacts/liz%...

Java: bounded wildcards or bounded type parameter?

Recently, I read this article: http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html My question is, intead of creating a method like this: public void drawAll(List<? extends Shape> shapes){ for (Shape s: shapes) { s.draw(this); } } I can create a method like this, and it works fine: public <T exte...

Public API design - handling failure with a http code? Is that REST?

I am just about to make a webservice available for fellow programmers in my sector using PHP on my own server. As this is the first time I have done this, I first investigated APIs that I frequently use, Flickr etc. My service returns granular data extracted from a very large csv file by examining GET arguments, it is read-only. The ...

How can I use the Twitter API to get tweets for a specific user and timeframe?

I've been doing some research into using the Twitter API, and I'm not sure if I'm understanding it correctly. I want to get tweets from a specific user for a specific time-frame. From what I can tell, using the search function to specify a date range doesn't work because only the last 7 days are kept. I could just get the tweets and work...

how to get a song's daily sale data from iTunes

Is it possible to get a song's daily sale from iTunes (is iTunes actually providing this data through an API call)? I'm looking for a way to get the download count of a/any specific song, basically track its download rate through time. (And yes, download may include free and/or purchased songs, doesn't have to be just sales but rather h...

Facebook Chat login

I can fetch access_token of facebook using Facebook API that is http://api.facebook.com/restserver.php . Is it possible to use the same Access_token to login at Facebook chat. ...

Develop Youtube Client for Android from Scratch

Hello! Is it possible to develop a Youtube client app from scratch using the existing Youtube Data APIs? I would like to create one that supports Android 1.6 and above. ...

Is there an official way to authenticate for Google Data API on Android using AccountManager accounts?

I'm trying to use the Google Data API for an installed application on Android 2.1. I don't want the user to have to enter their credentials if he already has an account configured on the device. Thus, I'm using the AccountManager with Account type "com.google". But where to go from there? There are no samples from Google on how to do Go...

PHP: String not appending

I'm building up a url to execute with curl. the url will call an api for the LMS that I'm using. Before being able to call anything else, you need to receive a token from the LMS to put in the url. I have gotten the token from the api, and I can echo it and it shows up just fine, when I echo the url after appending the token to it, it do...

[PHP] can we pass $_POST value by clicking link?

I need to build some php API to upload an image cross subdomain. Example, upload script located at http://sub.domain.com/upload.php and I neew to upload an image to http://www.domain.com/media/ I read some content at http://www.v-nessa.net/2009/02/09/simple-api-writing-part-i and i suspect that can we pass $_POST value by clicking lin...