How can I look up a hostname given an IP address? Furthermore, how can I specify a timeout in case no such reverse DNS entry exists? Trying to keep things as fast as possible. Or is there a better way? Thank you!
Hi,
my app does something when the screen goes black, but I want it to only carry out that task if the screen was turned off "by itself", through a screen timeout - NOT when the user presses the power-button. Is there any way to distinguish between those two events?
ACTION_SCREEN_OFF obviously fires in both cases, and I haven't found any other…
It seems that if there is a sql memory leak somewhere and you dont have time to find it you can use the load balance timeout option in a sql connection string to destory the connection after x seconds.
Am i right in assuming I can set the load balance time out to 30-40 seconds and then hunt for the leak latter, while in the mean time the leak…
I have embedded Lua in a C/C+= application. I want to be able to set a timeout value to prevent getting trapped with badly written scripts that can result in infinite loops (or even string searches that take an infinite time to complete).
Basically, I want to be able to set a time interval and if the script fails to complete running at the…
Hi,
I need a console app which will calling webmethod.
It must be asynchronous and without timeout (we don't know how much time takes this method to deal with task.
Is it good way:
[WebMethod]
[SoapDocumentMethod(OneWay = true)]
??
Until recently, I have been able to forward ports just fine. I have no firewall and have not changed my ISP or router. When I scan my ports the result i always get is "Timeout".
Hi,
I have a programming running on linux ubuntu which tries to connect to a server port using TCP.
Can you please tell me how can I find out that is timeout value for a client socket connecting to a server socket for ubuntu?
Thank you.
I am trying to access an Exchange 2003 server using WebDAV, but I get a (440) Login Timeout error whenever I try to connect to the Exchange web client (https://server/exchange/mailbox/inbox)
Any ideas on what would cause this? If I browse to the URL, I can login manually but I am unable to get past the 440 error when accessing the page…
Sometime some words and statements grabs your attention and it is hard to stop thinking about that after a while. Something similar happened a few days ago when I read the twitter statement of my friend and Pluralsight author John Sonmez. He twitted few days ago very interesting statement.
“I don’t know a single successful person, who…
Hi I get these error log when viewing a page
ERROR [TP-Processor11] (LazyInitializationException.java:42) - could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:132)
at…
My problem is very similar to this question, however I am posting a new one, as the answer to the aforementioned does not seem to solve my problem.
I have a multiview application - the first view is where the user logs in to Facebook, and the second where he picks an image and uploads it there. The first time the app runs,…
I setup a test box computer with server 2008 (standard edition, not R2 and not hyper-v editing). I then installed SharePoint 2010. I was amazed how easy the whole setup went (the prerequisites setup on the SharePoint disk made this process oh so easy – great install system). Really this was just so easy.
This test box is…
I have installed PHP to work with IIS6 (with FastCGI). I am capable of viewing a sample test website that shows the PHP info with the following code:
<?php phpinfo(); ?>
Now that this works I tried to migrate my PHP website to IIS6 and here is a list of the errors/warnings I got:
PHP Warning: session_start():…
I'm using the code from the example titled "A Slightly Bigger Example" from this tutorial http://rubylearning.com/blog/2009/09/30/cookie-based-sessions-in-sinatra/ to figure out how to send a cookie to a Sinatra application but I can't figure out how to set the values correctly
When I set the name to be "brandon" in…
Actually we've lot of quartz jobs in our application. For some time all of the jobs work fine. After some time all jobs are throwing the following exception.
org.quartz.JobExecutionException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here [See nested…
Hi,
I am trying to share the contents of the session variable across two subdomains but for some reason it is not working.
The sessionid is exactly the same on both subdomains but the variables aren't available.
I can achieve this with Cookies and this s working but would rather use the values in the session.
…
How do I prevent Rails from always sending the session header (Set-Cookie). This is a security problem if the application also sends the Cache-Control: public header.
My application touches (but does not modify) the session hash in some/most actions. These pages display no private content so I want them to be…
I am trying to detect a midair collision problem (simultaneous editin) using selenium.
So I start a selenium session A with following (Super Class)
selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL);
selenium.start();
selenium.open("index.cgi");
then I try starting a different…
Let's say I have simple Login servlet that checks the passed name and creates User object and stores it in a session.
User user = new User();
user.setId(name);
request.getSession().setAttribute("user", user);
response.sendRedirect("index.jsp");
In the index.jsp page I access the user object through…
I am having trouble in configuring WCF service to run in session mode. As a test I wrote this simple service :
[ServiceContract]
public interface IService1
{
[OperationContract]
string AddData(int value);
}
[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
internal class…
Hi,
I've got a staeful session bean.
@Scope(ScopeType.SESSION)
@Name("chuckNorrisBean")
public class ChuckNorrisBean implements Serializable, ChuckNorris
with some function
public void roundHouseKick()
{
...
}
interface
@Local
public interface ChuckNorris
{
public void…
I have a EF4/ASP.NET web application that is structured to use POCOs and generic repositories, based essentially on this excellent article.
The application is relatively sophisticated with one page that involves selection and linking of multiple entities to build up a complex user…
We have an application which uses ScriptManager to generate a client-side proxy which makes AJAX calls to web services. The web services being invoked live in a separate appDomain(separate cluster altogether). The problem is that our application uses a State server for storing…
hey
i have iphone application that using facebook connect.
users login to the iphone application using facebook connect.
and then i receive their sessionKey back to my server, and i am using the sesssionkey to post actions to users wall.
the iphone application keeps the user…