windows

Eclipse problem keeps opening old versions/copies of the files

I am having problem with my Eclipse PDT version. I keeps opening older version of a file until I close it and open it again. So what is happening. I edit a file with Eclipse - test.php. I close it. Then I compare it (test.ph) with another one in WinMerge, save the changes and when I open the file again in Eclipse it is still the same as...

How to backup MySQL database on Windows ?

I have WampServer 2.0 that is installed on Windows on my laptop. I'm running on it an application that I wrote. The application is working with MySQL database. I would like to make backups of this database periodically. How this can be done ? How could I define cron on Windows ? ...

Easiest way to embed HTML/CSS/JS content in a Windows (XP +) C++ application?

Hi, I have an app written in C++ using Visual Studio 2010 to run on Windows (version XP upwards) as an .EXE. It uses plain Win32 for the existing UI. I also have some content based on web browser formats, HTML/CSS/JavaScript. I would like to have this content displayed in the application window, in the same way that WebView works on And...

I have configurated my server to SMTP, But all mails get stuck in Queue

MY mails dosen't get send out, all mails get stuck in the queue folder, what does this mean, are there other ports I run thans besides 25? ...

How do I look up the proper Windows System Error Code to use in my application?

I am writing a C# .NET 2.0 application wherein when a message is expected to be received via the SerialPort. If the frame is not received (i.e. times out) or it is determined to be invalid, I need to set an error code using SetLastError. Windows has a plethora of error codes. Is there a simple tool or reference to help narrow down the...

Save and restore applications and layout

I'm looking for ways to reduce the wasted time spent to open all the applications needed, position windows, open urls/files/change directories/etc. before actual coding starts. In the perfect world there would be 2 buttons marked 'SAVE STATE' and 'RESTORE STATE' per 'project'. The kind of feature you find in some games. I'm on a mac an...

Volume to physical drive

Hello, QueryDosDevice(L"E:", DeviceName, MAX_PATH); (E: is a SD card) DeviceName is "\Device\HarddiskVolume3" How do I "convert" it to something like "\\.\PHYSICALDRIVE1" ...

settimeout is not working when Windows goes to sleep mode and then wake up

I have noticed this in Chrome . Anyone has a idea about what's wrong or a workaround ? ...

How can I quickly fix EBCDIC control characters in large files using Perl?

My apologies if this comes across as a newbie question. I'm not a Perl developer, but am trying to use it within an automation process, and I've hit a snag. The following command runs quickly (a few seconds) on my Linux system (Ubuntu 9.10 x64, Perl 5.10), but is extremely slow on a Windows system (Windows 2003 x86, Strawberry Perl 5.12...

Home server auto control

I've got home server used to store files. PC 1 (Windows) gets internet directly from HS(Home server - Ubuntu Server) PC 2 (Windows) and PC 3 (Windows and Linux) need access to HS files. I'd like to create software or scripts which would allow to: When PC 1 turns off turn off HS but only when PC 2 and PC 3 are turned off. When PC 2 t...

How can I securly store an AES key in Windows with .Net (C#)?

I've looking for a way to store a given AES key so that it can't be retrieved, but it can still be used for encryption and decryption (using C#). I think the equivalent for asymetric key storage can be found here, but I'm looking for something that can be used for symmetric encryption. Does it exist in a managed form (pre .Net 4)? ...

Runtime Exception: "CoCreateInstanceEx: The specified service does not exist as an installed service."

I just checked the latest source out of our repository after the installer (NSIS if it really matters) was created and a bug was discovered. I started receiving the runtime exception CoCreateInstanceEx: The specified service does not exist as an installed service. on the following code: Opc.IDiscovery discovery = new OpcCom.ServerEnume...

Possible to add a local server as Virtual SMTP inside another server?

I wounder if is possible to add a virtual SMTP server a local server? I have created a SMTP server on a server, I wonder if it's possible to create a virtual smtp on another server that is local? ...

How to redirect output to a file which name is the current date and time ?

I would like to redirect the output of a command (in the Windows command line) to a file which name is the current date and time. For example: my_path\mysqldump.exe my_database_name > auto_generated_file_name where auto_generated_file_name should be something like 2010_09_30___11_41_58.txt. This command will automatically run from ti...

Why do I get an error on the last line of installing Pylons 1.0 with easy_install and Python 2.7 in Windows Vista 64?

I tried to install Pylons 1.0 with Python 2.7 using the easy_install command in Windows Vista 64 but got the error: raise ValueError(str(list(result.keys()))) ValueError: [u'path'] Here is the link to the whole installation process from command prompt http://pastie.org/1190341 Why do I get this error? How do I solve it? Will P...

How come Pylons is not recognized when I run 'import pylons' in Windows Vista command prompt?

When I try to import pylons in the virtual python environment I get the error C:\env\Scripts>python Python 2.7 (r27:82525, Jul 4 2010, 07:43:08) [MSC v.1500 64 bit (A MD64)] on win32 Type "help", "copyright", "credits" or "license" for more informati on. >>> import pylons Traceback (most recent call last): File "<stdin>", line 1, in ...

How to get the path of the batch script in Windows ?

I know that %0 contains the full path of the batch script, e.g. c:\path\to\my\file\abc.txt I would path to be equal to c:\path\to\my\file How could I achieve that ? ...

Changing a network volume's name which is represented by Windows Explorer and Common Dialogs.

I want to set the volume name of my network redirector. On 32bit Windows, it's okay. I made it. But on 64bit Windows7, a process which runs as WOW64(eg, EXCEL.EXE) finds following registry path to represent the volume name when we open a file dialog. -I checked it by Process Monitor. HKCU\Software\Microsoft\Windows\CurrentVersion\Ex...

Getting to know the caller is from which DLLs

Currently, I have a C++ exe project, which dynamic load N DLLs. Those DLLs will perform calling to the functions which is re-inside exe project. Now, within my exe project, I wish to know the callers are coming from which DLLs. Is it possible to do so using any available Windows API? ...

How to check in batch script if "mysqldump" and "mysql" commands succeeded or not ?

I'm running mysqldump and mysql commands from a batch script on Windows to make a backup of a database and restore it. How could I check in the batch script whether these commands executed correctly or end up with error ? In case of error, I would like to know what the error is. Thanks ! ...