In Java if you package the source code (.java) files into the jar along with classes (.class) most IDE's like eclipse will show the javadoc comments for code completion.
IIRC there are few open-source projects that do this like JMock.
Lets say I have cleanly separated my API code from implementation code so that I have something like m...
I want to add the facebook 'Like' button to my website, but the JavaScript API is asking for 'your app id'
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'your app id', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.a...
Recently, I've been very interested in APIs, specifically in how to create them. For the purpose of this question, let's say that I have created an ASP.NET MVC site that has some data on it; I want to create an API for this site.
I have multiple questions about this:
What type of API should I create? I know that REST and oData APIs ar...
I have been looking at sample online code for interfacing with the Windows Task Scheduler, and most of them import the namespace:
Microsoft.Win32.TaskScheduler
When I go to import it, it's not there within Win32.
Does anyone know why I can't import it? I'm assuming something isn't registered correctly on my machine, but I can't fiugr...
Hi guys,
i've a Problem with MySQL C API and Mac OS X 10.6. When i want to compile a SQL Client Program, it aborts with this Error Message
ld: library not found for -lmysqlclient
collect2: ld returned 1 exit status
I compile with this command:
g++ -I /usr/local/mysql/include/ -L /usr/local/mysql/lib/ -lmysqlclient main.cp...
Hi,
A lot of interesting code/projects are implementations of protocols, eg SNMP.
How are projects like these, which depend on implementing a certain format, developed? Is the process something like get the guidelines of the protocol and then implement code which follows it.
For example, XML-RPC is about transmitting XML docs between ...
Is there an API that would let me access my AMEX transactions? How do Mint or any other finance websites export my data? If so, is it free?
...
Hello, i own a web server running windows (WAMP). I want to know the best way to implement a Rest API (a very simple one) in order to let a user do something.
Diagram flow:
I have programming skills, in fact, i developed some time ago a web server in VB6 who process the querys and when it find the command (http:/serverIP/webform.php?...
I am using python and would like a simple api or regex to check for a domain name's validity. By validity I am the syntactical validity and not whether the domain name actually exists on the Internet or not.
...
Is there any free API/xml feed to check flight status?
For example, flight number, date to track flight, expected time, delayed, canceled, and other details.
...
i am currently using microsoft Interop.Dsofile.dll to count words in office word doc and docx files and also the methods from Microsoft.Office.Interop.Word.dll is handy and can be another solution.
what about PDF files? is there any free or commercial API ,DLL , component or any solution to count words ,paragraphs and lines in pdf files ...
Note:
This is a continuation of my previous post:
Complicated API issue with calling assemblies dynamically
I'm writing a .Net windows forms application that runs on a network and uses an SQL Server to save and pull data.
I want to offer a mini "plugin" API, where developers can build their own assemblies and implement a specific in...
Given a method name and the Class name where the method is defined, is it possible to construct the MethodTree without creating the ClassTree, The reason why I want to do in this way is , I am doing a static analysis on the java source code,whenever I encounter a method invocation I need to visit that method wherever it is defined and pr...
Hello, I am moving from the basic authentication method using username
and password to the OAuth based authentication.
I was using an old version of the pear package Services_Twitter, that
did not support OAuth.
The latest version of this package supports OAuth authentications, it
has a few dependencies (HTTP_Request2, HTTP_OAuth).
It ...
Normally, id set the interval to a var and then clear the var like var the_int = setInterval();clearInterval(the_int); but for my code to work i put it in an anonymous function:
function intervalTrigger() {
setInterval( function() {
if(timedCount >= markers.length){timedCount = 0;}
google.maps.event.trigger(markers[t...
Hi All,
When I use FaceBook API for retrieving posts information, I found that the returned information are changing all the time.
for e.g., when I retrieved information 2 times with 1mins interval, one record appears in the 1st time, and disapeared in the 2nd time.
https://graph.facebook.com/search?q=baby&type=post&limit=100&a...
Hi guys, im developing an Android application for twitter that will sync data coming from the people you follow.
The problem is that:
http://api.twitter.com/1/statuses/friends.json
provides me the last 100 persons ive followed and i wanted to display only 20 for each 'page'.
I believe that the 'cursor' parameter doesnt do what i nee...
function isNewUsername(str){
var result;
$.post('/api/isnewusername',
{username:str},
function(data) {
result = data.result;
},
"json");
return result;
}
So , my problem is very simple but I can not figure it out . I want to access result from the isnewuserna...
I already clicked allow, but it keep on asking me to Allow or deny.
What could be the problem?
And I check on my twitter settings > connections
my application is not listed in there...
I'm using this guy's library http://www.haughin.com/code/twitter/
Thank you
...
I am working on an excel bulk upload feature which has to be parsed using Java API.
My problem is designing its layout. The data is hierarchical with 4 levels and one to many relationship at each level.
1-other data for node 1
-2-other data for node 2
-3-other data for node 3
-4-other data for node 4
And this repeats
e.g. -...