I am using LAMP in Ubuntu 12.04. How to reset the phpMyAdmin password?  hypertext@hypertext-desktop:~$ sudo mysqld --skip-grant-tables &amp; [2] 7196 hypertext@hypertext-desktop:~$ sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700                                                         UPDATE user SET Password=admin WHERE User='root'; bash: syntax error near unexpected token `('  [2]+  Stopped                 sudo mysqld --skip-grant-tables hypertext@hypertext-desktop:~$ sudo mysqld --skip-grant-tables &amp; [3] 7252 hypertext@hypertext-desktop:~$ sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700 mysql -u root mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)  [3]+  Stopped                 sudo mysqld --skip-grant-tables hypertext@hypertext-desktop:~$ sudo mysqld --skip-grant-tables &amp; [4] 7259 hypertext@hypertext-desktop:~$ sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700 UPDATE user SET Password='admin' WHERE User='root';FLUSH PRIVILEGES; exit; UPDATE: command not found  [4]+  Stopped                 sudo mysqld --skip-grant-tables  [4]+  Stopped                 sudo mysqld --skip-grant-tables FLUSH: command not found exit There are stopped jobs. hypertext@hypertext-desktop:~$ sudo pkill mysqld sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700 [sudo] password for hypertext:  hypertext@hypertext-desktop:~$ sudo service mysql start sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700 [sudo] password for hypertext:  mysql: unrecognized service hypertext@hypertext-desktop:~$ ^C hypertext@hypertext-desktop:~$
This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var.
How much voltage/current is "dangerous"? Related:        From what I've heard:   110 V (or 220 V; household voltage pretty much) is dangerous (i.e. can kill you) I think there's consensus on this, no need to try :) 60 V (old telephone lines) is supposedly dangerous (never tried, only heard it once... probably won't try)   From what I know first-hand:   9 V is not dangerous (I've put a 9-V battery on my tongue, nbd... actually it kinda hurt!) 1.5 V can indeed be quite shocking with enough current (fell for one of those "Do you want some gum?" tricks back in high school...), but they sometimes do not use 1.5 V with the low amperage levels, some use a DC motor to vibrate and complete the trick.   So I guess there's two parameters here, voltage and current... but are there rough numbers on how much of each (or in combination, which I guess would be power) would be considered hazardous?  No old telephone lines have always been 48vDC well at least since from 1950s, if your skin is wet you can feel it slightly, like on your forearm.  Now the ring voltage is 90-110vAC with a 2 on 4 sec off cycle (USA).  It will ring your bell but good, should you be touching the wires when someone calls. The ring voltage rides on top of the 48vDC, so its present on the same two conductors that the voice voltage(DC) is on. Luckily it's 4 seconds off will give you a chance to get off the conductors with a scream (of pain). Concurrently interleaving execution of Lua and TeX in LuaTeX The usual way to interleave Lua and TeX in generating documents is by invoking Lua from Tex through the \directlua facility and generate Tex from Lua using tex.print().  For example, consider the Plain LuaTeX:  \directlua{     es=""; someluatex = function () tex.everypar="PAR!" end     tex.print("one", es, "two")     someluatex()     tex.print("three", es, "four") } five\bye   Looking at the document LuaTeX generates for that input, we see that someluatex() is run before the Tex backend does anything with the output: the PAR!s will be inserted before "one" and "two", as well as after "three".  Is there best practice for ensuring that TeX code issued by some Lua code is issued before some other LuaTeX code?  There are several ways to do this: with some code I am working with I am trying the following scheme:   Wrap the code executed by the \directlua in a coroutine, call it myco; At the point we want to ensure the Tex so far tex.print-ed is executed, use:  tex.print("\\directlua{coroutine.resume(myco)}") coroutine.yield()  If everything is in order, the Lua will resume after the Tex is processed.   This is not ideal, however: we must ensure that the TeX backend is in the right state to understand the \directlua command, which may not always be the case.  Is there a better way to achieve this? Note that this is only focusing on Minecraft Java Edition, and for versions 1.13+. I am predominantly looking for a solution that does not require any external programs (like MCEdit or NBTExplorer) and will work in just plain vanilla Minecraft, although if the only solution doesn't fit these criteria, I'll still take it (since having a solution is better than no solution!) Essentially, I am looking for a way to put a phrase (meaning essentially there are two or more words and spaces are involved) on a Minecraft scoreboard. This is what I mean by 'phrase': One two three, 1 2 3 These are not 'phrases': OneTwoThree, One-Two-Three, One_Two_Three, 1-2-3, etc. However, it seems like the only way to add text to an objective on the scoreboard is to add a &quot;fake player&quot;, via /scoreboard  players add [playername] [objectivename] [score], which shows the [playername] and the [score] part of the command on the scoreboard. However, since player names can't have spaces at all, it means that you can't have a phrase shown on the scoreboard. I have seen on many servers scoreboards that do have phrases listed on the scoreboard, but I have no idea how they do this (probably because of plugins that can do this sort of thing).  I did notice that teams can be given display names that can have spaces, so is there a way to display the team name on the scoreboard (thus being able to put phrases on there?)? Overall, my main question would be &quot;Is there a way to use spaces on the scoreboard (excluding the objective name) in vanilla Minecraft? Is it normal to get hundreds of break-in attempts per day? I just checked my server's /var/log/auth.log and found that I'm getting over 500 failed password/break-in attempt notifications per day! My site is small, and its URL is obscure. Is this normal? Should I be taking any measures? A fleet of nine taxis is dispatched to three airports, in such a way that three go to airport A, five go to airport B and one goes to airport C.  If exactly three taxis are in need of repair. What is the probability that every airport receives one of the taxis requiring repairs.  My method was total number of ways is (9!)/(3!*5!*1!)= 504 (this is correct)  Now you have three groups and of every group one position is already filled. So: ....R, ..R, R So the numbers of ways to distribute the rest is: (6!)/(2!*4!)=15  But according to answer model of my professor, it should be 90. So I assume he says the number of ways of distrubiting these 3 broken cabs over the 3 spots is 3*2*1. But to me this seems wrong? The broken taxis don't differ so R(1)R(2)R(3) is same as R(2)R(1)R(3). If you standing at the airport A, it doesn't matter which of the broken cabs stands there? Why is Harry Potter a half-blood? Why does shrinkage work? In order to solve problems of model selection, a number of methods (LASSO, ridge regression, etc.) will shrink the coefficients of predictor variables towards zero. I am looking for an intuitive explanation of why this improves predictive ability. If the true effect of the variable was actually very large, why doesn't shrinking the parameter result in a worse prediction? Where does the word "dog" come from? PDF editing within Apex/Visualforce Changing CSS Values with Javascript Am I able to use a controller to play the PC version of Minecraft? If so, can I just plug it in and play or do I have to do something else before being able use one? How to install ns2 on Ubuntu Organic yet accurate modeling with the golden spiral Foreword  First off, let me say that I am profoundly amazed at the orderliness in nature. If you haven't heard about the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, ...), you should check it out.  This mathematical concept of the Fibonacci numbers can be shaped into a set of squares, where the lengths of the sides of the squares follow the Fibonacci sequence:     This is sometimes called a golden ratio. It can be formed into a (golden) spiral. (a.k.a. logarithmic spiral):      Application  I am looking for ways on how to utilize this concept in Blender. Primarily in organic modeling. The golden spiral is found all throughout nature. From flower seed heads, sea shells, and ram horns to hurricanes and spiral galaxies.  My question is: how can I model based off of one or multiple golden spirals? Specifically, I'm interested in modeling a sunflower head like the one in the following image. I'm mostly interested in the point of origin of the individual seeds (not worried about the shape). Does Blender have any features related to this? I stand up and I look at two parallel railroad tracks. I find that converge away from me. Why? Can someone explain me why parallel lines seem to converge, please? Can $\sqrt{n} + \sqrt{m}$ be rational if neither $n,m$ are perfect squares? Can the expression $\sqrt{n} + \sqrt{m}$ be rational if neither $n,m \in \mathbb{N}$ are perfect squares? It doesn't seem likely, the only way that could happen is if for example $\sqrt{m} = a-\sqrt{n}, \ \ a \in \mathbb{Q}$, which I don't think is possible, but how to show it? Rename ToC, List of Figures, References I would like to know how to rename the standard list of figures, table of contents, and references. What I saw so far relying on \renewcommand{\contentsname}{name} did not work so far.  Here's the list of preambles I use:  \documentclass[12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{fourier} \pagestyle{headings} \usepackage{marvosym} \usepackage[pdftex]{graphicx} \usepackage[margin=2.5cm]{geometry} \usepackage{rotating} \usepackage{amsmath} \usepackage{booktabs} \usepackage{url} \usepackage{natbib} \usepackage{setspace} \linespread{1.5} \newenvironment{remark}{\par\mbox{}\par\noindent{\bfseries             \emph{Remark}\/}:\normalfont}{\par} \newenvironment{defin}{\par\mbox{}\par\noindent\bfseries \emph{\Pointinghand\     }\normalfont}{\par} \setcounter{toc**strong text**depth}{2}  \usepackage[colorlinks=true, a4paper=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref} \pdfcompresslevel=9 \setstretch{1.0} %vertical stretch \usepackage{fontspec} \setmainfont[BoldFont       = AvenirNextRoundedPro-Bold.otf , ItalicFont     =AvenirNextRoundedPro-Italic.otf]{AvenirNextRoundedPro-Reg.otf} \defaultfontfeatures{Mapping=tex-text} \usepackage{multirow} \usepackage{array} \usepackage{booktabs} \usepackage{hyperref} \hypersetup{ hidelinks, } \usepackage{ragged2e} \usepackage{euler} \usepackage[euler-digits,euler-hat-accent]{eulervm} \usepackage[labelfont=bf]{caption} \usepackage{wrapfig} \usepackage{amsmath} \usepackage{amssymb}  \usepackage[english]{babel} \usepackage[nottoc]{tocbibind} %Adds "References" to toc \usepackage{titlesec} \titleformat{\chapter}[display]{\bfseries\huge}{\filleft\Large\chaptertitlename~\thechapter}{1ex}{\vspace{1ex}\filright}[\vspace{0.5ex}\titlerule] \usepackage{float} \usepackage{etoolbox} \makeatletter \patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{} \renewcommand*\l@figure{\@dottedtocline{1}{2em}{6em}} \let\l@table\l@figure  \makeatother % default for 3rd arg: 2.3em - for list of figures and tables \usepackage{background} \definecolor{textcolor}{HTML}{000000}             \newcommand\Text{c\quad o\quad n\quad f\quad i\quad d\quad e\quad n\quad t\quad i\quad a\quad l} \SetBgColor{textcolor}\SetBgOpacity{0.3}\SetBgAngle{90}         \SetBgPosition{current page.center} \SetBgVshift{-0.33\textwidth} \SetBgScale{1.8}         \SetBgContents{\sffamily\Text} %for confidential   I also use TexMaker. I do not know how relevant it is, but here my document language is set to English (even if it's not the language I write in, in that document, but it isn't a problem seemingly). What I also saw is that, if I remove babel and the references, I can rename my ToC and LoF, LoT. But I need the references though. Any tip would be very welcome!  Edit: I cannot provide text data from my project, because it is confidential. Here's what I can provide from the main document. Here is what I can include more.  \begin{document} \include{02_front}  \setcounter{page}{0} \pagenumbering{roman} \tableofcontents \listoffigures \listoftables \newpage \setcounter{page}{0} \pagenumbering{arabic} \chapter{blabla} \section{test é è åøæ î} \appendix \bibliographystyle{plain}  \bibliography{80_refs}   \end{document}   Also, I actually finished writing my thesis but I need to summarize it briefly in another language, am would be extremely unwilling to test and remove packages that "might be" not very useful. I literally only have to change these names of ToC, LoF, ToF and references. How to download all required Ubuntu drivers Analysing Bounce Rate and Time on Page I am using longtable and I cannot find a way to adjust its column spacing. I want a table like this:    But I am getting this:    This is what I am doing for defining table size:   \begin{longtable}{p{.1\textwidth} p{.2\textwidth} p{.2\textwidth}p{.3\textwidth}}     xxxxx &amp; xxxxx &amp; xxx &amp; xxxxx\\     \end{longtable} Can someone tell me what's wrong with this? because i can't figure out where the missing \right( is.  \begin{equation}  \begin{split} Μ=&amp;-\pi \rho \frac{c^{2}}{4}    \left[c\left(\frac{α}{c}-\frac{1}{2}\right)\ddot{h}+Uc\left(\frac{3}{4}-     \frac{α}{c}\right)\dot{\alpha} +\frac{c^{2}}{4}\left(\frac{9}{8}+      \frac{4α^{2}}{c^{2}}-\frac{4α}{c}\right)\ddot{\alpha} \\  &amp;-\left(\frac{4α}{c}-1\right)U C(k) \left(-\dot{h} +U\alpha + c \left(\frac{3}{4}-\frac{α}{c}\right)\dot{\alpha}\right)\right]  \end{split} \end{equation}