Computer architecture -% var% reaches 0 and has to skip a segment

So I need% var% when it reaches 0 to jump to a code segment
I have tried:

Set / a gold =% gold% -500
If% gold% LSS & # 39; 0 & # 39; is go to a

Set / a gold =% gold% -500
If% gold% == & # 39; 0 & # 39; go to a

Set / a gold =% gold% -500
If% gold% NEQ 500, go to a
I am several thousand keystrokes in and want to end my project.

node.js – var node date + 2sec

Momment node

does anyone know how to knot to create a variable with the date + 2 seconds
to check it out later

var nextCmd = dataagora

nextCmd = data + 2 seconds

if (nextCmd has already passed 2 seconds) console.log ("2 seconds after lastCamd has passed");
otherwise if (nextCmd has not passed 2 seconds) console.log ("not yet 2 seconds after the 10th of lastCmd");

is it with this package?
https://www.npmjs.com/package/moment
If so, what is the syntax I want to run up there?

magento2.3 – home / xxxxx / public_html / var / view_preprocessed / pub / static / "cannot be used with the directory" / home / xxxxx / public_html / var / view_preprocessed / pub / static / "

I switched from Magento 1.9.2.3 to Magento 2.3.3.
Before that, my products did not open in the admin area and in the frontend. There were some duplicate entries for the product ID. Therefore I removed the duplicate entries in the database tables.
Since then, the products on the frontend have started to open, but an error of 500 is displayed on the admin panel. Upon further review of the logs, I found this in the exception.log file.

(2020-01-11 09:04:06) main.CRITICAL: path
"/ home / xxxxx / public_html / var / view_preprocessed / pub / static /" cannot be
used with directory
"/ home / xxxxx / public_html / var / view_preprocessed / pub / static /"
{"exception": "(object)
(Magento Framework Exception ValidatorException (Code: 0): path
"/ home / xxxxxxxxxx / public_html / var / view_preprocessed / pub / static /"
cannot be used with directory
"/ home / xxxxxxxx / public_html / var / view_preprocessed / pub / static /" at
/home/xxxxxx/public_html/vendor/magento/framework/Filesystem/Directory/PathValidator.php:63) "}
()

I also deleted the var_preprocessed folder and ran the static delivery many times and cleared the cache, but the problem could not be resolved.

What can it be and how should I fix it?

Please help ..
Thank you in advance.

The Pearson correlation coefficient ρ (x, y) of two random variables x and y with var (x) = var (y)

Thank you for your reply to Mathematics Stack Exchange!

  • Please be sure too answer the question, Provide details and share your research!

But avoid

  • Ask for help, clarify or respond to other answers.
  • Make statements based on opinions; Cover them with references or personal experience.

Use MathJax to format equations. Mathjax reference.

For more information, see our tips for writing great answers.

ssh – Reading / var / log / secure sends traffic to an already closed SSHv2 connection

I wonder why that is.

CentOS 7 is running on my test server, and my SSH client is OpenSSH for Windows, which I use from CMD.

When I look at the packages with Wireshark, I see very well when the TCP handshake is created and when the TCP closes the connection. In between the communication runs encrypted with SSHv2.

Then I read the file / var / log / secure with tail or vim and I see SSH (not SSHv2) communication. Every time I read the file / var / log / secure, about 3 encrypted packets are sent and 3 are sent back to the IP of my client.

What's in these packages?

Access / var folder

When I try to access mine /var/www/html Folder with Firefox it works.
If I do the same with chrome, it will fail if the file is not found

It looks like there is an authorization problem.

If I try chmod 777 /var it is said that the operation is not allowed

16.04.6 LTS: Why is not the clamd socket file created in / var / run / clamav?

On the Ubuntu 18.04 server, a socket file is created when clamav-daemon starts without any problems. On an older server with the 16.04.6 LTS, the socket file is simply not created, whatever I tried. Even I'll create it for the answer here ClamAV: clamd.ctl file is not created on Ubuntu, it will disappear when Clamd launches. I have also deleted and reinstalled all Clamav packages, same behavior.

I've found out that the Clamd version is one day and an older version in Ubuntu 16.04.6 as Clamav.

16.04.6 LTS:

$ clamd --version
ClamAV 0.101.4/25612/Thu Oct 24 10:59:15 2019
$ clamscan --version
ClamAV 0.101.4/25613/Fri Oct 25 11:00:25 2019

whereas on 18.04.3 LTS it is the same:

$ clamd --version
ClamAV 0.101.4/25613/Fri Oct 25 11:00:25 2019
$ clamscan --version
ClamAV 0.101.4/25613/Fri Oct 25 11:00:25 2019

Will the build fix this problem a day later? I tried to install the clamav-daemon for Ubuntu 18.04 on 16.04, but it failed due to dependencies.

The configuration seems to be ok

$ cat /etc/clamav/clamd.conf | grep Socket
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666

However, no socket file is created for clamd.

$ ls -l /var/run/clamav/
total 4
srw-rw-rw- 1 clamav clamav 0 Okt 26 08:12 clamav-milter.ctl
-rw-r--r-- 1 clamav clamav 4 Okt 26 08:12 clamav-milter.pid

Amavisd-new therefore can not connect to the socket with clamd.
How do I get the socket for Clamd on Ubuntu 16.04.6 LTS?

Under Tomcat 9 incorrect application logging: permission denied for / var / log / myapp

I have a Java webapp running under Apache Tomcat on Ubuntu Linux. When Tomcat 9 was upgraded from Tomcat 8, the application could no longer write log files /var/log/myapp, I can not figure out why it is not allowed to log in to this location.

My first thought was that the user has changed. Tomcat 8 ran under the tomcat8:tomcat8 User. Tomcat 9 is running down tomcat:tomcat User. I've updated the directory with these permissions. Both tomcat Users and tomcat Group have write permission.

I also checked the write and execute permissions of this directory. This directory has write and execute permissions, and all parent directories have execute permissions.

/var/log/myapp/ drwxrwxr-x  tomcat tomcat
/var/log        drwxrwxr-x  root syslog 
/var            drwxr-xr-x  root root            
/               drwxr-xr-x  root root

When I run the following code under my web application

    File logdir =  new File("/var/log/myapp");
    setAttribute("debug", 
        "
user: " + System.getProperty("user.name") + "
execute: " + logdir.canExecute() + "
read: " + logdir.canRead() + "
write: " + logdir.canWrite() );

it is printed out that there is no write permission

user: tomcat
execute: true
read: true
write: false 

If I run similar code in a main method like that tomcat user

File logdir =  new File("/var/log/myapp");
    System.out.println("n user: " + System.getProperty("user.name") +
        "n execute: " + logdir.canExecute() +
        "n read: " + logdir.canRead() +
        "n write: " + logdir.canWrite()
        );

It is printed that it has a write permission

user: tomcat
execute: true
read: true
write: true

I have exhausted the debugging that I know to do. What's stopping my web app from writing to this directory under Tomcat 9? What do I have to do to correct the problem?

apt – dpkg: error: too long line or missing new line in "/ var / lib / dpkg / triggers / aspell-autobuildhash"

I'm using Ubuntu Mate 16.04 on my Pi2. I think the power was turned off during an unattended upgrade and now something is messing with my system.

I noticed for the first time that my NAS drive was not loaded at boot time. Manually execute the mount Command I got:

~$ sudo mount -a
Child process terminated abnormally.

I then tried reinstalling the cifs package and found that there was an error with dpkg:

dpkg: error: too-long line or missing newline in '/var/lib/dpkg/triggers/aspell-autobuildhash'
E: Sub-process /usr/bin/dpkg returned an error code (2)

This happens for every package I install or reinstall. I am not sure which package is causing this problem. How can I fix it? Thank you very much.