I have so many folders with (2) at the end. But the Folders list is huge and it is not feasible to rename them individually. The only pattern is that all ends with (2) as shown below. Is there a way to rename all of them by just removing the last (2).  Any help will be highly appreciable.
One of the ways I quickly rename files in Windows is   F2 &gt; Rename &gt; Tab (to next file) &gt; Rename ...   But in Ubuntu/Nautilus, I can't tab to next file. But being on Linux, I think there must be a command line alternative.  However, sometimes, I may want more control over how to rename specific files. In that case, perhaps its better to be able to tab to the next file
I haven't written any C++ in years and now I'm trying to get back into it. I then ran across this and thought about giving up:  typedef enum TokenType {     blah1   = 0x00000000,     blah2   = 0X01000000,     blah3   = 0X02000000 } TokenType;   What is this? Why is the typedef keyword used here? Why does the name TokenType appear twice in this declaration? How are the semantics different from this:  enum TokenType {     blah1 = 0x00000000,     blah2=0x01000000,     blah3=0x02000000 }; I would like to show that $a^n \mid b^n$ implies $a \mid b$  I thought I could convert it to congruences and work backwards, but as far as I remember, $a \equiv b \pmod{m}$ implies $a^n \equiv b^n \pmod{m}$, not the opposite, unless $m$ is prime. Is that right?  So I am not sure how to approach this one. Any ideas?  Thanks! I am running Ubuntu 18.04. I wanted to install node and npm on my machine. The apt repository version of node is 8.x, whereas I wanted to have version 12.x (Current LTS version).  I followed the guide here:   As per the guide, I downloaded curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh  and then ran it with sudo -E ./nodesource_setup.sh    However, my machine fails to run sudo apt update with the following (full) output:  maxim@fujitsu:~/scripts$ sudo apt update Hit:1 http://gb.archive.ubuntu.com/ubuntu bionic InRelease                  Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease          Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Hit:4 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease               E: Repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' changed its 'Suite' value from 'bionic-updates' to 'bionic-security' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do you want to accept these changes and continue updating from this repository? [y/N] N Fetched 88.7 kB in 8s (10.5 kB/s)                                                       Reading package lists... Done E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease   E: Some index files failed to download. They have been ignored, or old ones used instead.    suggests that one should use apt update instead of apt-get update. None the less, I am running apt update.   suggests to answer "Y" to the prompt.  , from the Docker community, makes it clear that doing so is a bad idea.  However, , suggests that sometimes repositories change the names of package sources.  So my question is, is it OK to answer Y here? I don't want to  just blindly accept whatever error the package manager throws at me. Encrypting a key with the same key, for instance using AES I am new to crypto and trying to understand if it would be insecure to use a cipher such as AES to encrypt a key with the same key. If it is insecure, then why would it be insecure?  Basically, something like this:  encrypt(key, key)   What happens when both key and message are the same (128 bits)?  The obvious question would be why would I want to do that. If I have a secure channel to send the key, why encrypt it? My question is more for understanding. With a Canon 550D camera and a Tamron 18-270 mm zoom lens, I tried to fix shutter time, aperture (f/8.0 to cover all zoom range), and ISO, so the exposure meter read 0.0 with 18 mm focal length and while focusing on a uniform white wall.  Then I changed to 270 mm focal length, but the exposure reading did not change significantly (only to -0.7).  However, I had expected exposure to change, since only (18 mm / 270 mm) ** 2 = 1/225 of the wall is now covered in compare the coverage when focal length is 18 mm, thus only 1/225 of the light gets to the sensor after the change of focal length.  Why does exposure not change when narrowing the field of view with change of focal length? Let $D$ be an integral domain and let $a^m=b^m$ and $a^n=b^n$ where $m$ and $n$ are relatively prime integers, $a,b \in D$.   How do I show $a=b$? What causes this green background in ls output? svmono template and `\mathcal` Why, with Springer's  svmono template, do the letters written with the \mathcal font change? It seems that \mathcal becomes \mathscr.  Edit: Look at this image:    With the svmono template \mathcal returns the first alphabet and not the (classical) latter.  Here the packages I use in my document:  \documentclass[envcountsame,envcountchap]{svmono}  \usepackage{subfiles} \usepackage[utf8]{inputenc}  \usepackage{mathptmx} \usepackage[bottom]{footmisc} \usepackage{microtype} \usepackage{stmaryrd}    \usepackage{amsmath} \usepackage{courier} \usepackage{mathrsfs}  \usepackage{amssymb}  \usepackage[all,cmtip]{xy} \usepackage{faktor} \usepackage{graphicx} \usepackage{mathdots} \usepackage[colorlinks={true},linkcolor={blue},citecolor={blue}]{hyperref} \usepackage[frame,width=15truecm,height=23.5truecm,center]{crop}   With this settings I have the above strange behavior of \mathcal. So, if we have a large pipe which is constricted in the middle, the fluid in the middle section  will move faster. Why is it so? What dictates that liquid that an X amount of it must pass on the other side regardless of the size of the encasement?  The only reason I could think about is because that the initial pressure which causes the movement somehow is being transferred to a smaller area, but that makes no sense. I have several covariates in my calculation for a model, and not all of them are statistically significant.  Should I remove those that are not?  This question discusses the phenomenon, but does not answer my question:   There is nothing in the answer to that question that suggests that non-significant covariates be taken out, though, so right now I am inclined to believe that they should stay in.  Before even reading that answer, I was thinking the same since a covariate can still explain some of the variance (and thus help the model) without necessarily explaining an amount beyond some threshold (the significance threshold, which I see as not applicable to covariates).  There is another question somewhere on CV for which the answer seems to imply that covariates should be kept in regardless of significance, but it is not clear on that.  (I want to link to that question, but I was not able to track it down again just now.)  So...   Should covariates that do not show as statistically significant be kept in the calculation for the model?  (I have edited this question to clarify that covariates are never in the model output by the calculation anyway.)  To add complication, what if the covariates are statistically significant for some subsets of the data (subsets which have to be processed separately).  I would default to keeping such a covariate, otherwise either different models would have to be used or you would have a statistically significant covariate missing in one of the cases.  If you also have an answer for this split case, though, please mention it. I remember reading a sci-fi story where astronauts visit a planet, which is covered in stationary aliens with mile long necks that filter feed from the atmosphere.  It was published between 1960 and 2000.    It was in English and involved a pair of astronauts that went from planet to planet on a tour or something, though I don't know details of any other planets they visited. Why are Icon Overlays (from 3rdParty-Apps) not showing up in the Win8 Explorer? Adjectives or compound noun? What is the difference between OpenOffice and the newly created LibreOffice? What is the difference between OpenOffice and LibreOffice? I understand that LibreOffice is another fork that is going to be developed. I have used OpenOffice since v1 and am wondering if there is a definite advantage to uninstalling and trying LibreOffice. Fatal error: Call to undefined function add_action() - an untouched problem The question was asked many times in many ways, but unfortunately is not covered well in most of the answers. I'm having the same issue doing things using include-files.  In my TwentyFourteen child theme's functions.php I used:  require_once get_stylesheet_directory_uri() .'/admin-panel/theme-options.php';   And I'm using . I've used it in many of my projects, the same way mentioned here, without having the error. But recently I'm having the issue in several of my projects. If I take the code to functions.php then everything's fine. But it's occurring only when I'm trying to include/require external file.  I'm having the error:     Fatal error: Call to undefined function add_action() in C:\xampp\htdocs\project\wp-content\themes\my-theme\admin-panel\theme-options.php on line 2   In this case I'm having the error using a child theme (of T14). But even in one of my parent theme I'm facing the issue. But in the same environment my other projects are running well with all the includes and/or requires (where several add_action()s are defined). I'm having issues in ALL the add_action() calls, like CPT assigning, Custom Taxonomy assigning etc. But I'm successfully developing another two projects including external files from inc/ folder where all my CPTs are assigned and their meta boxes too.  I tried reinstalling WordPress, deactivating all my plugins, tried from Child Theme, tried only the same thing by modifying TwentyFifteen (applying default theme), tried require(), require_once(), include(), include, require_once, and require one after another with failure. And I'm using WP 4.1.1 in all the good and problematic installs.  Majority of the previous questions are answered with a simple line:     As the message says, you haven defined the function add_action() and yet you're trying to use it.   But,   how come (isn't it already defined by WordPress)? and why it's differing project to project in the same environment (How come it's out of the scope now only in particular project[s])? Testing for significance between means, having one normal distributed sample and one non normal distributed In the biblatex doc, it says ( Version 1.7, p.11):     thesis      A thesis written for an educational institution to satisfy the   requirements for a degree. Use the type field to specify the type of   thesis.      Required fields: author, title, type, institution, year/date      Optional fields: subtitle, titleaddon, language, note, location,   month, isbn, chapter, pages, pagetotal, addendum, pubstate, doi,   eprint, eprintclass, eprinttype, url, urldate   I would like to know if there is any "canonical" way to add the name of the supervisor(s) in a field of the .bib file (no .bbl manipulation please, I want my bibliography to be usable "as it" in several documents).  The expect result could be something like  :     Meand Myself. “A brilliant result, explained”. PhD thesis**, under the   joint supervision of Pr. Toto and Pr. Tata**. Université Paris 24,   Nov. 2013.   The "under the (joint) supervision" could be a string that would be declined in four ways:   under the supervision of  under the joint supervision of and the abridged forms Javascript profanity match NOT replace Is there a word to describe someone who tends to disagree with others only to upset them? Why doesn't the mirror modifier work with object groups? Why doesn't the mirror modifier work with object groups? I have a group made of four objects to which I want to apply a mirror modifier. For me, it's not working. What are the steps to make apply a mirror modifier to a group of objects?