api

What characteristics for a new framework/API most entice you to start playing with it?

Small learning curve? Good examples? Cost? etc.. ...

Some nice tutorial to introduce myself into the Telepathy API?

I would like to develop a bot for Empathy, but I don't know how to get started. I've read the Telepathy wiki, but I think it's very bad documented, does anybody know any nice tutorial? Better if it uses Python or C bindings. Thank you. ...

How to inherit java classes in a Ruby on Rails environment

Background: I have a Java application that many programming clients interface with. Recently, a few clients wanted me to develop an API to allow them to inherit my application's Java classes in their Ruby documents without having to change their developing environment to Jruby - they want it to remain Ruby on Rails. In this post, it wa...

Facebook Connect API issue with authentication token

I have implemented the following code below according to the documentation and can get it to connect and display user id... <?php define('FACEBOOK_APP_ID', '87939462878'); define('FACEBOOK_SECRET', '1ab6346bc51329831998985aba200935'); function get_facebook_cookie($app_id, $application_secret) { $args = array(); parse_str(trim($_CO...

Image cropping like facebook

For those that have been on facebook it allows you to upload an image to use as your avatar, and if that image is too large you can drag it around in a container to set the co-ordinates of the crop. Can anyone Help me out to implement this functionality in c# ASP.NET ...

Adding post commits to Rails application?

Hi Everyone, I am using the following gem in my rails application: http://github.com/fnando/post_commit I am trying to learn how to send data to service providers such as Campfire on creation of a record in my application. Using Campfire as a test I have the following in my kase.rb model: # Campfire post_commit :campfire do author...

Flash Search Question...

Hi guys... i am trying to make a youtube search bar in my flash site and when users enter the keywords, it will return the list of the videos. Users would be able to watch them if they click them. I checked out the youtube api but still have some trouble understanding the concept. I wish someone here can give me a clean head up and s...

Sanity check: Is the Adobe ActionScript 3.0 Facebook library deprecated?

Unless I am doing something completely wrong, it seems the "official" AS3 Facebook Library from Adobe seems to be out of date. It seems to only return about 3/5 of a user's data, with Status Updates being the most notably missing piece. The last commit appears to be at least 8 months ago. The library also appears to be using the older RE...

Putting loads of HTML, example code and text within doc-tags?

Hi, I am in a need of documenting a library. However, I can't seem to decide what approach to take. I think the most important thing for me is that the documentation (API doc) is up-to-date, always and that it is very helpful (e.g. provides sample codes and has plenty of description). However, is it a problem if my source code is full o...

Java: balanced binary search tree

Given my recent (somewhat successful) question: http://stackoverflow.com/questions/3387274/algorithmic-issue-determining-user-sessions I'm pretty sure that the way to solve it cleanly is to use a balanced binary tree (which would give an n log m solution to the problem, where thankfully the m is going to be quite small, even tiny, com...

C++ Data structures API Questions

What C++ library provides Data structures API that match the ones provided by java.util.* as much as possible. Specifically, I am looking for the following DS and following Utility Functions:- **DS**: Priority Queue, HashMap, TreeMap, HashSet, TreeSet, ArrayList, String most importantly. **Utility**: Arrays.* , Collections.*, Rege...

Is there an api for Google News autosuggest?

Hi there. A few days ago I was introduced to the Google autosuggest api here: http://google.com/complete/search. I built a little Yahoo Pipe to pull out the top 5 suggestions from the 5 biggest English speaking Google sites and wanted to do the same for Google News. Changing the above url to news.google.com/complete/search works but only...

Updating UI realtime in RoR after API Calls

Hi All- I am developing an app using the Amazon API found here, which unfortunately only allows a small amount of records to be returned at once, which causes a significant slowdown when loading any more than one call's worth of items. I'd like to make the returning of these records more seemless. I figure the way to do it, is to use ...

Loading Country, State and City. (API)

I want to load Country, State and City. Is there any API? ...

Javassist Vs. Java Compiler API

Hello all. In a project I'm currently working on, I need to generate Java classes at runtime. I also need to avoid using reflection when using these classes later on. I've been search for current solutions to do this, and found Javassist and Java 6 Java Compiler API. I'm confused though: What does Javassist uses to generate classes?...

Facebook api: show dialog window for the user select page (manage_pages extendend perm).

Hi. I want ny users to give ny app "manage_pages" extended pemission but i want my users to be able to select which of their pages they give permission to. I have this code which is responsible to autenticate and get the users permissions: $('#btn-connect-facebook').click(function(){ FB.login(function(response) { if (respo...

OpenLayers API Documentation

Hi! I'm doing a project using OpenStreetMap. There is this one working code snippet that I found that I'm using for adding markers: ... styleMap: new OpenLayers.StyleMap( graphicYOffset: -25, // shift graphic up 28 pixels label : "${name}", // Set the external graphic and background graphic images. externalGraphic: "${icon}", b...

Styling google map marker when using markerManager

I have a big list of markers (pinpoints) stored in an XML file and am using markerManager to load these on a google map. I'm having some difficulty understanding how I style to marker. I understand that you can add some simple css to a marker like: <div style="width: 200px; height: 100px;"></div> but don't know how to integrate that ...

What is the best way to handle the restriction of an API?

Our core domain so far has an abstraction called PersonName with methods for firstName, lastName, middleInitial etc. As we are expanding the domain to Spain, we figured that they only talk in terms of name, firstSurname and secondSurname i.e. middleInitial etc have no significance to them. The PersonName interface is currently being use...

Linkshare callback error.

I keep getting this error for linkshare. *REPORTING ERROR: Our reporting servers are currently unavailable. We apologize for the inconvenience, please try again later.* What i am trying to do is call the api and get the results. on our website, when some user clicks on any linkshare banner, and make a purchase then certain points are ...