monitor

How to turn on monitor after wake-up from suspend mode?

Hi all, I need wake up PC from sleep to perform some actions - from C#. I've used CreateWaitableTimer functions, everything goes fine, at given time PC wakes up - but monitor stays in power save mode (turned off). So i want to know - how possible to turn on monitor after wake up? PS I've tried "Complete Guide on How To Turn A Monitor On...

Does this use of Monitor.Wait/Pulse have a race condition?

I have a simple producer/consumer scenario, where there is only ever a single item being produced/consumed. Also, the producer waits for the worker thread to finish before continuing. I realize that kind of obviates the whole point of multithreading, but please just assume it really needs to be this way (: This code doesn't compile, but...

Monitor Network Traffic Mac

I'm wondering how to go about monitoring network traffic on my Mac. Like the way activity monitor does it, showing the bytes / packets in and out. I know it's a bit vague, but I'm unsure of the best place to start. EDIT: I forgot to mention, I'm wanting to do this in code, not use an existing piece of software. ...

Getting monitor size in python

I am using python and want to create a fullscreen window. I know about the pygame.FULLSCREEN flag but when I use that there's areas of black around the screen. Is there any way to get the monitor size using python so I can make the window the correct size? ...

Is it possible to know which java classes are doing disk IO operations

I know the Resource Monitor in Windows7 can do such thing. But I need a monitor on other windows platforms. Any idea? Thanks. ...

WM_NCHITTEST and secondary monitor to left of primary monitor

The described setup with 2nd monitor to left of primary causes WM_NCHITTEST to send negative values which is apparently not supported according to this post. I have a custom control written in win32 that is like a Group control. It has a small clickable area. No MOUSE events are coming to my control when the window containing the cust...

Monitoring process-level performance counters in Windows Perfmon

I am sure everybody has bumped into this. As you scale a web server that uses multiple application pools, it's valuable to collect performance counters for each application pool 24x7. The only problem is - Perfmon links counters to application pools by process ID, so whenever an application pool recycles you have to remove the counters f...

Exist on .NET any way to detect if a Monitor with VGA plug is still plugged-in?

That's all, I want to know if someone unplug the monitor and take several actions, any idea? Thank you ...

best tool for monitoring incoming/outgoing requests (PC/MAC)?

What are the best tools for monitoring incoming/outgoing requests from a PC or MAC? Any tool that works well on both? (my guess is N/A) I'm interested in capturing HTTP (possibly even TCPIP)-based requests and responses. Does Wireshark always come out on top or are there alternatives people feel are better? Thanks for any info. ...

How to check if aspect ratio auto adjustment is enabled in monitor

Game application is written in C++ and uses DirectX 8. I am getting a maximum monitor resolution to calculate it's aspect ratio. Then I use this value to fix game rendering (scale and set clipping to receive normal 4:3 image with black borders on wide screen monitors). How can I check if monitor is using aspect ratio auto adjustment no...

How to use JavaScript to measure how bright a users monitor is ?

I've noticed that the brightness of computer monitors drastically varies between computers. As such, this changes the look of web pages greatly. Is there a way to use JavaScript to automatically detect how bright (or dark) a users monitor is so that I can adjust my web page colors accordingly? UPDATE Please note that I do not want ma...

How to calibrate a Mac Monitor for iPhone development

How to calibrate a Mac monitor to match the iPhone's colours? What is the iPhone's gamma? Thank you. ...

CPU temperature monitoring C#

For a programming project I would like to access the temperature readings from my CPU and GPUs. I will be using C#. From various forums I get the impression that there is specific information and developer resources you need in order to access that information for various boards. I have a MSI NF750-G55 board. MSI's website does not have ...

How to make a simple clipboard monitor in python

Hi! I was wondering how to make a simple Clipboard Monitor in python, for GUI I'm using PyGTK. I found gtk.clipboard class and all that but I couldn't find any solution to get the "signals" to trigger the event when the clipboard content has changed :( Any ideas? Thanks you! :) ...

server health monitoring by JMX

hi all. i want to write a server health monitoring tool. i want to a tool that periodically check server's availability and alert when any problems has occurred.i searched on google and noticed that i colud use JMX for my case. but when i read JMX documentation, i have confused. so i need help about how to do this. for example a tool t...

Can a thread call wait() on two locks at once in Java (6)

I've just been messing around with threads in Java to get my head around them (it seems like the best way to do so) and now understand what's going on with synchronize, wait() and notify(). I'm curious about whether there's a way to wait() on two resources at once. I think the following won't quite do what I'm thinking of (edit: note th...

Using JMX classes to notify on events over time

I've been looking at JMX for monitoring application and system metrics (partially because MBeans can accessed by various tools such as JConsole). It would seem like the classes included with JMX would be useful for things like notification when metrics have exceeded thresholds. But I'm not sure they fit with the way I want to measure the...

How do I get Monitor resolution in Python?

What is the simplest way to get monitor resolution (Preferably in a tuple)? ...

Xcode Instruments: Analyze Network Traffic

Hi Guys, i have a problem with testing my iPhone app: i want a summary of how much network traffic the app needs for a special operation. I have tried using instruments, but the network activity monitor has no sum of the traffic (and i really neeeeeeed a sum!!!). So how can i get the sum out of the network activity monitor? Best regar...

Monitor Process in Python?

I think this is a pretty basic question, but here it is anyway. I need to write a python script that checks to make sure a process, say notepad.exe, is running. If the process is running, do nothing. If it is not, start it. How would this be done. I am using Python 2.6 on Windows XP ...