How to produce an iphone app which calculates the battery status? Is there a particular API that i need to use?
Has anyone got a link to any online tutorials?
Please see the youtube:
http://www.youtube.com/watch?v=FC95ARd96wI
notice that the 0:35 , the iPad bottom have a thin photo bar. Is it a private API or I need to create my own or Which UI Element will it be? Thz.
In my application, I need to convert PDF docs to PCL5 generic files to send to FTP PCL capable printers. Printing to file would be a last resort, I would prefer a small-footprint command line tool or API that will do the job.
I've seen some mention of doing this on Linux using Ghostscript, but I've got no idea how to replicate this on windows.
Many thanks
Hi all,
I am fairly new to JQuery API.
I have been using mouseover, but I have never used hover before.
SO I am wondering if I should use hover instead.
I have a SOAP web service which I call from two clients using axis2. Can the web service know from which of these two clients the call originated from? If so, how do I know that during runtime? Is there any API provided to lookup the name of the invoker of a particular web service by that web service. Thanks.
Hi,
Could anyone point me in the right direction to parse an ID from a Vimeo URL in Javascript?
The URL will be entered by a user so I will need to check that they have entered it in the correct format.
I need the ID so that I can use their simple API to retrieve video data.
Any help appreciated.
Hi all,
I recently installed twython, a really sleek and awesome twitter API wrapper for Python. I installed it and it works fine from the interpreter, but when I try to import it via Eclipse, it says that twython is an invalid import.
How do I "tell" eclipse where twython is so that it will let me import and use it?
Thanks!
I have an UIImage view that responds to touch events. I want to cancel the touch sequence if the touch goes outside of certain bounds. How can I do that?
I know that I can inspect the coordinates of the touch object, what I don't know is how to cancel the sequence. I don't see any event in the API that allows for that.
I would like to proportionally decrease the size of all text in a WebView as easily as possible. I've tried android:textSize="..." without success. Api Level 7.
Hi all,
I am passing some weakrefs from Python into C++ class, but C++ destructors are actively trying to access the ref when the real object is already dead, obviously it crashes...
Is there any Python C/API approach to find out if Python reference is still alive or any other known workaround for this ?
Thanks
Hi,
In my application,need to display the upload and download speed and duration of the connected network(wifi).I searched in api found only one method wifiinfo.getLinkSpeed() and a field LINK_SPEED_UNITS.Please give me guidance or sample code.
Regards,
Rajendar
Need to have the server make a POST to an API, how do I add POST values to a WebRequest object and how do I send it and get the response (it will be a string) out?
Hello!
I have a PHP-variable called $go_Adress which contains the adress I need to get a map and a street view from. How do I do that? I have created an api-key but else I don't know how to do it!
Hope you can help.
how can i create method which return sqrt of given nunber? for example sqrt(16) returns 4
and sqrt(5) returns 2.3... please help i am using java and know Math.sqrt() API function but i need method itself
Hi,
I have created an application to interact with Excel in C#.net
The API to save the Excel
Excel._Workbook m_oWorkBook;
m_oWorkBook.Save();
Throws up a File Saveas MessageBox though the workbook was already saved in a given name.
Note:
This happens only in Windows 7 & only when another Workbook was already opened.
Any clues.
Netbeans uses standart UndoManager API for implementation of undo functionality. But neither standart javax.swing.undo.UndoManager nor org.openide.awt.UndoRedo.Manager doesn't have any method to mark states as saved and check modified status. Nonetheless if you change the file and press undo, the file is marked as unmodified. How do they do that? I need the same functionality for my (non-text) editors if the Netbeans RCP application.
HI,
I want to develop a plugin/addin for windows live messegner to show some data from an API. I want to add an icon in toolbar like Messenger Plus do.
And onclick want to open a pop-up to do my work.
Thanks
I'm building an API using PHP.
What do I need to do to recognize a JSON encoded request?
Does it come with a certain request type?
How do I get just the request body so that I can json_decode it?
Hi,
I'm sending mails thanks to the MFMailComposeViewController API, and I manage to add uiimages in attachment, but I'd like to insert my uiimage into html code in my e-mail, any idea of what kind of conversion I should use for my image ?
Thanks.
More of a general question - I don't understand the workings of NSURLSession when using it in "background session mode". I will supply some simple contrived example code.
I have a database which holds objects - such that portions of this data can be uploaded to a remote server. It is important to know which data/objects were uploaded in order to accurately display information to the user. It is also important to be able to upload to the server in a background task because the app can be killed at any point.
for instance a simple profile picture object:
@interface ProfilePicture : NSObject
@property int userId;
@property UIImage *profilePicture;
@property BOOL successfullyUploaded; // we want to know if the image was uploaded to out server - this could also be a property that is queryable but lets assume this is attached to this object
@end
Now Lets say I want to upload the profile picture to a remote server - I could do something like:
@implementation ProfilePictureUploader
-(void)uploadProfilePicture:(ProfilePicture *)profilePicture completion:(void(^)(BOOL successInUploading))completion
{
NSUrlSession *uploadImageSession = ..... // code to setup uploading the image - and calling the completion handler;
[uploadImageSession resume];
}
@end
Now somewhere else in my code I want to upload the profile picture - and if it was successful update the UI and the database that this action happened:
ProfilePicture *aNewProfilePicture = ...;
aNewProfilePicture.profilePicture = aImage;
aNewProfilePicture.userId = 123;
aNewProfilePicture.successfullyUploaded = NO;
// write the change to disk
[MyDatabase write:aNewProfilePicture];
// upload the image to the server
ProfilePictureUploader *uploader = [ProfilePictureUploader ....];
[uploader uploadProfilePicture:aNewProfilePicture completion:^(BOOL successInUploading) {
if (successInUploading) {
// persist the change to my db.
aNewProfilePicture.successfullyUploaded = YES;
[Mydase update:aNewProfilePicture]; // persist the change
}
}];
Now obviously if my app is running then this "ProfilePicture" object is successfully uploaded and all is well - the database object has its own internal workings with data structures/caches and what not. All callbacks that may exist are maintained and the app state is straightforward.
But I'm not clear what happens if the app "dies" at some point during the upload. It seems that any callbacks/notifications are dead. According to the API documentation- the uploading is handled by a separate process. Therefor the upload will continue and my app will be awakened at some point in the future to handle completion. But the object "aNewProfilePicture" is non existant at that point and all callbacks/objects are gone. I don't understand what context exists at this point. How am I supposed to ensure consistency in my DB and UI (For instance update the "successfullyUploaded" property for that user)? Do I need to re-work everything touching the DB or UI to correspond with the new API and work in a context free environment?
Problem: Turn "my testtext TARGETSTRING my testtext" into "my testtext targetstring my testtext"
Perl supports the "\L"-operation which can be used in the replacement-string.
The Pattern-Class does not support this operation:
Perl constructs not supported by this class:
[...]
The preprocessing operations \l \u, \L, and \U.
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
Hi,
I want to develop phone dialer application, the app is to use modem to dial phone numbers and play voice messages .
which java api is to be used,other wise is their opensource IVR paltform to serve that ?
I'm tossing around a few ideas for travel search engines and I'm wondering how these sites get their source data. Do they scrape all the content from airline homepages? This seems like an enormous job given the number of airlines etc out there.
Is there some API or web service standard that every airline conforms too?
Am I going to have to negotiate access to the data APIs for every airline I wish to index?