I had an Ubuntu 18.04 with mysql 5.7. I upgraded it to Ubuntu 20.04 with mysql 8.x. But this 8.x not was compatible with my Drupal 7 and I tried to downgrade. After this I tried with a 5.7 docker image and this show the database but not the tables inside. In the /var/lib/mydatabes directory I see a lot of .idb files, but nothing else. Is it possible to recover the database tables? And how? Thanks.
I have previously saved a copy of /var/lib/mysql/ddms directory ("ddms" is the schema name). Now I installed a new MySQL on a freshly installed Ubuntu 10.04.3 LTS by running apt-get install mysql-server, I believe version 5.1 was installed. After I copy the ddms directory under /var/lib/mysql, some of its tables work fine, these are the tables with an associated set of three files: a .frm file, a .MYD file and a .MYI file.  However, there are two tables with a different set of files: a .frm file and a .ibd file. These two tables didn't show up in the table list in phpMyAdmin. When I look at the error log, it says:  [ERROR] Cannot find or open table ddms/dictionary_item from the internal data dictionary of InnoDB though the .frm file for the table exists. Maybe you have deleted and recreated InnoDB data files but have forgotten to delete the corresponding .frm files of InnoDB tables, or you have moved .frm files to another database? or, the table contains indexes that this version of the engine doesn't support.   Please help with restoring these two tables. Thanks.
Can python be used to edit a Text Object? That is, can python code replace, for example, a single letter in a Text Object or insert a letter or string into a Text Object.  Note that I'm not talking about replacing a Text Object with some updated string, such as, object.text = "new string". I'm thinking more about having access to the Text cursor (not the mouse cursor) and positioning it on some letter that I'd like to replace.  In other words, I'd like to have the same capability during BGE play that I have when altering a Text Object in the edit mode. zsh scripting - How do I NOT match a pattern in filename generation? Could not open input file: composer.phar Copying and pasting text between applications without style When pasting text, some applications (Chrome, Microsoft Office, etc.) will do what they can to re-render copied text with style, and some of those applications do not appear to offer an option to paste without style.  This results in spending lots of time removing formatting (where it is even possible) and then cleaning up the mess left behind, just to get clean text.  I want to prevent text styling from attaching itself to text that I copy and paste between applications. Is there an OS-level way to do this, i.e. one that can apply to all applications? Failing that, is there a per-application way to tell Chrome, Safari, Word etc. not to copy and/or paste with style? What is the lifespan of an SSD drive? Are SSDs comparable to HDDs for reliability and is there published research on this?  Also are all SSD manufacturers at a similar 'reliability level'? can CakePHP automatically create tables from models? Why didn't Thor lose his power? In Thor: Ragnarok, Valkyrie told Thor this about Hela:  Her power comes from Asgard the same as yours  Thor's plan was to unleash Surtur who destroys Asgard, which weakens Hela allowing Surtur to kill her. But why didn't that weakened Thor as well? We saw him later in Avengers: Infinity War very powerful. In Korea, we learned that we should use the past tense when the subject is an historical event, as in "The Korean war broke out in 1950."  However, I think that when the event continues to affect the present (now), we should use the present perfect.  So I think that we can say 'The Korean war has broken out in 1950.'  Am I right? I have a method that I would like to call.  However, I'm looking for a clean, simple way to kill it or force it to return if it is taking too long to execute.  I'm using Java.  to illustrate:  logger.info("sequentially executing all batches..."); for (TestExecutor executor : builder.getExecutors()) { logger.info("executing batch..."); executor.execute(); }   I figure the TestExecutor class should implement Callable and continue in that direction.  But all i want to be able to do is stop executor.execute() if it's taking too long.  Suggestions...?  EDIT  Many of the suggestions received assume that the method being executed that takes a long time contains some kind of loop and that a variable could periodically be checked. However, this is not the case.  So something that won't necessarily be clean and that will just stop the execution whereever it is is acceptable. Does walking fast prevent eggs hatching? I have a couple of eggs that I've picked up from some Pokestops (I'm lucky enough to live above one).   I walk a lot. I get to work through a 2 mile walk / train journey every day, so I should be picking up loads of steps for the eggs I have. However, because I'm normally always running late... for everything, I have to rush everywhere, so I walk at an above average pace.   Today I've walked around 5 miles, but the game has registered 100 metres. Is this because I walk too fast, or because of something else?  It's worth pointing out that I have the app open when walking... mostly because I have to catch them all. (This made me miss a train this morning... luckily I was early :D) 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 the difference between a "link function" and a "canonical link function" for GLM What's the difference between terms 'link function' and 'canonical link function'? Also, are there any (theoretical) advantages of using one over the other?  For example, a binary response variable can be modeled using many link functions such as logit, probit, etc. But, logit here is considered the "canonical" link function. How Conditional Random Fields and Logistic Regression could be the same? If you have read  tutorial about CRF, on page 4 under the section Classification, it wants to relate CRF to Logistic Regression (or Maximum Entropy, as it is known by this name in NLP community).   The formulation of Logistic Regression is said to be  $ p(y|x) = \frac{1}{Z(X)}exp \{ \lambda_y + \sum_{j=1}^{K}\lambda_{y,j}x_{j}\} $.  On the other hand, on the Wikipedia  for logistic regression, the formulation is  $ f(t) = \frac{1}{1+e^{-t}} $  and the classifier's formulation is the explanation of this formulation which is derived from Logistic Function.  My question is, first, how Logistic Regression and Maximum Entropy Classifier are related to each other and are identical?   Second, the CRF tutorial says Logistic Regression (or Maximum Entropy Classifier) is simple CRF model, how? How to use my aliases in my crontab? The mdframed environment fails to break into several pages (slides) when used in a frame environment from the beamer class.  In the other hand, the boitecoloriee environment from the boites package can be broken into several pages.  Here is a document that demonstrates the issue. It should not be compiled directly into pdf because boitecoloriee uses pstricks.  \documentclass{beamer} \usepackage{xcolor,boites,boites_exemples,pstricks} \usepackage{mdframed} \usepackage{lipsum}  \begin{document}  \begin{frame}[allowframebreaks]{Using \texttt{boitecoloriee}}   \begin{boitecoloriee}     \lipsum[1-2]   \end{boitecoloriee} \end{frame}  \begin{frame}[allowframebreaks]{Using \texttt{mdframed}}   \begin{mdframed}     \lipsum[1-2]   \end{mdframed} \end{frame}  \end{document}   Maybe is there a way to fix mdframed to work in slides too. Any clues? jQuery If DIV Doesn't Have Class "x" Why doesn't Java have compound assignment versions of the conditional-and and conditional-or operators? (&&=, ||=) How to open a web page from my application? I want to make my WPF application open the default browser and go to a certain web page.  How do I do that? I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site.  I need to url encode the value to make sure that special characters are processed properly.  What is the best way to do this?    Here is my basic script so far:  #!/bin/bash host=${1:?'bad host'} value=$2 shift shift curl -v -d "param=${value}" http://${host}/somepath $@ I was reading the following article by Mathew Might.  I saw the following the paragraph  What doesn't matter GPA? I don't care if it's 2.0 or 4.0. I won't even look at it. The school you went to? I'll judge you the same whether you went to Nowhere State U or a top-ten school. Transcripts? Never seen one. GREs? Irrelevant. Where you work/worked? Unless it's a research lab, it's not important. I don't think these items have much predictive capacity as to whether or not someone can complete a Ph.D.  Is Mathew Might telling the truth? For me it's very hard believe that GPA, GRE scores and undergraduate school don't matter. I used to think that they play an extremely important role in grad school admission.