windows

How to properly use PyDev with two different Python versions with scripts that are recalling other python scripts?

The story began with a very strange error while I was running my script from PyDev. Running the same script from outside will not encounter the same problem. Fatal Python error: Py_Initialize: can't initialize sys standard streams File "C:\Python26\lib\encodings\__init__.py", line 123 raise CodecRegistryError,\ ...

How to bring "all forms" to foreground (WindowsMobile/C#)

Hi, (C# / WindowsMobile 6) Let's take an application with 3 STATIC forms: Form1, Form2, Form3, where Form1 opens Form2 by calling Form2.Show(), and Form2 does the same with Form3. Form2 and Form3 have a "Exit" button, that just hides the form (not "close", just hide). So, we execute these steps: open the application; go to Form2, by ...

Tortoise SVN doesn't show those green , red , yellow icons - Windows 2008

Tortoise SVN doesn't show those green , red , yellow icons when the files changed that are under source control, I can see them in windows XP but not on Windows 2008. But when I right click and try to commit, it gives me a list of files that are changed. Any idea why/fix? ...

Is Cassandra suitable enough for storing logs in term of disk space usage?

I've a problem storing 50Gb of logs each day in a distributed environment. I looked at Hadoop HDFS but because it has problems running on Windows infrastructure, lack of multi language filesystem API it doesn't suit me very well. Cassandra on the other hand is very easy to deploy on any platform. The only big problem I'm facing is a disk...

Why does MapViewOfFile return an unusable pointer for rapidxml?

As suggested: I have a file which is larger than 2 giga. I am mapping to memory using the following function: char* ptr = (char*) MapViewOfFile( map_handle, FILE_MAP_WRITE | FILE_MAP_READ, 0, 0, 0 ); I parse ptr to rapidxml which accepts Ch* . As per the documentation from rapidxml ptr should be modifiable but since it is decl...

How is a pipe reading with a size of 4 bytes into a 4 byte int returning more data?

Reading from a pipe: unsigned int sample_in = 0; //4 bytes - 32bits, right? unsigned int len = sizeof(sample_in); // = 4 in debugger while (len > 0) { if (0 == ReadFile(hRead, &sample_in, sizeof(sample_in), &bytesRead, ...

Trigger Heap Dump of a 1.5 JVM running on Windows

I'm trying to diagnose a PermGen memory leak problem in a Sun One 9.1 Application Server. In order to do that I need to get a heap dump of the JVM process. Unfortunately, the JVM process is version 1.5 running on Windows. Apparently, none of the ways for triggering a heap dump support that setup. I can have the JVM do a heap dump after i...

How to create a process that is not a child of it's creating process?

I have two processes, A and B. At some point A creates B. After B is created, if A's process tree is killed, I want B to still be around. I am using CreateProcess() to create B, and I can't seem to find any way to make it create the process without it being a child. Same thing with ShellExecuteEx(), but I am probably missing some flag. ...

Matlab big matrix

Hello everyone !! I'm trying to use matlab for the first time but I'm having a problem because the matrix I'm using is too big, I think.. I command I'm trying is: m=[1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;1692017;169201]7;531456;1692017;1692017;1692017;1692017;1692017;1692017;1692017;169...

Changing PHP plugin configuration ( LDAP )

I am running PHP (on Apache/Windows) and I am trying to connect to a LDAP server to authenticate users. PHP's LDAP plugin is just OpenLDAP. While I've been successful in connecting to the LDAP server without SSL, I can't do it WITH SSL. I know I got everything right, except OpenLDAP won't connect to the server without the CA certificate...

Follow program execution through .DLL in hex representation

Is there a way to follow a program's execution through DLL code in hex? For example, I want to see what sections have just been read when I press a button. It has to work for x64 DLL's. Thanks! ...

Localhost on windows 7 configuration issue

When I am making changes on my localhost, it is not working. I am on windows 7 but when I copy the file in which the changes were made, and try to execute them in Windows XP, its working. I as I asked someone who has a lot of knowledge on this and they said it is a configuration issue. Someone else told me it was because of output cachi...

Cannot execute a javascript script file from windows explorer or the DOS prompt

I'm a C++ developer and want to install the WTL appwizard to Visual Studio 2010. To do this, I must run a .js script file. I recently tried out Aptana IDE and it's clobbered the .js file association, and now I cannot execute this .js script file. How can I execute .js script files again? ...

How Does Windows Live Sync Beta Allow for Microsoft Office Sharing?

In the new Windows Live Sync Beta you can sync your program settings, though it's restricted to Internet Explorer and Microsoft Office only right now. How do I access this functionality in C# so that my apps will also support this? Is it just a custom folder that's auto-added? I figure they MUST be using some public APIs. ...

Env variables for plugins in PHP on Windows

I am running PHP on Windows. PHP plugins on Windows are just DLL's in an extensions folder, and I can do little to configure these plugins. For example, the ADAP plugin (which is OpenLDAP itself) has settings that I can't change on runtime. Luckily, OpenLDAP allows me to change some of these settings by messing with the environment vari...

Is this a bug (Windows API)?

I had a question about string normalization and it was already answered, but the problem is, I cannot correctly normalize korean characters that require 3 keystrokes With the input "ㅁㅜㄷ"(from keystrokes "ane"), it comes out "무ㄷ" instead of "묻". With the input "ㅌㅐㅇ"(from keystrokes "xod"), it comes out "태ㅇ" instead of "탱". This is Mr. De...

SiteLock Implementing IObjectSafety BUT Not Working in IE

Hello folks, I have used the SiteLock 1.15 template to restrict domain access to my ActiveX control so that only a list of pre-approved domain can use it. Everything compiles ok, and even the SiteList.exe application that is supplied with the SiteLock template correctly shows the list of domains that I defined inside the ActiveX Control...

using ansi-c on windows platform can i get time of system upto milliseconds accuracy?

hello i need to get the millisecond accuracy i take a look on this question but i am working on windows it gives linking errors for POSIX functions is there any solution help required it will be very good if i can get UTC time since 1970 with milliseconds precision, thanx in advance. ...

Windows active directory- Directory size quotas?

A system I have come across, that uses active directory, and has disk quotas, does not have the quotas tranparent to the user. All the users displays in windows (my computer etc.) and calls to GetDiskFreeSpaceEx always return the free space of the volume, and yet the user can never fill this free space because of the quotas. I have not b...

ClickOnce and application data

I am trying to deploy an application using ClickOnce. The problem is, I am saving user generated files in the application's working directory. Now when the user installs the next version of the application, his old files will no longer be available to him. What is the best workaround for this problem - or does this mean I have to roll my...