I would like to be able to fail the test if the executing code hangs. Is there a way to do this currently?
I am thinking something like the following must exist, but I can't seem to find it in the API
[Test, Timeout(TimeSpan.FromSeconds(2))]
public void Test() { ...}
...
I heard Qt API is written in pretty outdated C++ language. Is it true?
Are there any plans to make it use more modern C++ language? Are there any official information on this?
Are there any projects with the aim to wrap current Qt API constructs with more modern C++?
UPDATE
That's more to this question than templates and that's not the...
I understand that when fetching an atom feed, you can specify the number of items to return, and the items will have a continuation field that you can use to start subsequent fetches at a position after the items you've already fetched. The question is: how do you find out if there's anything more to fetch without actually trying to fetc...
I have a simple REST JSON API for other websites/apps to access some of my website's database (through a PHP gateway). Basically the service works like this: call example.com/fruit/orange, server returns JSON information about the orange. Here is the problem: I only want websites I permit to access this service. With a simple API key sys...
I am looking for a Java API which can compare two microsoft word documents.
We want to compare two msword document and things which are not common that we have to highlight with some color or any other way ... So I thing we have to merge both document and highlight content which are not common.
We are using Linux server so we can't ins...
I don't want to do anything fancy on Twitter except post to it via my site once a day. I have searched around a bit and there are all sorts of super-complex ways to do every little thing that Twitter does, but there seems to be little documentation on how to do the simplest thing, which is make a post!
Does anyone know how to do this? O...
I am trying to figure out what some legacy code is doing. What exactly is this line doing, and why would I need it this way?
String lineSeparator = (String) java.security.AccessController.doPrivileged(
new sun.security.action.GetPropertyAction("line.separator"));
I found it in the logger implementation of the web/ejb applicatio...
I was wondering if RIM published an API that allows third party apps on non-RIM devices, like the iPhone, to send and receive blackberry messages???
...
I've recently added the RI for JSR305 into my project and have been adding annotations to my interfaces like this:
public interface AccountService
{
@Nullable AccountResult consolidate( @Nonnull Date from, @Nonnull Date to )
}
In the spirit of the JSR (as described here), do you think I'm misusing the annotations by using them in ...
I have a web application that pulls data from my newly created JSON api.
My static HTML pages dynamically calls the JSON api via JavaScript from the static HTML page.
How do I restrict access to my JSON api so that only I (my website) can call from it?
In case it helps, my api is something like: http://example.com/json/?var1=x&var...
Today I implemented a session/token authentication system for my web api (http get/post rpc style), following this plan:
legend: action (param1, param2) : returnvalue1, returnvalue2
login (username, password) : sessionkey, token
requestA (sessionkey, token, paramA) : token
requestB (sessionkey, token, paramB) : token
logout (sessionke...
It seems that there is no Google Alerts API.
Firstly, How would you get Google Alerts information into a database other than to parse the text of the email message that Google sends you?
If you must parse text, how would you go about parsing out the relevant pieces of the email message?
...
I want to upload a file from asp.net webpage to TFS server.
Using TFS API I have created bug from my web page - but the bug also needs a file attachement to upload please let me know.
...
Is there a good Java USB API i can use? I tried JUSB but it doesn't seem to work. It's also very old, no updates since 2001.
...
Hello
I want to be able to do some profiling to some app using the Netbeans Profiler API. I'm not intreseted in using Visual VM , but rather in programatically collecting data from the application[let's say CPU usage, and method execution times]. For instance, using CPU usage and hot methods. How to get that data and print it on console...
I have not had much experience with Webservices or API's.
We have a website built on Oracle->Sun App Server->Java->Struts2 framework. We have a requirement to provide an API for our system. This API will be used by other systems outside of our system. API is just for a simple SP that we have on our database. The other system does n...
Watching the effects of today's Google outage across the web got me thinking about how to prevent this in the future. This may be a stupid question, but is there a good way to include external APIs (e.g., Google's AJAX libraries) so that if the API is unavailable, the including page can still soldier on without it? Is it generally a bad ...
I am writing an API for use outside our company,
it updates a LOT of different fields in a structure.
I could help the addition of future fields by making the update function variadic:
update(FIELD_NAME1, 10, FIELD_NAME2, 20);
then later add FIELD_NAME3 with out changing any existing calls:
update(FIELD_NAME1, 10, FIELD_NAME2, 20...
I am working on an application to upload videos, and I am trying to find out if the Myspace API supports video upload. But I can't find it in his forum, is there some alternate way I can allow users to do it?
...
I've read of an easter egg as part of an actual programming language command (Python's antigravity), I was wondering if there were any other easter eggs or anything undocumented for other languages or popular APIs? Are there other undocumented commands that could actually be considered useful?
Some I've heard of:
Python antigravity co...