api

400 error when submitting tumblr post (ruby on rails)

I am having a bit of an issue with getting tumblr working within a rails app. This is the snippet of code which results in a 400 error (meaning that there was an incorrect parameter) @postcontent = @post.content.gsub(/<\/?[^>]*>/, "") post = Tumblr::Post.create(:email => 'valid@email', :password => 'mypassword', :type => 'video', :em...

How do you build a real-time API as opposed to the standard web based APIs?

..also, are there limitations between implementation technologies and the devices/languages that can access those API methods - as opposed to the standard HTTP API methods where all devices/languages can access HTTP? ...

How to use Google Translate API in .NET application

I'm using this one google-api-for-dotnet But there are some problems with it. Are there better API alternatives? ...

Future proof Tweeting with PHP

Hello I'm looking to implement a system for tweeting directly from my site backend, which is written in PHP 5. I have a script from the internet that I can adapt, but I'm concerned that when Twitter switches to Oauth only, I'll be out in the cold. Basically, I'm hoping someone can point me toward a script/tutorial that will let me do t...

Website reviews api?

I'm looking for a website that reviews and rates other websites. Something like www.xomreviews.com but with an API that i can pull the ratings and reviews from. Does anyone know of something like this? ...

Enumerating Environment keys with VBScript?

I need to enumerate the keys in the WScript.Shell.Environment object. It's clear that if you already know the name of the key, you're home free with: Set oShell = WScript.CreateObject("WScript.Shell") Debug.WriteLine "PATH=" & oShell.Environment("PATH") ...but if you want to list the keys, it looks like you're out of luck! Is there ...

android: how do i open another app from my app?

I understand how to use intents and startActivity() when opening another activity within my own app, but how do you start a different app? specifically: -how do you determine if the user has the needed app installed on their device? -how do you start that app? -how do you pass parameters to that app? -how do you find all this info out ...

numpy array C api

I have a C++ function returning a std::vector and I want to use it in python, so I'm using the C numpy api: static PyObject * py_integrate(PyObject *self, PyObject *args){ ... std::vector<double> integral; cpp_function(integral); // this change integral npy_intp size = {integral.size()}; PyObject *out = PyArray_SimpleNewFromData(1, &...

GoogleMaps API extracting building shape information.

Hi, I'm looking for a way to extract building shape (polygon) information from google maps automatically. It appears that you can only downloaded information relating to shapes you've created yourself. Example here. Information relating to building shape and height is stored by google, so I'm hoping there's a way to extract it. ...

Push alerts to notification tray app in Java

Hi - how do I push server alerts to tray apps in java without using xmpp or other heavy protocols? Do you recommend a way to accomplish this? I was planning to write an app which uses URLConnection on a server equipped with Comet but I doubt if that would work as the client requires a JS to be invoked and URLConnection is not a browser...

Search MySpace by keyword using PHP class

I've come across several tools that search users by keyword, however, none that's open source. I'm not familiar with the MySpace API and at first glance it doesn't seem like this option is available. I was hoping a PHP class exists for this sort of thing. So my question: how do I identify myspace users that have a keyword? Can it done ...

best practice for boolean REST results

I have a resource /system/resource And I wish to ask the system a boolean question about the resource that can't be answered by processing on the client (i.e I can't just GET the resource and look through the actual resource data - it requires some processing on the backend using data not available to the client). eg /system/reso...

Facebook Graph API Search without logged in user

Hi folks, I'm trying to issue a Facebook Graphp API search call for groups with a specific search term. The important fact is to search for groups not only beginning with the term but also to search for the term within the group name. So something like that. FQL => SELECT * FROM groups WHERE groupname LIKE '%term%' As far as i know th...

Removing Directions markers from the Google Maps API V3

To remove a normal marker from a map, I understand you simply call marker.setMap(null), but when implementing the Google Maps directions services, it automatically adds markers A and B onto the map ( calculating directions from point A to point B ). I do not have control over these markers, so I cannot remove them in the normal way. So h...

Can a Windows Service recieve Windows Messages?

I created an application to receive a broadcasted windows message which works fine. When I turn it into a service, install it, and start the service, the service doesn't receive the message. ...

Apache FOP org.apache.fop.pdf package usage examples

I tried to use the org.apache.fop.pdf package but not success. Appreciated if someone can give some working examples to: Create PDFDocument Add PDFPage to PDFDocument Add some text to PDFPage ...

Should my internal API classes be all in one package?

I'm hard at work packaging up an API for public consumption. As such I'm trying to limit the methods that are exposed to only those that I wish to be public and supportable. Underneath this of course there are a multitude of limited access methods. The trouble is that I have a lot of internal code that needs to access these restricted m...

tryin' to enumerate all available Wifi network with J2SE

Hi, I'd like to find out a way to enumerate all available wifi networks using Java 6.0 and any third-party API. Unfortunately, I'm not able to find a solution to this problem, all I got is a library that I can't use because I don't have any example. I'll be very pleased if someone could help me. The target platform is Win XP/7. Edit...

API's to access 'Novell GroupWise' data for c#.What will be difference if i use "gwtapp.dll" or "GroupWise Web Services" ?

Hi, I want to read mail,calendar,contact items from Novell GroupWise Client.(using version 8). How to start with? Which API is best for this? What will be difference if i use "gwtapp.dll" or "GroupWise Web Services" ? thanx ...

How can I Add Google My Maps API on my website?

Hello Friends, I want to Add Google My Maps API in my website, but didn't find any good reference. Please help me. Thanks ...