Questions tagged [chord]

A Scalable Peer-to-peer Lookup Service for Internet Applications: see paper

89 questions
73
votes
1 answer

Highlight selected node, its links, and its children in a D3 force directed graph

I am working on a force directed graph in D3. I want to highlight the mouseover'd node, its links, and its child nodes by setting all of the other nodes and links to a lower opacity. In this example, http://jsfiddle.net/xReHA/, I am able to fade out…
Christopher Manning
  • 4,527
  • 2
  • 27
  • 36
18
votes
2 answers

Run a chord callback even if the main tasks fail

Is it possible to run a chord callback even if the main tasks failed? I've created a chord which I added a bunch of tasks and registered a callback to it. My problem is that if one of the tasks fail, the callback is not triggered. But I would like…
Diego Guimaraes
  • 415
  • 3
  • 12
13
votes
1 answer

How Distributed Hash Table in IPFS and Bittorrent prevent abuse?

My understanding is that IPFS and Bittorrent Mainline DHT are built on top of a Distributed hash Table (Kademlia). They use the file hash as Kademlia key to find a list of peer that might have this file. 1- What I don't understand is if this is all…
skyde
  • 2,816
  • 4
  • 34
  • 53
11
votes
1 answer

Display possible chord continuations in Visual Studio

Visual Studio (with or even without plug-ins) has many chord keys. By "chord" I mean a several consecutive presses, like Format Document Ctrl+D, F Extract Method (resharper) Ctrl+R, Ctrl+M When I press the first combination, the status bar…
Kos
  • 70,399
  • 25
  • 169
  • 233
9
votes
3 answers

Keeping Client State Up-To-Date In Reagent / Clojurescript

I am not sure on the best way to go about this: I have a web application I am writing which implements basic CRUD functionality for a number of "Project" objects. So, a user can create his/her own set of Projects. I have written a REST API for…
Rob Moffat
  • 465
  • 5
  • 11
9
votes
3 answers

Using django-celery chord, celery.chord_unlock keeps executing forever not calling the provided callback

I'm using Django Celery with Redis to run a few tasks like this: header = [ tasks.invalidate_user.subtask(args = (user)), tasks.invalidate_details.subtask(args = (user)) ] callback = tasks.rebuild.subtask() chord(header)(callback) So…
Martin Tóth
  • 1,747
  • 3
  • 24
  • 35
7
votes
2 answers

How to easily Generate Synth Chords Sounds in Android?

How to easily Generate Synth Chords Sounds in Android? I wanna be able to generate dynamically an in game Music using 8bit. Tried with AudioTrack, but did not get good results of nice sounds yet. Any examples out there? I have tried the following…
barata7
  • 338
  • 1
  • 5
  • 13
5
votes
1 answer

Infinite loop findSuccessor?

I am currently dealing with the Chord protocol. For each node there are two functions, findSuccessor and closestPrecedingNode which are given as pseudo-code. findSuccessor is: n.findSuccessor(id) if(id is.in (n, successor]) return successor; …
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
4
votes
2 answers

Chord protocol. Distribuited Hash Table (DHT). Peer to peer. (P2P)

I'm trying to implement this protocol: http://en.wikipedia.org/wiki/Chord_(peer-to-peer) What i understood from it is that each node that joins the "circle" is placed in a random place inside the circle, depending on it's hashed IP+port value. But…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
4
votes
3 answers

Python celery - how to wait for all subtasks in chord

I am unit testing celery tasks. I have chain tasks that also have groups, so a chord is resulted. The test should look like: run celery task ( delay ) wait for task and all subtasks assert I tried the following: def wait_for_result(result): …
dynamicmindset
  • 41
  • 1
  • 1
  • 5
4
votes
1 answer

Chords of Chords Timeout

Using celery, I have constructed a chord of chords: from celery import chord chord(task1, chord(task2, task3)) However, it often raises a timeout: Chord '0f3dd024-8fe3-4b1b-ab9b-6081569c9738' raised: "TimeoutError('Operation timed out (3.0)',)" …
user2701815
  • 161
  • 1
  • 9
4
votes
1 answer

Can applications coexist within the same DHT?

If you create a new application which uses a distributed hash table (DHT), you need to bootstrap the p2p network. I had the idea that you could join an existing DHT (e.g. the Bittorrent DHT). Is this feasable? Of course, we assume the same…
qznc
  • 1,113
  • 2
  • 12
  • 25
4
votes
2 answers

Celery: Abort or revoke all tasks in a chord

I use the following setup with a Redis broker and backend: chord([A, A, A, ...])(B) Task A does some checks. It uses AbortableTask as a base and regularly checks the task.is_aborted() flag. Task B notifies the user about the result of the…
Danilo Bargen
  • 18,626
  • 15
  • 91
  • 127
4
votes
1 answer

Getting task_ids for all tasks created with celery chord

My goal is to retrieve all the task_ids from a django celery chord call so that I can revoke the tasks later if needed. However, I cannot figure out the correct method to retrieve the task ids. I execute the chord as: c = chord((loadTask.s(i) for i…
user2701815
  • 161
  • 1
  • 9
3
votes
1 answer

Equivalent of chord.groups in D3.js v7

I am trying to recreate Nadia Bremer's chord diagram for storytelling with data from https://gist.github.com/nbremer/94db779237655907b907 She accesses the chord.groups element when creating the g element: var g =…
MaYa
  • 180
  • 7
1
2 3 4 5 6