## What is your process for dealing with chargeback requests

Hey everyone,

Just got a chargeback request and wanted to know your process for dealing with them? Do you terminate their plan straight a… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1827094&goto=newpost

## design patterns – Naming of object which encapsulates an async “operation” / “process”

I have an application which sends and receives commands to and from an external device.

I have modeled the interactions with the device as “usecases / interactors” which only do one thing, for example `StartSomething`. The `StartSomething` interactor sends the relevant command to the device and then waits for an acknowledgement from the device.

The application can also subscribe to an event bus to receive messages being pushed from the device.

After starting a certain process I expect certain messages to be sent from the device and I thus start listening for them on the event bus. (For example, `SomethingUpdate` or `SomethingResult`)

I also need to be able to stop the process, either manually or when certain criteria has been met.

Currently I have modeled this as a `SomethingOperation` with methods that call the specific interactors (eg `start()`)
The `SomethingOperation` will also run the logic to check if the operation should be stopped automatically.
The `SomethingOperation` also takes a callback which is implemented by whichever class is using the operation, `SomethingOperationCallback` with methods:

• `onStarted`
• `onError`
• `onStatusUpdate`
• `onResultUpdate`
• `onOperationCompleted`

So in summary an `operation` in my app is something which runs in the background, can be started, can be stopped, can post status updates and can return a result.

My question is the following:
Is there an established pattern with proper terminology and naming conventions for what I am trying to do, or is calling this type of object an `operation` sufficient? Apologies if my question is too specific, I would appreciate pointers in the right direction.

Side note: The app runs on Android. Interactors use RxJava to send commands to a BLE device.
Interacting with the `Operation` object only requires the app to implement the callback and not worry about the implementation details of the interactors (eg RxJava).

## c# – Dynamically process data out of CSV file

I have a .csv file that stores some information about different people and looks like this:

``````Username; Identifier; First name; Last name

booker12; 9012; Rachel; Booker
grey07; 2070; Laura; Grey
johnson81; 4081; Craig; Johnson
jenkins46; 9346; Mary; Jenkins
smith79; 5079; Jamie; Smith
``````

Lets say all entries are unique. I want to automatically generate questions and answers using the data of the .csv file. I added a TL;DR at the bottom.

There will be two question types: 1.What `Identifier` does the user `grey07` belong to?” comes with 2 random and 1 correct choice: “2070, 9012, 4081?“.
And 2.What is the `first name` of the Identifier `5079`

So my program needs to a) insert a name or identifier, b) store the right answer to it and c) provide some wrong answer choices.

I would love to know what is the most efficient way to approach this, since the csv file will contain a lot more entries (2k). When I start the “game” again, I do not want to have the exact same answer choices repeat themselves.

I am struggling whether to try to convert the csv into a .json file like this:

``````"questions": (
{
"identifier": "9012",
"fn": "rachel",
"ln": "Booker"
},
{
"identifier": "2070",
"fn": "Laura",
"ln": "Grey"
},..)}
``````

Should I make a class and create an object holding the questions every time the game starts? But how do I assign the “wrong” answer choices? Or should I just make tuples out of the csv entries? Or would a giant list with question,answer elements be a better fit? I really wanted to think my approach through before starting to code anything, but I have no idea how to build the logic behind this.

TL;DR: Clever way to generate questions about the csv entries and provide 2 random wrong and 1 correct answer choices to that question. A general idea/approach is what I am looking for not the program code as I’ll try to figure it out myself.

We need to download a file after a batch process. We tried using the BinaryFileResponse for downloading. But it is not working and also not showing any error.
The code is as follows

``````    <?PHP

namespace Drupalmodule_quiz;
use SymfonyComponentHttpFoundationBinaryFileResponse;

/**
*/

/**
* This function runs the batch processing and downloads a csv with user info.
*/
public static function quizMarksBatchOp(\$num, \$total, \$nid, \$result, \$file_path, &\$context) {
\$handle = fopen(drupal_realpath(\$file_path), "a");
\$uid = \$result->uid;
\$score = \$result->score;
\$userInfoQuery = "SELECT rollnumber, fullname, email, section from users";
\$userInfo = db_query(\$userInfoQuery, (':uid' => \$uid));
foreach (\$userInfo as \$info) {
\$value = (
\$info->rollnumber,
\$info->fullname,
\$info->email,
\$score,
\$info->section,
);
\$results() = \$value;
fputcsv(\$handle, \$value);
}
fclose(\$handle);
\$context('results')() = \$results;
\$context('results')('file_path') = \$file_path;
if (\$num == \$total) {
\$context('results')('status') = 'finished';
}
else {
\$context('results')('status') = 'processing';
}
}

/**
* This function finishes batch and redirects user.
*/
if (\$success) {
if (\$results('status') == 'finished') {
'Content-Type' => 'text/csv',
'Content-Disposition' => 'attachment;filename="testquiz.csv"',
);
return new BinaryFileResponse(file_url_transform_relative(\$results('file_path')), 200, \$headers, \$scheme !== 'private');
}
}
else {
\$error_operation = reset(\$operations);
drupal_set_message(
t('An error occurred while processing @operation with arguments : @args',
(
'@operation' => \$error_operation(0),
'@args' => print_r(\$error_operation(0), TRUE),
)
)
);
}
}

}
``````

## How to import data from a webpage to process in google sheet

#### Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

## nfcd process taking 33% of cpu – what is that and why?

Since a few days there is process called nfcd taking up 175% (33% of all cpu) of cpu an my MBP 13 with 10.15.7. It’s even running when all apps are closed and after reboot of the Mac.

For some reason the process doesn’t show up in the activity monitor but only in Menu Meters. I am able to kill the process with `sudo killall nfcd` but nevertheless, I’d like to know what is going on.

## What is your process for helping a local business become more visible in search results?

What is your process for helping a local business become more visible in search results?

## probability theory – Martingale induced by the weak generator of a Markov process

Let

• $$(Omega,mathcal A,operatorname P)$$ be a probability space;
• $$(mathcal F_t)_{tge0}$$ be a filtration on $$(Omega,mathcal A,operatorname P)$$;
• $$(E,mathcal E)$$ be a measurable space;
• $$(X_t)_{tge0}$$ be a $$(E,mathcal E)$$-valued $$mathcal F$$-progressive time-homogeneous $$mathcal F$$-Markov process on $$(Omega,mathcal A,operatorname P)$$ with transition semigroup $$(kappa_t)_{tge0}$$;
• $$f:Etomathbb R$$ be bounded and $$mathcal E$$-measurable.

Assume $$(0,infty)ni tmapsto(kappa_tf)(x):=intkappa_t(x,{rm d}y)f(y)tag1$$ is differentiable at $$0$$ for all $$xin E$$ and let $$(Af)(x):=left.frac{rm d}{{rm d}t}kappa_tf(x)right|_{t=0+};;;text{for }xin E.$$

Are we able to show that $$M_t:=f(X_t)-int_0^t(Af)(X_s):{rm d}s;;;text{for }tge0$$ is a $$mathcal F$$-martingale?

First of all, we need to ensure that $$M$$ is well-defined. $$Af$$ is clearly $$mathcal E$$-measurable (since it is the pointwise limit of $$mathcal E$$-measurable functions) and since we’ve assumed that $$X$$ is $$mathcal F$$-progressive, $$(0,t)ni smapsto(Af)(X_s(omega))$$ is Borel measurable for all $$(omega,t)inOmegatimes(0,infty)$$. However, since $$Af$$ doesn’t need to be bounded, I wonder whether the Lebesgue integral exists at all …

## process scheduling – Average time for jobs in a batch processing system

I saw this question , I want to know if anyone can help me solve it.

Four jobs arrive at a batch processing system at the same time and the excution for each job is 2 hours. They run on a a single processor. The average time for the jobs to finish is

• 2.5 hours
• 1 hour
• 5 hours
• 8 hours
• 4 hours

## How can i stop the multi-user process?

was using ‘netstat’ for Android and I discovered a process called multi-user LISTENING on ports (IPv6) as you see in the picture, it established connection when I download an app like noon shopping app, am requesting your help please.