windows-xp

"Write-Error" (write in Powershell, used in C#) works BUT Write-Debug doesn´t work - Why?

Hello, I have written a program with C#, that creates a logfile and fills this by using log4net. This program starts powershell-scripts. The scripts use log4net, too. It works: > C#: > ps.Runspace.SessionStateProxy.SetVariable("myMethod",(Action<Level,string>)myMethod); > ps.AddCommand(System.IO.Path.Combine(pathScripts, testSkript...

How to get printer information using command line on Windows machine?

I need to get Windows XP printer information like printer port and driver name using command line. I tried using Windows Server 2003 Resource Kit Tools that give you such information but it needs administrative privileges. In our production scenario too we cannot rely on some external toolkits to be deployed just to get the printer info...

Screensaver fails to launch external program in Windows XP

Hi, I'm writing a screensaver in C# which should launch an application and then terminate when the user presses the "A" key. This currently does happen on Windows 7 when you double click the .scr file or wait until it launches. On Windows XP the external application launches normally only when you double click the .scr file. When the s...

Running Rails 3 application on windows as a service

I would like to switch to rails 3, but I think it is not doable at the moment. Currently I am running the following stack (which works ok for me): Windows XP (Service Pack 3, please don't laugh) Rails 2.3.5 Mongrel 1.1.5 Mongrel_service 0.3.4 Ruby 1.8.7, P249 I want to run two Rails apps as a service, so I don't need to think about s...

Configure ssh-login with locally-connected (by ethernet) dhcp box in Windows XP?

I have never done this on a Windows box, and I'm confined to XP. How do I change the TCP settings on the ethernet interface in Windows XP to allow for ssh login (from Putty) to a box connected locally to my ethernet port? ...

Animated Themes for Windows XP

How do I create an animated theme for windows XP? I know how to create normal themes, but can't seem to find anythoing on adding animation. This is what I need: The Start menu should be themed like an iPhone, so I slide to lock/unlock the start menu. Any ideas? ...

Getting max resident/working set size of Windows program from CLI, and user & system run times?

On Linux and Mac OS X, I can run a command from the CLI using the "time" command (not the bash shell built-in command time) and get not only the elapsed run time from start to finish, but many other statistics as well. For example on Mac OS X: % /usr/bin/time -lp /usr/bin/wc PS1-01.m4v 6166365 46283357 1532034853 PS1-01.m4v real ...

Code within nUnit works fine but within Windows Service gets HTTP status 403: Forbidden when calling a remote Web Service

Context I'm working a c# module which is responsible to integrate our business with an external entity as part of our SOA system. The external entity provides web services. They're a throughly tested as it is a federal government product. The module has been developed using test-driven approach, we use nUnit and everything was fine durin...

Can you debug on a WP7 device when developing in a VM?

I'm planning to develop for Windows Phone 7 inside a VirtualBox VM on an OSX host. Am I going to be able to debug my app on the device? I've had problems with USB on VMs before. ...

The Eclipse "select workspace" dialog disappears when I switch to a different virtual desktop (VirtuaWin) - how to restore it?

When eclipse starts up, it first show its splash screen and then pops up a dialog for selecting the desired workspace to open. If at this point I switch to a different virtual desktop and then come back later, only the splash screen is visible but the dialog is gone and I haven't found a way to get it back. I have to kill the eclipse pro...

Enumerate windows on taskbar in Windows XP without P/Invoke using C#

Is there any method of retrieving only windows on the taskbar? I want to make a custom "taskbar" that will group APPs in any order (not just in common order like default windows task grouping). ...

shell scripts on windows xp

Hi All, I am college going student, I have unix labs as part of my course. I want to practise shell, perl and some unix commands at home. Is there any way to it on my xp laptop. i dont want to intall whole linux OS on my laptop. is there any way where i can practicse shell scripts, perl scripts and some unix commands frm my windos xp la...

Git's alternative to .hgrcpath

Does Git have anything like Hg's HGRCPATH, i.e. an enviromental variable which you can modify to change the location where Hg will search for its global configuration file. In git that can be somewhat accomplished by changing HOME, but that will affect unknown number of other applications, which is why I'm trying to avoid it. ...

can i work on mono under Windows xp ?

i do have ubuntu installed on my system now. but it is not booting up. so can i work on mono under windows xp sp3. ...

C#: How to wake up system which has been shutdown?

Is there any Win32 API for waking up a system that has been shut down, at a specific time? I have seen a program named Autopower On which is able to power the system on at a specified time. ...

How can I freeze the execution of a program?

Say I have got a program that hogs the processor and/or hard disk to the point that it makes it nearly impossible to do anything else on that computer. Now I don't want to kill that program because what it does is useful (it's a batch job that really is that CPU or disk heavy, e.g. it could ZIP a few gigabytes of data files) but for a sh...