I'm having significant server issues at the moment, and am worried the server will go at any moment. I need to backup my SQL databases immediately.   Could I please get a command just to dump all my databases (different domains) into their own sql backup files?  I'd like to work with this cron syntax, since it already works fine for backing up individual SQL files.   mysqldump -uadmin2 -p$(cat /etc/psa/psa.my/.psa.myshadow) MyActualDB &gt; /var/www2/backup/mybackup1.sql   The above syntax is just for one SQL file. But I need to add:  all-databases   syntax in there somewhere. Also, for each backup, to backup to their own SQL file (preferably using their already established database name).
I want to copy a live production database into my local development database.  Is there a way to do this without locking the production database?  I'm currently using:  mysqldump -u root --password=xxx -h xxx my_db1 | mysql -u root --password=xxx -h localhost my_db1   But it's locking each table as it runs.
What are the rules for calling the base class constructor? What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - giving you a compile error if that's missing). How do I restore the Unity 7 Ctrl-Alt-Numpad combination behaviour on Gnome 3? By default, instead of doing something useful, the Ctrl-Alt-Numpad key combination in Gnome 3 shoves a window in the specified direction across the entire workspace. These shortcuts do not show in the Gnome 3 keyboard settings panel; they're just there, and they're in the way.  How can I get this behavior back in Ubuntu 17.10? How to make use of Devel debugging functions on large or complex objects I am having trouble making real use of Devel's debugging functions kint() and dpm() in my modules and twig templates. They work fine for primitive variables, flat arrays and such, but if I want to inspect into some object like an EntityRerefenceFieldItemList they either cause the site to crash (white page) or generate so much data such that the scripts for expanding the list no longer work.  How do I circumvent these problems? Does the new guidance on duplicate questions suggest closing a question as duplicate, if the original answers the OP's question? In other words, should we now look at the content of the answers when we are evaluating questions for possible duplication?  Is it sufficient to say "Your answer can be found in this question over here, therefore your question is a duplicate?"  The new guidance is here:    Among other things, it describes the new close banner:     This question already has an answer here:   Link to the Duplicate Question   ... which seems to suggest that, if some other question in the system answers the OP's question, then the OP's question can be closed as a duplicate on that basis (even if the question itself is not necessarily duplicated).  Example Here:    Note the comments below the question, where I dispute the assertion made there that it is a duplicate question.  The original question doesn't mention unit testing. How do we see? Where do the photons disappear? I know that the light is reflected from a object to my eyes, but I don't understand exactly how. The photons appear from the light source and disappear in my eye! Can someone explain the phenomenon of where the photons go and do to allow us to see? Time Manager (QGIS) date format I've been through associated answers but cannot quite seem to find something which works!  I'm having trouble getting TimeManager to recognise a simple data field (this is in QGIS2 - but I've had this error in earlier versions). I have these fields formatted in what appears to be one of the acceptable formats:    ... here is a screenshot of the field properties:    The format appears to be recognised in QGIS as I've worked out days difference between two dates (the "Time on Market" field shown in the image).  However ... I always end up with:   The Twitter.shp file works fine as a test, so I don't think this is an issue with the install / phyton conflict.  Any thoughts welcome! After updating MiKTeX graphics package on 10/5/19 to version 1.3b (packaged on 10/4/2019 8:11:27 PM), I am unable to compile LaTex files that contain \includegraphics{}.  My system: Windows 10  with MiKTeX 2.9.7200  A minimum working example:  \documentclass{article} \usepackage{graphics}  \begin{document}  \begin{figure}    \includegraphics{MC_Antenna_Gain} \end{figure}  \end{document}   The error report   This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7200) entering extended mode (C:/Users/nicrog/Dropbox/T_P_2/Scholar/Grants/Written/EWU_20/Test.tex LaTeX2e &lt;2018-12-01&gt; ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\article.cls" Document Class: article 2019/08/27 v1.4j Standard LaTeX document class ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/base\size10.clo")) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\graphics.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\trig.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics-cfg\graphics.cfg") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics-def\pdftex.def")) No file Test.aux. ("C:\Program Files (x86)\MiKTeX 2.9\tex/context/base/mkii\supp-pdf.mkii" [Loading MPS to PDF converter (version 2006.09.02).] ) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\epstopdf-base.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\infwarerr.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\grfext.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\kvdefinekeys.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ltxcmds.sty"))) ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/oberdiek\kvoptions.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/latex/graphics\keyval.sty") ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\kvsetkeys.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\etexcmds.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ifluatex.sty")))) ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\pdftexcmds.sty" ("C:\Program Files (x86)\MiKTeX 2.9\tex/generic/oberdiek\ifpdf.sty"))) ! Undefined control sequence. \Ginclude@graphics ...\Ginput@path \set@curr@file                                                    {#1}\edef \uq@curr@file {\... l.8    \includegraphics{MC_Antenna_Gain}  ?    I will report this potential bug to  as well. counting number of specific string in each row Align cout format as table's columns I'm pretty sure this is a simple question in regards to formatting but here's what I want to accomplish:  I want to output data onto the screen using cout.  I want to output this in the form of a table format.  What I mean by this is the columns and rows should be properly aligned.  Example:  Test                 1 Test2                2 Iamlongverylongblah  2 Etc                  1   I am only concerned with the individual line so my line to output now (not working) is  cout &lt;&lt; var1 &lt;&lt; "\t\t" &lt;&lt; var2 &lt;&lt; endl;  Which gives me something like:  Test                 1 Test2                  2 Iamlongverylongblah         2 Etc                  1 When the automorphism group is trivial...... If $G$ is a trivial group , obviously $Aut(G)$  is  trivial . Does the converse  hold $?$ .  When  we  are  given  that a  group $G$  has  trivial  automorphism  group , can we  conclude  that the group  will  be  trivial $?$ .  I  guess  not . For  one  thing , we know  that  $$G/Z(G)\cong Inn(G)$$. So , $Aut(G)$ being  trivial  would  imply  that $$G\cong Z(G)$$  i.e.  $G$  is  commutative . But I  see  nothing about $G'$s being trivial .   The problem  is  that  while I cannot  prove  it , I  could  not  find  a  counter example  either , from  among  the  groups  I  am  familiar  with .   What  is  the non-trivial  commutative  group  that  has  trivial  automorphism  group  $?$ For me, it is pretty clear that $a + \overline{a}*b = a + b$, because the first $a$ in the or will make sure that if the second term must be 'evaluated', $a$ will always be false, and therefore won't matter in the and - probably because I'm a programmer and it is very common to see this unnecessary cluttering in long if-else structures.  I can easily prove it with the truth table as well, just make both expressions', and turns out they are identical.  But I was looking for a 'algebraic' way to prove it. That is, something using the basic operations properties like the fact that they are transitive, commutative, associative, etc. For example, if I was to prove this other simple identity $a + a*b = a$ I would simply do something like:  $a + a*b = a*(1 + b) = a*1 = a$.  Is there a way to also prove the former using this algebraic operations, without resorting to the truth table? Can I use one of my attacks to cast a cantrip? In the D&amp;D campaign I am currently participating in, I am playing as a level 5 high elf champion (I actually just reached level 5 at the end of the last session).  As a High Elf, I got a free cantrip at first level, and chose the firebolt cantrip.  Here's what I'm wondering now: for the purposes of the extra attack feature, does firebolt (and similar cantrips) count as an attack? Calculate the uncertainty in velocity of electron I got this question in one of my periodic test in coaching, I (seemingly) solved the question but later recognised what mess I did.  So, the question is :      Calculate the uncertainty in velocity of an electron. If the uncertainty in its position is ${10^ {-15}} \; \mathrm m$.   By simple calculations one can see that the answer would be ${5.79\times{10^{10}}} \; \mathrm{m/s}$. However, as one can see, the uncertainty in velocity is greater than the velocity of light then how is that possible or there is some other way to handle such problems.  P.S. I know the concept of dynamic mass but I am not very familiar with it. (I think that would work here, but don't know how?) Why is $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X > k)$ true? I'm working through a problem regarding expected values in Markov chains, and at some point it says:     Recall from probability that if $X$ is a positive integer valued random variable, then $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X &gt; k)$.   I know that by definition $\mathbb{E}[X] = \sum_a a\mathbb{P}(X = a)$, but I can't see how the above equality follows from this, nor am I sure if this is how to approach the problem. Biber 2.11: Data file ... cannot be read in encoding UTF-8 ... ill-formed UTF-8 octet sequence ... at ... Slurper.pm line 63 I have just changed computers, and running Biber 2.11 now produces this error:  Utils.pm:209&gt; ERROR - Data file ... cannot be read in encoding 'UTF-8':  Can't decode ill-formed UTF-8 octet sequence &lt;96&gt; at C:\ ... Slurper.pm line 63   My .bib file is huge, having accumulated over years.  Thus, I suspect that there's something malformed in it.  Is there any rapid way to trouble-shoot it?  The new machine runs Win 10, Biber 2.11, XeLaTeX 2018.10.31, LaTeX2e 2018-04-01 and TeXLive 2018.  The old machine ran Win 7 and slightly earlier versions of all of the above.  A MWE of the driver .tex file:  \documentclass{article} % also with beamer  \usepackage[utf8]{inputenc} % problem arises whether or not include this \usepackage[backend=biber,bibencoding=utf8]{biblatex} %  problem arises whether or not include this \addbibresource{bib-mwe.bib}  \begin{document}  cite reference \cite{mal-rwws}  \printbibliography  \end{document}    Thanks! Take the following C# class:  c1 {  event EventHandler someEvent; }   If there are a lot of subscriptions to c1's someEvent event and I want to clear them all, what is the best way to achieve this? Also consider that subscriptions to this event could be/are lambdas/anonymous delegates.  Currently my solution is to add a ResetSubscriptions() method to c1 that sets someEvent to null. I don't know if this has any unseen consequences. I am trying to test the impact of a sale initiative on store revenue. I have created 10 matched pairs of stores and then randomly distributed one store in each pair into a test or control group.  I then ran the sale for 21 days within the test group (keeping control constant) and measured relative lift in revenue compared to baseline.  My questions  1.) Should I be using a paired t-test based on the previous store matching  2.) Should I be measuring across each day of the test such as:          Control Test 1/1/2017    4   3 1/2/2017    3   4 1/3/2017    1   3 1/4/2017    2   3 1/5/2017    2   4 1/6/2017    1   7   Or measuring across my paired markets such as:                 Test Control Market Pair 1   10  5 Market Pair 2   8   3 Market Pair 3   5   1 Is there any way to make a custom page.html.twig template in Drupal 8?  By default, Drupal generates some suggestions, but I'm looking for something like page--node--content-type.html.twig. Duplication formula for gamma function Using the  for $\Gamma(x)$ and $\Gamma\Big(x + \frac12\Big)$, how can I prove the ? This is problem $10.7.3$ in the book , by Boros and Moll.  Any help is highly appreciated. In my program I have one array with 25 double values 0.04 When I try to sum these values in a loop I get following results:  0.0 + 0.04 = 0.04 0.04 + 0.04 = 0.08 0.08 + 0.04 = 0.12 0.12 + 0.04 = 0.16 0.16 + 0.04 = 0.2 0.2 + 0.04 = 0.24000000000000002 0.24000000000000002 + 0.04 = 0.28 0.28 + 0.04 = 0.32 0.32 + 0.04 = 0.36 0.36 + 0.04 = 0.39999999999999997 0.39999999999999997 + 0.04 = 0.43999999999999995 0.43999999999999995 + 0.04 = 0.4799999999999999 0.4799999999999999 + 0.04 = 0.5199999999999999 0.5199999999999999 + 0.04 = 0.5599999999999999 0.5599999999999999 + 0.04 = 0.6 0.6 + 0.04 = 0.64 0.64 + 0.04 = 0.68 0.68 + 0.04 = 0.7200000000000001 0.7200000000000001 + 0.04 = 0.7600000000000001 0.7600000000000001 + 0.04 = 0.8000000000000002 0.8000000000000002 + 0.04 = 0.8400000000000002 0.8400000000000002 + 0.04 = 0.8800000000000002 0.8800000000000002 + 0.04 = 0.9200000000000003 0.9200000000000003 + 0.04 = 0.9600000000000003   Why on earth could that happen?!