windows

Should I give up on deploying Rails under Windows?

I run an instance of a rails application that is developed by another team. Back when I started, the common way to deploy Rails apps was to use Mongrel behind Apache, and that's the configuration that that team used for their own instances. Since I'm a Windows guy, and since both Apache and Mongrel can easily be set up as Windows service...

How to force mysql.exe to run in "interactive" mode?

I'd like to get emacs sql-mysql mode working in windows xp. I'm able to enter sql-mysql mode and connect to mysql database successfully. The problem is that the SQL buffer doesn't show the "mysql>" prompt. In other words, it's not interacting with mysql.exe. I think it's because the mysql.exe program is going into "non-interactive" mode...

What's the intended use of _fread_nolock, _fseek_nolock?

Hi there, we have a C++ class which basically reads and writes vectors from a binary file. An exemplary read function that loads a single vector into memory looks like this: int load (const __int64 index, T* values) const { int re = _fseeki64(_file, index * _vectorSize + _offsetData, SEEK_SET); assert(re == 0); size_t read = frea...

XAMPP on Win7 too slow

I'm running XAMPP 1.7.1 on Windows 7 Ultimate. Everything (Apache & MySQL) is working fine except for speed. When I open http://localhost/, I must wait probably 1-3 seconds for view a webpage. In my opinion, it should be at most some hundreds miliseconds. Basic facts: while waiting to load a localhost webpage, status bar says "Waitin...

Detect VMWare programatically

I would like to check if my application is being run on VMWare. Is there a reliable way to do this in C++? ...

Is there a way to embed windows save dialog

The subject has it all. I want to have the Windows save as dialog as part of my own dialog. Is that even possible ? ...

Pausing a process in Windows...

I'm making a nice little Python GUI frontend for ffmpeg on Windows (one that is specifically designed to convert videos to an iPhone-friendly format and automatically import it to iTunes and tag it), and I want it to work so that you can pause the process and resume it if you want. Since I start ffmpeg as a separate process, the obvious...

COFF on Linux or ELF on Windows

Is it possible to run the COFF executable files on UNIX or the ELF executable files on Windows? And what would be the steps to be able to run either file type on Windows and UNIX. I'm just curious. ...

why fsutil.exe takes less time to write a huge file into disk than programmatically?

this question is according to this topic : creating a huge dummy file in a matter of seconds in c# I just checked the fsutil.exe in xp/vista/seven to write a huge amount of dummy data into storage disk and it takes less time to write such a big file in comparison to programmatically way. when I'm trying to do the same thing with the he...

Tools for Unix <-> Windows C++ development

I am doing some C++ cross development - been doing that for a while on Windows and recently started on Unix. I suppose what I am after is to simplify Unix development experience - I have a local windows box I do development on, and a remote Solaris box which I use to compile and test code on unix environment. What I do now - I develop...

How rethrow an exception without losing the original call stack?

The situation is as follows: Thread A catches an exception, saves the exception's data somewhere in memory (using GetExceptionInformation in the exception filter), and afterwords Thread B gets that exception information and wants to rethrow it. But the thing is, when thread B rethrows the caught exception, i'm missing the original call s...

Eclipse on windows doesnt start

I usually do all my java development on linux, using fedora package manager setting up a development environment is easy and fast. Now I have to start using windows but I never used it for java development and im having a few difficulties having it setup. So I downloaded and installed thye java 6 JDK (just the standard edition, not the...

Killing a process in Batch and reporting on success

Hello, i have the following batch file, which terminates the iTunes program so, that if i connect my iPod, it's not going to sync it. (I know you can set this up in iTunes.) @echo off :kill cls taskkill /F /IM itunes.exe >nul if %errorlevel%==1 { echo iTunes not found. } else { echo iTunes is killed. } goto kill However, the >nul does...

how to change the window style of a form outside your app?

how to change the window style of a form outside your app?hard question? i am actually trying to move a form witch is topmost and has no border. i have the handle(hWnd) of the window. i can write thousands of lines of code if guaranteed to work. ...

CMD: Sleep and hit any key, at the same time?

Hello, i have this batch file, which makes constantly a loop. I want the user to be able to terminate it in the batch, not just clicking the X. This is what i need (somehow): @echo off :proc cls rem All kind of stuff... echo Hit any key to terminate... sleep 1 @pause>nul But, of course, sleep and pause can't work at the same time. ...

c# app compiled using mono on windows for a zero install solution?

HI, I have a simple~ish command line app written in c#. I now need to use this on a server where I cannot install the dot net framework. If I compile the app in Mono - will I be able to use it on a Windows server without the .net framework installed and without installing any mono-related files? Hopefully just drop the exe in - and i...

Apache 2.2.14 + php_apc.dll crash

I can't get APC to work on Windows because Apache keeps crashing as soon as I run a php file. Is this issue know and is there a workaround? Versions: Apache 2.2.14 PHP 3.1 APC 3.1.3 ...

Capture microphone audio stream in Windows using C

I'm looking to build a Morse decoder (and eventually a coder) in C. I'd like to use the audio port as input, and sample the incoming voltage on the port. How do I go about reading the voltage on a microphone audio port in Windows using C? ...

Personal Internet use monitoring

How could a (Windows) desktop application be created to monitor the amount of time spent on a particular website? My first idea was to play with the Host file to intercept requests, log, and proxy. This feels a bit clunky; and I suspect my program would look like malware. I feel like there is a smarter way? Any ideas? ...

Windows XP path problem

My Environmental Variables (& I crosschecked every possible place in the Registry) show my PHP include path as: "C:\PHP\" --and PHP (5.2.9-2) works fine on the system, so that is correct. However, running ini_get("include_path") shows the path as "C:\PHP5\". This causes problems with PEAR, etc. I've searched the system (i.e. php.ini...