api

How to get *new* followers using the twitter API

I need to periodically return a list of all new followers of a twitter account (i.e. since the last time the list of followers was retrieved), but the Twitter API only seems to provide functionality for getting a list of all current followers of the account. Apart from getting this full list every time and comparing it against a stored ...

twitter bot with api

im writing a bot that replies to a user message instantly. from what i've read their api only allows checking updates every minute or so. it's there a push feature or a 3rd party service that pushes the new message to my server right away? i've seen bots that can do this. ...

toggling proximity sensor on iPhone loses an event

I'm using setProximitySensingEnabled and implemented proximityStateChanged in my UIApplication subclass. It looks like if sensing is toggled, that the first "off" event is being lost. My UIApplication class is pretty basic... -(void)proximityStateChanged:(BOOL)state { NSLog(state ? @"ON" : @"OFF"); } In my application delegate, I ...

What is the best way to expose my server's API?

I have a .NET Windows service that needs to expose an API. I am using remoting now during development process. Right now all my methods accept and return XML. I already have a lot of custom serialization and deserialization code for the needed objects. None of these objects are very large. I want to make my API available to many lang...

export contact list from gmail, hotmail, yahoo, linkedin, facebook...

Hi, I'm looking for library/API to retrieve contact list (emails address to which user had sent mail to, regardless whether user had explicitly added it as contact ). Anybody know such library/API available there? Thanks kandy ...

Get the handle of a window with not fully known title. (C#)

Hi, The title is partially static with an variable suffix. For example *"Window Title {- user_id}"*. How can I get the handle without knowing the exact title? ...

Scarcity of Reference-Level Documentation?

My work tends to involve using tools and libraries from elsewhere, rather than providing this stuff for external consumption. But for what we do internally, "documentation" means providing information that concisely enumerates the functionality for others to use. By habit we tend to generate something that looks like UNIX man-pages, but ...

Is the original Java ideal dead?

I feel that while I love J2ME and Java it's hypocritical of them to have two APIs for Java. Java was designed with "One code, many platforms" in mind, and now it's more like "One API for every OS, and one API for everything smaller than a netbook." I see a lot of J2ME emulators and such being ported to things like the PSP, and other cons...

I need some guidance on payment gateways

I've never done anything with payment gateways, can anybody give me suggestions? ...

Merge Two XML Files in Java

Hi All I have two XML files of similar structure which I wish to merge into one file. Currently I am using EL4J XML Merge which I came across in this tutorial. However it does not merge as I expect it to for instances the main problem is its not merging the from both files into one element aka one that contains 1, 2, 3 and 4. Instea...

JPA tutorials

Let's say that I'm new to JPA, is there a way to get my skills up to speed? Are there any good tutorials? ...

Castle Windsor Fluent API: Define dependency explicitly

Given the below configuration Container.Register(Component.For<A>().Named("foo")); Container.Register(Component.For<B>().Named("foobar")); Container.Register( AllTypes.Pick() .FromAssemblyNamed("MyAssembly") .If(t => t.Name.EndsWith("ABC")) .Configure(c => c.LifeSt...

CXF dynamic client API - getUnwrapperOperation, getWrappedOperation

QName opName = new QName("http://mycompany.com/soap/service", "Login"); BindingOperationInfo boi = binding.getOperation(lastOperation); boi = boi.getUnwrappedOperation(); boi = boi.getWrappedOperation(); Can anyone explain to me the difference between getUnwrappedOperation() vs. getWrappedOperation()? What is being wrapped? ...

Django and Restful APIs

I have been struggling with choosing a methodology for creating a RESTful API with Django. None of the approaches I've tried seem to be the "silver" bullet. WAPI from http://fi.am is probably the closest to what I would like to accomplish, however I am not sure if it is acceptable in a true RESTful API to have parameters that are resourc...

Visual studio - Debugging app with word API is impossible

I have an application which uses the MS-Word API. I get stuck when trying to use the function Document.Open(Filename) which is the function that is opening a document. It doesn't matter if I run in debug or release mode. Any help would be appreciated. Thank you, Guy Marom ...

Web services that take and return XML documents - why?

Are there benefits of writing a web service interface whose methods all take and return XML documents, rather than the more usual parameter lists of native types and classes? We have some existing web services that are designed like this. The XML documents that are passed to their methods are typically large (as in they contain maybe 10...

Need an info on PHP Reporting Framework/API/Tools

I have created My portal on PHP and MYSQL. I am unable to find a competitive PHP based tool/Framework like Jasper report which can be used to design reports The framework must be an Open source and rich and flexible in extending its basic functionality Do you know solution to problem of reports in PHP ? ...

Load results from a GET/POST request in VB.net

I want to develop a program that uses an online API, with GET and POST requests, and I want to know how to make the requests within the program (without the user seeing a web page), and then download the results into the program so I can parse them ...

WCF for MetaWeblog

I'm trying to find a really good example for implementing the MetaWeblog API using a WCF service. I can't seem to clear my head and think of a clean way to do this. Any help is appreciated. ...

How to locate a particular exception in a Exception stack

Let us assume that a particular Exception "SomeException" is part of the exception stack, so let us assume ex.InnerException.InnerException.InnerException is of type "SomeException" Is there any built-in API in C# which will try to locate a given exception type in exception stack? Example: SomeException someExp = exp.LocateExceptionI...