I like to play Minecraft and the bats are annoying and tried doing /kill @e [type = bat] then I pressed enter and all entities were killed. It ruined my world! How do I target the all of bats and ONLY the bats without killing anything else?
So, my friend just implemented a bunch of new mods into his SMP server, which meant a host of new commands to play with.  I thought I'd give the /mobspawn command a few goes, and see what I could achieve.  So I headed off to the server's jail (I forget why this particular location compelled me), and gave it a few spins.    I seem to have made a bit of an error in judgement.     What can I do to get rid of this mess?  Is there a command or some other technique I can use to clear out any mobs in my immediate vicinity?
How to add desktop shortcut for URL, ignoring web app manifest? Goal:  Have a desktop shortcut that opens  , ignoring the contained web app manifest that otherwise "overrides" the saved shortcut to  and with "display": "standalone".  I had this working previously on an older Android phone before a replacement / upgrade.  Prior to the upgrade, I was able to long-press and open individual articles in new tabs - as well as copy link shortcuts to specific articles, as well as all of the other features and functionality that Chrome has to offer.  Here is just a partial selection of references of other users complaining about the same:       Using  provides a temporary successful work-around.  However, I can't find a successful way to add a link for this to my home screen.  The "Add to Home screen" option within Chrome instead saves a link to  - and in such a way that it opens as a web application instead of a web page within Chrome:       On a desktop operating system, this would be a non-issue.  (Create shortcut, enter desired URL, done.)  Attempt 1: Provide my own Manifest  So I created my own manifest - editing  to change the start_url attribute to https://news.google.com/news/i#0, and the display attribute from standalone to browser.  I then created my own HTML page that simply contained the below - then self-hosted both on a local web server:  &lt;html&gt;         &lt;head&gt;                 &lt;Title&gt;Google News&lt;/Title&gt;                 &lt;link rel="manifest" href="/news/manifest.json"/&gt;         &lt;/head&gt;         &lt;body&gt;                 Test         &lt;/body&gt; &lt;/html&gt;   However, this doesn't work:  Despite the shortcut being saved with the desired name and icon, it links back to my self-hosted HTML page, and not the indicated start_url.  Unfortunately, it appears that cross-domain URLs are not allowed per the manifest intent - as per  and  .  Attempt 1b: MITM website  Within the confines of my own local network, I figured I could try to  (MITM) the website to temporarily provide a desired manfiest to use for addition to the home screen.  Unfortunately, the website uses  here, which appropriately blocks the attempt.  Regardless - this is way too much work for what should be a simple effort.  Attempt 2: Widget Bookmark  Unfortunately, it looks like the 1x1 bookmark widget was removed in Chrome 48, as per  .  The suggested work-around is to use the "Add to Home screen" feature within Chrome.  Goto 10 / see beginning.  Attempt 3: Use the default-provided "Internet" browser  Unfortunately, using "Add shortcut on Home screen" in the default-provided "Internet" browser produces the same result as Chrome.  Consideration 4: Use a custom app / widget  Could probably write and install a custom application or widget that could be added to the home screen to meet the goal.  Or don't re-invent the wheel, and use an existing one.  Some possibilities:   "More Shortcuts":  "Shortcut Customizer":    Conclusion  How can someone create a desktop shortcut to an arbitrary URL, ignoring a provided web app manifest? Find $f(x)$ for $f(f(x))=\sin x$ Find all (if that's possible) functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(f(x))=\sin x.$$  This is a problem a friend gave me. He said he saw it on a book a long time ago, but he couldn't remember what book. I literally have no idea how to solve this so I can't post my attempt here. How to edit files in a terminal with nano? Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I cannot understand how to work with it.  If I start nano by running nano, the bottom text is supposed to help me but all I see are things like ^G Get Help    ^O WriteOut.   How can I open text files for editing? How can I save the file? How can I quit the editor without saving the changes? How to edit? I heard that you've to enter some commands to begin editing in vi, is this true for nano too? Sometimes, if I manage to open a file, the text is unreadable due to its colors. How can I disable these colors? (see the image below) In the some files, lines are truncated because those do not fit in the screen. How can I prevent that from happening? (see the image below) 19.10: Deactivate Alt Key From Triggering Applications' Menu Bar How can I stop the Alt key from triggering the menu bar of applications in Ubuntu 19.10?  I know that there are these , , and , as well as  but those solutions are no longer applicable. I did try searching for a similar option to the one in the answer of those questions but with no success. As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? That is, I don't want any text to be underneath the "Appendix A" part.  I added that red line just to show how I'd like it aligned, if possible.    Here's my MWE:  \documentclass{book} \let\cleardoublepage\clearpage  \RequirePackage{titletoc} \RequirePackage{tikz} \RequirePackage[explicit]{titlesec} \RequirePackage{DejaVuSansCondensed} \RequirePackage[normalem]{ulem} \RequirePackage[   left=2.25in,   right=0.75in,   top=1.25in,   bottom=1.25in,   marginparwidth=1.75in,   marginparsep=.25in,   asymmetric]{geometry}  \renewcommand*\familydefault{\sfdefault} % Set default font  %%% Table of Contents ---------------------------------------------------------- \setcounter{tocdepth}{1} % Show only Chapters and Sections  %%% Change font/color/layout of TOC \makeatletter \titlecontents{chapter}[-2em] {\color{cyan}\bfseries\LARGE\addvspace{3mm}} {\makebox[4.4em][r]{\@chapapp}\contentslabel{-0.25em}\hspace{1.9em}} {} {\hspace{3em}\contentspage} \g@addto@macro{\appendix}{%   \addtocontents{toc}{\protect\renewcommand*{\protect\@chapapp}{\protect\appendixname}}% } \makeatother  \titlecontents{section}[5.3em] {\color{cyan}\large\itshape\addvspace{3mm}} {\contentslabel{0em}\hspace{3.2em}} {} {\hspace{3em}\contentspage} [\addvspace{0mm}]  %%% Chapter Header ---------------------------------------------------------- \makeatletter \titleformat{\chapter}   {\normalfont\sffamily\Huge\scshape}   {}{0pt}   {\thispagestyle{empty}    % Remove page number on new chapters   %\setcounter{definition}{0}   \begin{tikzpicture}[remember picture,overlay]     \node[yshift=-3cm] at (current page.north west)       {\begin{tikzpicture}[remember picture, overlay]         \draw[fill=cyan] (0,-1) rectangle           (25cm,3cm);         \draw[fill=cyan] (0,-24) rectangle           (25cm,-25cm);         \ifttl@label% &lt;---------------------- Added condition on \ifttl@label           \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]               {\color{white}\LARGE \MakeUppercase{\@chapapp} \Huge\thechapter};         \fi% &lt;------------------------------- end condition on \ifttl@label        \end{tikzpicture}       };    \end{tikzpicture}\endgraf   \vskip-.7cm   \color{cyan}\Huge\raggedright\leftskip-1cm    \noindent\MakeUppercase{#1}\endgraf   } \makeatother  \titlespacing*{\chapter}{0pt}{10pt}{0pt}{}  \titleformat{\section}{\color{cyan}\itshape\LARGE}{\llap{\thesection} #1}{1em}{}[\titleline{\color{cyan}\titlerule[1pt]}] \titleformat{\subsection}{\color{cyan}\normalfont\large}{\; #1}{1em}{}  \begin{document}   \tableofcontents   \chapter{Turing Machines}     \section{The Turing Machine}     \section{Variations of the Turing Machine}       %\subsection{Non-deterministic Turing Machines}     \section{The Church-Turing Thesis}   \chapter{Decidability}     \section{The Universal Turing Machine}    \appendix   \chapter{ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM} \end{document} My son is going on 5 and starting to learn a lot about how we're created. I've been with my husband for 10 years, but nearly 6 years ago I had no other choice but to move 1000 miles away and after trying the long distance thing it didn't work so we split up.   I ended up going through a rough patch and started dating an abusive jerk. After a year I was pregnant. He threatened me trying to force me to have an abortion and I refused. His grandmother was chief of police and he scared me into moving back to Florida.  Eventually, when I was 4 months along in my pregnancy my husband and I picked up right where we left off. He loved me so much and accepted our son as if he was his own and has done an amazing job at raising him.   He enrolled in college while I was pregnant, got us a house and went above and beyond to care for us both (as after giving birth I became very ill due to rare brain and spine conditions). I've always tried to do right by my son. Since day one, even while with my husband, I tried to keep the sperm donor involved. But he wanted no part of his son.  My husband stepped up when the biological father refused. The biological father would pretend that he cared, only to tell me he never cared about him anyway and was just trying to manipulate me into stopping child support (which I did anyway after the first year: I felt it wasn't right to take his money when my son had a dad who loved, supported and wanted him from the beginning).  This is a very long story so I'll try and make it not so much of a novel. The sperm donor has made it very clear he wants nothing ever to do with my son. My husband has been Dad since the moment my son entered this world. I've always planned to tell my son as early as possible. I think now, or in a few years, it won't be as hard on him compared to us telling him when he's a teen and who knows how he'd handle it.   I just don't know what to do. We have an extremely happy loving family. My son adores his dad. We never argue, we have a very happy non-dysfunctional marriage. I just feel we have a very special family. But I refuse to lie to my son. What if we wait and someone else maliciously tells him? Or if, when he's older and finds out, he spirals out of control?  I'm so confused, I just want to do the right thing and desperately need advice. Especially from others who have been through similar circumstances. We're planning on meeting with therapists and I guess child development specialists, if someone could also point me in the right direction for what type of doctor is best suited in this situation.   Also my son is very happy. He has a wonderful life and I feel as if he would do fine, knowing how much he loves his dad and just beginning to really grasp the concept of life. I don't think it would change anything for him, if that makes sense. I've been worrying over this for 5 years and really need some answers! Where did Schrödinger solve the radiating problem of Bohr's model? One of the problems with Bohr's theory to describe the hydrogen atom, was that the electron orbiting around the nucleus has an acceleration. Therefore it radiates and loses energy, until it would collapse with the nucleus.  Now Schrödinger describes the electron as a wave function. His theory is able to describe all atoms (in contrast to Bohr's model), but how is the radiation problem solved? I understand that the wave has not an exact position in the time anymore. But the electron still "moves", so it has an acceleration anyway (because of vibrations or so).   Why is in this theory the electron not radiating anymore? And if it is, why doesn't the atom collapse? Something weird is going on with my login on at least one site Does a bad grade in one course (with otherwise OK record) affect graduate admissions? I'm currently an M. Phil student in Math and I failed a course last semester because I was not able to hand in a home work assignment (which was worth 40% of my grade) on time (I was 30 minutes late).   Apart from that I'd say I'm a fairly decent student, I got an upper second class honours bachelors degree, I have a B+ and A's for all my other courses in my current programme and I'm almost finished with my first paper to be published.   I've however been deeply worried about this failure as it would reflect poorly on my transcript if I were to apply to a Ph.D or another Master's programme.   Will my failing grade affect my chances of getting into a competitive programme or greatly lower my chances of getting a scholarship? Can helium disappear from Earth? Helium is lighter than air, so it should fly off from Earth. Is it possible that in the future we will run out helium? How to find $\mathbb{E}(X\mid\mathbf{1}_{X<Y})$ where $X,Y$ are i.i.d exponential variables? Given that $X,Y\stackrel{\text{i.i.d.}}{\sim}\text{Exp}$ with mean $\lambda(&gt;0)$ and $Z=\mathbf{1}_{X&lt;Y}$, what is $\mathbb{E}(X\mid Z=z)$ ?   We have $Z=1$ with probability $\Pr(X&lt;Y)$ and $Z=0$ with probability $1-\Pr(X&lt;Y)$.   But $\Pr(X&lt;Y)=\frac{1}{2}$ as $X$ and $Y$ are i.i.d. random variables.   Does this mean I can simply say that $Z\sim\text{Ber}\left(\frac{1}{2}\right)$ ?   Then, $\mathbb{E}(X)=\mathbb{E}(X\mid Z=0)\times\frac{1}{2}+\mathbb{E}(X \mid Z = 1) \times \frac{1}{2}$  $\implies2\lambda=\mathbb{E}(X\mid Z=0)+\mathbb{E}(X\mid Z=1)$.   But I cannot conclude anything from here. I couldn't find the conditional distribution of $X\mid Z$ either. Maybe I have to condition on another variable $U$ so that $\mathbb{E}(X\mid Z)=\mathbb{E}\,[\mathbb{E}(X\mid Z,U)\mid Z]$. how to disconnect main service drop at service panel when upgrading to a 200 amp service panel with service drop coming from bottom underground do I need southern California Edison to come disconnect and then reconnect or can I just do it on my own. I do have a permit. How to open the default webbrowser using java The Lorentz force on a charged particle is perpendicular to the particle's velocity and the magnetic field it's moving through. This is obvious from the equation:  $$ \mathbf{F} = q\mathbf{v} \times \mathbf{B} $$  Is there an intuitive explanation for this behavior? Every explanation I've seen simply points at the equation and leaves it at that.  I can accept mathematically why $\mathbf{F}$ will be perpendicular to $\mathbf{v}$ and $\mathbf{B}$ (assuming the equation is correct, which it is of course). But that doesn't help me picture what's fundamentally going on.  Trying to create an analogy with common experiences seems useless; if I were running north through a west-flowing "field" of some sort, I wouldn't expect to suddenly go flying into the sky.  I'm hoping there's a way to visualize the reason for this behavior without a deep understanding of advanced theory. Unfortunately, my searching for an explanation makes it seem like something one just has to accept as bizarre until several more years of study. I tried to use this for the last part of my table, but I can't get a vertical line at the end. Does anyone know?   \begin{tabular}{|CC|C|C|C|C|C|C|C|C|C|C|}\hline \Tab{Method Based on \\\hline       Radiography\\Magnetic Particle (A.C.)\\ \\Eddy Current\\Dye Penetrants\\ Ultrasonics} &amp; \Tab{ \\\hline \\ Wet \\ Dry \\ \\ \\ \\} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Minute Surface Cracks }~}  \\\hline       N\\ G\\F\\F\\F\\P}  &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Deeper Surface Cracks      }~}  \\\hline            F\\G\\G\\G\\G\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Internal Cracks      }~}  \\\hline            F\\N\\N\\N\\N\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Fatigue Cracks      }~}  \\\hline            P\\G\\G\\N\\G\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Internal Voids      }~}  \\\hline            G\\N\\N\\N\\N\\G}           &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Porosity and Slag in Welds      }~}  \\\hline            G\\N\\N\\P\\N\\F}           &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Thickness      }~}  \\\hline            F\\N\\N\\P\\N\\G} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Stress Corrosion      }~}  \\\hline            F\\G\\F\\N\\G\\F} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Blistering      }~}  \\\hline            P\\N\\N\\N\\N\\F} &amp; \Tab{\rotatebox{90}{~\parbox{5cm}{Corrosion Pits      }~}  \\\hline            G\\N\\P\\N\\F\\P} \\\hline &amp; \multicolumn{11}{l}{G=Good;F=Fair;P=Poor;N=Not suitable.} \\ \hline \end{tabular} \label{tab:NDETechniques} \end{table}   It comes out like this: Why $\sum_{k=0}^m x^k $ is equal to $\dfrac{x^{m+1}-1}{x-1} $? Who can help me proving this (but you can no longer use $\sum$ in the proof):  $$\sum_{k=0}^m x^k=\dfrac{x^{m+1}-1}{x-1}$$ Does a percentage quantity take singular or plural verb agreement? Does a percentage require a singular or plural verb, for example, do we say ten percent "go" or "goes"? How to replace plain URLs with links? I am using the function below to match URLs inside a given text and replace them for HTML links. The regular expression is working great, but currently I am only replacing the first match.  How I can replace all the URL? I guess I should be using the exec command, but I did not really figure how to do it.  function replaceURLWithHTMLLinks(text) {     var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|])/i;     return text.replace(exp,"&lt;a href='$1'&gt;$1&lt;/a&gt;");  } I am trying to run an executable file from a network drive on Windows 7 Professional (64-bit) in order to install a program, but, each time I try, it doesn't run and the following message appears:  {path-name} The specified path does not exist. Check the path, and then try again.   I am definitely connected to the network drive as I can see all of the directories and files, and can even open non-executable file types. Also, I am fairly confident that this is neither a firewall nor a permissions issue. I noticed that I got some initial traffic problems at the point where the initial highway is connected to my city. At the beginning I simply elongated both roads that came from that highway, but this doesn't seem to scale.  What I wanted to do now is to create a single six-lane highway from these two four-lane roads. I'd be open to continue to use two roads in parallel here, but I didn't manage to add any way of crossing between the lanes when I tried that idea.  So, how do I merge two one-way roads into a single two-way road? Or, if my idea is really bad, what is a good way to connect the initial highway access to my fledgling city?  Here's a screenshot of the roads I want to connect, if my description wasn't entirely clear: