windows

WCF host in Windows Service: System.Net.WebException: The remote server returned an error: (404) Not Found.

Hi, all, Many WCF services hosted in one windows. When windows service is just running, the wcf service endpoints are working well. After a long-time running, the wcf service is down. Through this time the load is not heavy. but the services down. After down, when visit the endpoint thourht Internet browser or client app, it both th...

Map some keystroke combination to the arrows

I'm tired of moving my hands to reach for the arrows in the keyboard. So I'd really like to be able to use something like Ctrl+Alt+{I, K, J, L} to do the same as the {up, down, left, right} keys, respectively. Having this configured under Windows for Eclipse would be enough for my use case, but is there a general solution for Windows? H...

How to detect whether a monitor is widescreen in Windows

I need a way to programatically detect whether the monitor is wide or not, in Windows. GetSystemMetrics returns the size of the desktop, which sort of works, but if an user has a widescreen monitor at, say, 1024x768, I'll incorrectly classify it as non-wide. GetDeviceCaps has similar problems with HORZRES and VERTRES, and even HORZSIZE...

Starting as external .exe v/s startin as windows service, which one is more efficient from performance point of view ?

Hi, I am starting software service as external .exe and than as windows services, but both time I am getting different results and wanted to ask what difference does it make with this two approaches and which one should be used if performance is the main criteria. Thanks. ...

Git Setup on Windows

Hi Guys, So on my friends local Windows machine we are trying to setup GIT. Basically, we've been following this guide which has been great. The problem we are facing is as follows: All works until we get to Using Gitosis When we use the command git clone git@INSERT_IP_HERE:gitosis-admin.git We keep getting Initialized...

A free and relatively simple IDE for Windows XP/Vista/7?

I'm used to using iterations of Visual Studio for my IDE needs, but I've long since wiped the machine I had that on and don't think I can have the program reinstalled on new main machine. Because of this I've mostly been using Geany to write up my code, then FireFTP to send it off to a faraway UNIX machine, then using gcc or g++ to comp...

Installing oracle 10 client on a windows server cluster

Is there anything special I need to do when installing the oracle 10 client software on a windows cluster? The client is needed to provide access to an oracle db from a sql server as a linked server. Should it be installed to a shared disk, or is it ok to install on local storage? ...

.Net: Prevent an object from being paged out (VirtualLock equivalent)

How would one go about keep an object in memory such that it won't be paged out by the OS in .Net? i.e. Something similar to VirtualLock, but operating on an object, such that if compacting occurs and the object is moved it still would not be paged out, etc.. (I suppose one could pin the object's, determine what pages it belongs to, and...

Location Coordinates On Computer Showing X=-32000, Y=-32000

I have a C# application that saves its state when it is closed and then reads in the saved state when it starts up. One item that is saved is the location of the main form. Normally this works great - in my code there is a line like this that saves the location to a file that is then read back in on startup: streamWriter.WriteLine("lo...

How to get environment variable in 64 bit Windows?

Is there any way to retrieve the environment variable in 64 bit machine. I already have %abc% which returns me variable in 32 bit machine, but doesn't work in 64 bit. My Mistake: How can I get through command line not through programming language? ...

Where is Windows Workflow Foundation used?

Is WF used at user interface or business layer? If at UI layer, then does someone coding in business layer even need to use or learn it? ...

Should I use Powershell or CMD.exe for this?

What should I use to accomplish this task? CMD.exe? Powershell powerscript? Windows Script Host with VBScript or JScript? Task: transverse into every sub-folder of a folder if the subfolder has a folder name XXX, invoke certain commands ...

MySQL on Windows: Using SHA-2

Hello guys, I need to store sensitive data (usernames and passwords) and wanted to do things the right way (storing SHA-256 hashes of (password).(large random number) instead of cleartext passwords. This needs to be done using MySQL and, as far as i know, only MySQL 6 plans to incorporate SHA-2, hence i assume some kind of external appl...

How to replace the Windows desktop with my own window?

Hi, I used to see that a program could embed a calendar right into the desktop, and the calendar is interactive, all 'show desktop' operations including will not hide it. I wonder how I can achieve that? Thank you. ...

PowerShell: how to get detailed information about a WMI event?

I'm learning PowerShell 2.0 on Windows 7. My task is simple: I want to listen for a WMI event and then display some information about it. Here is what I'm currently doing: Register-WmiEvent -class win32_ProcessStartTrace -sourceIdentifier processStart Wait-Event It seems to work. Indeed, I get this when I start a process: ComputerN...

Can you recommend a good SSH syncing utility?

Hey guys, Can you recommend a good SSH file sync utility for Windows? For example, I have some C++ sources that I need to compile remotely. I need this utility to be simple and most of all responsive, so I can compile my sources instantly after saving, without having to wait for the sync to be triggered. ...

How can my Windows customers send me a crash log?

If my application crashes at a customer site I'd like them to be able to send me a crash log with the minimal amount of hassle on their part. On OS X it's very easy: I can tell them where to find the crash log and send it. What is the best way to do this on Windows? Is Dr. Watson as good as it gets? Can I count on that being set up b...

Setup a Git server with msysgit on Windows

My friends and I are trying to setup Git for Windows using the tutorial Git Server: Gitosis and Cygwin on Windows, but we just keep running into problems. What would a "Setup Git Server" guide for Windows using msysgit be like? There is a comment in the tutorial above suggesting it can't be done with msysgit because gitosis requires t...

newbie to OO question

My question pertains to windows forms Let's say I have a combobox for customer and orders, and depending on the selection made on those comboboxes I populate a datagrid for all the Order details. I am interested in a double click event within the datagrid row. Upon the event 2 things can happen: the record was deleted. one or both ...

Windows Folder/Desktop Widget

Is it possible to create an application that allows you to interact with the files/folder in any folder (including desktop) graphically? IE: The program would allow you to create a graphical object that allows you to drag and drop folders/files on to it. The object would remain in the folder/desktop and basically be another folder with...