api

retrieval of AppStore charts via API?

i'm looking to query the itunes appstore charts to determine what position a given app holds. this would need to go as deep as possible with a view to tracking an apps movement from launch to appearing in the top 100 and further. any ideas? ...

Inexplainable InvalidOperationException with GroupPrincipal and SAM PrincipalContext

I am trying to create a Principal like this: PrincipalContext pc = new PrincipalContext(ContextType.Machine); GroupPrincipal group = new GroupPrincipal(pc); group.Name = "Some Group Name"; group.Description = "Some Group Name Description"; group.Save(); However, when the code is executed, I get the following exception message: ...

Simple Interaction with an Active MATLAB Session from Outside MATLAB

I'm trying to give a Java application the ability to change the working directory within an active session of MATLAB. Basically, the user will press a button to launch MATLAB. Then, they will be able to press other buttons that change the working directory of the active MATLAB. I've tried a few different approaches, but with no luck. I'v...

wordpress-like model to view api event system (MVC)

Wordpress has a nice api system. I'm struggling in creating an equal flexible one using a more traditional MVC interpretation. A typical view class could be like this: class View { public function set($name, $value) { $this->data[$name] = $value } public function __get($name) ... you know how it works } A use...

Best practices for integrating Rails app with external APIs?

I'm starting to integrate our Rails-based app with other, external APIs. We're going to start with mailing list services (probably Mad Mimi or Campaign Monitor). I'd just like to know if anyone has best/preferred practices for approaching simple integration, error checking and the like. Do you put API functions in model callbacks? Is ...

how can watch youtube flv in c++ application ?

hello all im using c++ to get you-tube video links , but now i like to be able to play team (stream ) in my application , using c++ wxwidgets cross platform what option do i have ? ...

API design - allocate output?

Is it a good idea for C API functions to allocate their output, or to have the user specify the output buffer? For example: BOOL GetString( PWSTR *String ); ... PWSTR string; GetString(&string); Free(string); vs BOOL GetString( PWSTR Buffer, ULONG BufferSize, PULONG RequiredBufferSize ); ... // A lot more code...

Which wireless library should I use?

I need to be able to manage a wireless ad-hoc network from a desktop PC. I need to be able to block people from entering my network but not via using the WEP or WPA key. I may need to be able to access the authentication protocol of the wireless network. Library in C# is preferred but any other languages is acceptable. Library for Windo...

In a web application can I suppress a JS message which popup in client side browser ?

I'm working on a web application, which in some times JS messages and alerts popup, I want to suppress this messages and alerts from poping up, How can I do that if I don't know when or where this message pop up from using c# code?! in other words, how I can take control on the IE window(client side) in which this message popup and how ...

Receive a WOEID by Lat, Long with Yahoos API

Hi out there, i searched a while but found nothing, thats simular to my problem. i'm trying to use the YAHOO Weather API, for example: http://weather.yahooapis.com/forecastrss?w=4097 i don't know the WOEID in my case, but i got latitude and longitude points. so my question is: is there a way to get the WOEID of a place by using lat a...

Treeview selected item index

is there anyway to get the index of selected tree view node or do they even have one? ...

Rails api doc - understanding & finding

I am trying to find certain functions in the Rails api docs. For example, in the console I can type in: ActiveRecord::Base.connection.tables ActiveRecord::Base.connection.indexes("sometable") and get a list of tables back and a list of indexes. I look in the Rails api doc http://api.rubyonrails.org/classes/ActiveRecord/Base.h...

How can I program a wireless adapter?

Is it possible to program a wireless adapter attached to a computer? I need to modify how they work, not just using them to perform a task such as scanning or connecting. I have already tried the Native Wifi API, but that library is too high level. I cannot modify how exactly the wireless adapter works. Any solution in any programming la...

Java Sound API on OS X with USB Sound Card

I have a working program written in Java with the Java Sound API that is able to play multiple mp3 audio files at the same time to different USB Sound Cards in the same computer. It works fine in Linux. In Mac OS X, however, it does not. The listing of my sound Mixer Infos is: [0] Java Sound Audio Engine [1] Built-in Input [2] USB Adva...

REST Web Services API Design

Just wanted to get feedback on how I am planning to architect my API. Dummy methods below. Here's the structure: GET http://api.domain.com/1/users/ <-- returns a list of users POST http://api.domain.com/1/users/add.xml <-- adds user POST http://api.domain.com/1/users/update.xml <-- updates user DELETE (or POST?) http://api.domain.com/1/...

API for historical traffic data?

Does anyone know of a public API for historical traffic data? Some quick googling pulls up an API from Yahoo which offers real-time data, but I'd be curious if anyone hosts a service for historical data - i.e., what was the "severity" (one of the attributes the Yahoo API returns) for a given location at a given date and time. (I'm goin...

Basic Game DrawEngine question

Hi, i want to create a basic game Draw engine class for my 2D game. i'm not quite sure whether to share main window handle with class or keep it private as it is in the main class. The other way i'm thinking to do is pass the device context itself to draw engine class. which would be the standard way to work with draw engine? ...

PHP Paypal Checkout for 3 Pages

I just want to do this 3 pages: Page 1: User pick in radio button 2 prices Page 2: Fill out credit card form Page 3: Confirm and send to Paypal info Is there a module somewhere that is free to use with Paypal Website Payment Pro? Because I need it to process credit card information. I don't mind whether it is Joomla, Drupal or Wordpr...

C++ libraries for probabilistic scientific calculations

What are the various open source and commercial C++ libraries for probabilistic scientific calculations ? I'm mainly interested in Bayesian learning ; something similar to the Bayes Net toolbox in Matlab ...

Is it possible to use Wordpress API to make posts on wordpress.com?

I'm aware that the wordpress API can be used to make posts to wordpress blogs hosted on your own server/website. However, is it possible to also make posts to blogs hosted on wordpress.com using the api? If so, where can I find the details such as the URLs to which to make the api requests, etc? Currently I'm only interested in adding n...