api

F#: Best way to de-fluent an API?

I'm extending Fluent NHibernate for better use with F# (namely, quotation support), and want some feedback on de-fluenting the API. F# requires that return values be used, unless they are type unit. So this ends up terminating every line with "|> ignore": type ProductMap() as m = inherit QClassMap<Product>() do let x = Unchecked.def...

Framework Vs. API

Now, this may be a silly question but sometimes the terms Framework and API are used interchangeably. The way I see it is that a Framework is a bigger more generic thing, containing many API's, that could be used for various programming tasks (for example, the .NET Framework.) An API is smaller and more specialized (for example, the Face...

Why the awkward Design of System.out?

Has anyone got an idea regarding the motivation behind the awkward design of the java.lang.System.out? Awkwardness: First, the out member is exposed (Encapsulation anyone?). Second, it is final but can be changed via setOut() (contradicts final). ...

How can I generate a v2 signature for Amazon EC2 using PHP?

I am wondering if anyone has successfully generated an EC2 v2 signature for there API using php. All examples/libraries I can find online are for v1 of the signature and that has been deprecated due to insecurities. An existing library that implements the signature generation would be appreciated too. ...

What is the Send API for accessing menu commands from outside application

hi, is there a send api to access a menu command in another application? For example,I am trying to access the View menu of a notepad. How am I going to do this? I already got the menu using GetSystemMenu but I can't access it. I think this has an API already but I don't know. ...

Is there an alternative to using sun.jdbc.odbc.JdbcOdbcDriver ?

I recently migrated an older application we have at work from Java 1.5 to 1.6. I noticed that during the build, I now get a (new) compiler warning: ... DatabaseSession.java:[9,20] sun.jdbc.odbc.JdbcOdbcDriver is Sun proprietary API and may be removed in a future release So I understand what that means, but is there a well-known alt...

Recommendation for JavaScript URL manipulation library / API

What are your recommendations for JavaScript URL manipulation library / API Specifically, I would like to Extract URL parameters out of a URL string. Ideally, would reflect into a JS object. Form URL parameter strings (ideally from a JS Object). ...

Eclipse Plugin API: how can I add javadoc support for specific platform plugins?

Hi, using Eclipse 3.4 Ganymede and I cannot find the way to add javadoc support for all platform plugin apis, but specifically to JFace e Ui Forms packages. Opening the property panel of any jar linked to the library named "plug-in dependecies" I receive the following message into the "Javadoc location" node: The current class pat...

Google Streetview Images API

Is there an API available for grabbing Google Streetview images at a particular location (and direction)? I see that its possible to get and position the Flash control, but I'd prefer something that just gave me a JPEG (or some other bitmap format). ...

Adjusting the scale in google maps API

Hi I want to show a distribution of marks for students in a class. But the problem is that I can adjust scale to the number of students. This is an example of the code i'm trying http://chart.apis.google.com/chart? chs=450x150 &cht=lc &chd=t:4,2,1,1,3 &chxt=x,y &chxr=0,0,80| 1,0,12,1 &chxt=x,y &chxl=0:|FL(0%-39%)|3rd(40%-49%)|2.2(50%-...

Would it be reasonable to proxy every server call to get around API restrictions (i.e. Twitter)?

I've run into a few problems with API limits(too many calls) and server timeouts(calls too fast) while coding an AIR App. I'm not very familiar with the performance of proxies, so I'm wondering if downloading a list of proxies to the app every so often and using a different proxy for every API call would be reasonably fast. I'm not even...

Exchange data between programs written in various languages

I'm writing a small browser game and as I'm not a good designer, I wanted to start with the technical part first and add the user interface later, so I wanted to have the first version include bot support, so everyone could write their own bot and have it play the game. This way, I don't have to care about making graphics for the user in...

Real life trading API

Do you know an API that lets you trade with real life stock or currency? If so, please describe your experience: ease of development commissions sandbox environment? etc. ...

Looking for a simple Java API for creating graphs (edges + nodes)

I'm trying to find a simple Java API for creating graph relationships - addEdge(), addNode(), isConnected(node1, node2), findPaths(node1, node2), etc. No UI, just logic. I can find a bunch of academic projects, but none seems to be "The Definitive Graph API". Does anyone know if such a thing exists? ...

Maps API for looking up businesses near co-ordinates.

Hi, I'm currently working on an iPhone application to take GPS coordinates to find the closest electronic stores of my choosing and display them to the the user. I'm familiar with http://stackoverflow.com/questions/683817/google-maps-find-nearest-utilities, but this isn't exactly what I'm looking for. It's also a javascript API. I'd pre...

Using TwitPic API from ObjectiveC/iPhone

There's a similar question on here about this which I've read and I've tried to follow the advice given there... and I think I'm 95% complete but the remaining 5%... well you know ;-) So I'm trying to call the twitPic API to upload an image and I've got the image contained in a UIImageView which I'm displaying on the screen (I can see i...

How to use Android Map to zoom with hand gesture (iphone like)

How do you use the Android API to zoom in and out maps with the 2 finger gestures like iPhone? ...

Java XML APIs

I've dealt with a few XML APIs in Java, but I don't have a good understanding of all the frameworks available in Java for dealing with XML for whatever purpose (e.g. JAXB, JAXP, Xerces, StAX, Castor, etc.). Can anyone highlight the most popular Java XML APIs and give a quick description of what they're intended to be used for? I'd also...

How can I use Perl libraries from Python?

Dear All, I have written a bunch of Perl libraries (actually Perl classes) and I want to use some of them in my Python application. Is there a natural way to do this without using SWIG or writing Perl API for Python. I am asking for a similar way of PHP's Perl interface. If there is no such kind of work for Perl in Python. What is the e...

How to update Twitter status from c#?

I would like to update status on Twitter without using external libraries nor dll-s. I've found for example this solution: http://www.dreamincode.net/code/snippet2556.htm But it does not work and does not give any error. Could you please tell me how to update status programmatically from c#? When I catch error I get: 500 Internal Se...