parallel

Need example code for PayPal NVP api request code for parallel payment.

I can use successfully the PayPal NVP api for SetExpressCheckout. But the problem with this is, I can't pay two merchant on a single payment. So, going through PayPal, I found that I can use the parallel payment. I need to know how can I use the parallel payment. I have request code for the SetExpressCheckout like following, <form meth...

Extending python Queue.PriorityQueue (worker priority, work package types)

Hi! I would like to extend the Queue.PriorityQueue described here: http://docs.python.org/library/queue.html#Queue.PriorityQueue The queue will hold work packages with a priority. Workers will get work packages and process them. I want to make the following additions: Workers have a priority too. When multiple workers are idle the on...

How do I create variables in sequence in common Lisp?

I have the following code inside a function that is reading in a file which is a map. I get an error that *numrows* is an illegal dimension. I think this is because lisp is processing these variables in parallel. How can I fix this? (setq *numrows* (read map)) (setq *numcols* (read map)) (setq *map* (make-array '(*numrows* *numcols*) :i...

Is there an alternative to CHESS for testing programs written with Task Parallel Library

I am looking for a tool that will allow me to execute unit tests over all possible interleavings (spelling?) with a program that was written with Task Parallel Library constructs. Alternatively, how could I run CHESS with dotNET 4.0? ...

Parallel processing in oracle

I had a 'procedure A' in which it has to return a null cursor to front end and then immediately it should continue with the next step in which it will call a procedure which will take 20 min to complete the proc. Procedure A(cur_out refcursor) begin OPEN cur_out for select null empname, null empid from dual; procedure B();//Wil...

Multi-thread/parallel requests in PHP

How can I make multi-thread (parallel) GET requests in PHP? I know that there is a CURL multi-thread support, but there is no limit of active requests number and actual callbacks configuration for every success request completion. ...

Parallel JavaScript Code

Is it possible to run JavaScript code in parallel in the browser? I'm willing to sacrifice some browser support (IE, Opera, anything else) to gain some edge here. ...

foreach %dopar% + RPostgreSQL

I am using RPostgreSQL to connect to a local database. The setup works just fine on my Linux machine. R 2.11.1, Postgres 8.4. I was playing with the 'foreach' with the multicore (doMC) parallel backend to wrap some repetitive queries (numbering a few thousand) and appending the results into a data structure. Curiously enough, it works i...

ConcurrentDictionary: super slow?!

I have a file I'm trying to parse, and this is how I'm doing it: var definitions = new Dictionary<int, string>(); foreach (var line in new RirStatFile("delegated-lacnic-latest.txt")) { for (var i = 0; i < line.Range; i ++) { definitions[line.StartIpAddress + i] = line.Iso3166CountryCode; }; }; new RirStatFile(...)...

Firing only the first of multiple HandleExternalEvent in ParallelActivity

I have a workflow that at some point contains a parallel activity with two external event handler activities in each parallel branch. Both HandleExternalEvent activities wait for the same event on the local service. I would like to execute only one of them based on parameter that comes from the local service. So far only the first branch...

Erlang - parallel message is not seeking correctly

Hi everyone, I have a little issue to which I can find no easy answer. I set: Who = apple. Message = [{apple, {0,0,0}}, {orange, {1,1,1}}]. Old = [X || {Who, X} <- Message]. Old returns as [{0,0,0},{1,1,1}] Of course my expected response was {0,0,0} Instead I get both apple and orange. What could I do?? ...

Erlang BIF's to delete tuples in list

How can I delete a tuple with key from a list? Ex: TupleList = [ {apple, {0,0,0}}, {orange, {0,0,0}}, {bannana, {0,0,0}}] Then I need to delete the tuple whos key matches orange. So I should get back [ {apple, {0,0,0}}, {bannana, {0,0,0}}] Im looking for a BIF instead of a function as I am using right now. Thanks and Regards ...

Implementation of parallel coordinates?

I want to implement parallel coordinates for my muldimensional result. Does anyone have a good link to its implementation in matlab or R? Furthermore, are there any suggestions regarding the best tool to use for producing the parallel coordinates? ...

ERLANG - wxGrid register

Im having some trouble with the erlang wx module. My program runs as follows: Server = wx:new(), Frame = wxFrame:new(Server, -1, "" [{size,{700, 600}}]), %%%REFERENCE TO WINDOW Panel = wxPanel:new(Frame), %%% REF TO PANEL IN FRAME Then I pass Panel to another process and try to create a Grid XreportZ = wxGrid:new(Panel, 24, [ {p...

Parallel: how to synchronize properly

I have a following fairly simple scenario: Some data needs to be written into a DB (pretty big collection) that can be partitioned. But I have two problems: Easy one: would like to have an option to print the progress bar, so that would like to know how many records have been inserted so far from time to time (kinda shared counter amon...

How to make colours on one screen look the same as another

Given two seperate computers, how could one ensure that colours are being projected roughly the same on each screen? IE, one screen might have 50% brightness more than another, so colours appear duller on one screen. One artist on one computer might be seeing the pictures differently to another, it's important they are seeing the same ...

Are you using Parallel Extensions?

I hope this is not a misuse of stackoverflow; recently I've seen some great questions here on Parallel Extensions, and it got my interest piqued. My question: Are you using Parallel Extensions, and if so, how? My name is Stephen Toub and I'm on the Parallel Computing Platform team at Microsoft. We're the group responsible for Parallel...

Getting Dictionary<K,V> from ConcurrentDictionary<K,V> in .NET 4.0

I'm parallelizing some back-end code and trying not to break interfaces. We have several methods that return Dictionary and internally, I'm using ConcurrentDictionary to perform Parallel operations on. What's the best way to return Dictionary from these? This feels almost too simple: return myConcurrentDictionary.ToDictionary(kvp => ...

Is Cilk's approach to shared memory parallel programming a panacea?

What challenges in shared memory parallel programming (particularly multicore) cannot be solved or cannot be solved efficiently using a Cilk-style solution (i.e. nested data parallelism with per-core work stealing task deques)? ...

Java: How to run thread separately from main program/class?

Subj. How to run thread from main class BUT separately from that class? So a bit of details: I have one program which must run a process. That process (a cmd one) runs only when main program finished and unloaded from memory. And only after unload main program that process starting his work. What should I add to the program? ...