inter-process-communicat

Matlab and .NET 4.0 data communication

孤街醉人 提交于 2019-11-30 15:31:17
I have an algorithm implemented in Matlab and I'm planning to deploy it as a DLL for integration with a .NET project. The .NET project is a GUI based application a small part of which consists of displaying the results obtained from running the algorithm. The problem I currently have is that I need to display intermediary results. The algorithm is quite intricate and runs for a number of iterations (chosen by the user) and at the end of each iteration the GUI should be updated with the current data. The best solution that I have in mind at the moment is for the Matlab thread to act as a tcp

Matlab and .NET 4.0 data communication

有些话、适合烂在心里 提交于 2019-11-29 21:45:16
问题 I have an algorithm implemented in Matlab and I'm planning to deploy it as a DLL for integration with a .NET project. The .NET project is a GUI based application a small part of which consists of displaying the results obtained from running the algorithm. The problem I currently have is that I need to display intermediary results. The algorithm is quite intricate and runs for a number of iterations (chosen by the user) and at the end of each iteration the GUI should be updated with the

Efficient Python to Python IPC [closed]

房东的猫 提交于 2019-11-28 17:15:40
What would be an inter-process communication (IPC) framework\technique with the following requirements: Transfer native Python objects between two Python processes Efficient in time and CPU (RAM efficiency irrelevant) Cross-platform Win\Linux Nice to have: works with PyPy UPDATE 1: the processes are on the same host and use the same versions of Python and other modules UPDATE 2: the processes are run independently by the user, no one of them spawns the others Native objects don't get shared between processes (due to reference counting). Instead, you can pickle them and share them using unix

Is there a way in PHP to use persistent data as in Java EE? (sharing objects between PHP threads) without session nor cache/DB

回眸只為那壹抹淺笑 提交于 2019-11-28 01:10:02
Is there a way in PHP to use "out of session" variables, which would not be loaded/unloaded at every connexion, like in a Java server ? Please excuse me for the lack of accuracy, I don't figure out how to write it in a proper way. The main idea would be to have something like this : <?php ... // $variablesAlreadyLoaded is kind of "static" and shared between all PHP threads // No need to initialize/load/instantiate it. $myVar = $variablesAlreadyLoaded['aConstantValueForEveryone']; ... ?> I already did things like this using shmop and other weird things, but if there is a "clean" way to do this

Insert text into the textbox of another application

和自甴很熟 提交于 2019-11-27 04:33:22
How do I, using C# or C++, insert text into the textbox of another application? I did this a long time ago and seemed to remember something about using the applications HWND. But since that change for every instance of the application I feel that I fon't remember the complete story. Do I somehow get a list of running apps, extract the one I want, get the HWND from that and then... hmm.... then what? :) Use FindWindowEx() to find the handle (HWND) and then send the WM_SETTEXT message using SendMessage() When using FindWindowEx you will need to first find the main window handle by using its

LD_PRELOAD equivalent for Windows to preload shared libraries

╄→尐↘猪︶ㄣ 提交于 2019-11-27 02:31:47
问题 I'm trying to do exactly what LD_PRELOAD does, i.e. preload a shared library or DLL files on Windows to a given program to override certain functions. Is there a LD_PRELOAD equivalent for Windows? I don't have any specific functionalities in mind. I just know that this is possible on Linux, and I'm curious about how overloading a native DLL can be done on Windows. 回答1: AppInit_DLLs. http://support.microsoft.com/kb/197571 But see also: AppInit_DLLs should be renamed Deadlock_Or_Crash_Randomly

Communication between two python scripts

Deadly 提交于 2019-11-27 01:58:00
问题 a methodology question: I have a "main" python script which runs on an infinite loop on my system, and I want to send information to it (a json data string for example) occasionally with some other python scripts that will be started later by myself or another program and will end just after sending the string. I can't use subprocess here because my main script doesn't know when the other will run and what code they will execute. I'm thinking of making the main script listen on a local port

Is there a way in PHP to use persistent data as in Java EE? (sharing objects between PHP threads) without session nor cache/DB

隐身守侯 提交于 2019-11-26 23:28:46
问题 Is there a way in PHP to use "out of session" variables, which would not be loaded/unloaded at every connexion, like in a Java server ? Please excuse me for the lack of accuracy, I don't figure out how to write it in a proper way. The main idea would be to have something like this : <?php ... // $variablesAlreadyLoaded is kind of "static" and shared between all PHP threads // No need to initialize/load/instantiate it. $myVar = $variablesAlreadyLoaded['aConstantValueForEveryone']; ... ?> I

Insert text into the textbox of another application

╄→尐↘猪︶ㄣ 提交于 2019-11-26 11:15:12
问题 How do I, using C# or C++, insert text into the textbox of another application? I did this a long time ago and seemed to remember something about using the applications HWND. But since that change for every instance of the application I feel that I fon\'t remember the complete story. Do I somehow get a list of running apps, extract the one I want, get the HWND from that and then... hmm.... then what? :) 回答1: Use FindWindowEx() to find the handle (HWND) and then send the WM_SETTEXT message