Using the occ Command — ownCloud 9.0

File Operations

occ has three commands for managing files in ownCloud:

files
 files:cleanup              cleanup filecache
 files:scan                 rescan filesystem
 files:transfer-ownership   All files and folders are moved to another
                            user - shares are moved as well. (Added in 9.0)

The files:scan command scans for new files and updates the file cache. You may rescan all files, per-user, a space-delimited list of users, and limit the search path. If not using --quiet, statistics will be shown at the end of the scan:

sudo -u www-data php occ files:scan --help
  Usage:
  files:scan [-p|--path="..."] [-q|--quiet] [-v|vv|vvv --verbose] [--all]
  [user_id1] ... [user_idN]

Arguments:
  user_id               will rescan all files of the given user(s)

Options:
  --path                limit rescan to the user/path given
  --all                 will rescan all files of all known users
  --quiet               suppress any output
  --verbose             files and directories being processed are shown
                        additionally during scanning

Verbosity levels of -vv or -vvv are automatically reset to -v

When using the --path option, the path must consist of following components:

"user_id/files/path"
  or
"user_id/files/mount_name"
  or
"user_id/files/mount_name/path"

where the term files is mandatory.

Example:

--path="/alice/files/Music"

Source: Using the occ Command — ownCloud 9.0 Server Administration Manual 9.0 documentation

cGh physics

cGh physics refers to the mainstream attempts in physics to unify relativity, gravitation and quantum mechanics, in particular following the ideas of Matvei Petrovich Bronstein and George Gamow. The letters are the standard symbols for the speed of light (c), the gravitational constant (G), and Planck’s constant (h).
If one considers these three universal constants as the basis for a 3-D coordinate system and envisions a cube, then this pedagogic construction provides a framework, which is referred to as the cGh cube, or physics cube, or cube of theoretical physics (CTP). This cube can used for organizing major subjects within physics as occupying each of the eight corners. The eight corners of the cGh physics cube are:
Classical mechanics (_,_,_)
Special relativity (c,_,_), Gravitation (_,G,_), Quantum mechanics (_,_,h)
General relativity (c,G,_), Quantum field theory (c,_,h), Non-relativistic quantum theory with gravity (_,G,h)
Theory of everything, or relativistic quantum gravity (c,G,h)
Other cGh subjects include Planck units, Hawking radiation and black hole thermodynamics.
While there are several other physical constants, these three are given special consideration, because they can be used to define all Planck units and thus all physical quantities. The three constants are therefore used sometimes as a framework for philosophical study and as one of pedagogical patterns.[5]

Matvei Petrovich Bronstein

Matvei Petrovich Bronstein (Russian: Матвей Петрович Бронштейн, December 2 [O.S. November 19] 1906, Vinnytsia – February 18, 1938) was a Soviet theoretical physicist, a pioneer of quantum gravity, author of works in astrophysics, semiconductors, quantum electrodynamics and cosmology, as well as of a number of books in popular science for children.
He introduced the cGh scheme for classifying physical theories. “After the relativistic quantum theory is created, the task will be to develop the next part of our scheme, that is to unify quantum theory (with its constant h), special relativity (with constant c), and the theory of gravitation (with its G) into a single theory.”
He was married to Lydia Chukovskaya, a writer, prominent human rights activist, and a friend of Andrei Sakharov.
During the Great Purge, in August 1937 Bronstein was arrested. He was convicted by a list trial (“по списку”) in February 1938 and executed the same day in a Leningrad prison. His wife was told that he was sentenced to 10 years of labor camps without the right of correspondence.
Bronstein’s books for children “Solar matter” (Солнечное вещество), “X Rays” (Лучи X), “Inventors of Radio” (Изобретатели радио) were republished after he had been rehabilitated in 1957.
The “Bronstein Prize in Loop Quantum Gravity” is offered to Post-doctoral scholars in the field, the inaugural winner of which was Eugenio Bianchi in 2013.

Path integral formulation

The path integral formulation of quantum mechanics is a description of quantum theory that generalizes the action principle of classical mechanics. It replaces the classical notion of a single, unique classical trajectory for a system with a sum, or functional integral, over an infinity of quantum-mechanically possible trajectories to compute a quantum amplitude.
This formulation has proven crucial to the subsequent development of theoretical physics, because manifest Lorentz covariance (time and space components of quantities enter equations in the same way) is easier to achieve than in the operator formalism of canonical quantization. Unlike previous methods, the path integral allows a physicist to easily change coordinates between very different canonical descriptions of the same quantum system. Another advantage is that it is in practice easier to guess the correct form of the Lagrangian of a theory, which naturally enters the path integrals (for interactions of a certain type, these are coordinate space or Feynman path integrals), than the Hamiltonian. Possible downsides of the approach include that unitarity (this is related to conservation of probability; the probabilities of all physically possible outcomes must add up to one) of the S-matrix is obscure in the formulation. The path-integral approach has been proved to be equivalent to the other formalisms of quantum mechanics and quantum field theory. Thus, by deriving either approach from the other, problems associated with one or the other approach (as exemplified by Lorentz covariance or unitarity) go away.
The path integral also relates quantum and stochastic processes, and this provided the basis for the grand synthesis of the 1970s, which unified quantum field theory with the statistical field theory of a fluctuating field near a second-order phase transition. The Schrödinger equation is a diffusion equation with an imaginary diffusion constant, and the path integral is an analytic continuation of a method for summing up all possible random walks.
The basic idea of the path integral formulation can be traced back to Norbert Wiener, who introduced the Wiener integral for solving problems in diffusion and Brownian motion. This idea was extended to the use of the Lagrangian in quantum mechanics by P. A. M. Dirac in his 1933 article. The complete method was developed in 1948 by Richard Feynman. Some preliminaries were worked out earlier in his doctoral work under the supervision of John Archibald Wheeler. The original motivation stemmed from the desire to obtain a quantum-mechanical formulation for the Wheeler–Feynman absorber theory using a Lagrangian (rather than a Hamiltonian) as a starting point.

 

https://en.wikipedia.org/wiki/Path_integral_formulation

Lambda-CDM model

The ΛCDM (Lambda cold dark matter) or Lambda-CDM model is a parametrization of the Big Bang cosmological model in which the universe contains a cosmological constant, denoted by Lambda (Greek Λ), associated with dark energy, and cold dark matter (abbreviated CDM). It is frequently referred to as the standard model of Big Bang cosmology because it is the simplest model that provides a reasonably good account of the following properties of the cosmos:

The model assumes that general relativity is the correct theory of gravity on cosmological scales. It emerged in the late 1990s as a concordance cosmology, after a period of time when disparate observed properties of the universe appeared mutually inconsistent, and there was no consensus on the makeup of the energy density of the universe.

The ΛCDM model can be extended by adding cosmological inflation, quintessence and other elements that are current areas of speculation and research in cosmology.

Some alternative models challenge the assumptions of the ΛCDM model. Examples of these are modified Newtonian dynamics, modified gravity, theories of large-scale variations in the matter density of the universe, and scale invariance of empty space.

 

https://en.wikipedia.org/wiki/Lambda-CDM_model

 

Zoneminder not creating local unix sockets: Socket /var/run/zm/zms-581927s.sock does not exist

1) Keep the default zone apache.conf without the ScriptAlias.

2) Stop both zoneminder and apache2
sudo service apache2 stop
sudo service zoneminder stop

2) Remove any stale sockets from /tmp/zm (default location):
sudo rm -vf /tmp/zm/*.*

3) sudo a2enmod cgi

4) Start zoneminder
sudo service zoneminder start

5) Start apache2
sudo service apache2 start

I found out that the order was important for step 4 and 5, otherwise it doesn’t work

Source: Bug #1159361 “zoneminder not creating local unix sockets for str…” : Bugs : zoneminder package : Ubuntu

Ubuntu Server 16.04 64-bit with Zoneminder 1.30.4 the easy way

Install Zoneminder 1.30.4

Add Repository

NOTE:You may need to run: “apt install software-properties-common” if you did the minimal net install of Ubuntu.

add-apt-repository ppa:iconnor/zoneminder

Update Sources

apt update

Install Zoneminder

apt install zoneminder

Create a new user

adduser www-data video

Enable CGI, Zoneminder and rewrite configuration in Apache.

a2enmod cgi
a2enconf zoneminder
a2enmod rewrite

Fix Permissions

chown -R www-data:www-data /usr/share/zoneminder/

Enable and start Zoneminder

systemctl enable zoneminder
service zoneminder start

Add timezone to PHP

nano /etc/php/7.0/apache2/php.ini

Search for [Date] (Ctrl + w then type Date and press Enter) and make changes as follows for your time zone. Make sure to remove the ; from the front of date.timezone

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

Ctrl+o Enter to save

CTRL+x to exit

Restart Apache

service apache2 reload

IMPORTANT FINAL STEP: Open Zoneminder in a web browser (http://server-ip/zm). Click on Options – Paths and change PATH_ZMS to /zm/cgi-bin/nph-zms

Source: https://wiki.zoneminder.com/Ubuntu_Server_16.04_64-bit_with_Zoneminder_1.30.4_the_easy_way

server – How to have two versions of PHP installed and switch easily between them?

I had the same problem when I was handling multiple projects. I referred this article But it was like every time I need to switch the versions if need but this gives the flexibility for cli and web separately.

Moving From php5.6 to php7.0

For Apache, we can use the command as:

sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart

For CLI, we can use the command as:

sudo update-alternatives --set php /usr/bin/php7.0

Moving From php7.0 to php5.6

For Apache, we can use the command as:

sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart

For CLI, we can use the command as:

sudo update-alternatives --set php /usr/bin/php5.6

Source: server – How to have two versions of PHP installed and switch easily between them? – Ask Ubuntu