communication

Java external program

点点圈 提交于 2019-11-29 16:31:46
I'd like to start external third party application from my Java application. This external application should run all the time whilst my java application runs. From time to time (it depends on user interaction) my java app should be able to read and write to this external application via stdin and stdout . How can I do that? Is ex-app native code, or another Java program? If it's native code, look at http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Process.html and http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Runtime.html Those will allow you to execute a native program

Passing Information Between Applications in C#

血红的双手。 提交于 2019-11-29 14:49:07
All. Firstly I am aware of the question Send data back to .exe from dll , however the answers there leave too many open ends for me and as I have no experience of what I am attempting I feel a new question is warranted. I have an existing C# [ All WinForms here ] app that heavily relies on SQL. We have been asked (by clients) to provide an SQL Editor and library that can be used to develop and test SQL, but that can also be used to paste directly back in to the main application. The new SQLEditor is a multi-threaded application that parses and executes TSQL. I now have some things to consider;

interprocess C# python real time

≡放荡痞女 提交于 2019-11-29 11:01:27
I'm working on a project where I'll have one application in C# and another one in Python. The C# application will continuously analyse stream of data and raise a flag each time something interesting is detected. So each time there will be an event, my Python application will have to read it and continues with it own process, while other flags will continue being sent. As you understand the C# app won't wait for the Python one to finish its computation before sending another flag. So I was wondering if it was possible to create a sub/pub (C# being the Publisher, and Python the Subscriber), if

Communicate between android Application and java

大兔子大兔子 提交于 2019-11-29 08:13:11
Every body i am new in program world , I am getting a issue,My Request is related to Communication between Android tablet to Desktop PC using JAVA Code. import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HelloWorldServlet extends HttpServlet { private static final long serialVersionUID = 1L; public HelloWorldServlet() { super(); } protected void doGet(HttpServletRequest request, HttpServletResponse response)

Sending TCP data from Android (as client) - no data being sent?

半城伤御伤魂 提交于 2019-11-28 23:03:30
问题 I'm trying to send data from my Android app to my PC over TCP. The code is as follows: Socket socket = new Socket("10.0.78.75", 50505); OutputStream out = socket.getOutputStream(); PrintWriter output = new PrintWriter(out); mStatusText.setText("Sending Data to PC"); output.println("Hello from Android"); mStatusText.setText("Data sent to PC"); socket.close(); mStatusText.setText("Socket closed"); I don't get any errors at all while doing this, however, the server application (written in C#)

What is spark.driver.maxResultSize?

假装没事ソ 提交于 2019-11-28 21:20:33
The ref says: Limit of total size of serialized results of all partitions for each Spark action (e.g. collect). Should be at least 1M, or 0 for unlimited. Jobs will be aborted if the total size is above this limit. Having a high limit may cause out-of-memory errors in driver (depends on spark.driver.memory and memory overhead of objects in JVM). Setting a proper limit can protect the driver from out-of-memory errors. What does this attribute do exactly? I mean at first (since I am not battling with a job that fails due to out of memory errors) I thought I should increase that. On second

Designers and developers working together [closed]

浪尽此生 提交于 2019-11-28 17:05:41
问题 The rich presentational capabilities of WPF and Silverlight mean developers like me will be working closely with graphic designers more often these days, as is the case in my next project. Does anyone out there have any tips and experience (from both points of view) on making this go more smoothly? For example, when I mentioned source control to a designer recently, I was quickly told you can't source control graphics, images etc, so it is a waste of time. So I responded: ok but, what about

iPhone TCP/IP Socket Server/Client Program

社会主义新天地 提交于 2019-11-28 16:24:45
I have read a lot of questions regarding this subject on this website however they didn't quiet answer my question. If you can't be ### about my goal or background skip to the question. My Goal Is to build a server that can run on Mac OS X 10.4+ and later, port it to Windows XP/Vista (no idea how to do that yet, but that's a problem for later). Then let the iPhone be the client that is able to see the computer names that are running the server (through WiFi). The user of the iPhone can then select the computer name to connect to the server on that computer. After that they can send simple text

MPI asynchronous broadcast from unknown source

孤人 提交于 2019-11-28 14:43:14
I have a C-project that has n numbers of processors working on a kind of tree search. At any given time of the program, any of these processes may find something of interest and want to send this to all other processors asynchronously. How can I listen for new messages on the other processes without having to loop through all possible senders each loop iteration? I have read other questions about this, for example this one ( MPI - Asynchronous Broadcast/Gather ), however, all I've seen so far either doesn't handle unpredictable senders or loops through each possible sender, which I don't

Angular: Pass data from Material Dialog to component, which didn't open the dialog

北战南征 提交于 2019-11-28 14:20:15
I have a network.component which opens my dialog send-tx-dialog.component. The user fills the send-tx-dialog with information. I want to send that information to another component: transaction-pool.component. And after that I want to display the data in a data table dynamically. I tried to use push() but it didn't work. What is a possible way to do that? Following some code which I think could be important. Part of the TS of the dialog: constructor( private fb: FormBuilder, private dialogRef: MatDialogRef<SendTXDialogComponent>, @Inject(MAT_DIALOG_DATA) data) { this.sender = data.sender; this