monitor

Tool for monitoring SQL query results needed

Hi, I am looking for a tool to monitor results of a periodically run sql query and raise a notification based on the fact that the query returns any results. (any other filters are welcome) I need to watch a transaction table for errors, and it would be great if my sql query could run in background, refresh itself periodically and show...

autmatic turnng off of the monitor when computer is locked.

hi, I want to write a program in java such that as soon as the computer is locked by pressing (ALT +CTR+DEL -> lock comp ) the monitor becomes off.I want to implement this is java. Also when user presses any key of keyboard the monitor shold be on. How can i do this? I want to save the electricity by doing this and make save environm...

Adobe Color Profiles/Color Spaces, how is it possible that this works?

I'm learning about Color Profiles/Color Spaces/Monitor Color Management Profiles and I was just wondering how any of that justified considering the fact that I could throw the entire color anything off by adjusting the brightness and contrast of my monitor? Additionally there are things like lighting in the place where your monitor resi...

How are things represented visually?

Hello, I'm a beginner and I was wondering how pictures,video,windows and buttons etc are represented visually on the screen. I'm not asking whether it was made from for example gtk or wxwidgets, My question is what is the fundamental idea behind making the pixels come up the way they do. And what exactly does GUI library use to put them ...

Visual Studio 2008 SP1 30" Monitor

Visual Studio 2008 SP1 runs really slow on my 30" Monitor, is anyone else having this issue or have a fix for this? What I mean by runs slow, is when I scroll or start typing something, it takes a little while for it to respond. When I put it on my smaller monitor (24" or smaller) it works perfect. Thanks for your help! ...

Why does Monitor.Pulse need locked mutex? (.Net)

Monitor.Pulse and PulseAll requires that the lock it operates on is locked at the time of call. This requirement seems unnecessary and detrimental for performance. My first idea was that this results in 2 wasted context switches, but this was corrected by nobugz below (thanks). I am still unsure whether it involves a potential for wasted...

Is there a way to hook up the HTC Pro2 Smart Phone to an external monitor?

I use a web based CRM but can view enough of the information displayed once I am logged into the CRM on the HTC Touch Pro2. Ideally I would like to hook up an external portable monitor to the Touch Pro2 to increase my functionality of this CRM. ...

Synchronization problems with Monitor class in WCF service

I have a self-hosted WCF service and I'm having the following problem: 15 minutes after creating the instance of the service TryEnter calls in operation contract methods constantly return false, but the TryEnter calls in Main function, which also uses synchronization via Monitor class, return true. Here's the description of my app and t...

Iphone: get contacts modification Detail

hi all, In my application, i store some information of each contact in database. i want to know that whether there are any method from which i can know which contact is updated/inserted/deleted. Basically i want to monitor the conacts directory. and make appropriate changes in my database. Please suggest ...

Condition variables in C#

Are condition variables & monitors used in C#? Can someone give me an example? ...

Registering change notification with Active Directory using C#

This link http://msdn.microsoft.com/en-us/library/aa772153(VS.85).aspx says: You can register up to five notification requests on a single LDAP connection. You must have a dedicated thread that waits for the notifications and processes them quickly. When you call the ldap_search_ext function to register a notification request, the funct...

How to check/monitor scripts to ensure they are working?

Hi all, I was told to do a payment page using Paypal and so far it is working fine. Users can load it and purchase items with no issues. But recently, there is a requirement to do daily checks that the page is working properly. Like a health check. The objectives are: Load the payment page (something like a checkout page). Ensure the...

When to use lock vs MemoryBarrier in .NET

In .NET the lock keyword is syntactic sugar around Monitor.Enter and Monitor.Exit, so you could say that this code lock(locker) { // Do something } is the same as Monitor.Enter(locker); try { // Do Something } finally { Monitor.Exit(locker); } However the .NET framework also includes the MemoryBarrier class which works in a s...

Winform size changes

Hi, When i run the EXE of winforms it runs perfectly in 14 inch monitors , but it rearranges and the contents shrink and look bad when i run the same EXE in 12 inch monitors. Has .NET Exes have some issues with the monitor size? Please help me. Thanks, Karthick ...

how can I find out which user send the print command to windows/windows server programmatically?

Hi , I have a windows network (peer-2-peer) as well as Active Directory and I need to log the name of users who send any kind of print to the server. I want to write a program to log their username and/or their respective IP and I'm familiar with c#.net and c++ but I haven't found any clue regarding how to solve my problem. is there any...

Traffic monitoring and shaping (C\C++)

Hi! I want to write a library (C\C++) which would be able to monitor network traffic (TCP and UDP) as well as limit bandwidth to a particular network area (apply different traffic shaping rules to different network zones). This library should work on Windows 7 (64-bit). I would be glad if this kind of library can be written as entirely u...

[C#] how to know the application is shutting down

There is a WPF application. i want to log when the application is closed. but i cannot modify the application (some restriction, just because business). So i create an invisible form component live inside the existing application, add as a dll library, so the existing application do not need to be modified. but the issue is, how can ...

hbTAPI Monitor Media Modes ERROR

Hi there folks, I'm using the hbTapi Delphi7 Components, and I need to set MonitorMedia.Active in a TAPI call so I can detect the type of the connection. Problem is that when I say: wTpCall.MonitorMedia.Active := true; I'm getting an error: "Operation not supported by underlying service provider"... Why's that? I have installed all t...

How to automatically monitor and limit resource of process on Windows

On Linux, normally I use ptrace function to trace all syscall, and kill the process if the it tries to do anything harmful to my machine, such as system("shutdown -s -t 00") or so. Is there a way for me to do this on Windows? EDIT: I want to write Sandbox program to limit time and memory usage of its child that can work on both Windows...

What is unsafe in this extreme simple thread Monitor implementation?

I am new in thread syncronization. I was reading many implementations of conditional variables, like boost::threads and pthread for win32. I just implemented this quite simple monitor with wait/notify/noifyall, and i guess that there are many hidden problems with it, that I would like to discover from more experienced people. Any suggest...