api

enum all values from a subkey

hey everyone, I have a subkey in my registry with an unknown numbers of values. I want to get all the data from those values in th specified subkey. how can I do that ? I don't know the names of the values and the number of values. I'm programming in C. thanks! ...

How to check if a static file in web server is updated or not?

Any Java API in client side can check its modified date? ...

Use of ebay API

I am given a task to R& D ebay api. As i have tried to explore on net i still have no clear idea that how and why to use it in my apps. Also are there many ebay api's for different purposes? Any sample code available using this api in objective c for iPhone. Any doc available providing general info about it. ...

mediawiki: getting the pages in a given category.

using the mediawiki API, I can list the pages in a given category. For example: http://en.wikipedia.org/w/api.php?action=query&amp;list=categorymembers&amp;cmtitle=Category:Physics returns: <?xml version="1.0"?> <api> <query> <categorymembers> <cm pageid="22939" ns="0" title="Physics" /> <cm pageid="24489" ns="0" ti...

Is it acceptable for an API to have documented bad behaviors?

Is it acceptable for an API to have bad behaviors (like segfault, bus error, memory leak) if the condition that would cause the bad behaviors is documented? Or should it always fail "gracefully" in all known conditions? ...

MySQL server has gone away Error while Selecting rows from a table

Using a C program with Mysql C API connected to a database and the initiation was successful but tried to do SELECT ,INSERT operations it throws an Error " MySQL server has gone away" on my VPS Server but the same works fine locally. The VPS Server Mysql Server version is : 5.0.81-community MySQL Community Edition (GPL) . wait...

Javascript synchronization methods

Hello, I am developing a simple web app that uses the Google translation API in order to translate a text into different languages and then back to the first one. The problem is that when I call google.language.translate(...) a callback function is specified which updates a textarea in my page. Here: while (i < translationNumber) { g...

mediawiki API & encoding

I'm using the mediawiki Api to update some pages with an experimental robot. This robot uses the java apache http-client library to update the pages. (...) PostMethod postMethod = new PostMethod("http://mymediawikiinstallation/w/api.php"); postMethod.addParameter("action","edit"); postMethod.addParameter("title",page.replace(' ', '_'));...

Facebook Invite Functionality Not Working For Iframe Application

Hi, I have registered an iframe application. I want to give invite functionality. I have copied a php code for invite functionality but the invite functionality is not working only blank page is displayed.My code is <fb:request-form action="<? echo $invite_href; ?>" method="post" type="<? echo $app_name; ?>" content=...

how do I use the json google translate api?

I am trying to use google translate from python with utf-8 text. How do I call the json api? They have a document for embedding it in html but I can't find a proper API or wsdl anywhere. Thanks Raphael ...

How can I suppress java compiler warnings about Sun proprietary API

I'm using the encode() method from the sun.misc.BASE64Encoder package. How do I suppress the compiler warnings that it generates? sun.misc.BASE64Encoder is Sun proprietary API and may be removed in And as a followup, why don't I see this warning in Eclipse? ...

When should I use varargs in designing a Python API?

Is there a good rule of thumb as to when you should prefer varargs function signatures in your API over passing an iterable to a function? ("varargs" being short for "variadic" or "variable-number-of-arguments"; i.e. *args) For example, os.path.join has a vararg signature: os.path.join(first_component, *rest) -> str Whereas min allow...

Decoding query strings in PHP

Okay, so I've written a REST API implementation using mod_rewrite and PHP. I'm accepting a query string via the body of HTTP DELETE requests (... collective groan?). Arguments about the wisdom of both previous statements aside, what I've found is that PHP doesn't automatically parse the request body of DELETE requests (i.e. $_POST is e...

Actual examples for HATEOAS (REST-architecture)

Hi, as everyone may have noticed, there are lot of fake/rudimentary REST-APIs in the wild (which implement a HTTP-API and call it REST without following the hypertext-as-the-engine-of-application-state requirement, which led to the famous rant of Roy T. Fielding, the man who first specified the REST-paradigm). I've been unable to find ...

GAE and JRuby HTTP connections

Hi, I want to start to a new JRuby project on GAE but I read that GAE does not allow you to create new sockets. I want to use some API that have to work over HTTP connect like Garb (Google Analytics client). Has anyone managed to use any API over HTTP on GAE? Thank you ...

3d plotting library in vc++

Hi All I want to plot some data in 3D in VC++. I searched the internet and MSDN for not much help. In SO, I found many links towards gnu, and things like that, which are (not) windows stuff. If possible, can someone point me to some 3d plot API, or source for VC++ ... Thank you ...

google api feed like twitter

im tryin to integrate my twitter search with google so that the query will show both twitter and google feedback BUT does google have an search api like twitter does where it will be able to send me back a json feed then what is the url that i need to use like in the case of twitter we use search.twitter.com/search.json?q=twitter&cal...

Oracle HRMS API For Business Groups ERROR

Hi , This is the PAYROLL API code , create or replace procedure updateassignment as -- Essential functionality variables l_validate_mode BOOLEAN := FALSE; l_validate BOOLEAN := FALSE; l_person_type_id NUMBER(15); l_business_group_id NUMBER; l_employee_no NUMBER; l_title VARCHAR2(30); l_f...

Wrapping REST API - Coding Styles Standards

If you are wrapping an API which has different coding style guidelines to the programming languages you are using, do you create an interface that complies with the languages style guidelines or expose the implementation to the user of the API wrapper. A specific example is for ruby and python variables are usually all lowercase and use...

How to override Py_GetPrefix(), Py_GetPath()?

I'm trying to embed the Python interpreter and need to customize the way the Python standard library is loaded. Our library will be loaded from the same directory as the executable, not from prefix/lib/. We have been successful in making this work by manually modifying sys.path after calling Py_Initialize(), however, this generates a wa...