communication

Communication Gap: User vs Analyst-Designer

≡放荡痞女 提交于 2019-12-10 19:24:52
问题 Normal practice is to use case studies, construct work- and data-flows, etc. But this does not necessarily create a shared vocabulary between the user/sponsor and the analyst-designer: one or the other, both normally, will have to acquire terms and views of the "internals" of the others area of expertise, and this usually leads to misunderstandings and meetings-to-clarify (enter RAD-techniques like Evolutionary Prototyping), etc. The user/sponsor is focused on his/her needs/environment, and

share python object between multiprocess in python3

守給你的承諾、 提交于 2019-12-10 15:28:13
问题 Here I create a producer-customer program,the parent process(producer) create many child process(consumer),then parent process read file and pass data to child process. but , here comes a performance problem,pass message between process cost too much time (I think). for an example ,a 200MB original data ,parent process read and pretreat will cost less then 8 seconds , than just pass data to child process by multiprocess. pipe will cost another 8 seconds , and child processes do the remain

How do you ensure code is reused correctly? [closed]

回眸只為那壹抹淺笑 提交于 2019-12-10 14:11:43
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Frequently when we introduce a new feature into an application we may produce artifacts, such as useful methods or classes that could be reused in other areas of our applications. These artifacts are not necessarily documented as functional requirements as they are usually a

Communicating between a fragment and an activity - best practices

家住魔仙堡 提交于 2019-12-10 11:47:39
问题 This question is mostly to solicit opinions on the best way to handle my app. I have three fragments being handled by one activity. Fragment A has one clickable element the photo and Fragment B has 4 clickable elements the buttons. The other fragment just displays details when the photo is clicked. I am using ActionBarSherlock. The forward and back buttons need to change the photo to the next or previous poses, respectively. I could keep the photo and the buttons in the same fragment, but

Making two scripts communicate

≯℡__Kan透↙ 提交于 2019-12-10 11:43:08
问题 I have to make two programs (for example a "script A" (.py) and "script B"(.exe)) communicate. Both programs are on a infinite loop: Script A needs to write to the stdin of script B and afterwards read the stdout of script B thereafter write again etc. Script B I cannot change. Both files are on my hard disk, so I there must be a better way to solve this than networking. I can, however, write files with script A. This is not course homework, I am writing a GUI for a game and I have a few AI's

Reliable bidirectional communication to a Linux process?

 ̄綄美尐妖づ 提交于 2019-12-10 10:57:48
问题 What is the reliable way of implementing bidirectional communication to a Linux process? I see that popen does not seem to support "r" and "w" access at the same time... or at least that's what is implied: The type argument is a pointer to a null-terminated string which must be either 'r' for reading or 'w' for writing. (I am so missing Erlang at the moment) 回答1: Unix domain sockets are your friend. A Unix domain socket or IPC socket (inter-process communication socket) is a data

How to register a class for use it in a QWebChannel signal in Qt

谁都会走 提交于 2019-12-10 10:02:53
问题 Im using QT 5 with a WebChannel to communicate with a HTML Page. I successfully able to communicate texts and strings. however i woud like to communicate some points data. the official documentation says "No manual message passing and serialization of data is required," http://doc.qt.io/qt-5/qwebchannel.html When i try to send a object or an array, instead of a string, the application throw this message: Don't know how to handle 'data', use qRegisterMetaType to register it. How can I emit a

Easiest for two way communication over the internet using C#

天大地大妈咪最大 提交于 2019-12-10 09:53:10
问题 What do I use for two way communication over the internet without the necessity to open ports on the client side? Users won't agree to open ports and do port forwarding on the client side although everything is possible on the server side. But,I need to accomplish two way communication.. How do I go about achieving this? It doesn't matter whether its WCF or remoting or webservices... I just need a quick and fast way to just get the concept to work out and distribute the application. ofcourse

How can I send strings between two computers? [duplicate]

橙三吉。 提交于 2019-12-10 03:41:57
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Beginner for Delphi Network! I'd like to learn how to make two machines communicate, sending and receiving simple strings. The machines might be on the same LAN--or not. I'm talking about something more or less like you'd see in a chat program, I suppose. I understand Delphi, but know absolutely nothing about things like TCP, sockets, ports, etc. Where would you suggest I look to learn these things? ... I know

communication between c++ and java

≡放荡痞女 提交于 2019-12-09 23:18:01
问题 I have to write a JAVA program which communicates with some other program in C++. Messages to send are simple String/Char[] like "REQ", "PAUSE", "02,14" with '\0' on the end, so: "REQ\0". I have this: socket = new Socket(); socket.connect(new InetSocketAddress(komputer, port), czekaj); in = new DataInputStream(socket.getInputStream()); out = new DataOutputStream(socket.getOutputStream()); Sending: public void sendTekst(String tekst){ try{ char []a = tekst.toCharArray(); for(int i = 0; i < a