I'm writing a linux driver and I would like to register a callback function to be invoked when the system goes to sleep. What is the api to do this?
Thanks.
Hi,
I have done changes in registry (proxy settings) via Windows programming code.
I have to restart (reopen) Internet Explorer each time I run the code to make those changes take effect.
Is there any API in Windows programming through which I can notify Internet Explorer or Windows that changes are made to the registry and there will not be any need to reopen Internet Explorer to make those changes take effect?
Thanks.
I am not sure if this belongs on serverfault or superuser.
I would like to override SetThreadExecutionState(ES_DISPLAY_REQUIRED) to be a no-op. How is this accomplished?
Is there some registry setting that can be altered instead of API hooking?
Blocking ES_DISPLAY_REQUIRED will prevent apps from keeping the monitor powered on. I have an application (likely the antivirus) that is preventing some monitors from entering power-save and I think this function is the culprit.
Hi,
I need to implement the Win2k3 password validation policy. As my application resides on Win2k3 cane we validate the password directly with windows domain password by using LDAP. This is because application design does not want to store 8/more password entry into DB and validate new password against that. As Windows already does same thing and using LDAP we can lookup into windows server.
Can any one please let me know LDAP API to fulfill above requirement in VC++.
Using jquery's $.ajax function, I'm not able to parse the results. For example, I used it like this
$.ajax({
url : "http://api.twitter.com/1/users/show.json?screen_name=techcrunch",
dataType : "json",
success : function(data)
{
// parse the JSON here
},
error : function()
{
alert("Failure!");
},
});
This doesn't work. Do I need a callback function?
Hi,
I would like to access smtp outgoing mail server address from global setting-mail-accounts-outgoing mail server. Is there any public API available now to get the user global setting values?
Thanks
Manoj
How to build a folder structure using morphia or the mongodb API? I am looking for something like this.
folderA
--->folderB
--->folderC
------>fileC
------>folderCA
---------->fileCA
I am trying to get PHP to extract the TOKEN (the uppercase one), USERID (uppercase), and the USER NAME (uppercase) from a web page with the following text.
{"rsp":{"stat":"ok","auth":{"token":"**TOKEN**","perms":"read","user":{"id":"**USERID**","username":"**USER NAME**","fullname":"**NAME OF USER**"}}}}
(This is from the RTM api, getting the authentication token of the user).
How would I go about doing this? Thanks!
I have searched a lot but could found a code where i can add comobox on screen
CAn anyone give me example .
like
Var combobox = new Combobox();
i don't have any gui
Where can i get the list/attributes of all the components like API for use in AS3
Hi,
I would like to know if C++ provides any API (not third-party) for pattern matching using regular expressions like Java does. If it doesn't, whats the best way to do it ?
Thanks.
How to do it? Any sample code would be nice ... I have tried directly using the graph api but it needs access_token and I don't know how to get it ... I am using Facebook developer toolkit
I'm a big fan of JGraphT, a Java library for graphs. Could anyone recommend a similar Java library for trees? Preferrably FOSS.
What I need is a good API, preferrably typesafe with generics which allows modelling different kinds of trees (with some user data attached to verticies/edges) and run different algorithms and operations on these trees. For instance, traverse or balance.
At the moment I'm not interested in visualization of trees.
I have a string which contains a contiguous chunk of digits and then a contiguous chunk of characters. I need to split them into two parts (one integer part, and one string).
I tried using String.split("\D", 1), but it is eating up first character.
I checked all the String API and didn't find a suitable method.
Is there any method for doing this thing?
Adobe Air's (read: Flex) mx:HTML component uses WebKit to render webpages. As such, does anyone know of a way to tweak WebKit's settings via the Air application (or a Flex API)? For example, I'd like to set WebKit's "enable-private-browsing" setting from "false" to "true".
according to my code when my device are use in Landscape
when i pushViewController it will
automatic show in UIDeviceOrientationPortrait.
i need to rotate my device to Portrait and then rotate to Landscape,
then it will present in Landscape mode.
how can i rotate to current of Orientation with out use of private API(setOrientation)?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIDeviceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
I am running Symfony 1.3.2 on Ubuntu. I need to write a batch script that can:
Access the database using the ORM
Send email(s)
IIRC, this was in a previous cookback, but I thing that was for an earlier version of Symfony (the API may have changed since).
Does anyone know how I may access the database via the ORM layer in a batch script and also how to send out email(s) in a batch script?
I know that google goggles will translate a picture to text. What I want to do is allow the user to take a picture (no problem), translate that picture to text(?) and then do some processing on the text (no problem).
Is there any API on android that allows this? or is there any way to programtically communicate with google goggles? I would hate to have the user use goggles then select the saved file with my app.....
How do I parse an xml document as a stream using Scala?
I've used the Stax API in java to accomplish this, but I'd like to know if there is a "scala" way to do this.
Would it be possible to integrate Python (and/or Perl) and Ruby? I've looked at http://www.goto.info.waseda.ac.jp/~fukusima/ruby/python/doc/ and http://code.google.com/p/ruby-perl/ , but they both seem rather outdated.
Has someone generated a Ruby interface for Python's C API?
There's a couple questions here on StackOverflow on the subject of threading with the Swing api but things still aren't clear. What is the issue with the EDT, what is the proper way to initiate a Thread with Swing and in what cases should it be used?
P.S: Any sources in terms of good practises would be appreciated.
The com.google.gwt.app.place package is new in GWT 2.1 which came out yesterday. Do you have any example on that API? How do I effectively use it? The GWT samples does't help at all.
I customized the content of Defect in my Rally workspace adding a new custom field.
This custom field is of type string, its name is CustomTest and its display name is CustomAttribute.
I added the value "test" on a defect, but I can't create a working query on that custom field (I'm developing in Java and using the ws api for rally).
the query I tried are
String query8 = "(CustomAttribute = \"test\")";
String query9 = "(CustomAttribute = \"test\")";