I would like to fadeIn a node over one second. Then leave it on for 10 seconds. Then fadeOut for another 3 seconds. One way of chaining this would be as follows:
dojo.fx.chain([
dojo.fadeIn({node:myNode, duration:1000}), // fading in for 1 second
dojo.fadeIn({node:myNode, duration:10000}), // this does nothing for 10 seconds
...
I want to know how to put delay in a Python script.
...
I know that some people are unable to function past a bedtime of, say, 10 or 11pm, and really need their 8 hours' sleep each night. I'm even married to someone like that.
I'm at the opposite end of the spectrum - often up late, tending to wake up fully refreshed after 6 hours sleep, able to go by on less, used to pull all-nighters at th...
I would like my computer to do specific tasks periodically or at a specific time.
Such as:
to wake up each 15 minutes, connect to the Internet, check e-mail, beep (if there is unread mail), then go standby again
to wake up at 8 am and play music
In the best case, it should be asleep and therefore, silent and going low-power.
It's n...
I have to stop windows from going into sleep when my program is running.
And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough.
Or...I don't actually have to prevent the ...
in my code I'm using
Thread.currentThread().sleep(sleepTime);
in the main (non Thread object) portion of the code.
It appears to be working fine, but I'm worried that there might be some hidden pitfall that will bite me in the ass later.
Is there a better way to make your main process sit around for a while? or is this the prescribe...
I want my bash-script to sleep until a specific time. So I want a command like "sleep" which takes no interval but a end-time and sleeps until then.
The "at"-deamon is no solution as I need to block a running script until a date/time.
Is there such a command?
...
I have a "generate website" command, that parses through all the tables to republish an entire website into fixed html pages. That's a heavy process, at least on my local machine (the CPU rises up). On the production server it does not seem to be a problem so far but i would like to keep it future proof. Therefore i'm considering using t...
Is there to way write a T-SQL command to just make it sleep for a period of time? I am writing a web service asynchronously and I want to be able to run some tests to see if the asynchronous pattern is really going to make it more scalable. In order to "mock" an external service that is slow, I want to be able to call a SQL server with...
How exactly would I make both of my monitors go to sleep, I want to write an application myself because I'd like to add certain functionality, and so far I can't find anything on MSDN relating to making your display go to sleep.
...
I have an NSTimer running in my application that collects some data and sends it to a server periodically. In production the timer will fire every few hours.
I am worried about interfering with automatic sleep. In testing, some combinations of timer and sleep time prevent automatic sleep entirely — the display sleeps, the system keeps r...
..and my app is still running!
There is this question about what happens when it goes to sleep + wakes up. I know it's calling:
- (void)AppDidBecomeActive:(NSNotification *)notification {
if(jsocket){
[jsocket release];
}
jsocket = [[johnsocket alloc] init];
if(![jsocket connectViaSocket:(NSString*)ipaddress port:@"3660"]){ //por...
I'd like to use a linux pc purely to collect rss feeds, but would like to minimise it's power usage as much as possible.
Presumably I would create some kind of cron job to bring it in and out of sleep mode or are there better ways of tackling this?
...
The title says it all. I want to call Sleep(x), where x is milliseconds to sleep. I know this is the function, but it doesn't work for me. What do I need to include?
---SOLVED---
I was using the compiler option /Za, which disabled the native Windows extensions used in Sleep()'s implementation.
...
My app needs to block sleep/hibernate mode. I have the code in place, but after successfully catching the WM_POWERBROADCAST message, neither PBT_APMQUERYSUSPEND nor PBT_APMQUERYSTANDBY are being caught successfully. Interestingly, the PBT_APMRESUMECRITICAL and PBT_APMRESUMEAUTOMATIC messages are being caught by my app.
Bottom line quest...
Hello!
I have two questions concerning the sleep() function in PHP:
1) Does the sleep time affect the maximum execution time limit of my PHP scripts? Sometimes, PHP shows the message "maximum execution time of 30 seconds exceeded". Will this message appear if I use sleep(31)?
2) Are there any risks when using the sleep() function? Does ...
Does anyone know a Library which provides a Thread.sleep() for Java which has an error not higher than 1-2 Millisecond?
I tried a mixture of Sleep, error measurement and BusyWait but I don't get this reliable on different windows machines.
It can be a native implementation if the implementation is available for Linux and MacOS too.
...
How do I sleep for shorter than a second in Perl?
...
Hi,
in my multithraded application, I'm using a sleep() function (the one from the GLFW library):
glfwSleep(..);
and it apparently leads my application to segfaulting as my call stack shows:
#0 76CFC2BC WaitForSingleObjectEx() (C:\Windows\system32\kernel32.dll:??)
#1 00000016 ??() (??:??)
#2 0000006C ??() (??:??)
#3 00000000 ??() (...
I spent a good long while looking for info on the differences between time.h::sleep() and pthread.h::pthread_yield() but was unable to find any solid reference material and so I am posting this question.
What is the difference between time.h::sleep() and pthread.h::pthread_yield()?
Update:
The reason I ask is because I was using sleep...