api

Web browsers layout engines, question about API

I'm a little new to GUI things, but I read about Webkit, Presto etc.. all these layout rendering things. How do they for example draw HTML etc. on my Windows form? Take Opera, I've this window form... all that flash, and images, text. Is that all GDI for example? Or have they created their own API for that? And that API, who does that ta...

RESTful API: How to model 'request new password'?

I am designing a RESTful API for a booking application and was quite happy to see I could map all details of the application to the 4 HTTP methods. /users - GET, POST /users/({id}|myself) - GET, POST, PUT, DELETE /users/({id}|myself)/bookings - GET, POST /users/({id}|myself)/bookings/{id} - GET, POST, PUT, DELETE Example: Updating my ...

FireFox API install extension

Is there an API or library for install, update, uninstall FireFox extensions ? The article (https://developer.mozilla.org/en/Adding_Extensions_using_the_Windows_Registry) seems like a legacy information... I have installed FireFox 3.6.3. However, I don't see "HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions" in my registry: [H...

How can I close my software in a safe way?

Up to now I used my application as a stand alone product. So, when user pressed "Stop" button I called System.exit(0); and it was fine. Now my application will be called (in a programmatic way) from another program. So, I afraid that System.exit(0); will kill not only my process but also the external software which started my program. ...

Looking for a product to test an API

I am currently testing an API(developed in Java) where it has around 100 jar files, it calls webservices and talks to database. And one interface is exposed to user and it has around 50 methods. We are testing this API through by writing some workflows and junit test cases for these 50 methods. Are there any commercial or free produc...

Strange characters and encoding while using twitter API

I begun developing my own SIMPLE twitter client in my server (to bypass twitter.com blocking rule stablished by some dumbass at govt. office) Please check this image so you can see the accented characters converted into weird symbol: It is being developed with this class Twitter PHP class by Tijs Verkoyen This is my heading code, ...

Creating a virtual, data-driven section of a Wordpress-powered site

Hello all, I want to create a plugin for wordpress to automatically serve pages containing data pulled from a provider's API. The API returns one or more records containing data for that record and I simply want to have the plugin intercept the request, call the API with parameters pulled from the request URI and display the data using...

Twitter Substring Searches

If there is a way to do this, it should be a fairly straightforward question. Using the twitter search api, is there a way to return results that contain a part of the word (searching "#dog" would return "#dogs" as-well)? Thanks ...

Unlimited SMS API/Gateway (Sending and Receiving)

I am creating a chat application which requires that users be able to send and receive sms messages through a web interface. It would be somewhat similar to the text messaging service available in yahoo mail or in aol instant messenger. The situation is this: Given the high quantity of messages that would be sent and received, paying on ...

RESTful API: How to handle translated textfields in representations?

I am designing a RESTful API for a booking application. There are accommodations that you can request a list or the details. As the application targets a multi-language audience, the descriptions are (sometimes) available in different languages. Now I'm not sure how to handle these translations in the representation of an accommodation...

get sentence splitter annotation set offsets through GATE API

I am using GATE and i am using ANNIE sentence splitter. I would like to get each sentence's start and end offseet through the GATE API. Does anyone know how can i have access to these annotation set? Sorry for the poor grammar, thanks. ...

VS API to facilitate a process to automate fixing of code breaks after refactoring.

I have found myself countless times reorganizing our solution (72 + projects), in efforts to reduce code. A lot of times it involves pulling out common types/libraries and moving them around. It always involves a reptitive compiler error so i am having to fix the same compiler error in a lot of different places. I am looking for a gu...

Visual Studio 2010's SQL Schema & Data Compare - Can it be accesed from code?

The other day I tried out VS2010's SQL compare tools and thought they were awesome. I am wondering if there is any way to harness these tools in code written in VS 2010. ...

How to Generate Edifact message from a xml ?

Hello, I'm currently dealing with customs messages Beans in Java. After filling in the Beans with different values, I want to produce an EDIFACT CUSDEC message corresponding to each message. For each attribute of a message Bean, I have the information to put the attribute in the right place in EDIFACT CUSEDC format. Thus, I am looking...

possible to make codeigniter work with another framework?

the situation is this. my client (who also is a programmer) asks me to develop an address book (with mysql database) with a lot of functions. then he can interact with some class methods i provide for him. kinda like an API. the situation is that the address book application is getting bigger and bigger, and i feel like its way better ...

Facebook Stream.Get -- How to access data in array?

On stream.get, I try to echo $feeds["posts"][$i]["attachment"]["href"]; It return the URL, but, in the same array scope where "type" is located (which returns string: video, etc), trying $feeds["posts"][$i]["attachment"]["type"] returns nothing at all! Here's an array through PHP's var_dump: http://pastie.org/930475 So, from testing...

How to send XML and other post parameters via cURL in PHP

Hello. I've used code below to send XML to my REST API. $xml_string_data contains proper XML, and it is passed well to mypi.php: //set POST variables $url = 'http://www.server.cu/mypi.php'; $fields = array( 'data'=>urlencode($xml_string_data) ); //url-ify the data for the POST $fields_st...

Web Search API for Java

Hi, I need a Java library for doing web searches ( any search engine is good ). I should be able to to write code such as: WebSearch search = new WebSearch("Apple"); System.Out.Println("Results = " + search.Results.Count); Does such a library/API exist ? Regards, Sebastian ...

API testing tools

We have developed an API for an application using Java. Are there any special tools or products avaialble to test an API? ...

Api to analyse complex graph

I am looking for an API (preferably in python) that could be used to analyze complex networks. Basically I want to find things like: Average shortest path, Degree distribution Giant Component local clustering coefficient, global clustering coefficient etc.. Thanks ...