Questions tagged [bidirectional]

"Bidirectional" refers to any process or structure that works in two directions. Use the tag `bidi` for bidirectional text instead of this tag.

"Bidirectional" is a general concept and can have a lot of meanings:

  • bidirectional text, see
  • bidirectional associations of data
  • bidirectional synchronization
  • bidirectional mapping
  • bidirectional communication
  • bidirectional search algorithms

See also: https://en.wikipedia.org/wiki/Bidirectional

493 questions
3
votes
1 answer

Bidirectional dictionary in Mongo

My app is a korean-english dictionary that I am writing on node.js using MongoDb. The problem is to organize database so I can have korean-english and english-korean direction with the same words. In MySQL I would use table of all words and…
staskjs
  • 97
  • 6
3
votes
1 answer

Web application interacts bi-directional with server program?

I want to write a web application to play chess against the engine Crafty. I'm not new to PHP and javascript, but must learn how to interact with a server process : how can a web application and/or (jQuery) ajax interact bi-directionally with a…
Roelof Berkepeis
  • 165
  • 1
  • 12
3
votes
2 answers

C++ bidirectional iterator prefix increment

Observation 1: A C++ output iterator requires that &r == &++r, while an input iterator does not mention this requirement. See [C++11: 24.2.{3,4}] Observation 2: Forward, bidirectional, and random-access iterators satisfy the input iterator…
nknight
  • 1,034
  • 8
  • 17
2
votes
3 answers

How to set up a bi-directional fast file sync?

To do that, i'm trying to use GIT. I'm trying to develop a .sh script (under linux) to auto-commit all changes in a git repository and delete all history revision except last one. The repository must preserve only last commit data and clear all…
Rimon Soliman
  • 21
  • 1
  • 5
2
votes
2 answers

JPA bidirectional relations

If I have a bidirectional Relationship in my DataModel it is the responsibility of my application to keep the references up to date in the java code. What is the best way to do this? For example a bidir. 1:N relation between A and B. @Entity class A…
Moonlit
  • 5,171
  • 14
  • 57
  • 95
2
votes
1 answer

flexible merge command for unison to pick newer or older file?

I've been using unison as my file synchronizer of choice and life has been great. Essentially I could modify any files on any side at any time without ever worrying who's master and slave, etc. It's bidirectional. However with four roots failing…
Marcos
  • 4,796
  • 5
  • 40
  • 64
2
votes
0 answers

bidirectional boost transform iterator as with std::map

I'm using a transform_iterator to access keys (and separately values) of a map. But it seems that it is not preserving the bi-directionality of std::map::iterator ... #include #include #include #include…
JonT
  • 502
  • 4
  • 13
2
votes
2 answers

React Native bidirectional FlatList, start reached event

How can you implement a start reached event for React Native's FlatList component? FlatList already provides an onEndReached event. Setting the inverted prop to true will trigger such event when the list reaches the top, but you will now be left…
cristian
  • 866
  • 3
  • 8
  • 26
2
votes
1 answer

RMI Bidirectional communication without 2 RMI Servers

I have used RMI (in Java 6) successfully before in a number of projects, where there was a well-defined client/server relationship. When I have been using it in previous projects, I have created a well-defined interface JAR which is deployed to both…
MrBen
  • 21
  • 2
2
votes
1 answer

Bidirectional Dict in Julia

I have some problem where I need to define a one-to-one mapping from one variable to another. I am using a Dictionary like this: mapping = Dict('I'=>1, 'V'=>5, 'X'=>10) I also want to map it back, so at the moment I define a second…
Ricoter
  • 665
  • 5
  • 17
2
votes
1 answer

GRPC bidirectional stream closes after 1 minute without messages

I am opening a GRPC bidirectional stream with a server (python3.8 specifically). After I get some data from the server, I have to do a time consuming task (it takes about 3 minutes). While doing this, I am keeping the channel open to send the…
Teshan Shanuka J
  • 1,448
  • 2
  • 17
  • 31
2
votes
4 answers

How can I define operator< for bidirectional iterator?

How can I define operator< for bidirectional iterator? ( list::iterator ) (I would like to use list and not vector.)
2
votes
1 answer

Scaling gRPC bidirectional streaming chat service

I'm drafting a chat service in gRPC java with bidirectional streaming. Simplified flow is like below, When user joins chat service, user's StreamObserver will be stored in a chat room repository i.e. a simple HashMap holding userId - StreamObserver…
gunjasal
  • 29
  • 2
  • 9
2
votes
1 answer

Multi-Layer Bidirectional LSTM/GRU merge modes in PyTorch

I am trying to replicate my code from Keras into PyTorch to compare the performance of multi-layer bidirectional LSTM/GRU models on CPUs and GPUs. I would like to look into different merge modes such as 'concat' (which is the default mode in…
Robin Sharma
  • 181
  • 2
  • 11
2
votes
2 answers

Liquibase bidirectional relationships changelog order

I've faced a problem when implementing liquibase in an existing project. So we have two entities: Company: @Entity @Table(name = "company") @EqualsAndHashCode(of = {}, callSuper = true) @Setter @AllArgsConstructor @NoArgsConstructor public class…