monitor

Track system activity

Is there a neat/easy way in objective-c/cocoa to track if a user is at their computer, ie I assume by detecting key presses and mouse movement? (ie I want to fill out my timesheet automatically by detecting when I am at work and not at work) ...

Dbus: is there such a thing as a "Dbus sniffer" ?

Is there such a thing as a "Dbus sniffer" ? I would like to "sniff" all (or part) of the messages transiting on Dbus. ...

Is the recent trend toward widescreen (16:9) computer monitors a plus or minus for programmers?

It's almost gotten to the point where you can't buy a conventional (4:3) monitor anymore. Pretty much everything is widescreen. This is fine for watching movies or TV, but is it good or bad for programming? My initial thoughts on the issue are that widescreens are a net negative for programmers. Here are some of the disadvantages I see:...

Find Number and resolution to all monitors

How would one poll windows to see what monitors are attached and what resolution they are running at? ...

How to set multiple desktop backgrounds (dual monitor)

I have a code snippet to set a single image across both monitors but I recently got a second monitor for my laptop and I wanted to modify my code to account for setting a diffrent image to each monitor. Any ideas? (this code snipet for single monitor is: [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern I...

How do I create a monitor for a specific directory?

Using Java over Windows Vista, I'm trying to create a kind of a monitor for a directory, so every time this directory is modified (new, renamed, updated or deleted files) a process is triggered. I tried to do this with a loop that will execute a dir in the directory and analyze all the files. But this is very time and memory consuming, s...

Multi Threading locks and monitor class not working

I have a file that is read and written to. I need to make sure when its been written to, nobody else will try to write to it. I put a lock on the whole function which allows to either read or write but I still get errors such as The process cannot access the file 'FILENAME' because it is being used by another process. public static TY...

Monitoring Java from within Java

I want to write a simple visualization of a Java program by displaying the program's method calls as branches of a tree. This could be done quite simply by having the program itself tell the visualization what it is doing, but I want to be able to do this with any Java method/class and not just the ones I modify to do so. What I need is...

MIDP application, blocked by Connector.Open(..)

Hi all i've been having the worst time of my life trying to understand why this is happening, any input would be greatly appriciated. The code in question runs in a diffrent thread then the midlet, although the thread starts after the connection is made, I've tried the other way around and i end up at the same spot.. when executing thi...

System.ArgumentNullException in System.Threading.Monitor.Enter

I've got a code like this: Some of our clients receiving "System.ArgumentNullException in System.Threading.Monitor.Enter" in the following code block: Public Class CheckStuff Private Shared SLock As New Object Public Sub GetIt() Synclock SLock DoSomething() End Synclock End Sub End Cl...

C# producer/consumer

hi, i've recently come across a producer/consumer pattern c# implementation. it's very simple and (for me at least) very elegant. it seems to have been devised around 2006, so i was wondering if this implementation is - safe - still applicable Code is below (original code was referenced at http://bytes.com/topic/net/answers/575276-prod...

Programmatic resource monitoring per process in Linux

Hi, I want to know if there is an efficient solution to monitor a process resource consumption (cpu, memory, network bandwidth) in Linux. I want to write a daemon in C++ that does this monitoring for some given PIDs. From what I know, the classic solution is to periodically read the information from /proc, but this doesn't seem the most...

How can i connect to remote server for CPU process time monitoring ?

I want to connect to remote server to monitor the cpu process time when i run the stress test. But it always failed, what can i do to successfully connect to remote server ? ...

How can I Monitor cpu usage per thread of a java application in a linux multiprocessor environment?

Hello, I'm running a multithreaded java app in Linux RedHat 5.3 on a machine that has 8 cores (2 quad-core cpu's). I want to monitor the cpu usage of each thread, preferably relative to the maximal cpu it can get (a single thread running on 1 of the cores should go up to 100% and not 12.5%). Can I do it with jconsole/visualVM? Is ther...

C# Multithreading - Telling a waiting process that the first process has finished using the locked code?

I understand that when developing multithreaded applications you must synchronize access to shared memory using either, for instance, a monitor or a lock. QUESTION How do you tell the waiting process(proc2) that the process using the locked code block (proc1) has finished using the code? ...

Monitor USB traffic

I want to view all traffic going out the USB, with the potential to block data transactions to/from the USB based on content policy. How would this be done? Any way to achieve this in C#, or is it more of a C++ type of problem? ...

how my cocoa application can track streaming-audio activity

I have to develop a application to log online streaming information like opened player(iTunes,Quicktime),running track, total running time of particular track. ...

desktop windows arrangement

Hi there I remember that Jeff was talking in a podcast about an utility which help him to send opened windows to certain zones of the screen, or resize them, just by using some keyboard combination. This seems to be verry useful, especially when you work on two monitors and you don't wana broke your work flow by talking the mouse, movin...

hide app from activity monitor using objective c

hi, if i have an app written in objective c, is there a way to hide it from being shown in activity monitor? ...

.Net Winform Apps with Portrait Monitor

I have noticed an undesirable behavior with .net winforms applications. I have a wide screen monitor rotated 90 degrees to the portrait orientation. When .net winforms applications display on it, the window appears, but it is all blank, white. I can fix the window by hitting ctrl-alt-delete and when the dialog comes up, hitting cancel, t...