idle-processing

Trying to connect internally to Oracle, getting an idle instance?

So I have an Oracle instance, and I know it's running on this system, I've su'd to the oracle user, and I'm trying to connect using "/ as sysdba". However, when I do connect, it says the instance is idle. I know the database is up and opened, because my application's talking to it. My paths (ORACLE_HOME, etc.) might be incorrect: any ...

How to know the computer is idle now?

Is there any Win32 API to know if the computer is idle or not? ...

Monitoring user idle time

Developing a mac app, how can I tell whether the user is currently at their computer or not? Or how long ago they last pressed a key or moved the mouse? ...

C# - Detect time of last user interaction with the OS

I'm writing a small tray application that needs to detect the last time a user interacted with their machine to determine if they're idle. Is there any way to retrieve the time a user last moved their mouse, hit a key or interacted in any way with their machine? I figure Windows obviously tracks this to determine when to display a scre...

how to detect internet idle time in c#

how do i detect internet is being idle ( no download/upload) using c#, and i would like to initiate download in my application when internet is idle. ...

GetLastInputInfo is user specific - is there something similar which gives machine-wide last input time

As per MSDN, http://msdn.microsoft.com/en-us/library/ms646302%28VS.85%29.aspx GetLastInputInfo does not provide system-wide user input information across all running sessions. Rather, GetLastInputInfo provides session-specific user input information for only the session that invoked the function. Is there something simi...

How to Prevent ProcessMessages in Delphi

The Application.ProcessMessages command is well known and I use it in long processes to ensure my program will not tie up the computer. But I have one fairly quick set of processing, where I am buffering a view into a file. During the buffering procedure, a few system messages may get sent off (e.g. redraw or scrollbar move or other eve...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn't mean the system has been idle for 10 minutes - scans, downloads, movies - lots of reasons. So how can we identify whether the system is truly idle or...

Automatically scroll when mouse is idle

I need to find a way to randomly scroll horizontally and vertically, plus or minus a set number of pixels per second in each dimension, when the mouse has been idle for a set amount of time. Any ideas on how to achieve this? Thanks in advance, Robert ...

Is there a way to detect inactive time of a user in a website? (Idle time)

This is my approach : I reserve last time that a user post a postback to server in a session and in every postback subtract this value from current value. Is there a better way for this? I think that my approach haven't a good performance. ...

usleep() php5 uses 40% of idle CPU

Hi guys I have a weird question, I have a cli php script runs on Centos 5.x which uses usleep (somtimes 1sec, sometimes 2sec, somtimes 100ms it depends) if there is some wait required, but what I have noticed its that once on usleep() it seems to use about 40% of idle CPU: Cpu(s): 5.3%us, 21.3%sy, 0.0%ni, 57.2%id, 0.0%wa, 0.0%hi, ...

Flex VideoDisplay reconnect after idletimeout

I have a VideoDisplay that is able to connect to a source and play. After the connection times out I want the connection to be re-established when my play button is clicked. Right now when I reset the source and play the videoDisplay, it gets stuck in the loading state. ...

How to get the idle time in Windows XP using VBA?

I would like to know the current idle time from user input on a given Windows XP machine programmatically. I am using VBA in MS Access. What options do I have? ...

linux kernel idle tick eater (or what will be current task_struct when CPU is 0%)

Hello What process will be pointed by "current" pointer in linux kernel, when CPU load is 0% and there isn't any ready-to-run process? Consider situation without any power-saving. What is the name of this process? I think task with PID 0 will be running and code will be rep nop or HLT ...

Java: Checking if PC is idle

This is a rather tricky question as I have found no information online. Basically, I wish to know how to check if a computer is idle in Java. I wish a program to only work if the computer is in active use but if it is idle then to not. The only way i can think of doing this is hooking into the mouse/keyboard and having a timer. MSN Me...

Safest way to idle delphi application to wait for timer?

I am doing a delphi application that will run on my pc 24/7 in the background and will check if it has to do some actions or not, wait 30 minutes and check again, and so on. How can I make sure the application will not overload cpu or memory because of being running all the time. ...

Why peekmessage before getmessage?

Why the peekMessage statement is required before Getmessage() for creating message queue? ...

Exception in the OnIdle event does not bubble up

On my main form, I subscribed to two events: Application.ThreadException and Application.Idle. In theory, any exception that is not caught should get bubbled up to the main form. However, this does not work if the exception happens in the OnIdle event. The system just crashes. Does anyone know how to solve this problem? Thanks so much. ...

Third party Application's Idle Session expiry

We have a third party application running. It shows login dialog when idle for 20 minutes. We need to prevent the application to display login screen. We do not have any idea how idle state is handled internally in that application. We have done the follwoing with no luck. Created an small application in c# which focus it after ever...

Detecting Idle time in a C# WinForms without Application.Idle

Hi, I have a strange issue that I'm not too sure on how to fix or address. I'm writing a mini text editor style application - RichTextBox editor. I need to do some complex parsing after the Selection changes - updating position, selection text and various other bits about the context of the text around the area. As it takes a bit of p...