Passport expiration and travel

I have an expiring passport in September 2020. I will be traveling to the UK for a cruise to Scandinavia and St. Petersburg in May. The cruise begins and ends in the UK.

Do I have to renew my passport before leaving or am I safe?

Error syntax error, & # 39; $ result & # 39; unexpected (T_VARIABLE)

enter description of image hereHello, I hope you can help me by clicking on the connection I get this error Error syntax error, & # 39; $ result & # 39; unexpected (T_VARIABLE)
enter description of image here

Compliance of cookies and Google Analytics on Drupal 8

I am using Drupal 8.6.14 (I will be upgrading soon) and I am trying to create a cookie consent page that really works! I have used many different modules like EU Cookies Compliance, GDPR Compliance and many others, but not all of them block Google Analytics cookies. I even used a few fixes on Google Analytics that I found in the community to support the EU Cookies Compliance module, but all of them fail. To be exact, EU Cookies Compliance seems to load cookies as usual, then delete them when the consent dialog appears, then reload them once I choose an option. All the other solutions seem not to work at all (I receive cookies each time the page loads). BTW, all the solutions I have found are for <8 versions. Any idea how I can get there? am i missing something?

co.combinatorics – What size of a set can guarantee that a multivariate polynomial should not disappear?

Say $ p $ is a polynomial of degree $ k $ in $ mathbb C (x) $. so $ p $ can have at most $ k $ separate roots. A somewhat obtuse way of saying it is that among any set of $ k + $ 1 separate complex numbers there must be a value $ a $ For who $ p (a) neq 0 $.

The question here has to do with the generalization of the above fact to multivariate polynomials.

Given some $ p in mathbb C (x_1, ldots, x_n) $, it turns out that whenever we have enough different values ​​to choose from, we can always choose from these $ a_1, ldots, a_n $ to give $ p (a_1, ldots, a_n) neq 0 $. Furthermore, how much is "sufficient" is a fair function of $ n $ and the degree of $ p $.

I would like to point out that, in the above and in the following, the $ a_1, ldots, a_n $ if chosen are separate.

To make things more precise and specific, we have the following.

Theorem. Let $ p in mathbb C (x_1, ldots, x_n) $ to be a polynomial of total degree $ k $. Then any set of $ n + k $ separate complex numbers contain a subset of $ n $ which can be assigned to variables $ x_1, ldots, x_n $ in order to give a non-zero value for $ p $. (Again, we are talking about choosing from the set $ n $ separate values ​​that we assign to $ x_1, ldots, x_n $.)

Proof of the above is not too difficult an exercise.

But the question is:

Question. In the above theorem, the $ n + k $ be replaced by another function of $ n $ and $ k $ in order to give a better upper limit?

In fact, let's define $ M (n, k) $ be the smallest positive integer such that for each $ p in mathbb C (x_1, ldots, x_n) $ of the total degree $ k $, each set $ S $ at least $ M (n, k) $ separate complex numbers contain a subset $ {a_1, ldots, a_n } $ (of cardinality $ n $, so these are separate values) such as $ p (a_1, ldots, a_n) neq 0 $.

The above theorem states that $ M (n, k) le n + k $, but I don't even see how to respect this limit for $ n = k = $ 2.

Most efficient database for location-based statistics

I would like to create a simple app where I will show the number of tourists from a particular place with the tourist origin. For example, Spain received 20 million visitors, including 5 million from Germany. Next, I would like to divide the statistics into smaller regions as follows: Of these 20 million visitors, Barcelona received 12 million, Madrid received 8 million visitors. Tourists in Barcelona come from 4 million of them from Paris, 5 million of them from London and so on. The desired data can be represented in JSON as follows:

{
 "name": "spain",
 "level": "country",
 "date_from": "2019-01-01",
 "date_to": "2020-01-01",
 "total_count": 25000000,
 "origins": [
     {
         "name": "germany",
         "level": "country",
         "count": 12000000
     },
     {
         "name": "england",
         "level": "country",
         "count": 9000000
     }
 ],
 "sublevels": [
     {
         "name": "barcelona",
         "level": "city",
         "total_count": 25000000,
         "origins": [
             {
                 "name": "berlin",
                 "level": "city",
                 "count": 5000000
             },
             {
                 "name": "london",
                 "level": "city",
                 "count": 3000000
             }
         ]
     },
     {
         "name": "madrid",
         "level": "city",
         "total_count": 7000000,
         "origins": [
             {
                 "name": "paris",
                 "level": "city",
                 "count": 3500000
             }
         ],
         "sublevels": [
             {
                 "name": "san siro",
                 "level": "poi",
                 "total_count": 750000,
                 "origins": [
                     {
                         "name": "paris",
                         "level": "city",
                         "count": 350000
                     }
                 ]
             },
             {
                 "name": "royal palace",
                 "level": "poi",
                 "total_count": 450000
             }
         ]
     }
 ]
}

I plan to use MongoDB for the case, but it doesn't seem right. What database would you use for this kind of work?

java – let user retry entry after incorrect entry?

when a user enters a negative number or a number greater than 0, I want the error message to be displayed and they can try again so that the entry is a number between 0 and 100

import java.util.Scanner;

public class Lab3 { 
    public static void main(String() args) {

        double homework = 0;
        double midterm = 0;
        double finalExam = 0;
        double finalGrade;
        int i = -1;

        Scanner scan = new Scanner(System.in);

        while ( i <= 2) {
            i++;

            if (i==0) {
                System.out.print("Enter your HOMEWORK grade: ");
                double homework = scan.nextDouble();

                if (homework < 0 || homework > 100) {
                    System.out.println("(ERR) Invalid input. A final grade should be in (0, 200).");    
                }
                else {  

                }

            }
            if (i == 1) {
                System.out.print("Enter your MIDTERM grade: ");
                midterm = scan.nextDouble();

                if (midterm < 0 || homework >100) {
                    System.out.println("(ERR) Invalid input. A final grade should be in (0, 200).");
                }
                else {

                }
            }
            if (i == 2) {
                System.out.print("Enter your FINAL EXAM grade:  ");
                finalExam = scan.nextDouble();

                if (finalExam < 0 || finalExam > 100) {
                    System.out.println("(ERR) Invalid input. A final grade should be in (0, 200).");    
                }
                else {

                }
            }
        }

        finalGrade = ((finalExam/200)*50) + (homework*.25) + (midterm*.25);
        System.out.println("(INFO) Student's Weighted Total is: " +finalGrade);

        if (finalGrade < 50) {
            System.out.println("(INFO) Student FAILED the class");
        }
        else {
            System.out.println("(INFO) Student PASSED the class");
        }

        scan.close();

        }
    }

``` 

magento2 – Search and filter products in the admin panel, horribly poor performance. Is this not indexed?

In the product tab of the admin panel, is it possible to increase search and filtering performance? I have a large number of products, and it takes at least 45 seconds minimum to get an answer.

Is it even indexed? I have configured ElasticSearch 5, shouldn't that be at least usable?

Help me with my code, I start now with Javascript

I'm trying to print the total sum of all the values ​​in the list, but what my code does is add the first element with the first element and give the result, then the second element with the second element and so on, follow the code:

const valor = (1,2,3,4,5);
for (let i in valor){    
    i++
    let soma = i+i
    console.log(`i = ${soma}`)
}

dnd 3.5e – Question on the interaction between control water and sculpture

As written, Sculpt Spell has specific limits that limit the area of ​​the spell.

As a DM, I wouldn't just say about the wording, but there is also a similar problem with Sculpt Spell that I found here, where a sculpted spell is always limited by the scope of the spell (their example uses a burning hand sculpted to make a 40 feet The range in case of burns of the hands is 15 feet, and therefore the spell effect ends beyond this range in the cone). In this case, the area of ​​the spell becomes strictly limited by the scope of the spell and the limits of Sculpt Spell.

A quick check of the Rules Compendium doesn't reveal anything about this, and Complete Mage / Arcane offers nothing (as far as I know) when it comes to the new metamagic rules.

ios – Why would an iPad fail to connect to an iMac (via a Lightning cable) to sync, once all of the "trust" steps have been followed?

When you try to connect a new iPad (iPad Air, 3rd generation) running 13.3 to an old iMac running MacOS 10.11.6, the iPad / computer connection (via cable) never succeeds.

All prompts are correctly followed:
Trust this computer is selected.
Do you want to allow this computer to access this iPad? Yes
The access code is entered correctly on the iPad.

Then the computer hangs when prompted
To allow access, please respond on your iPad...

… until expiration with a response from
iTunes could not connect to this ipad. You do not have permission.

What's wrong? Has Apple deliberately banned the use of old computers / MacOS with newer devices ??