How to paste when using tmux on a remote server with putty If I start tmux on a remote server while using putty I can't paste using right click.
How can I copy from Tmux terminal and paste it other application in my OS? I am using tmux on ubuntu. I read this  for copy and paste inside tmux. But I would like to know how can I copy from TMUX terminal and paste it to other application e.g browser in my OS?
How to create live autofill search? I am currently trying to create a wordpress search function that shows live results underneath the search bar. There is an example on the  website (screens below). I'm not looking for an autofill like you would find on Google.com which completes words you type, rather I want it to find actual posts on the site.   I tried doing a scrub through Wordpress Answers and other similar resources but have only run into implementing a Google type search which is not what I am looking for. Any help or points in the right direction would be greatly appreciated. What is the optimum pattern to place crops in Minecraft? What factors affect soil hydration and crop growth time? What is the most efficient layout of dirt and water to grow crops? Usage of brackets/parentheses When and how do we use the different kinds of brackets/parentheses&nbsp;— (){}[]&nbsp;— while writing English (not code)? openSuse, new user cannot login I am using openSuse 12.3.  I have created a new user using:  linux-amvn:~ # useradd -m -G users,dev -s /bin/bash -p pass123 harbir-PC   The user harbir-PC is not able to login, when I try to log using ssh. I went ahead and looked into the /etc/passwd file and I see the following:  harbir:x:1000:100:harbir:/home/harbir:/bin/bash kdm:x:489:487:KDM Display Manager daemon:/var/lib/kdm:/bin/false harbir-PC:x:1001:100::/home/harbir-PC:/bin/bash   There is a difference between the user harbir and harbir-PC.  I have no problem with the user harbir (who I have created during installation), but I need to login using the user harbir-PC.  I also checked the /etc/shadow, and passwords are encrypted. Lets say I have a function defined as $f(x) = \sqrt {x^2}$. Common knowledge of square roots tells you to simplify to $f(x) = x$ (we'll call that $g(x)$) which may be the same problem, but it isn't the same equation. For example, say I put $-1$ into them:  $\begin{align} f(x) &amp;= \sqrt {x^2} \\ f(-1) &amp;= \sqrt {(-1)^2} \\ f(-1) &amp;= \sqrt {1} \\ f(-1) &amp;= 1 \end{align}$  $\begin{align} g(x) &amp;= x \\ g(-1) &amp;= -1 \end{align}$  thereby, we conclude that $f(x)$ and $g(x)$ do not produce the same results even though they are mathematically the same. This is also shown when we try to graph the functions:  :    :    :    From this, we can see that given $f(x) = \sqrt {x^2}$, when simplified is not the same as $f(x) = x$. So, is there any way to prove that $y = \sqrt {x^2}$ is not the same as $y = x$ for negative values, but is infact the same as $y = \mid x \mid$? I want to do:  cat update_via_sed.sh | sed 's/old_name/new_name/' &gt; new_update_via_sed.sh   in my program.  But I want to use variables, e.g.  old_run='old_name_952' new_run='old_name_953'   I have tried using them but the substitution doesn't happen (no error). I have tried:  cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/' Possible Duplicate:          As a English non-native speaker it is difficult for me to understand when I must use present perfect or past simple because in my official language there isn't the present perfect tense. I know that present perfect is related to something that happened in the past but its result is important now. But for instance:        The message has been sent.   The message was sent.      Please help me point me out any examples/contexts where I should use 1. instead of 2. Chemical potential of particles with zero mass Why massless particles have zero chemical potential? Setting controller variables not reliable from apex:commandButton I'm trying to set a variable inside my controller via an actionFunction, which is called by some Javascript, which is initially called by either by an actionPanel (with styleClass='btn') or a commandButton.  If the caller is the actionPanel then the variable updates reliably. However with the commandButton I can see the updated value flash briefly before reverting to its previous value. Maybe one out of every six clicks of the button actually causes the new value to stick. Sometimes it can take a dozen or more tries, regardless of click frequency.  Can someone please explain what's going on here?  PAGE  &lt;apex:page controller="MyController"&gt;     &lt;apex:form &gt;         &lt;apex:outputPanel id="panel"&gt;             &lt;apex:outputText value="MyString = {!MyString}"/&gt;             &lt;apex:actionFunction name="SetString" rerender="panel"&gt;                 &lt;apex:param name="param1" value="" assignTo="{!MyString}"/&gt;             &lt;/apex:actionFunction&gt;             &lt;script&gt;                 function JSetString() {                     SetString('{!MyString}' + '.');                 }             &lt;/script&gt;             &lt;apex:outputPanel onclick="JSetString()" styleClass="btn"&gt;                 Grow {!MyString} (works)             &lt;/apex:outputPanel&gt;             &lt;apex:commandButton onclick="JSetString()" value="Grow {!MyString} (unreliable)" rerender="panel"/&gt;         &lt;/apex:outputPanel&gt;     &lt;/apex:form&gt; &lt;/apex:page&gt;   CONTROLLER  global class MyController {      public MyController() { MyString = 'hello'; }      public String MyString {get;set;} } <lightning:recordViewForm will not display Children’s books, one in space setting, the other in a jungle When I was little I remember getting these two books from the library.  Both books were paperback and flimsy.  The pages were wide.  Each book had full page illustrations with puzzles and mazes in them, but it was like you were immersed in this setting completely.  They were also like choose-your-own adventure books, but only in the way that you go through the book in a different order based on your results in the puzzles/games.    For example, there is a bridge to cross, or you can take this path.  If you choose to cross the bridge you go to page x.  On page x you have to pretend to cross the bridge but some planks are broken.  You can't skip more than a certain number of planks, but you also cannot "step" on a broken plank.  One book was in a jungle setting with rope bridges, alligators, quick sand, etc. The other was in space, with all kinds of aliens and weird stuff.  I have faint memories of these books but I REALLY want to track them down because I remember loving them. Selecting all objects that have been specified in Modifiers Could anyone help in making a script for selecting all objects that are specified in the different modifiers that an object has stacked? For example if my object has a Boolean modifier and an Array modifier, which both refer to an empty or another object (in the Array modifier there is for example an Object offset you can specify). Would it be possible to select all those object with one click? Thanks. How can I prevent false score reports to global highscore tables? Browser and mobile games commonly have global highscore tables. It's also common for those tables to contain scores of 2,147,483,647 &mdash; where people have figured out the webservice call that reports scores and used it to record a fictitious score.  For simple puzzle games, we can defend against this by including a record of every move the player made (and any random seeds used to generate the level) with the score-reporting call. The entire game can then be reproduced and verified on the server.  However, this quickly becomes infeasible for anything larger than Pac-man.  How else can cheating of this kind be prevented? What are the origins of the word "nice"? How do I change the `enumerate` list format to use letters instead of the default Arabic numerals? I've seen documentation whereby an \alph command is put around the \begin{enumerate} somewhere, but I'm not entirely sure how that operates... Problem with sudo apt update in Ubuntu 18.04: Post-Invoke-Success if /usr/bin/test -w /var/lib/command-not-found/ The terminal gave me these errors when updating the software with sudo apt update.    Hit:1 http://it.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://it.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                        Hit:3 http://it.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                      Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      Hit:5 http://archive.canonical.com/ubuntu bionic InRelease                 Traceback (most recent call last):                       File "/usr/lib/cnf-update-db", line 8, in &lt;module&gt;     from CommandNotFound.db.creator import DbCreator ModuleNotFoundError: No module named 'CommandNotFound' Reading packages list... Done E: Problem executing scripts APT::Update::Post-Invoke-Success     'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db;       then /usr/lib/cnf-update-db &gt; /dev/null; fi'   E: Sub-process returned an error code     These are the results of sudo apt install --reinstall command-not-found  Reading package lists... Done  Building dependency tree         Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/5.188 B of archives After this operation, 0 B of additional disk space will be used. (Reading the database ... 225797 files and directories currently installed.) Preparations for extracting ... / command-not-found_18.04.4_all.deb ... Extracting command-not-found (18.04.4) on (18.04.4) ... Configuring command-not-found (18.04.4) ... libdvd-pkg: Package libdvdcss2-1.4.2-1 was removed, stop processing...   When I tried the command sudo apt update again after reinstalling command-not-found, the results were the same as described in the first text block. How to delete specific lines from a txt file I have a Bash script that writes data into a log file, then from that I take out stuff I want using the sed command. That gives me a file data.txt. What I want to know is how I go about deleting specific line inside that data.txt file.  For example:  123 456 789   I want to remove the 2nd line, containing 456 so that I only have  123  789   I tried with sed '2d' data.txt but it doesn't work.  I use this command to create data.txt from log.log:  sed -nE '1s/.{1}(.{2}).*/\1/p;' log.log &gt;&gt; data.txt Can you explain the sentence structure 'In a hole in the ground there lived a Hobbit'? Why put the verb before the subject? The opening sentence to The Hobbit by J.R.R. Tolkien reads,     In a hole in the ground there lived [verb] a hobbit [subject].   I wonder if there are accepted stylistic purposes for such a structure.  When is it natural, and when is it unnatural? Is there a way to specify fragile mode as default for all frames? Now I know how to define a fragile frame: \begin{frame}[fragile]. How to remove duplicate values from an array in PHP How can I remove duplicate values from an array in PHP?