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
2
votes
2 answers

Drawing Hebrew text to and image using Image module (python)

This is an issue I already asked about and several got answers but the problem remained. when I try to write in hebrew to an image using Image module I get instead of the hebrew lettring some other (ascii??) lettering. if I convert to unicode or…
ariel
  • 795
  • 2
  • 9
  • 11
2
votes
2 answers

Two sided (bidirectional) list in Java

Is there something like a two sided list in Java? Maybe a third party implementation? Here a little example to demonstrate what I have in mind. Original state: A: 0-1-2-3 | | | | B: 0-1-2-3 After removal of element 1 in B: Null | A:…
medihack
  • 16,045
  • 21
  • 90
  • 134
2
votes
3 answers

Bi-Directional Iteration over a Singly Linked List

I'm currently studying for a Data Structures exam, and encountered a question regarding iteration. Is it possible to implement a bi-directional iterator over a singly-linked list? If so, how would one go about implementing it? I had an idea to…
2
votes
2 answers

Should a bidirectional iterator having reached end remain decrementable in C++?

I'm writing a special iterator class that works like std::istream_iterator and many others by using a default-constructed instance to mark end of iteration. I want to give it the bidirectional iterator category. After running the following…
2
votes
1 answer

Table Associations in Ruby on Rails

There are two tables, groups, and groups_hierarchy. groups has standard information about a group and the group_hierarchy has two columns (parent, child) that list the parent group's id and child group's id. This is to say that the child group is a…
2
votes
1 answer

How to change the direction of PrimeFaces' "Wizard" and "PanelGrid" to RTL

I'd like to know if there is anyway to set the direction to RTL on the following PrimeFaces components: PanelGrid. Wizard This post says that primefaces has gone bidirectional: but does that change include the two components in question?
SaryAssad
  • 161
  • 1
  • 3
  • 20
2
votes
2 answers

PHP Bi-Directional map

I'm porting to PHP a piece of Java code that uses a lot of Bi-directional maps (Guava's BiMap). Java-like maps are provided by PHP arrays or SplObjectStorage, but is there a library PHP Bi-Directional map available?
dtech
  • 13,741
  • 11
  • 48
  • 73
2
votes
1 answer

JPA one-to-one entity removal in bidirectional relationship

This is my Student entity, @Entity @Access(AccessType.FIELD) @Table(name="TBL_STUDENT") public class Student implements Serializable{ ..... ..... .... .. . @OneToOne( targetEntity=StudentContact.class, …
Rahul Shivsharan
  • 2,481
  • 7
  • 40
  • 59
2
votes
1 answer

Can bi-directional searches be used where there are multiple goal nodes?

If I have some sort of data structure that I wish to conduct a search on that has a single starting node but multiple goal nodes, can I still use a bi-directional search algorithm?
DanMc
  • 848
  • 5
  • 15
  • 26
2
votes
1 answer

bidirectional named pipe question

I have 2 apps that I want to make communicate via named pipes on .NET 3.5. Its a request/response paradigm, with the data transmitted as XML to make my life easier. There is a listener app, and an app that posts requests to the pipe. I'm trying…
user90784
2
votes
1 answer

asp.net mvc bi-directional self-referencing many-to-many

I am having difficulty setting up bi-directional self-referencing many-to-many mapping using EF in ASP.NET MVC4 I have: modelBuilder.Entity() .HasMany(i => i.ChildItems) .WithMany() .Map(m => m.MapLeftKey("ItemID") …
2
votes
0 answers

Adding owner side object in JPA+Eclipselink ManyToMany bidirectional relation

I am using JPA and Eclipselink. My problem is that in a @ManyToMany bidirectional relationship how to add a new object on the owner side correctly when the other side object was created and persisted earlier. I have two entity classes, Group and…
GregTom
  • 352
  • 4
  • 15
2
votes
3 answers

bidirectional tcp socket problems in C

I'm trying to implement a TCP client in C which needs to work as follows: Ability to open a connection to a given server Ability to send arbitrary data to the server through the established connection, and Ability to receive arbitrary data from the…
Siska Ádám
  • 417
  • 1
  • 5
  • 11
2
votes
2 answers

Bidirectional communication between microcontroller and pyserial

I am using Python 2.5.4 and Windows 7. I am trying to create a program that transmits and receives info from a microcontroller using pygame. This code works fine when the microcontroller just writes data to pygame, but when the line is included in…
user1473877
  • 21
  • 1
  • 3
1
vote
1 answer

Netbeans sFTP Sync - Bidirectional reconciliation

I'm using Netbeans to manage a PHP projects in a proprietary setup. Files are on a web server and I use netbeans sFTP to download and auto-upload the files as I change them. It works great and I've read of others doing this. This takes care of…
Frank V
  • 25,141
  • 34
  • 106
  • 144