I installed  based on Drupal 7.x.  As soon as I insert any menu item into create categories, I get this warning:     Strict warning: Only variables should be passed by reference in sizzle_preprocess_views_view__content__menus__all_menus() (line 69 of /web/htdocs/xxxxxxxxxxx/home/profiles/restaurant/themes/sizzle/includes/menu.inc).   I checked the line and I got this code:  // Render the category and add it to template. $variables['term'] = drupal_render(taxonomy_term_view($term, $view_mode));   I don't know how to improve this, in order to solve the issue. Writing to the group that made Open Restaurant I didn't got any answer. Hence my post here.
I get the following error:     Strict warning: Only variables should be passed by reference in include() (line 18 of /home/sites/dev/theparce/sites/all/themes/parce/block--block--3.tpl.php).   This is the block code which is causing that error.  if ($user_gallery) {   print render(node_show($user_gallery));  // Line 18   print drupal_render ($user_gallery_edit);  } else {   print drupal_render($user_gallery_new); }   Why do I get that error, even if I get all printed as expected?
What are the pieces of evidence that universe is expanding? Is there something I can add to the preamble of my document such that multiple letters without spacing in a Math environment (such as $NP$) do not have extra spacing between them and are not considered multiple distinct variables? Right now, I have to use $\mathit{NP}$ to prevent any extra spacing, but I feel that it is more natural to add a space between the letters if they are a different variable ($N P$). For example, if I want the multi-letter variable NP, I want to be able to say $NP$ which would automatically be replaced by $\mathit{NP}$. If I want N and P to have the proper inter-variable spacing, I want to do that only when they are separated by a space, like so: $N P$. Is there a way to achieve this? Would it break something that I'm unaware of? Edit: Here's a screenshot that shows what I mean:  So basically, is it possible for line 1 to automatically give me line 3 and for line 2 to give me line 2? What is a primary decomposition of the ideal $I = \langle xy, x - yz \rangle$? Given the ring $k[x,y,z]$, where $k$ is a field, and an ideal $I=(xy,x-yz)$, find a primary decomposition of $I$.    I tried to draw the graph of the variety of $I$ and get a decomposition of $(x,y)\cap(x,z)$ (the two prime ideals corresponds to the irreducible components of the variety), but apparently these two ideals are not the primary decomposition of $I$, and I don't know how to fix this.  I would really appreciate it if someone can help me. thx Evaluating the sum after reordering an infinite series $1-\frac {1} {2}+\frac {1} {3}-\frac {1} {4}+\ldots $ Selected references without hyperlink When using the hyperref package, is it possible to tell LaTeX not to create a link for some references?  In my case the page number is displayed in the footer in  \fancyhf[FC]{\thepage\ of \pageref{pg:end}}   which is what I want. Unfortunately every single page in the document then has a link to the final page, which is a bit silly.  Any ideas on how to fix that? Can command substitution be nested in variable substitution? Definition of the Pauli group and the Clifford group There seem to be two definitions of the Pauli group. In Nielsen and Chuang, the Pauli group on 1 qubit is defined as \begin{align*} \mathcal{P}_1 = \{\pm I, \pm iI, \pm X, \pm iX, \pm Y, \pm iY, \pm Z, \pm iZ\} = \langle X, Y, Z\rangle. \end{align*} But in other references, such as ,  \begin{align*} \mathcal{P}_1 = \{\pm I, \pm X, \pm iY, \pm Z\} = \langle X, Z\rangle. \end{align*} The second definition makes more sense in the stabilizer formalism, since we usually only consider the action of Pauli strings of $X$ and $Z$. What bothers me is that by the second definition, the phase gate $S$, which is an element of the Clifford group, results in \begin{align*} SXS^\dagger = Y \notin \mathcal{P}_1. \end{align*} I know that the prefactor $\pm i$ somehow doesn't matter, but can someone justify it from a more mathematical/group-theoretical perspective? Is there a word for one side in a pair? Is there a word for one side in a pair? In a conversation it would the the interlocutor, but I'm looking for a generic term. Update a field without changing the node I need to change a field in a node without altering the 'changed' timestamp. I know this was possible in Drupal 7 using field_attach_update(), but that has been removed since then.  I could use an update query and change the field directly in the database, but I was wondering if there is a better way (or a replacement for field_attach_update()). Make a computer act as a virtual USB device for other equipments The separation between the two plates of a capacitor is increased I had the following question on a quiz recently:     A capacitor consisting of two parallel plates, separated by a distance $d$, is connected to a battery of EMF ε. What happens if the separation is doubled while the battery remains connected?    The correct answer was "The electric charge on the plates is halved." However, we were previously given a question in which a circuit consists of a capacitor of 6 μF and a resistor of 300,000 Ω connected to a battery, and the separation between the plates of the capacitor is quadrupled. However, in this circumstance, the charge on the capacitor immediately after the plates are separated remains the same, and the potential difference across the capacitor increases.   I am confused as to why these questions have different answers to them, despite having an extremely similar setup. My best guess is that the circuit in the second question also has a resistor, but I am not sure, and help would be greatly appreciated. On the uniqueness of the Riemann-Christoffel tensor According to Section 6.2, Gravitation and Cosmology by Weinberg, the Riemann-Christoffel tensor is the only tensor that can be constructed out of the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives. The reasoning behind the same goes like this:   In a class of frames where $\Gamma^{\lambda}_{\mu\nu} =0$, the transformation rule for $\dfrac{\partial \Gamma^{\lambda}_{\mu\nu}}{\partial x^{\kappa}}$ involves an inhomogeneous term which is symmetric in $\mu$, $\nu$, and $\kappa$. Thus, if one is to construct a tensor which is a linear combination of the first order derivatives of the Christoffel symbol then the only way to do so is by eliminating the inhomogeneous part of the transformation and this could be done only by making the combination explicitly antisymmetric in $\mu$ and $\kappa$. Since in these frames, $R^{\lambda}_{\mu\nu\rho}$ $ = \dfrac{\partial \Gamma^{\lambda}_{\mu\nu}}{\partial x^{\rho}} -  \dfrac{\partial \Gamma^{\lambda}_{\mu\rho}}{\partial x^{\kappa}} $, $R^{\lambda}_{\mu\nu\rho}$ is the only tensor that can be formulated using the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives.  I think the presented argument can only suffice to prove that $R^{\lambda}_{\mu\nu\rho}$ is the only tensor that can be formulated from the first derivatives of the Christoffel symbol and is linear in them. I can't figure out why this suffices to assert that $R^{\lambda}_{\mu\nu\rho}$  is the only tensor that can be constructed out of the second (or lower) order derivatives of the metric tensor and is linear in the second order derivatives.  Edit: As the metric is covariantly constant, $\dfrac{\partial g_{{\mu}{\nu}}}{\partial x^{\rho}} = \Gamma^{\kappa}_{{\mu}{\rho}}g_{{\kappa}{\nu}}+\Gamma^{\kappa}_{{\nu}{\rho}}g_{{\kappa}{\mu}}$.  Therefore,   $\dfrac{\partial^2 g_{{\mu}{\nu}}}{\partial x^{\xi}\partial x^{\rho}} = \bigg(\dfrac{\partial \Gamma^{\sigma}_{{\mu}{\rho}}}{\partial x^{\xi}} + \Gamma^{\sigma_1}_{{\mu}{\rho}}\Gamma^{\sigma}_{{\sigma_1}{\xi}}\bigg)g_{{\sigma}{\nu}}+\bigg(\dfrac{\partial \Gamma^{\sigma}_{{\nu}{\rho}}}{\partial x^{\xi}} + \Gamma^{\sigma_1}_{{\nu}{\rho}}\Gamma^{\sigma}_{{\sigma_1}{\xi}}\bigg)g_{{\sigma}{\mu}} + \bigg(\Gamma^{\sigma}_{{\mu}{\rho}}\Gamma^{\sigma_1}_{{\nu}{\xi}}+\Gamma^{\sigma}_{{\nu}{\rho}}\Gamma^{\sigma_1}_{{\mu}{\xi}}\bigg)g_{{\sigma}{\sigma_1}} $  Now, if I want to show that the Riemann-Christoffel tensor is the only (non-trivial and independent) tensor that can be formulated out of the linear combinations of the second order derivatives of the metric tensor then I can equivalently show that the above expansion can be expressed linearly in terms of the Riemann-Christoffel tensor. But I am stuck over how to do it. Also, I am a little bit unclear as to what a linear combination means in this context. The coefficient of the second order term can be only a scalar constant or can it be the metric or can it be the metric that is getting summed over any of the indices as well? SQL Server Agent Jobs and Availability Groups I'm looking for best practice in dealing with scheduled SQL Server Agent jobs in SQL Server 2012 availability groups. Maybe I missed something, however at the current state I feel that SQL Server Agent is not really integrated with this great SQL2012 feature.  How can I make a scheduled SQL agent job aware of a node switch?  For example I have a job running on the primary node which loads data each hour. Now if the primary goes down, how can I activate the job on the secondary which now becomes primary?   If I schedule the job always on the secondary it fails because then the secondary is read-only. unicode-math broken From the pmset man page:     POWER SOURCE ARGUMENTS      -g with a 'batt' or 'ps' argument will show the state of all attached power sources.      […] Certain Apple battery calibration tools may temporarily disable   battery charging, even though your Apple portable is plugged into AC   power.      Such tools will never surprise you with this behavior; you will know   it's happening. This state will be reflected in an additional line of   output to 'batt' or 'ps' readings, including the pid of the app   inducing this behavior.       'ChargeInhibit':    1432    So, does any piece of publicly available software exist to force the battery not to charge? QT MySql connectivity using Windows XP, Qt Creator 4.5.2(windows 32 bit) How to tell how many CPUs (cores) you have on Windows 7 With Bash's source it is possible to execute a script without an execution bit set. This is documented and expected behaviour, but isn't this against the use of an execution bit?  I know, that source doesn't create a subshell. Make an object invisible to a specific camera? (Cycles) Information on month old flights Where can I get flight info for a flight a month ago for an insurance claim? Flight stat sites will only show a weeks worth of data.