I'm wrong folder and delete a list of very important python files! How can I configure the rules in foremost to recover them? and using Debian O.S  /etc/foremost.conf   CONFIGURATION FILE               The configuration file is used to control what types  of               files  foremost  searches  for.  A  sample configuration               file, foremost.conf, is included with this distribution.               For each file type, the configuration file describes the               file’s extension, whether the header and footer are case               sensitive,  the  maximum  file  size, and the header and               footer for the file. The footer field is  optional,  but               header, size, case sensitivity, and extension are not!                Any  line  that begins with a pound sign is considered a               comment and ignored. Thus, to skip a file type just  put               a pound sign at the beginning of that line                Headers and footers are decoded before use. To specify a               value in hexadecimal use \x[0-f][0-f], and for octal use               \[1-9][1-9][1-9].   Spaces  can  be  represented  by \s.               Example: "\x4F\123\I\sCCI" decodes to "OSI CCI".                To match any single character (aka a wildcard) use a  ?.               If you need to search for the ? character, you will need               to change the wildcard line *and*  every  occurrence  of               the old wildcard character in the configuration file. Do               not forget those h   but file .py python and .js javascript
Has anyone had success recovering deleted files from an ext4 partition? I've tried various utilities, but none have worked yet. I'd be grateful if someone can share a success story!
Let $A$ and $B$ be two $n \times n$ symmetric and positive definite matrices.   If $A \prec B$, then is it true that $B^{-1} \prec A^{-1}$?  Here, $A \prec B$ means that $B-A$ is positive definite. Convince grep to output all lines, not just those with matches Why are my JavaScript objects equal to Proxy {} When Ron broke his wand, why didn't he apply for Hogwarts financial aid? Cohen's d for 2x2 interaction I have a significant 2x2 interaction in a between-subjects design.  I would normally report omega-squared as my effect-size measure, but I've been asked to provide Cohen's d instead?  Can Cohen's d be computed for an interaction?  If so, how? Transforming positively skewed data with positive and negative values My data (see image below) is positively skewed and contains both positive and negative values. I'd like to transform it to achieve normality so I can apply a repeated measures ANOVA, but can't find a technique that works.  I've considered the following options:   Square-rooting: doesn't keep the sign Square-rooting then making the original negative values negative: makes my data bimodal Natural log transform: can't do this with negative values Add a constant then log transform: this arbitrarily leaves my lowest value as an outlier '' transform (Cox, 2005; also Whittaker et al. 2005): makes my data bimodal Outlier removal (2.5 SD): doesn't fix normality, but an ANOVA on this data has similar results to an ANOVA on the raw data (for better or worse). Perform the non-parametric equivalent (Friedman test) and compare the results: will do this today   My supervisor suggests I should stick with the outlier removal though the data is still visibly skewed, and 'see what the reviewers suggest' but I just wanted to check here in case there was anything I was missing.  Original data:    With outliers (2.5 SD) replaced with the value at that criterion. I later decided to just exclude the outliers, so imagine the highlight data points in each condition removed. What is the unit of the coordinate system in PSTricks? If I use the following code, there two different kinds of units. One for the coordinate system used to declare \begin{pspicture} with (0,0) to (20,10), and the centimeter used in 4.2cm.  \begin{pspicture}(0,0)(20,10) \rput[lt](0.5,9){\psframebox[linewidth=1pt,framearc=0]{\parbox[c]{4.2cm}{\raggedright Text Goes Here...}}} \end{pspicture}   Can I use a unified dimension for both PSTricks objects and \parbox? I've tried other solutions, but none of them are specific to my setup. I just started using the new Linux subsystem featured in the recent Windows 10 update. I'm using WAMP x64 v3.0.6, and have successfully cloned my website and got it up and running. At the root of the Linux subsystem, I installed Drush globally with Composer, using the directions given on the .  Typing drush status returns the following when I run it in my default directory:  Drupal version         :  7.50  Site URI               :  http://default  Database driver        :  mysql  Database hostname      :  localhost  Database port          :  Database username      :  root  Database name          :  aerosphere  PHP executable         :  /usr/bin/php  PHP configuration      :  /etc/php5/cli/php.ini  PHP OS                 :  Linux  Drush script           :  /home/bob/.composer/vendor/drush/drush/drush.php  Drush version          :  7.1.0  Drush temp directory   :  /tmp  Drush configuration    :  Drush alias files      :  Drupal root            :  /mnt/c/wamp64/www/drupal-7.50  Site path              :  sites/default   But, as mentioned in the title, drush cc all returns No Drupal site found, only 'drush' cache was cleared.[warning] I assume it has something to do with adding a path to the .bashrc, but I don't know what to add. Any tips would be greatly appreciated!  My question is different from "", they're on a Mac and using MAMP, and I'm using WAMP on Windows. I've tried the solutions offered on that post, but the issue has not been resolved.  I'm obviously having issues connecting to MySQL as I get this when I run mysql command:     The program 'mysql' can be found in the following packages: * mysql-client-core-5.5 * mariadb-client-core-5.5 * mysql-client-core-5.6 * percona-xtradb-cluster-client-5.5      Try: sudo apt-get install .   So I've added these lines to my .bashrc file:  PATH="$HOME/.composer/vendor/bin:$PATH" export PATH="/mnt/c/wamp64/mysql/mysql5.7.14/bin:$PATH"   The top line was added to get drush working. I've checked multiple times, and I have the path correctly set, but it's still not working. Using StartCoroutine() and WaitForSeconds() I am trying to perform two operations. First I want to increase the size of a GameObject and then delay for 0.1s before returning it back to its original size. However, when I try using StartCoroutine(), it keeps giving me the error :  An object reference is required to access not-static members   even though I made my Delay() function static. Can somebody please tell me what I'm doing wrong?  public static void MoveSelected(int choice) {     GameObject rock1 = GameObject.Find("Rock1");     GameObject paper1 = GameObject.Find("Paper1");     GameObject scissors1 = GameObject.Find("Scissors1");      Vector3 scl;      if (choice == 1)     {         scl = rock1.transform.localScale;         scl.x *= 1.1f;         scl.y *= 1.1f;         rock1.transform.localScale = scl;          StartCoroutine(Delay());          scl.x /= 1.1f;         scl.y /= 1.1f;         rock1.transform.localScale = scl;     }     else if (choice == 2)     {         scl = paper1.transform.localScale;         scl.x *= 1.1f;         scl.y *= 1.1f;         paper1.transform.localScale = scl;          StartCoroutine(Delay());          scl.x /= 1.1f;         scl.y /= 1.1f;         rock1.transform.localScale = scl;     }     else if (choice == 3)     {         scl = scissors1.transform.localScale;         scl.x *= 1.1f;         scl.y *= 1.1f;         scissors1.transform.localScale = scl;          StartCoroutine(Delay());          scl.x /= 1.1f;         scl.y /= 1.1f;         rock1.transform.localScale = scl;     }  }  static IEnumerator Delay() {     yield return new WaitForSeconds(0.1f); } How to concatenate items in a list to a single string? Calculating well densities in selected counties using ArcPy? It looks like we'll be adding  support to Stack Overflow. This is necessary to prevent bots, spammers, and other malicious scripted activity. We only want human beings to post or edit things here!  We'll be using a JavaScript (jQuery) CAPTCHA as a first line of defense:    The advantage of this approach is that, for most people, the CAPTCHA won't ever be visible!  However, for people with JavaScript disabled, we still need a fallback and this is where it gets tricky.  I have written a  which we can re-use.    However, I'd prefer to go with something textual to avoid the overhead of creating all these images on the server with each request.  I've seen things like..   ASCII text captcha: \/\/(_)\/\/ math puzzles: what is 7 minus 3 times 2? trivia questions: what tastes better, a toad or a popsicle?   Maybe I'm just tilting at windmills here, but I'd like to have a less resource intensive, non-image based &lt;noscript&gt; compatible CAPTCHA if possible.  Ideas? In Ubuntu releases prior to Ubuntu 19.10 Eoan Ermine, when I run a command with sudo, that command receives my home directory in the $HOME environment variable. This is the behavior I have long expected and . If I want sudo to reset the $HOME environment variable, so that it refers to the target user's home directory instead of my own, I have to pass the -H option (or -i, though that does more).    ek@Kip:~$ lsb_release -d Description:    Ubuntu 18.04.3 LTS ek@Kip:~$ sudo printenv HOME  # Shows ek's home, not root's. /home/ek ek@Kip:~$ sudo -u as printenv HOME  # Shows ek's home, not as's. /home/ek ek@Kip:~$ sudo -H printenv HOME  # Shows root's home. /root ek@Kip:~$ sudo -Hu as printenv HOME  # Shows as's home. /home/as   When I first upgraded to Ubuntu 19.10, I was surprised to discover that sudo seems to reset $HOME no matter what! I continue to observe this now that 19.10 is released and I've installed updates--both on newly installed systems and one I upgraded to 19.10.  ek@Cord:~$ lsb_release -d Description:    Ubuntu 19.10 ek@Cord:~$ sudo printenv HOME  # Shows root's home, even without -H or -i. /root ek@Cord:~$ sudo -u as printenv HOME  # Shows as's home, even without -H or -i. /home/as ek@Cord:~$ sudo -H printenv HOME  # Also shows root's home. /root ek@Cord:~$ sudo -Hu as printenv HOME  # Also shows as's home. /home/as   I thought this might be due to .  But I checked, and always_set_home does not appear in any Defaults line in my 19.10 /etc/sudoers file.  What makes sudo treat $HOME differently starting in 19.10, and why was this change made? Does this make it safe to use plain sudo in cases where I would previously have used sudo -H? Why is the field inside a conducting shell zero when only external charges are present? not working in Phonegap app on Android 2.3.3 How to compute PCA scores from eigendecomposition of the covariance matrix? Given a data matrix $\mathbf X$ of $12 \times 7$ size with samples in rows and variables in columns, I have calculated centered data $\mathbf X_c$ by subtracting column means, and then computed covariance matrix as $\frac{1}{N-1} \mathbf X_c^\top \mathbf X_c$.  The dimensions of this covariance matrix are $7 \times 7$. After that I have calculated the eigenvalue decomposition, obtaining eigenvector matrix $\mathbf V$ with eigenvectors in columns.  Now I want to know about projections (i.e. principal component scores in PCA): is it $\mathbf{V}^\top \mathbf{X}_c$ or $\mathbf{X}_c \mathbf{V}$?  mean_matrix = X - repmat(mean(X),size(X,1),1); covariance = (transpose(mean_matrix) * mean_matrix)/(12-1);  [V,D] = eig(covariance); [e,i] = sort(diag(D), 'descend'); V_sorted = V(:,i); What is the proof that a force applied on a rigid body will cause it to rotate around its center of mass? Deleted comments are persisting in the global inbox I realise that there is other questions out there about the  (First open one I found is ), but this is marked .  I often get the below issue where it will notify me about comments on my  (in this case what appears to be the user re-writing after deleting their comment) that no longer exist.  Also, occasionally, I see comment snippets with text that doesn't match what is on the page when I view it.  Let me know if I should be trying to edit that one to remove the tag indicating that it has been fixed, and add the above as another answer. How can there be a directory named `~`? I was trying to test out this buggy/new tool to see how it works, and it prompted me to choose a directory to use for stuff I am doing. From the directory ~/Code/indep, I typed in ~/Code/indep/tarbell. (Stupid, I could have just typed 'tarbell', but whatever.) It prompted me to create it because it didn't exist, I said yes. When I inspected the contents of this directory, here is what I see:  brian@navis:~/Code/indep$ ls ~ project1 project2 project3 ...   I thought "oh, weird, it created a symlink to ~". However:  brian@navis:~/Code/indep$ file ./~ ./~: directory   file thinks it's a directory.   brian@navis:~/Code/indep$ ls -l drwxr-xr-x 3 brian brian 4096 Nov  8 16:50 ~ drwxr-xr-x 8 brian brian 4096 Oct 14 18:42 project1 drwxr-xr-x 3 brian brian 4096 Sep 10 21:15 project2 drwxr-xr-x 5 brian brian 4096 Oct 14 19:33 project3 ...   And so does ls -l.   I thought, "oh, ... is it a hard link? I've never really used those." But I tried to reproduce, and it's impossible to create a hard link to a directory. So... I guess I've narrowed this down to things I don't understand. Did I mount my home directory in this other directory somehow?   My main goal at this point is to remove the reference to my home directory in this folder (rm doesn't seem like the answer), but I'm also curious to know what's going on.  EDIT:   In retrospect, I understand exactly what happened. As was answered below, the program created a directory called "~" inside my current directory. The only really obfuscating fact about this is that I wasn't consistent with how I was actually viewing what the directory was. Sometimes I referred to it as  "~" and sometimes as "./~". It's only if you do the latter that you can actually see what's going on, but until I understood this, I was conflating what I was seeing from using the absolute path of "~" to to what was in fact a local directory. When I get a notification on android that someone had posted an answer or comment, if I click the notification, it opens the Stack Exchange app but shows the main view with the inbox opened, not the comment or answer that was in the notification.  If there is only one notification pending, when you tap it it should show you the actual contents rather than just the inbox.