api

Amazon SQS region from EC2 Instance.

If I create SQS queue from an EC2 instance without specifying the region in the API call, in which region will the queue be created. When I run boto.sqs.regions() I get 4 regions from an NON ec2 machine, I get [RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1, RegionInfo:ap-southeast-1] from a EC2 machine in the As...

Is it good practice for a website to use its own API?

Is it good practice to develop the API while developing the site so the site itself actually uses the API? Or is there a performance hit if choosing to do this? For example, does anyone know if mature sites such as Facebook or Digg use their own API to CRUD (Create, Read, Update, Delete) or do they have their own backend? Thanks ...

Node JS POST method with authorization

Hello, I can't find anything in the docs on exactly how to do this. http://nodejs.org/api.html#request-method-149 I need to make a Node js POST with authorization something similar to this in ruby: url = URI.parse('http://www.example.com/todo.cgi') req = Net::HTTP::Post.new(url.path) req.basic_auth 'jack', 'pass' I am tryin...

PHP website with RESTful API using Django. Possible? Good Idea?

I have an existing website written in PHP. I would like to add a REST API. I like how easy creating a RESTful API was using Django. Are there any CONS for using Django for the sole purpose of creating an API on a PHP powered website? Thanks in advance. ...

Handling Optional APIs in J2ME

What is the right way of working with optional APIs in Java Mobile? Does one need to make different versions of their app? Or is it enough to check APIs availability at runtime using System.getProperty()? Let's say I'd like my app to support JSR-256 (the Sensor API). Would importing classes from javax.microedition.sensor and register...

C# API generator

I have a few dll files and I want to export all public classes with methods separated by namespaces (export to html / text file or anything else I can ctrl+c/v in Windows :) ). I don't want to create documentation or merge my dlls with xml file. I just need a list of all public methods and properties. What's the best way to accomplish...

Where do I start if I want to program something that can change the configuration of Keyboard/Mouse in Windows?

Configuration as in the options you see in the Keyboard/Mouse settings under Windows. I have some .NET programming experience. ...

Using the Facebook GRAPH API, can i find out how long two users have been friends?

I want to know the date that two people became friends. assuming i can get any kind of permissions from the user, is there a way to find this out. I want to be able to calculate how long people have been friends. perhaps friends since a certain time. etc. I cant figure out if this is possible. ...

A decent java bittorrent library

I need a bittorrent library for java that works properly I tried Snark,but it's more of a bittorrent program than a library Tried to use the jar,but couldn't know what to do with it in netbeans I also tried Java Bittorrent API,but it's no longer being maintained,and it's still in beta Are there any libs out there other than those? T...

Comparing one array against another in rails

Hi, I am using the 'contacts' gem in rails to retrieve a users contacts from their mail application. It returns the contacts like so: ["person name", "[email protected]"], ["person name", "[email protected]"], ["person name", "[email protected]"] etc... I want to compare this list to the Users already signed up for...

Youtube feed published date problem

Hi, I'm pulling in a feed for my youtube playlist into yahoo pipes (to create a mashup along with other feeds). Here's my youtube feed: http://gdata.youtube.com/feeds/api/playlists/8D04CB7477AF17CD . The problem is that the only date info this feed has is the 'updated' date, which is always the current date and time - if you access that...

How many requests can be made to google maps api without ban?

I'm using a autosuggestion for adresses through google maps API that I want to be as fast as possible. Currently, I have added a 10ms delay to my script in order to avoid being banned for to many requests, is this necessary. How many requests can be made without getting banned? Ps, i'd love some appropriate tags for this, I really can'...

Provide Programmatic Access to All Data Available in String Form: toString()

Bloch said: Provide Programmatic Access to All Data Available in String Form. I am wondering if he means to override toString() which should involve 'all data available'? I think the 'in string form' means that the string is for human reading, so override toString() is enough for the advice. Am I correct? ...

Adding Google Maps (API V3) support to a Ruby on Rails app

Hi there, I'm searching for a good solution for integrating google maps into a ruby on rails 2.3 app. I know there's a project called ym4r but it seems old and not so maintained. Should I use directly the Google API itself? Thanks! ...

What is ‘power-to-weight ratio’ of an API?

In Bloch’s presentation, he said designer should look for good power-to-weight ratio for API. Moreover, he also stressed that ‘Conceptual weight more important than bulk’. I guess the weight is for ‘Conceptual weight’, bulk is for number of methods of a class. But I couldn’t understand what ‘Conceptual weight’ is, what ‘power-to-weight ...

Should I still provide basic authentication for my API

My latest API is going to "ship" soon. Coming from a "release early and often" background, I'm planning to implement oAuth in a later release version. What are the reasons why e.g. Twitter removes Basic Auth from its API? What are the pros and cons and maybe security implications using Basic authentication in any API? Best Henrik ...

consuming rest api (like in basecamp) from my .Net application

Hi Every, How can i consume the restful api(like the basecamp)from my .Net applications. ...

Google translation with jquery and Google API - apostrophes problem.

I apply this script to my blog http://snipurl.com/10ympt but apostrophes are converted to &#39. How can I make the translation to ignore those characters? Help/Thanks! <script type="text/javascript" src="/js/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <scrip...

Import contacts from gmail,yahoo,facebook etc

Possible Duplicate: How import contact from yahoo/gmail/hotmail using php script I want to import contacts from GMail, Yahoo, Facebook, Twitter, etc.. I'm using php, are there any tools for this? ...

catch printing event and data.

hello all. In our project we try to get the data that the program is sending to the printer (can be from different program) how can i catch the event of this and the data in C# thank you ...