api

How to obtain longitude and latitude for a street address programmatically (and legally)

Supposedly, it is possible to get this from Google Maps or some such service. (US addresses only is not good enough.) ...

Utilizing Java API from a Cobol program

We have some COBOL programs running on our mainframe and we need one of those to communicate with our back end vault through a Java API. Is there any way a Cobol program can invoke the Java program? Would it be possible to use a Web Service from Cobol? How would I integrate a Cobol program with anything else? ...

iPhone Proximity Sensor

Can the iPhone SDK take advantage of the iPhone's proximity sensors? If so, why hasn't anyone taken advantage of them? I could picture a few decent uses. For example, in a racing game, you could put your finger on the proximity sensor to go instead of taking up screen real-estate with your thumb. Of course though, if this was your only ...

Any Substitute API for Win32API?

Hello, I need an API that can make menus like Win32API, But something simpler and better than WinAPI. That can make GUI, with text zones, buttons etc...like an average Windows program.(Windows GUI Style) Can anyone recommand on one like it? Thanks. ...

computing performance

I need to find out the time a function takes for computing the performance of the application / function. is their any open source Java APIs for doing the same ? ...

Code to verify updates from the Google Safe Browsing API

In order to verify the data coming from the Google Safe Browsing API, you can calculate a Message Authentication Code (MAC) for each update. The instructions to do this (from Google) are: The MAC is computed from an MD5 Digest over the following information: client_key|separator|table data|separator|client_key. The separator...

What Win32 API can be used to find the process that has a given file open?

If I read or write to a file and receive a 33 or 32 error, I would like to log a message containing the name of the other process(es) that have the file opened. There must be a Win32 API I could use to get this info. Process Explorer displays it. Of course, Process Explorer also has info about all processes in memory. I'd prefer to find ...

Best ways to document use of an API?

What are the best ways that you have found to document the use of an API? Comments on classes and methods, such as JavaDoc comments, are useful for learning about how a particular class or method works, but I'm asking about how people document higher-level concepts that show how to actually use the API. Comments that include code sampl...

Would you architect the control API of the next-gen Mars rover to be RESTful instead of an RPC?

Forgive me if this verges on being a "discussion" question, but I really would appreciate a yes/no answer, with an appropriate explanation. Suppose you have to design and implement a control API for a robot, say the next generation Mars Rover. Do you architect this API according to RESTful principles, or do you use a classic RPC, ...

Brainstorming: Requirements of a Swing Replacement

What is required of an updated and legacy free Graphical User Interface API for Java? //TODO: Add your ideas below. ...

Java core API anti-Patterns. What is wrong?

Hi, Despite that the work of the guys from SUN with the Java core API is awesome, as they are humans, they are not infallible. I have read in several books some criticism about Some huge mistakes that (my guess) are still there for backward compatibility and legacy code. My question here is which ones do you know? As examples: Observa...

Method parameters value through Reflection

I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. Is it possible, someone can point me to the right direction, as to how will I get the values of parameters passed using API? ...

What is the purpose of the cbSize member in Win32API structs

I frequently encounter some definitions for Win32API structures (but not limited to it) that have a cbSize member as in the following example. typedef struct _TEST { int cbSize; // other members follow } TEST, *PTEST; And then we use it like this: TEST t = { sizeof(TEST) }; ... or TEST t; t.cbSize = sizeof(TEST); ... My ...

Has anyone managed to build any applications with the LinkedIn API?

LinkedIn are very cautious of applications using their APIs. I have tried and failed to get access to them. Has anyone actually built any real applications with them yet? If yes, what strategy did you employ to get access to their API? BTW I am talking about first class value added applications on top of LinkedIn, not just embeddin...

Finding an unmanaged dll API?

I am writing in C#. How can i find out which methods/functions I can use in an unmanaged dll that doesn't belong to windows? Exmaple : I have some installed software on my computer, it has a dll, and i want to know what my options are as to creating code to connect to that software? ...

TFS Webservice Documentation

We use a lot of of python to do much of our deployment and would be handy to connect to our TFS server to get information on iteration paths, tickets etc. I can see the webservice but unable to find any documentation. Just wondering if anyone knew of anything? Thanks, MattD ...

Is there somewhere I can search for available webservices?

I'm wondering if there is a website that collects (and hopefully updates) information on available web services. Edit: Thanks for all the info; many good answers. I can only accept 1 as the "accepted answer" at this time, so I picked my favorite one. ...

What are best practices for developing consistent libraries?

I am working on developing a pair of libraries to work with a REST API. Because I need to be able to use the API in very different settings I'm currently planning to have a version in PHP (for web applications) and a second version in Python (for desktop applications, and long running processes). Are there any best practices to follow ...

Is a custom module the best way to access an external API in Drupal?

I'm new to extending Drupal, though I've done similar kinds of things for other CMSes. Anyone care to share opinions on the best way to access an external API from within Drupal? I need to show things like search results, listings, and listing summaries. In my reading up on Drupal, I think this implies I need to create both "nodes" and ...

Is there something like the Google Safe Browsing API that is more stable?

The Google Safe Browsing API allows for URLs to be checked against Google's database of malware and phishing domains. However, on the Developer's Guide page, it says that the API is experimental and the data format is likely to change. Although I have had good experiences with a number of Google's APIs in the past, they have all been fa...