I'm using MySQLdb and run into the following problem:
STMT="""INSERT INTO test_table VALUES (%s, %s, %s, %s, %s)"""
rows=[('Wed Apr 14 14:00:00 2010', 23L, -2.3, 4.41, 0.83923)]
conn.cursor().executemay(STMT, rows)
results in:
Traceback (most recent call last):
File "run.py", line 122, in <module>
File "C:\Python25\lib\site-pack...
I've ripped out most of my hair now trying to get a grip on the docs about authentication with the new graph API...
What i want to do, and i can't find a single simple example on this:
trigger a Facebook auth/allow pop-up from a link (with permissions) with no use of FBML that logs in, when the auth is done, instead of redirecting, i w...
Hello every one
i m tringing to run the following code but unfortunately facing Error problems
*/
package jskypeexample;
// import the JSkype packages
import net.lamot.java.jskype.general.AbstractMessenger;
import net.lamot.java.jskype.general.MessageListenerInterface;
import net.lamot.java.jskype.windows.Messenger;
i...
Is there a method to obtain, via facebook; a list of all users who liked "your" (or a specific application by id) application? via andy of the available methods, e.g. FQL etc.
...
My app crashes, it is a problem that arises from the AddressBook API, it only happens with some contacts.
Here is the log:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000102, 0x316ebd38
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x00001cfe CFRetain + 90
1 AddressBook ...
On opening a directory via zwopenfile(open directory option), it returns a handle for the directory path. Now I need to get the directory path from the handle. Its my requirement.
I could see an example(please see the code below) where file name can be fetched from file handle. But the below example does not help for directory. Is ther...
I'm trying to post to my own feed but i do not understand the following code:
curl -F 'access_token=...' \
-F 'message=I am posting to my own feed. I am awesome.' \
https://graph.facebook.com/me/feed
I dun quite get curl. How can i go about doing this?
...
I upgraded our OS to Windows server 2008 R2 64 bit recently.
I was using C/C++ API toolkit 8.0 version (with Lotus Notes client 8.5).
All the sample exe's (32 bit version) ran fine on that machine in emulation mode.
For one sample code i made some changes, i.e instead of doing -
LNNoteArray SearchSet
I did -
LNNoteArray* pSearchSet = ...
I've been working with this all day. But don't get it to work.
I can search through CMD and get results on my indexed tables but I have problems trying to understand the sphinxapi for php, i don't even now fully how to write a query and get the results can someone help me to see if this things work.
HOW DO WE WRITE A PHP QUERY FOR SP...
Hi guys,
I'm trying to develop an application where addresses are pulled out of a database to show them using a marker on a google map on my website.
I have the following javascript code + jquery , google maps and all other necessary javascript files:
$(document).ready(function(){
// initialise map
var myLatlng = new google.m...
We have a resource on a REST server ie
/someResources/1
/someResources/2
/someResources/3
where "someResource" is a server representation of a distributed object far away.
We want to tell the server to "refresh" its representation of that "distributed object" by looking at it out in the network & updating the server's cache ie we ca...
I'm trying to do a simple post to a web service using CURL and their API but I'm getting a 422 response. My code looks like:
include 'CurlRequest.php';
$secret_key = 'mykeyhere';
$group_id = 'group_id';
$postData = array(
'group_id' => $group_id,
'key' => $secret_key,
'status' => 'test'
);
$curl = new CurlRequest('http://...
Hi,
Is it common, in API Design, to do something like this:
public ReadOnlyCollection GetCollection
{
get { // Get's read only collection here...
}
}
In the body of the get, this calls a private method that fills the collection. So I only expose one, consistent object to clients. The thing which confuses me is if it is right to make...
Hi Everyone
I am having trouble finding a simple example that demonstrates how to query the msn or yahoo weather api using ajax or jquery.
I want to understand how I can pass a query to these api's and then retrieve string information back which I can then present to the user on a html page.
I have been searching the internet for two ...
Hi all.
I want to build an application with Flash CS5 that will use an API that returns responces in JSON. How can i do it in Flash?
Another question that can go in this thread is...
How can i use an AJAX API like Google's transliteration with Flash?
...
Hello, I am having problems with Ruby Telnet API. More specifically, the login command. My code is as follows:
options["Name"] ||= 'anonymous'
options["Password"] ||= '******'
@connection.login( options, &block )
And the output...
Trying 10.160.52.63...
Connected to 10.160.52.63.
login: a
...and then I get a T...
Using the following code, I get the error in the title of this question using Chrome's JavaScript developer console:
jQuery.getJSON("http://api.yelp.com/business_review_search?term=starbucks&location=Urbana%20IL&limit=3&ywsid=XXX",
function(data){
jQuery.each(data, function(i,businesses){
jQuery("#yelpPreview")...
Hi,
I'm using the Zend Gdata Gbase Class in zend framework but I don't know where to start. Basically I will be uploading a zip file that contains a text file with the google feed format in the google merchant center to make my product items searchable online. My script will use a proxy site.
What basic tutorial link can you give in or...
I am trying to develop an app which can display the schools and airports in the locality. I found that using Google Places API is the way to go...
I have seen the documentation here... But anyone could please simply the use of the API. Any tutorials or samples will be of great help... Plz help guys..
...
Hello. I have problem. How to get multi markers, with adress information, not lat, long
For example:
markers: [{
adress: 'UK, London'
},{
adress: 'City, street, adress'
},{
adress: 'Germany, Frankfurt'
}]
All markers are show to map.
...