PHP – Was a custom menu created for this WordPress website? selectnav.js

I noticed that this line of code is in the header.php folder.
'primary', 'menu_id' => **'navigation'**) ); ?>

When I delete "navigation text" from this line of code, the drop-down menu for mobile devices is hidden. My question to you is do you think this is a custom menu created by the author of the topic? The original navigation menu in the topic is called "Navigation Menu". If "Navigation" is a custom navigation, how do I edit the code for this navigation? I want to add my own mobile navigation menu with HTML, CSS and Javascript. I already know how to register Javascript, CSS and the script, but I don't know where to add the HTML for my custom mobile phone menu.

Thank you,

-Mick

magento2 – Cannot access newly created domain in nginx on Ubuntu

I recently set up magento on my local system and installed mariaDB, nginx and php7.1.

I created new files in sites-available and also made symlink. And I ran nginx-t, there was no error, everything looks fine, but if I try the domain in the browser, I can see a message saying that the site is unreachable.

Can someone help me, what could be the reason.

You can find information about site configuration here

upstream fastcgi_backend {
         server  unix:/run/php/php7.1-fpm.sock;
}
server {
    listen 80;
    listen [::]:80;
    index  index.php index.html index.htm;
    server_name  dev.magento.com;

    client_max_body_size 100M;
    set $MAGE_ROOT /var/www/html/magento2;
    set $MAGE_MODE developer;
    include /var/www/html/magento2/nginx.conf.sample;
}

Enter image description here
Enter image description here

sql server – Get-Counter does not accept an array created from SQL

When I try to generate an array from SQL output, perfmon does not accept these values ​​even though it is the same data type and content, whereas a manually created list is. The first call to Get-Counter returns an error message as shown below, with the second call working properly with a manually created list. How do I solve this?

 Get-Counter : Internal performance counter API call failed. Error: c0000bc4.

Line: 26 characters: 9

    $SQLQueryGetCounters  = "
    DECLARE @PerfmonCounterList VARCHAR(MAX) 
    SELECT 
        TOP 2
            PerfmonCounter
    FROM
        Perfmon.PerfmonCounterList"

    $SQLQueryGetCounters  = "
    DECLARE @PerfmonCounterList VARCHAR(MAX) 
    SELECT top 2
        ' `"' +PerfmonCounter + '`"' ItemValue 
    FROM
        Perfmon.PerfmonCounterList " 
    $Counters =   @(Invoke-sqlcmd -ServerInstance Localhost -Database "DatabaseMonitoring" -Query $SQLQueryGetCounters )| select-object -expand ItemValue
    $List = (System.Collections.ArrayList)@() # New-Object System.Collections.Generic.List(System.Object) # (System.Collections.ArrayList)@()

    foreach ($Item in $Counters)
        {
            $List.Add($Item)
        }

    $List = $List.ToArray()

    Get-Counter -Counter $List

     $List = "DATABASE(*)DATABASE CACHE % HIT","DATABASE(*)DATABASE CACHE SIZE (MB)"

     Get-Counter -Counter $List

Root Access – What is the reason for the error "Directory cannot be created, error number: 13" on Android Linux?

I want to run diag_mdLog File from my application. Different behavior occurs in two applications. I can run it on a simple project, but on a complex project there is an unknown problem that causes the "permission denied" error.

Simple project code:(Kotlin)

...
execAndShowOut("diag_mdLog -o /sdcard/oem_logs/")
...
private fun execAndShowOut(command: String) {

        val runtime = Runtime.getRuntime()
        val suProcess = runtime.exec("su -c $command")

        errLogs = ""
        outLogs = ""

        val errorGobbler = StreamGobbler(suProcess.errorStream, "ERROR", logger = {
            log(it)
            errLogs += it + "n"
        })
        // any output?
        val outputGobbler = StreamGobbler(suProcess.inputStream, "OUTPUT", logger = {
            log(it)
            outLogs += it + "n"
        })
        // kick them off
        errorGobbler.start()
        outputGobbler.start()

        GlobalScope.launch {
            // any error???
            val exitVal = suProcess.waitFor(10, TimeUnit.SECONDS)
            log("ExitValue: $exitVal")

            suProcess.destroy()
            stopRunning()

            out("--------- ERROR----n")
            out(errLogs)
            out("nn--------- OUTPUT----n")
            out(outLogs)
        }
    }
class StreamGobbler @JvmOverloads internal constructor(
    private val inputStream: InputStream,
    private val type: String,
    private val logger: ((String) -> Unit)? = null,
    private val outputStream: OutputStream? = null
) : Thread() {

    override fun run() {
        try {
            var printWriter: PrintWriter? = null
            if (outputStream != null)
                printWriter = PrintWriter(outputStream)

            val inputStreamReader = InputStreamReader(inputStream)
            val bufferedReader = BufferedReader(inputStreamReader)
            var line: String?
            while (bufferedReader.readLine().also { line = it } != null) {
                printWriter?.println(line)
                logger?.invoke("$type>$line")
            }
            printWriter?.flush()

        } catch (ioe: IOException) {
            ioe.printStackTrace()
        }
    }
}

Result: Some qmdl files in / sdcard / oem_logs /

Complex project-relevant code:(Java)

...
 // Get a handler that can be used to post to the main thread
        Handler mainHandler = new Handler(app.getApplicationContext().getMainLooper());
        // This is your code
        mainHandler.post(() -> {
            try {
                exec("rm -r /sdcard/oem_logs/");
                exec("ls -l /vendor/bin/diag_mdlog");
                exec("su -c /vendor/bin/diag_mdlog -o /sdcard/oem_logs/");
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
...
private Process exec(String command) throws IOException, InterruptedException {

        Runtime runtime = Runtime.getRuntime();
        Process suProcess = runtime.exec(command);

        new StreamGobbler(suProcess.getErrorStream(), "ERROR").start();
        new StreamGobbler(suProcess.getInputStream(), "OUTPUT").start();

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            suProcess.waitFor(10, TimeUnit.SECONDS);
        } else {
            suProcess.wait(10 * 1000);
        }
        suProcess.destroy();
        return suProcess;
    }
public class StreamGobbler extends Thread {

    private InputStream is;
    private String type;
    private OutputStream os;

    public StreamGobbler(InputStream is, String type) {
        this(is, type, null);
    }

    StreamGobbler(InputStream is, String type, OutputStream redirect) {
        this.is = is;
        this.type = type;
        this.os = redirect;
    }

    public void run() {
        try {
            PrintWriter pw = null;
            if (os != null)
                pw = new PrintWriter(os);

            InputStreamReader isr = new InputStreamReader(is);
            BufferedReader br = new BufferedReader(isr);
            String line;
            while ((line = br.readLine()) != null) {
                if (pw != null)
                    pw.println(line);
                SigmaLog.d(type + ">" + line);
            }
            if (pw != null)
                pw.flush();
        } catch (IOException ioe) {
            ioe.printStackTrace();
        }
    }
}

Result:

ERROR>rm: /sdcard/oem_logs/: No such file or directory
OUTPUT>-rwxr-xr-x 1 root shell 46024 2009-01-01 05:30 /vendor/bin/diag_mdlog
OUTPUT>diag_mdlog: command = o
OUTPUT>diag:main: kernel supported: NUM_PERIPHERALS = 6, DIAG_CON_ALL: 127
OUTPUT>diag: No Session is active for the given mask
OUTPUT>diag_mdlog: Error creating: /sdcard/oem_logs/, errno: 13
OUTPUT>diag_mdlog: Attempting to use default directory
OUTPUT>diag:In main failed to create xml file 
OUTPUT>diag_mdlog: offline_log is 
OUTPUT>
OUTPUT>diag_mdlog: Continuing with default directory path /sdcard/diag_logs/20200117_134112
OUTPUT>diag_mdlog: Unable to create directory, errno: 13 Exiting....

I know there can be many reasons for this error and I cannot share all of the code here. So I want to know the reason for this error.

Please suggest it.

Gmail – How can I stop receiving emails titled "Remove Risky Access" using Google Scripts I created?

I created a Google Apps script that I use a lot. I regularly receive emails from Google: "Some apps or services that you have authorized to access your Google account have not been checked by Google …"

How do I:

A) add my script to a trusted list or

B) Convince Google that I have identified the risk (to avoid repeated emails)?

I have the same problem with emails related to work computers that I keep using. Can I add IP addresses to a trusted list?

Thank you very much

gr.group theory – Is $ mathbb {Q} $ embedded in a finally created solvable group?

Yes, that's because of Ph. Hall. It is embedded in a z. 3-stage detachable group.

To let $ s: mathbf {Z} to mathbf {Q} ^ * $ be a card (thought as a bi-infinite word) so that any finite sequence of non-zero rational numbers occurs as a subword. Define two automorphisms $ u, v $ of $ mathbf {Q} ^ {( mathbf {Z})} $ (Vector space over $ mathbf {Q} $ with base $ (e_n) _ {n in mathbf {Z}} $) as follows: $ u $ is the shift $ e_n mapsto e_ {n + 1} $, and $ v $ is the diagonal map $ e_n mapsto s (n) e_n $, Since $ u ^ nvu ^ {- n} $ is also diagonal for everyone $ n $, the couple $ langle u, v rangle $ creates a quotient from the wreath product $ mathbf {Z} wr mathbf {Z} $ (actually a copy of it). Beyond that $ mathbf {Z} ( langle u, v rangle $)-Module, $ mathbf {Q} ^ {( mathbf {Z})} $ is easy to see, easy to be. Therefore $ langle u, v rangle ltimes mathbf {Q} ^ {( mathbf {Z})} $ is generated from 3 elements, contains a copy of $ mathbf {Q} $ and can be solved in 3 stages.

Neumann-Neumann has also proven that everyone can be counted $ k $-step solvable group embeds itself in a finally created one $ (k + 2) $solvable group.

Microsoft – How are different versions of a software manual created from the same MS Word document?

I am trying to create different versions of a software manual from a single source in MS Word format. Is this algorithmically possible or does this have to be done manually for each version?

In particular, our software has three different types of licenses and each corresponds to a specific subset of the integrated functionality. Details of the omitted functionality should not be included in the manual.

Compatibility – Combobox ListFillRange does not work in Excel 365 in a table created in Excel 2007

I am trying to create a spreadsheet for 365 created in Excel 2007, but encountered a stumbling point when filling in a combo box. I dynamically set a named range "SearchBox_Name" as:

=Database!$M$2:INDEX(Nutrition(SearchBox_Name),MAX(Nutrition(SearchBox2)),1)

What seems to be working correctly, but when I try to assign the ListFillRange in the "SearchBox_Name" properties, does the field go blank as if the range mentioned does not exist?

Private Sub ComboBox2_Change()
ComboBox2.ListFillRange = "SearchBox_Name"
Me.ComboBox2.DropDown
End Sub

Doesn't seem to work either?