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)
...
Is there such a thing as a "Dbus sniffer" ?
I would like to "sniff" all (or part) of the messages transiting on Dbus.
...
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:...
How would one poll windows to see what monitors are attached and what resolution they are running at?
...
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...
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...
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...
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...
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...
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...
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...
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...
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 ?
...
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...
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?
...
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?
...
I have to develop a application to log online streaming information like opened player(iTunes,Quicktime),running track, total running time of particular track.
...
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...
hi, if i have an app written in objective c, is there a way to hide it from being shown in activity 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...