communication

Ghost cell exchange pattern in MPI

梦想的初衷 提交于 2019-12-08 01:15:59
问题 I'm implementing a distributed image(greyscale) convolution using MPI. My existing pattern is to read the image as a 1D flattened array at the root process and then scatter them to all the processes (row-decomposition) and then do a MPI_Gather at the root process and then write the image out again as a 1D flattened array. Obviously, this doesn't give the expected results since with image convolution, the situation gets tricky at the boundaries. So, to improve upon the aforementioned pattern,

how to pass object between activity and fragment

喜你入骨 提交于 2019-12-07 23:55:48
问题 Please give me some suggestions how to pass object between fragment and activity. In my project, there is one FragmentActivity to show and edit customer profile. Multiple tabs will be contained in this activity to show contact info, address... The customer info will be preload as one class in the activity. My question is how could I pass this object to each fragment or tab? Once updated, how could I pass back to activity? Do I must to implement the Parcelable interface in my customer class to

Applet - Servlet Communication

醉酒当歌 提交于 2019-12-07 23:25:16
问题 I have abandoned my earlier quest to make the applet communicate directly with the database, even though users and webpages have said that it's possible. I am now trying to get my applet to pass information (String and boolean format) entered in textfields or indicated by checkboxes, and give this to the servlet, which then stores it appropriately in the database. I've got the applet front end - the GUI - built, and the servlet - database connection also built. The only problem is the link

XBee two-way communication (sender and receiver) at the same time

人盡茶涼 提交于 2019-12-07 17:49:11
问题 Let's say I am trying to make a chat program like in the YouTube video XBee Basics - Lesson 2 - Simple Chat Program Between Two XBees in AT Mode . In this video, he explained that one XBee is a sender which sends "Hello world" to the another XBee using Arduino. However, is the XBee able to send and receive data at the same time? Are the routers able to communicate to the coordinator and the other way around? Additionally, I want to write my own software to receive and send data and not using

What's the most effective workflow between people who develop algorithms and developers?

一笑奈何 提交于 2019-12-07 15:11:44
问题 We are developing software with pattern recognition in video. We have 7 mathematicians who are creating algorithms. Plus we have 2 developers that maintain / develop the application with these algorithms. The problem is that mathematicians are using different development tools to create algorithm like Matlab, C, C++. Also because they are not developers the don't give much concerns for memory management or multi-threading. This one of the reason why the app. has a lot of bugs. If in your

Is there a Java API that can binary communicate with a Microsoft WCF service?

随声附和 提交于 2019-12-07 02:38:33
问题 I would like to be able to do binary communication between a WCF server and Java client. Is this possible? Are there any API's that can communicate with this Microsoft protocol? 回答1: Is WCF on the server a requirement? If no, then our MsgConnect product is similar (but simpler and easier to use) to WCF and it's cross-platofrm, from smartphones to desktops to servers, with Java and .NET implementations available. And source code is available as well. 回答2: I suppose you are looking for WSIT -

Are sockets reliable?

笑着哭i 提交于 2019-12-07 01:09:12
问题 Is it a good idea to use sockets to send data between two servers, or should I use something like MQ for moving data. My questions: are sockets reliable, if I need once only/assured delivery of the data? Are there any other solutions? Thanks. 回答1: Sockets are an application level API for performing network communication. The reliability of sockets depends on the network protocol that you select when you create the socket. If you select TCP/IP, you will get "reliable" transfer ... up to a

Missing flow control data (0x13) from reading device data stream

有些话、适合烂在心里 提交于 2019-12-06 21:33:32
I have written a Linux app to read & write binary data to a remote device over a USB port that is emulating a serial port. When I read data from the device, I have a USB sniffer that shows a binary data stream like this (0x01, 0x0A......0x13), but when my program reads the bytes, the 0x13 is not in the byte stream - this is the XOFF char, but I am not using XON/XOFF flow control (I think). Tried both open read and write, as well as fopen fread and fwrite in binary mode, same result. Any ideas? Thanks for any responses, like the website. Turns out stty showed: # stty -F /dev/ttyUSB0 speed

How to set the baud rate for Macs in a terminal

无人久伴 提交于 2019-12-06 20:07:52
问题 Is it possible to set the baud rate for Macs in a terminal? If yes, how to set the baud rate in terminal through the terminal? I am trying to talk to the Mac using an Arduino (open source microcontroller), an XBee (wireless communicator) to type in the terminal through the serial monitor. The only problem I am having is the baud rate of the serial monitor and terminal are different. I can easily change the baud rate for the serial monitor in the Arduino, but I do not know what the baud rate

cURL requesting URL with whitespaces in URL.. What to do

爱⌒轻易说出口 提交于 2019-12-06 16:44:37
问题 So I'm trying to curl this URL: http://images.fastcompany.com/upload/Screen shot 2011-04-28 at 8.13.21 PM.png URL Encoded it reads as: http%3A%2F%2Fimages.fastcompany.com%2Fupload%2FScreen+shot+2011-04-28+at+8.13.21+PM.png However, curl needs it to be decoded into a proper URL obviously. How do i get around this problem? cURL drops off the rest of the string as soon as it reaches any whitespace... :( I should mention I can't wrap the URL with double quotes as it is a variable being posted.