windows

How can I use Numerical Python with Python 2.6

I'm forced to upgrade to Python 2.6 and am having issues using Numerical Python (Numpy) with Python 2.6 in windows. I'm getting the following error... Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> from numpy.core.numeric import array,dot,all File "C:\svn\svn_urbansim\UrbanSimDev\Builds\working\urban...

CPU Utilization of Service DLL?

I need to find out the CPU utilization of a service DLL. I have looked in existing samples and we can find CPU utilization for processes. I think DLL will be loaded by services.exe. So is it possible to find out CPU utilization by DLL. I am working in C++ on the Windows platform. ...

Non-Linux Implementations of boost::random_device

Currently, Boost only implements the random_device class for Linux (maybe *nix) systems. Does anyone know of existing implementations for other OS-es? Ideally, these implementations would be open-source. If none exist, how should I go about implementing a non-deterministic RNG for Windows as well as Mac OS X? Do API calls exist in ei...

What is the best open source example of a lightweight Windows Application?

I would like to learn how a program can be written and installed without the use of the .net framework. I'm looking for a project that is known to be lightweight and robust. Something like the uTorrent client. ...

Windows "refresh" option

What really happens inside the operating system(Windows) when we click the refresh option in either Desktop on in any of the folders? Just out of curiosity, I have seen many people refreshing the Desktop(Windows) at regular intervals as if to improve the performance. Thanks ...

Windows Backup for SVN Repositories

I am running a SVN server on my Windows Server and want to schedule an automated backup procedure. I will always be the only one working on the repository. Should I bother with hotcopy or can I use a simple Windows backup application to backup the repositories? What about xcopy or robocopy? ...

How do you prevent a .NET service from timing out while waiting on a dependent service

I have a C# based service that is dependent on the MSMQ service. In some scenarios the MSMQ service takes a long time to start, apparently resulting in a timeout of the C# service. How can I fix this programatically? Edit: It appears that the bug report I was working on was incorrect, the service does indeed start eventually. I apologiz...

Modal operation using IMessageFilter and DoEvents

This is a Windows Forms application. I have a function which captures some mouse events modally till a condition is met. For example, I would like to wait for the user to select a point in the window's client area (or optionally cancel the operation using the Escape key) before the function returns. I am using the following structure: A...

[Visual Studio 2003] Setting environment variables in pre-build event and using in compilation step

In Visual Studio 2003, I am trying to set an environment variable in the pre-build event that will then be used in the compilation step, but the value doesn't seem to be propagated. For example, if the pre-build event contains this (either directly or within a batch file): set MY_LIB_VERSION=1.0.0 and AdditionalIncludeDirectories has...

Invoking a Linux process from Windows and receiving stdout.

I have a legacy application in our company built on... ahem; Classic VB (VB 6). It has got a optimizer(CPLEX MIP Solver) component running on a Linux server and is developed in Java. If we want to provide a Windows UI to invoke the optimizer instance on a remote linux server; how should I implement it? The optimizer will pump out messa...

Bug Tracking In Windows

I'm currently employed at a finance firm as an in-house developer for a web system. Currently we have no bug tracking software apart from e-mails sent around and phone calls made to recognise that a bug does exist somewhere. I'd like to recommend to the other programmers a bug tracking system we can run alongside our subversion reposit...

How to get the version info of a dll in C++

I need to get the version info of a dll I created in VS2008 C++. How do I get it? Thanks, Adam ...

Why do some PDFs hang when downloading in IE when served by Lighttpd

We have a number of PDFs hosted using Lighttpd but when they are downloaded in IE (7.0.5730.13), the file download hangs at the end and does not complete. For example http://static.vouchercodes.co.uk/printable/87-burger-king-voucher.pdf http://static.vouchercodes.co.uk/printable/10-gbk.pdf This works fine in Firefox (3.0.5) both on OS...

How do you keep your Windows development machine from slowing down?

After using Windows for some time, any computer can begin to suffer from "Slow Computer Syndrome", or "winrot", so I am interested to hear what you are doing to prevent this. I am not looking for these answers: Reinstalling Windows Upgrading the hardware I am, however, looking for your experience on what steps you can recommend that...

Mapping a USB drive to a USB hub & port in Windows

What's the best way of mapping out where all the USB drives are plugged in? Ideally, I'd like to be able to recursively start from the root hub and keep going down the tree finding connect usb drives and what port they are connected to (which physical USB slot). ...

reading an application's manifest file?

Is there an easy way to read an application's already embedded manifest file? I was thinking along the lines of an alternate data stream? ...

How to set the locale for a process launched by CreateProcess()

When launching a process with CreateProcessW(), is it possible to have the process created with a different MBCP locale/codepage then the one that is configured as the system-wide default code page? In the target process, this should have the same effect as calling _setmbcp(). The target process is not a unicode-enabled and uses a plain...

What is the best technology to create a desktop application

I am not a developer hence not up to date with the latest developments into the tech world. I am thinking of creating a desktop application for my own use and trying learn the best available technology doing the same if I could. I am planning to develop it for windows and I have hands on experience on C++ and visual studio. Will look for...

What is a lightweight way to monitor a network adapter in Java?

I want to be able to detect when a computer connects to a network. The environment is Java 5 under Windows. ...

Running a native program in Adobe AIR

I need to run a native program and retrieve the output in an Adobe AIR client side only application. I know that AIR does not allow access to native applications, so what is the best way to achieve this? I came across this solution which works on Windows, but I need something that works on Mac as well. I'd rather not have two separate so...