api

A framework type search tool for .NET

Does anyone know if such a tool exists? Online or offline? Basically I'm looking for a Google search indexer which only crawls over class names, field names and method names in the .NET framework assemblies (custom assemblies too would be great). This would allow for fast searching. I know Reflector has this search capability but it's no...

Running a managed application 2nd time shows different performance than 1st

I have a benchmarking application to test out the performance of some APIs that I have written. In this benchmarking application, I am basically using the QueryPerformanceCounter and getting the timing by dividing the difference of QPC values after and before calling into the API, by the frequency. But the benchmarking results seems to v...

Netflix API, OAuth, and Ruby Issue

Hi, I am trying to use oauth with the rares-branch Ruby gem. I keep getting the error: instance of OAuth::Consumer needs to have method `marshal_load' My code, activate.rb is below. Any thoughts on how to fix this? THANKS! -Henry require 'oauth/consumer' def index @consumer = OAuth::Consumer.new("CONSUMER KEY","CONSUMER SECRET", ...

Separate decode/encode interfaces or in one interface

I'm creating an implementation that performs conversion from one form to another. The design problem I am facing now is whether the Encoder and Decoder API should be in one interface or in separate ones. e.g. Apache MINA uses separate interfaces I am currently doing something like this: interface Convertor { A encode( B b ); ...

Why am I getting a (401) Unauthorized Error in Google Calendar API

Ive been playing around with the Google Calendar API and am getting stuck on something. When i call this below to delete a calendar event it works fine on the first pass and usually the second. However, around the 2nd or 3rd time I call this method I get a (401) Unauthorized error. It uses the same credentials every time. If I get th...

Mounting folder as a drive in vista

Hi I am trying to mount as a drive in vista I am using the following code from msdn example, BOOL bFlag; TCHAR Buf[BUFSIZE]; // temporary buffer for volume name if( argc != 3 ) { _tprintf( TEXT("Usage: %s <mount_point> <volume>\n"), argv[0] ); _tprintf( TEXT("For example, \"%s c:\\mnt\\fdrive\\ f:\\\"\n")...

J2ME API Hard to Find

Where is the API for J2ME? Why is it more difficult to find J2ME's API than its J2SE counterpart? Typing String and Java 1.6 will immediately present one with the String Javadoc for J2SE 6, but doing a similar thing for J2ME will present one with a specific phone manufacturer's Javadoc. I am particularly looking for javax.microedition.i...

Why do some API providers require an API key?

Several web service APIs have you sign up for an API key. For example, UPS Web services requires a key, which is included in calls to their service -- In addition to the username and password. What is this key used for by the provider? Perhaps UPS is the only one to require both API key and username/password? One idea is that they use ...

PhysX NxActor Question

Hi. As far as I know, using the PhysX API, the only way to obtain an NxActor is from an instance of NxScene using the createActor method. This is really bugging me. I want to keep my code clean, but I feel like there is no choice but to go around passing this scene from constructor to constructor so that classes can make and have refe...

Getting a Google API Account

What URL can I visit to get myself a Google API Account? While sites point to http://www.google.com/apis and talk of "easy steps", I just can't figure it out. Background: There are places on the web that offer google services if you give them your Google API account key (in my case http://www.freesitemapgenerator.com and index retriev...

Explicit API methods vs. generalised parameter-based API methods

When defining a customer-accessible API, what is the preferred industry practice between the following: a) Defining a set of explicit API methods, each with a very narrow and specific purpose, for example: SetUserName <name> SetUserAge <age> SetUserAddress <address> b) Defining a set of more generalised parameter-based API met...

how to use live search Api using window application

i have to intregate live search api, yahoo & google search together in IE -Toolbar using window application & display the combined result after search. I have already implement the toolbar where i have put one textbox, dropdownlist & search button . On click of search button it has to display result depending on search items. pls anybod...

Toolbar with VLC ActiveX in VB.NET

Hello! I've used the VideoLAN VLC ActiveX Plugin 2 (available in the VLC 0.9.4 installation) in my VB.NET App. I've noticed that: The controller toolbar (seek bar, control buttons, volume) do NOT appear at all Even after playing a file And the "Toolbar" property cannot be set to TRUE, read-only? So my questions are: Is the "Toolb...

What is a simple and reliable C library for working with Excel files?

Well... that's it. I need something simple and reliable (doesn't have to have fancy features - I need to write and read text and numbers from Excel cells) And yes, I would like a sample "Hello Cell" code... What do you recommend? ...

C#: I want to write an application that will parse google for my website's ranking, where do I start?

C#: I want to write an application that will parse google for my website's ranking(position in the google search engine and NOT PageRank), where do I start? Does anyone know any examples doing so written in c#? What is the general direction you would start with? How should I parse google' web pages? Although I've searched for it, it's ...

RESTful Design: Paging Collections

I am designing a REST api that needs paging (per x) enforces from the server side. What would be the right way to page through any collection of resources: Option 1: GET /resource/page/<pagenr> GET /resource/tags/<tag1>,<tag2>/page/<pagenr> GET /resource/search/<query>/page/<pagenr> Option 2: GET /resource/?page=<pagenr> GET /resou...

Why are parsing tools needed for DSLs?

Couldn't a DSL be as simple as an API and therefore not need a parser? Or am I misunderstanding what a domain specific language really is? I thought it referred to any organized set of rules for solving a particular domain problem. An API would seem to fit that definition, right? ...

How to design a public API in ASP.Net?

I'm currently developing a web application in ASP.Net with SQL Server and I would like to have some sort of public API so that my users can get their data and manipulate it at their own will. I've never done something like this, can you recomend some guidelines for me to follow? ...

mailchimp api & array question

I'm having a bear of a time getting the mailchimp api to cough up info. In their example I'm fine (the first is an abridged version of theirs.) How come when the method changes I can't get the array to show the collected information? why is this valid: (it's taken from here http://www.mailchimp.com/api/rtfm/campaignemailstatsaimall.func...

working out distances between two points using google maps api?

Is it possible to send two lat long points to google to calculate the distance between the two? ...