MySQL replication of single DB to same server
MySQL replication of single DB to same server
SF short story ID, written 40s—60s, primitive aliens who are much smarter than us I'm looking for a story that was probably written somewhere from the 1940s to the 1960s. I think I read it in an anthology, possibly in the 1970s.  A group of human explorers landed on a planet with primitive aliens, living in hunter-gatherer villages. They hoped to make a profit from trading our goods for—well, I'm not clear on what they wanted from the aliens.  The native people learned the human language before the explorers could learn theirs. Then the natives suddenly started producing technological innovations far beyond what they originally used. I remember that wooden sailing ships suddenly replaced their canoes. All the natives had to do was hear a story once from the explorers before copying the technology in the story.  Finally, the explorers realized that the natives were much, much smarter than us and that Earth faced a serious problem.  I'm fairly certain that it wasn't a Heinlein story, but I remember that it had some qualities similar to his work. How do I use the conditional (ternary) operator? round in PHP shows scientific notation instead of full number I'm trying to do an echo of a variable containing 1400000.  so there is written: echo round(1400000); this gives 1,4E+6 instead of the full number. Anybody an idea on how to display it fully? Does DTIME(O(n)) = REGULAR? (I don't think that this is a good fit on cstheory, since I figure that this question already has a known answer.  However, if you think that this would be a better fit there, please feel free to migrate it)  It can easily be shown that REGULAR (the class of regular languages) is contained in DTIME(O(n)), because for any regular language L we can decide membership in that language in O(n) time by converting a DFA that decides L into a TM that decides L in a single pass over the input.  However, is it also true that DTIME(O(n)) is contained in REGULAR; that is, that any language that can be decided in O(n) time by a single-tape TM is necessarily regular?  I have no idea how to approach this problem, and every language I can think of in DTIME(O(n)) seems to be regular.  Intuitively, this would make sense, since if you're only allowed to make finitely many passes over the input, you could only remember finitely many things about it, which it seems like you could simulate with a sufficiently large DFA.  However, the fact that you can write to the input tape seems like it might complicate things.  And no, this isn't a homework problem.  I'm actually teaching a course that covers computability and complexity theory and thought it would be interesting to present the answer to this question in lecture. :-)  Thanks! Should we use 'Title Case' or 'Sentence case' for headlines and buttons? I am wondering if we should use  or  for buttons and headings in websites and web/mobile apps? Title Case: Manage my Account Delete my Account  Sentence case: Manage my account Delete my account  In  I found the recommendation 'choose your style and be consistent'. This is it? Aren't there any other (additional) recommendations or sources. Like for specific use cases or apps where the one style would be preferred over the other? Edit: The question refers primarily to English, but differences in other languages are also good to know. Salesforce Toolkit for .Net with silverlight 5 I am creating a application with Silverlight 5 in which I have to communicate with Salesforce APIs.  Currently I used Salesforce toolkit for .net (version 1.2.1) by I am gettting error after using authentication method as -     The base class or interface 'System.Object' in assembly   'System.Runtime, Version=4.0.0.0, Culture=neutral,   PublicKeyToken=b03f5f7f11d50a3a' referenced by type   'Salesforce.Common.AuthenticationClient' could not be resolved.   System.runtime dll is referenced my application.   And Latest version of toolkit is even not installing in application. There is some compatibility issue with silverlight 5.  As per github and blogs Salesforce Toolkit is compatible with Silverlight 5. I installed it using nuget package manager.  Any idea to fix this ?  Thanks, Does there exist a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$ such that $\mathbf{A}^{2}=-\mathbf{I}$? Is it possible for a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$,  $$\mathbf{A}^2=-\mathbf{I}$$  I know that It is possible for $2\times2$ matrix, but is it possible for $3\times3$ matrix ? Command prompt as SYSTEM user (Windows 7) How can I get a command prompt as the SYSTEM user on Windows&nbsp;7?  Context: I'm testing a computer startup script, and I need to figure out the behavior of a command when run as SYSTEM rather than my user account.  I've seen ways to do this with at and psexec, but those methods only appear to work on Windows&nbsp;XP or Windows&nbsp;Vista.  I'm using Windows&nbsp;7 Pro SP1. I want to install OpenOffice. What can I do to install it on my computer? How can something finite become infinite? How can the universe become infinite in spatial extent if it started as a singularity, wouldn't it take infinite time to expand into an infinite universe? "method driver /usr/lib/apt/methods/https could not be found" update error sudo apt-get update E: The method driver /usr/lib/apt/methods/https could not be found. michael@Ubuntu:~$ sudo apt-get clean michael@Ubuntu:~$ cd /var/lib/apt michael@Ubuntu:/var/lib/apt$ sudo mv lists lists.old michael@Ubuntu:/var/lib/apt$ sudo mkdir -p lists/partial michael@Ubuntu:/var/lib/apt$ sudo apt-get clean michael@Ubuntu:/var/lib/apt$ sudo apt-get update E: The method driver /usr/lib/apt/methods/https could not be found. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? michael@Ubuntu:/var/lib/apt$ sudo apt-get update E: The method driver /usr/lib/apt/methods/https could not be found.   Why am I getting these errors when doing an apt-get update? There were so many discussions about an Ubuntu with RR. They were so many pros and contras. At the end ubuntu wont be changed, the 6 month cycle system wont be changed. Thats fine!   But because there are so many people who would like to use an ubuntu with RR Im asking myself why isnt there an Ubuntu Derivate with RR. I couldnt found one, there are a loooot of Ubuntu Derivates but no RR. Is it just impossible? I mean Ubuntu = 6 months cycle, so the derivate have to be a 6 month cycle too? Is there no other option? Or are there already some smart guys trying to solve this problem? Thank you! D&D 5e and "Theatre of the Mind" in combat Our target play style for combat encounters would be to use battle boards roughly half the time (when there is enough of interest in play that the tactics are fun to play out), and to skip that with faster "cinematic" combat otherwise.  We have not been 100% successful. The problem is the numbers-driven descriptions in the rules. Needing to be "adjacent" (within 5 feet) for abilities such as Protection style fighting, ranged weapon ranges, spell effects and movement speeds are all much easier to resolve on a grid. Running those rules without a board rapidly devolves into sketches with numbers written on them and/or "mother, may I?" style of play because the DM needs to rule who is next to who, and which monsters are in the spell radius. These rulings also quickly get out of sync with player expectations when there is no map and we want to run combats quickly.  It doesn't help that the numbers involved come in pretty much all multiples of the base 5 feet. There is no obvious close/short/medium for effects and ranges. If there were such then I think it would be much easier for the DM to categorise and hand-wave things.  I was hoping that both board-based and no-board style of play would feel equally viable. But the focus on numbers seems to push toward board playing, at least for my group.  We would still like to pay heed to the differences in movement, range, area-of-effect etc of the rules in play. At least in the general sense of creature X is faster than creature Y, or weapon/spell A has better range than weapon/spell B.  Going beyond "just don't sweat the details", how can a group like mine play with the D&amp;D 5e rules as written, without a map, but without leaning on the DM to resolve all our questions of "So, am I next to the Paladin?", or "Is it in range?"      Clarifying: "just don't sweat the details" is a welcome approach to solving the problem, but please give some examples of how this works in practice; i.e. which details can be removed and how? Footnotes layout in multicols environment I am using the package multicol to typeset a one-column (spanning the entire text width) heading and a two-column main text block. In order to do so, I begin the multicols environment along with the start of the text block. The one-column heading spans a small fraction of the text height in the front page and I need to set a footnote there, before starting the two-column environment. I'd like to have that footnote typeset under the first column in the two-column running text. How could I possibly do this?   Moreover, I'd like to have the footnotes typeset in a single column under one of the text columns -- I don't even mind having them as two-column footnotes, but what I do not want is a footnotes layout spanning the entire text width. I have tried with the command \twocolumnfootnotes from the class memoir, with the packages ledmac, dblfnote, and even with ftnright (the latter complains about its being used in a single-column document, due to that one-column heading). None has proved useful in this setting. As a less than MWE, just to convey a more concrete depiction of my scenario, let us consider:  \documentclass{memoir}  \usepackage{multicol}  \begin{document}  A single-column heading\footnote{Here I have my footnote.}  \begin{multicols}{2} Here I am in the two-column environment, and I want my footnotes being set in accordance with the document's ``columnwidth''.\footnote{A footnote in the two-column environment.} \end{multicols}   \end{document} I am planning to visit the UK on a USA travel document but there’s nowhere I am able to find information about visas: I’m a Zimbabwean but using a USA refugee travel document do I need to apply for a UK visa before I travel or I can they just give them on arrival. Limit $\lim_{n\to\infty}\left(1-\frac{1}{3}\right)^2\left(1-\frac{1}{6}\right)^2\cdots\left(1-\frac{1}{\frac{n(n+1)}{2}}\right)^2$ How can I find the following limit :$$\lim_{n\to\infty}\left(1-\frac{1}{3}\right)^2\left(1-\frac{1}{6}\right)^2\left(1-\frac{1}{10}\right)^2\cdots\left(1-\frac{1}{\frac{n(n+1)}{2}}\right)^2$$There are four options $(a)\frac1{3}(b)\frac1{9}(c)\frac1{81}(d)0$ Thanks! Entity Query field condition for Webform submissions I'm trying to query webform submissions based on a field value. The field is called "ticket_for". Somethings I tried and do not work:      -&gt;condition('ticket_for',$adnummer)     -&gt;condition('webform_submission_data:ticket_for',$adnummer,'CONTAINS') ...   What kind of condition should I be using in a query like this?  $query = \Drupal::entityQuery('webform_submission') -&gt;condition('webform_id', 'ticket') -&gt;condition('entity_id', $eventID) -&gt;condition('webform_submission_data:ticket_for',$adnummer,'CONTAINS'); Number of monomials of certain degree How do you implement Coroutines in C++ How do I remove directories that begin with a dot after my server was infected? My server had been infected and the attacker spread a bunch of .5randomletters folders around my file system, with malicious code inside of them. I want to search for all the folders that begin with a dot, review them and then remove them.  How can I do that?