I don't necessarily need to see real time plots or anything but as I understand it if you attach a USB device it gets like 100 mA then after some negotiation it will bump the power up to 300 mA or 500 mA so on and so forth till the device stops requesting.
Does anyone know of anyway to see all the USB ports on a machine and what they ar...
I am wanting to test run a Single Sign On web authentication for my University (currently a student employee), I have been reading a lot about WebAuth used by other Universities. While I think the solutions are great, we are a very 'small time' University, but the current login system and authentication is horrible for the user experi...
I have some C++ code that includes a method called CreateDirectory(). Previously the code only used STL and Boost, but I recently had to include <windows.h> so I could look-up CSIDL_LOCAL_APPDATA.
Now, this code:
filesystem.CreateDirectory(p->Pathname()); // Actually create it...
No longer compiles:
error C2039: 'CreateDirectoryA'...
My program needs to know when the user has enabled "Single-click to open an item (point to select)" in the folder options window in file explorer. I have a mouse aid program and I need to know what this setting is set to programmatically? Is this available in the registry or something?
...
I have a solution containing about 20 WCF endpoints where each endpoint shares one of two configurations for bindings and behaviors. The two different configuration I have is so I can either do a custom username/password authentication or do a certificate authentication. All of my endpoints specify a specific base address. If I start ...
I'm trying to use ack-grep as a replacement for grep + find in Emacs on Windows, but ack-grep exits immediately (successfully) without printing any matches. I've tried just about every conceivable combination of command-line parameters to ack-grep, but nothing seems to work.
M-x grep-find
Enter "ack html" to search for files containin...
I thought I had set up a successful schedule in Windows to run a PHP script. But all I got was an error which slaps only when run through the task scheduler.
Here is how I run the task:
I created a batch file runCron.bat:
start php.exe reportGenerator.php
and placed reportGenerator.php in the same folder as of the batch file.
When ...
I'm writing a console program.
The program doesn't print anything.
So, it doesn't need to a console window.
I tried to call FreeConsole() function at program starting point.
When I execute the program from windows explorer, a console window appears and then disappears.
But I wish the console window never appears.
How can I do that?...
I compiled an 64bit binary of ioquake3 and an SDL binary to go along with it and I noticed on Windows 7 64bit, operation, while relatively stable, it doesn't have top notch performance.
An equivalent binary on 64bit Debian, runs definitely faster, and perfectly stable.
And I'm thinking: with all the major manufacturers still dispatchin...
Hi Guys,
I am using Windows server 2003, IIS6, php and mysql. I have a problem setting the cronjob using built in schedule task feature in Windows OS.
Start > Programs > Accessories > System Tools > Schedule Tasks
Add "new schedule task"
It asks me choose programs. Should I choose php.exe or internet explorer, because php files run on...
Hi,
I created a simple COM object with ATL VS 2008. I can successfully register the dll in my machine and use it.
However, I tried to register the dll with a XP installed machine with no VS 2008 installed. But this does not seem to be work.
Then, I installed the VC 2008 redistributable SP1, and tried. Still the registration is failed...
I am trying to make our application properly handle international input. Since we handle text input and font rendering ourselves, I wrote custom code to handle the respective WM_IME_* messages.
Now, this all works fine, with one exception: When our applications main window is open, the Language Bar will not let me pick any options. I ca...
Hello friends,I want to change the default exe icon to someother icon in c/c++ do anybody know how to do that?Please help guys...
...
if "%OS%"=="Windows_NT" @setlocal
...
if "%OS%"=="Windows_NT" @endlocal
Does the above basically mean this:
if(OS == 'Windows_NT'):
...
endif
I've curious what's setlocal for ?
EDIT
Now the only uncertain is:how do bat identify the endif?
...
I tried by setting up a custom editor for "File Difference" in Tools->Options->Custom Editors with the command line: "tortoiseproc /command:diff /path:%1 /path2:%2". TortoiseMerge launches but it can't find the files to compare. The files to compare should be in a temp folder but they aren't there. SourceSafe isn't making the files avail...
I almost feel dirty having to ask this question, but I am stuck in an unfortunate position.
We are rushing to provide a very quick and dirty interim solution. We have a need to run 2 3rd party applications (fortunately not at the the same time). The applications rely heavily on the time. One requires GMT while the other requires BST (B...
I want to write a folder on a windows system, Vista and Win7 with NTFS file systems.
The folders may contain the characters å, ä and/or ö, "förjävligt" for example.
The python files and every string in it is currently in UTF-8, how do I convert it to suite the Windows file system?
...
In a simple windows setup we have a COM singleton that runs as an out of process server.
Clients connect by calling cocreate and each receives an interface to the same instance of the server.
If clients shutdown normally they release their references.
The server has a bit of logic that keeps it alive for a short time after the last re...
Hi!
I am writing some Java code that needs to be able to write a pidfile on Unix-like as well as windows machines. On the unix machines I write out a bash shell script that contains something like this
command 1>/dev/null 2>&1 &
echo $! > pidfile
It executes a command, redirects all output into nirwana and puts command into the backg...
I need to build a device emulator which can communicate over real IP address
I need to create as many instances I can for the device. With one IP and MAC address for each emulator instance
Can can any one guide me how this can be achieved?
...