api

using java and usb: Which api? jsr-80, jusb, ...?

Hi all, I would like two java programs to communicate directly over the USB without going through a device or cable. Don't ask me why, I don't know the details or reasoning behind this decision. I have found jusb and jsr-80 to be two java/usb APIs to do this. They work on linux AND windows - I will need capabilities on both. Questio...

Is it possible to communicate directly over USB?

Is it possible to have two applications on the same computer to talk to each other directly over USB (no cable, no associated devices)? Is it easy/hard? What API would you guys recommend? Yes, I posted a similar thread, but it was asking specifically for a JAVA/USB implementation, which I found, but I need windows support. So now I...

Financial News API

Any free/paid API to get financial news either world-wide / country specific. ...

Delete or update a dataset in HDF5?

I would like to programatically change the data associated with a dataset in an HDF5 file. I can't seem to find a way to either delete a dataset by name (allowing me to add it again with the modified data) or update a dataset by name. I'm using the C API for HDF5 1.6.x but pointers towards any HDF5 API would be useful. ...

Can anyone recommend an Image Gallery with a good programming API?

What is the best solution/API for this? On my site users upload image, tag then and more. Instead of displaying the normal page where it shows the image and info (date, desc, user comments, etc) I want it to go to the next/prev image. Preferably with preloading. This code could be done either in flash or javascript, but I would need a wa...

Where can I find documentation on functions available in the Ruby Shoe GUI Toolkit?

Is there any documentation that discribes all the available functions and objects in shoe? update: 2008.01.21 I am looking for a list of all the methods that can be called against an animate object. For example I only figured out how to pause an animation using the toggle() method by reading source code from the shoebox (http://the-sh...

What is the equivalent to Posix popen() in the Win32 API?

Is there a rough equivalent to the Linux/Unix stdio.h popen() function in the Win32 API? If so, where can I find it? Edit: I need to know this to patch an omission in the D standard library. Any answer must use only standard Win32 API, no MSVC-specific functions. Also, I'd prefer something that's not horribly low-level, if it exists...

Is this a reasonable approach for HTTP BASIC authentication with an API key?

I have just begun adding a REST API on a rails app, and since I only wanted to expose a couple controller/actions, I added a method to ApplicationController: def http_basic_authentication if request.format == Mime::XML authenticate_or_request_with_http_basic do |username, api_key| self.current_user = User.find(:first...

global hook SetWindowsHookEx

so i am trying to create a util keystroke app so i can do things like kill or launch something. I am thinking i should hold cmd in any app, then type in a 4 digi cmd key so i can launch or kill anything quickly while programming, debugging watching a vid, etc. I figured out how to get the keyboard callback but for whatever reason once i...

API design: Flexibility Vs. Ease-of-use

When writing a library or the public API of a module that will be used by a lot of other code in a variety of use cases, what is the best way to balance flexibility with ease of use? I believe that the two often conflict in that, the more flexible you make something, the harder it is to get it to do any one particular thing well. For...

How can I access spreadsheets in the open document format (.ods) with java?

I want to read, write and create Spreadsheets in the Open Document Format with Java. And I want the resulting Java-program running on a computer without OpenOffice.org or other ODS-capable programs installed. Exists a library to access this format? ...

Do you know of a NTSC decoder API?

I'm looking for an API that I can use to decode a digital sample of an analog signal, encoded according to the NTSC standard. I'm willing to consider both free and commercial options. If I have to, I'll roll the code myself, but I imagine that this code has been written tens or hundreds of times in the past few decades, so I'm hoping the...

Recommendations: Easy To Use/Low Dependency C/C++ RSS Library

Just like the title says. Anyone know of an RSS reading library for C/C++? Ideally: Minimal/no outside non-standard dependencies Easy to use API Cross platform would be ideal, but I'm OK with Win* only if necessary. I'd just rather not roll my own if necessary. :) ...

HttpWebRequests Failing on Subsequent Calls

Hi, I know this is a vague question, especially since I am not providing any code, but I am developing a .Net 2.0 application, and we have a WebRequest which posts data to an internally built API. The strange thing happens on our 3rd (and always the 3rd) subsequent request which fails at the GetRequestStream() method of the request. Th...

Are There Any Applications That Use The FriendFeed API?

Does anyone know any applications that make use of the friendfeed API? ...

How do you define a good or bad API?

Background: I am taking a class at my university called "Software Constraints". In the first lectures we were learning how to build good APIs. A good example we got of a really bad API function is the socket public static void Select(IList checkRead, IList checkWrite, IList checkError, int microseconds); in C#. The function receives 3...

How to list files of a team project using tfs api?

I am wondering if there is a way for me to list all 'files' containted in a tfs team project. What I am aiming to do is search for files of a particular name that dont have fixed paths within TFS caused by branching ($/MyTeamProject/Main/Build/instruction.xml and $/MyTeamProject/Branches/Release_1.0). Once a file would be found I would l...

How ugly is the API for GP-GPU?

I'm debating about whether to learn GP-GPU stuff, such as CUDA, or whether to put it off. My problem domain (bioinformatics) is such that it might be nice to know, since a lot of our problems do have massive parallelism, but most people in the field certainly don't know it. My question is, how difficult the API for CUDA and other GP-GP...

UNC Virtual Folder

I would like to expose some service functionality as a virtual file share to allow conventional applications to use the virtual folder as a real one. For example, a file path consisting of \\\\Server\VirtualShare\File.ext means that VirtualShare doesn't really exist and only available as long as my service is running. A file access wi...

POST XML to URL with PHP and Handle Response

I've seen numerous methods of POSTing data with PHP over the years, but I'm curious what the suggested method is, assuming there is one. Or perhaps there is a somewhat unspoken yet semi-universally-accepted method of doing so. This would include handling the response as well. ...