Dashboard – Public tableau error – Data extract required

I'm trying to load a workbook from Tableau Desktop to Tableau Public, but it will always return an error stating:

"The Tableau server on which you publish does not allow external database connections. Use the Data menu to create an extract for the following data sources."

I have created the data extract and still get the same error. Any help would be appreciated. Thank you very much.

Android – WRITE_EXTERNAL_STORAGE permission is not required in AndroidQ with destination API level 29, does it break security?

I've saved the image file in the external directory through the media store, but AndroidQ does not require permission, even though I did not mention the permission in the manifest.

compileSdkVersion 29

defaultConfig {
        minSdkVersion 21
        targetSdkVersion 29

Note: Each application can store files on external storage without requesting the user's permission. Is this a breakdown of the security breach?

java – Minimum number of swaps required to bring the queue to its final state, not exceeding 2 swaps per element

Scenario or problem definition:
It is New Year and everyone is ready for the roller coaster ride in Wonderland! There are a number of people in the queue, and each person carries a sticker indicating their original position in the queue. The starting positions are increased from 1 in front of the line to n behind the line by 1.

Any person in the queue can bribe the person directly in front of them to swap positions. When two people change positions, they still wear the same sticker that marks their original positions in a line. One person can bribe at most two others. For example, if n = 8 and person bribe 5 person 4, the queue looks like this: 1,2,3,5,4,6,7,8.

Fascinated by this chaotic queue, you need to know the minimum number of bribes that have taken place to bring the queue to its current state!

operation manual
Complete the minimumBribes function in the editor below. An integer must be issued indicating the minimum number of required bribes. If the line configuration is not possible, it is too chaotic.

minimumBribes has the following parameters:

q: an array of integers

input format
The first line contains an integer, the number of test cases.

Each of the next pairs of lines is as follows: – The first line contains an integer, the number of people in the queue. The second line contains space-separated integers describing the final state of the queue.

output format
Issue an integer that specifies the minimum number of bricks required to bring the queue to its final state. Too messy if the condition is invalid, d. H. If a person must have bribed more than persons.

Sample Input

5 1 2 3 7 8 6 4
1 2 5 3 7 8 6 4

example output

Too chaotic

Basically, I'm trying to create a method that will accept the values ​​of the queue in this (final) state and return the number of bricks needed to get to the final state, starting with 1,2,3,4 , 5, … Indicate if the number of bribes per person in the queue is not more than 2. Otherwise "too messy".

The code that fails in some cases using Java streams is as follows. I want to know why I can not achieve the output with Java streams.

static void minimumBribes(int() q) {

        AtomicInteger bribeCount = new AtomicInteger(0);
        AtomicReference chaoticString = new AtomicReference();

        IntStream.rangeClosed(1, q.length).forEach(i -> {
            if (q(i - 1) > i) {
                if (q(i - 1) - i > 2) {
                    chaoticString.set("Too chaotic");
                } else {
                    bribeCount.addAndGet(q(i - 1) - i);

        if (chaoticString.get() == "Too chaotic")


The code passed without using Java streams is given below:

static void minimumBribes(int() q) {

        for (int i = 0; i < q.length; i++) {
            if (q(i) - (i + 1) > 2) {
                System.out.println("Too chaotic");

        int bribe = 0;
        for (int i = 0; i < q.length; i++) {
            for (int j = i + 1; j < q.length; j++) {
                if(q(i) > q(j)) {
                    q(j) = q(i) + q(j);
                    q(i) = q(j) - q(i);
                    q(j) = q(j) - q(i);

**Below is the complete code except for the method:**
public class MaximumTwoBribesAllowedForMovingForwardInQueue {

//Method that needs to be filled in
    static void minimumBribes(int() q) {


    private static final Scanner scanner = new Scanner(System.in);

    public static void main(String() args) {
        int t = scanner.nextInt();

        for (int tItr = 0; tItr < t; tItr++) {
            int n = scanner.nextInt();

            int() q = new int(n);

            String() qItems = scanner.nextLine().split(" ");

            for (int i = 0; i < n; i++) {
                int qItem = Integer.parseInt(qItems(i));
                q(i) = qItem;

Can you please help us to recommend changes to achieve this with Java streams?

Example input:

5 1 2 3 7 8 6 4
1 2 5 3 7 8 6 4

Expected correct issue:
Too chaotic

Actual wrong issue:
Too chaotic

SQL Server – If the size of the tempdb file increases, a reboot is required

If you decrease the size with MODIFY FILE This would require a reboot because the tempdb files are recreated at reboot with the specified lower sizes.
If you want to reduce the size immediately, you need to start shrinking.

If you increase the size, this will be changed immediately.

A small example of my development environment

USE (master)
ALTER DATABASE (tempdb) MODIFY FILE ( NAME = N'temp2', SIZE = 4096MB )
ALTER DATABASE (tempdb) MODIFY FILE ( NAME = N'tempdev', SIZE = 4096MB )

Enter image description here

blockchain.info – Blockchain.com API and required quantity

I have installed Blockchain.com on our server and have successfully run some codes based on the Wallet APIs. In terms of what is said here, we have charged the created wallet with 0.00000546 BTC when testing this platform. However, when using the Payment API, we got the following result:

  "error": "Insufficient funds",
  "available": 0.00000546,
  "needed": 0.00001092,
  "sweep_amount_satoshi": 0,
  "sweep_fee_satoshi": 678

I can not understand why I am getting this error and especially how the amount of variables needed is calculated. Can you help me please?

A dedicated server with good connectivity to the US is required

Hi Guys,

These days, I'm having trouble delivering my IPTV service to my US customer base. There main problem:

We get DMCA from the USA. Using servers based in the US provides perfect connectivity. However, you get plenty of DMCA and we have to move the content quickly and eventually the account is closed or the server shuts down (we stream Indian channels).
The solution (after trying many sites like the UK, Germany, Australia, etc.) was a company in the Netherlands that offered us a guaranteed 1 Gbit / s uplink connection. Your DMCA policy also serves our purpose and we had no reason to move. However, lately connectivity to the US seems to have worsened from the very end, and they've been trying to fix it for days. Over 80% of our customers are in the USA. However, as noted above, a server in the US is not an option because it is DMCA-incompatible, particularly from US companies.

The question:

Can anyone recommend a dedicated offshore server with 1 Gbps guaranteed speed and unlimited (or 100 TB) traffic with good connectivity to the US and mild DMCA policies? Thank you in advance.

Domain-Driven Design – Is a one-to-one mapping between writing applications and reading applications required?

We have a range of micro services (around 40) to serve our customers.

To ease the scalability and verifiability of a few micro services, we decided to redesign them using CQRS and event sourcing.

We started with a one-to-one mapping between read and write applications. For example, WriteApplicationA and ReadApplicationA, WriteApplicationB and ReadApplicationB, and so on.

At this point, however, we are considering that some read applications listen to events from more than one write application.

Is it okay to read applications that listen to events from multiple writing applications? (At this point, it looks very convincing, but I'll come across mistakes in the future). (Reporting is the use case where events from multiple writing applications are to be intercepted.)

Why are these instructions required in the configuration of nginx phpmyadmin?

I try to understand Nginx better. I have come across some lines of code in which I believe I understand what they are doing, but I do not understand why they are necessary.

Here is the phpmyadmin configuration snippet I'm using:

location /phpmyadmin {
       root /usr/share/;

       index index.php index.html index.htm;

       location ~ ^/phpmyadmin/(.+.php)$ {
               try_files $uri =404;
               root /usr/share/;

               fastcgi_pass unix:/run/php/php7.2-fpm.sock;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               include /etc/nginx/fastcgi_params;

       location ~* ^/phpmyadmin/(.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
               root /usr/share/;

I do not understand the purpose of the last site context. Every request it reaches already has the same master record in the wrapping context. None of the matching files would match the other location, so it's not a specificity war. Why do we need it then?

Any why is this the case? fastcgi_index index.php; Line included? As far as I understand, index index.php index.html index.htm; The line is redirected internally / to index.php and the request of / would never reach the PHP site, right? It also seems that the / The request does not even match the location, as there is none php, Do I miss something? I am aware that I have abused in this paragraph / instead of the actual directory path. Is that the key here?

P.S. Unfortunately, I do not know the original source of this configuration, but this seems to be one of the most commonly recommended phpmyadmin configurations, for example, here, here, and even server failures.