api

How should I define different subsets of a common dataset in a web application?

I am speccing out a potential project. The core of the project is a set of data that the client wants to be able to present to different third-parties. The client wants to be able to offer different subsets of the data to different third-parties. The data will be stored in a MySQL database. A web app will connect to the database and pro...

I Don't get the WM_GETMINMAXINFO message from other applications

Hello! In my C-Dll there is a Windows hook: hook = SetWindowsHookEx(WH_CALLWNDPROC, CallWndProc, hinstance, 0); With this Callback method: LRESULT CALLBACK CallWndProc(int nCode, WPARAM wParam, LPARAM lParam) { ... CWPSTRUCT* cw = reinterpret_cast<CWPSTRUCT*>(lParam); myfile << "CallWndProc allg. " << cw->message << "\n"; if (cw->...

Simple Opera plugin

How to write a simple Opera plugin? I'd like to develop a plugin that would change the Referer header of a request based on request's url data. Opera's website says plugins should be developed using [Netscape4 Plug-in API][1]. However there's not so much information about it available. I looked up in my c:/program files/opera/program/p...

Should the status field in the output of a REST-style API call be a numeric code or a string?

I have a REST-ish API that returns JSON. One of the output fields is status, which indicates if the call succeeded. I gather that it's somewhat standard to use numeric status codes such as 200 success 400 syntax error 401 authentication error 402 general error 404 user not found 408 timed out 500 fatal error 501 not yet implemented ...

integrating java with C#.net

Is following thing possible?if yes how? I have some core functionily already implemented in java.Now i want to create a GUI for it. I am finding it difficult to make a GUI in java using swing.I can build a GUI easily in C#.net. So i was thinking if it was possible to create a library in java that i can access frm my C# code. Shorty: my...

iTunes Connect API

Does iTunes Connect has an API? How do some applications download financial and sale reports to computer? Are there some C/Objective-C API wrappers? Thanks in advance. ...

parse google geocode

I am using the google geocoding api in my app but im finding it hard to parse the returned address information reliably. Im hoping someone has a library or way of parsing the info to prevent me from having to write this my self and cover every case. Im using the json api and can extract the address line and the coordinates easily enough...

Newbie question on Flash video players, products/SDKs, and API.

Hello, I'm a C programmer and a total newbie to Flash/video/web world. Don't know where/how to start, and so would greatly appreciate your initial help. Question If I need to host flash videos off of my website (instead of embedding YouTube links on my webpages), AND If I need to provide player API like YouTube's that can be used, s...

C# DirectSound - Capture buffers not continuous

Hi, I'm trying to capture raw data from my line-in using DirectSound. My problem is that, from a buffer to another the data are just inconsistent, if for example I capture a sine I see a jump from my last buffer and the new one. To detected this I use a graph widget to draw the first 500 elements of the last buffer and the 500 elements...

Multiple markers in Googe Maps API v3 that link to different pages when clicked

I have a map with multiple markers, which I populate via an array. Each marker is clickable and should take the user to a different url per marker. The problem is that all the markers, while displaying the correct title, all use the url of the last entry in the array. Here is my code: var myOptions = { zoom: 9, center: new google.maps...

How to get work items associated with a changeset id using tfs api?

Hi I need to get a list of work items that are associated with selected changesets programmatically. So far I have been able to get the changesets associated with a work item ID using the concept of Artifacts, as well as got the changesets and/or workitems associated with a particular build using : InformationNodeConverters.GetAssociat...

iPhone Background App in Ad-hoc distribution?

I need to be able to ensure that the iphone is always connected to a network. If it loses reception I need to be able to warn the user. Since the only way I see this working is using a background process is it possible to use private APIs so that the app can run in the background. I know it can be done with Jailbroken phones but I would...

Is there an iPhone 3.0 SDK API for calendar event management?

Is there an API in the iPhone 3.0 (or later) SDK to programmatically create & manage calendar events? ...

How to programmatically interact with Hashtags.org?

I've recently come across this website. Now, is there any way I can actually communicate with this service? ...

How to allow customization of a platform built on Drupal (and PHP obfuscation)

Hi, My company is building a platform on top of a heavily extended Drupal core. I have multiple customers who will be using separate instances of this system and will want to customize both the theme and the functionality. I'm trying to design a system to allow them to add themes and modules, some of which might interact with some of m...

Release mode throwing error with ClassLibrary

When I change my project to Release mode, a reference to a ClassLibrary is not recognized. Anyone know why the reference is no good when I change to Release instead of Debug? ...

GUI API for directX?

Is there any GUI API that can be used together with DirectX other than MFC, WIN32, Winforms and WPF? ...

API authentication design and hackability

Question: Is this API authentication technique easily hackable? apiKey = "123456789" apiCallId = "1256341451" apiSecret = "67d48e91ab2b7471d4be2a8c2e007d13" sig = md5(apiKey + apiCallId + apiSecret) = 09c297a354219f173bfc49c2e203ce03 where apiKey: some unique identifier for the user apiCallId: a unique integer that ...

Retrieving Google Reader stats for RSS feed and items

I would like to programmatically retrieve Google Reader's feed stats for my own site's RSS feed. In particular, I'd like to get the "liked" count, to incorporate it into scoring feed items. Any idea how to do this? ...

Porting Code to Windows 7

I wrote a game years ago (under Windows 95) in Pascal. Since then over time I'd checked it and it still ran with the newer OSs. It works in XP. It works in Vista. However under Windows 7, even in the XP compatibility mode, it crashes on the spot. I've yet to get a chance to attach a debugger and wade through the decade-old code, but...