windows

Why does WaitForSingleObject(INVALID_HANDLE_VALUE, INFINITE) block?

Why does HANDLE mutexHandle = INVALID_HANDLE_VALUE; WaitForSingleObject(mutexHandle, INFINITE); block? It does not return with an error message. Checking the handle for INVALID_HANDLE would be stupid for a mutex as I would need a mutex for accessing the mutex handle... BTW: It does return with WAIT_FAILED if the handle was closed. ...

Servlet on Tomcat is not accessible from my browser

Hi, I've installed Tomcat 5.5 in windows Xp, but when I try to run my servlet by typing for instance localhost:8081\Servlet\Servlet1 in Mozilla browser, I'm getting blank page . I already uninstalled, and then reinstalled it, but it didn't work. I've to keep refresh the page, to make my servlet run. What's the reason of not running Tomc...

Sync system time to domain controller using .NET code

I have time based tests to run that require changing the system time multiple times during the test. I want to be able to resync the time to the domain controller time at the end of the test. I there any way to do that using .NET code (C#). I am changing the time using the p-invoke function found in: http://stackoverflow.com/question...

saving a records containing a member of type string to a file (Delphi, Windows)

I have a record that looks similar to: type TNote = record Title : string; Note : string; Index : integer; end; Simple. The reason I chose to set the variables as string (as opposed to an array of chars) is that I have no idea how long those strings are going to be. They can be 1 char long, 200 or 2000. Of course when...

How to install Java environment most easily on windows?

Last time I came into wampserver for PHP/MySQL/Apache ,which saved me a lot of time. Now I need to install java, is there any software to recommend? ...

Why would a long Rake task just stop, then start again?

I have a complex legacy data migration problem. MS Access data going into MySQL. I'm using a Rake task. There's a lot of data and it requires a lot of transforming and examining. The Rake task is hundreds of lines across about 12 files. The whole thing takes about two hours to run. It has to run on Windows (I'm using XP VMware VM hosted ...

PHP gettext on Windows

There's some tutorials out there for gettext (w/ Poedit)... unfortunately, it's mostly for a UNIX environment. And even more unfortunate is that I am running my WAMP server on Windows XP (but I am developing for a UNIX environment) and none of the tutorials can get gettext working properly for me. From the man page (http://us3.php.net/...

Does all HTTP trafic go through HTTP.SYS on Windows?

I know Microsoft created HTTP.SYS to increase the performance of IIS. My question though is does HTTP.SYS handle HTTP traffic for all apps? What about a JVM for instance, if its using Winsock to receive HTTP traffic, is HTTP.SYS transparently passing this data through the Winsock API? Or has Winsock been replaced by HTTP.SYS on newer ker...

update data grid view automatically

i have to windows forms . first form shows list of records from sql . when you click some cell of a record in datagridview it shows second form . in second form you can edit and update the record . i want datagridview to be updated automatically when user close second form . what should i do ? ...

pg.so problem with Ruby in Windows

I have installed the pg module with help of gem install pg Which returned Successfully installed pg-0.8.0-x86-mswin32-60 When a .rb-file looks like this require 'rubygems' require 'pg' I get an LoadError (exception 126) which tells me that it can't find the module C:/Ruby/lib/ruby/gems/1.8/gems/pg-0.8.0-x86-mswin32-60/lib/pg.so....

Ruby:Watir cannot connect to IE running under non-Admin account on 'default' desktop.

Some Background on architecture of the app is needed: Windows 2003/Apache-v2.2/IE7/Watir-v1.6.2/Ruby-v1.8.5 Apache running under 'localsystem' account. Request to run a Watir script comes in. Apache CGI kicks off IE7 under a particular user, e.g. 'tester', and attaches the IE7 window to the "default" desktop environment. This allows ...

Generate name for Named Pipe

What is the "best way" to generate a name for a Windows named pipe so it will not conflict with other processes? ...

Creating Batch File to Back Up Specified Folder

I am actually pretty new to this batch file thing. I know it's important to know at least the basic commands. Could somebody help me figure out how to do the following? Zipping a specified folder. Move the folder to another place. When zipping it, the zip file name will be the current date and if there is another zipped file with the ...

Webkit as a Win32 API control

Has anyone tried to wrap the webkit browser widget into a simple Win32 C control? ...

Best way to interface between Windows dev platform and Linux test platform?

Hi, my project is a PHP web application. This applies to my test server (local), not production server! I am also the solo developer on this project (however, that may change in the very far future). Also, all my source code is committed to a repository and the production server gets the source code from the repository. I do my develo...

How can I add an 'enhancement' sound filter in win7?

In windows 7, if one right clicks on the speaker icon in the taskbar, clicks playback devices, opens properties for one of the devices tab, then clicks the enhancements tab, one gets a list of filters ("Bass Boost" etc) that can be applied to that sound device. How can I register my own custom filter here? Please note that I am not an I...

window application to webapplication

In my window application when I login I open a new window there I want to display the webapplication that is like xxx.aspx in the same window. How can i write the code in window? ...

Program for generating files?

Not sure if this belongs on Stack, SuperUser or ServerFault, so feel free to migate as best fits. I am testing a web service that sends out files, because of this I need to find a way to automatically create files. Does anyone know of a free file generation tool? ...

How to know the CPU and memory usage of a process with WMI?

I am using a wmi and python in order to track the behavior of the process running on my machine. from win32com.client import GetObject wmi = GetObject('winmgmts:') processes = wmi.InstancesOf('Win32_Process') for process in processes: print process.ProcessId, process.Name The Win32_Process has a lot of information but I don't s...

Can someone explain this bat code?

for /f %%i in ('dir /b Client\Javascript\*_min.js') do ( set n=%%~ni set t=!n:~0,-4! cp Client\Javascript\%%i build\Client\Javascript\!t!.js ) What does %%~ni,~n:~0,-4!,%%i,!t! mean? I'm totally missed up. ...