E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) while installing a package I'm trying to install latex in 17.04 using   sudo apt-get install texlive-full texmaker   but it returns  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   How can I fix that problem?
Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?
Creating label in QGIS? I am using QGIS 2.18.16 on Windows 10.    What I want is a label to appear within the boundaries of a polygon.    I select a layer, then select command Layer>Labelling, and I get:    From here, I can change "No Labels" to "Show labels for this layer".  But I can't actually create label text.  I find a clue in a prior question:    “Labelling polygon using QGIS?”    The answer was:  The layer you are trying to label must have at least one attribute field populated with data. You can then turn on labelling in Layer Properties and select which attribute field to use for your labels.  I can enter command Layer>Open Attribute Table, and what I get is:    If I need something in the attribute table in order to apply a label, how do I accomplish that? Solution of trigonometric equation $0 = x\cos(x)+2$ Tuning PostGIS for production environments? What PostGIS documentation have you come across that has been helpful when tuning PostGIS for a production environment?  I would like to get together with my DBA to setup a Postgresql/PostGIS installation that is fit for production. I have read that there is some tweaking involved to achieve this, and I was hoping to find the answer on the .  So far I have found some documents on the OpenGeo site helpful, .  And this  is the kind of information I have found helpful, this is probably just basic DB stuff but to me its good stuff.  I would be interested to see what resources have helped others in achieving a stable production installation of PostGIS. python list in sql query as parameter I have a python list, say l  l = [1,5,8]   I want to write a sql query to get the data for all the elements of the list, say  select name from students where id = |IN THE LIST l|   How do I accomplish this? How to Evaluate $\int e^{2x}\sin(3x)\ dx$? Integration by parts - unless I'm not thinking straight - doesn't seem to help here.. If I pick either of the functions $e^{2x}$ or $\sin(3x)$ to be $u$ or $dv$, they don't change to anything easier... $e^{2x}$ stays in the form $e^x$ and $\sin(3x)$ flip-flops between $\sin(3x)$ and $\cos(3x)$, neglecting the constant that gets introduced.  So how can I approach solving this? $u$-substitution doesn't seem to be something I can use either. How to avoid pagenumering with text in scrlttr2 Have a Letter in scrlttr2. I cannot avoid/exclude the text before the page number 'Seite' (see print-screen). The  recommends to add \pagenumbering{arabic}. But for my document, it has no effect.    %--------------------------------------------------------------------------- \documentclass%% %---------------------------------------------------------------------------   [fontsize=12pt,%%          Schriftgroesse %--------------------------------------------------------------------------- % Satzspiegel    paper=a4,%%               Papierformat    enlargefirstpage=on,%%    Erste Seite anders    pagenumber=footcenter,%%   Seitenzahl oben mittig %--------------------------------------------------------------------------- % Layout    headsepline=on,%%         Linie unter der Seitenzahl    parskip=half,%%           Abstand zwischen Absaetzen %--------------------------------------------------------------------------- % Formatierung    draft=on%%                Entwurfsmodus ]{scrlttr2} %--------------------------------------------------------------------------- \usepackage{german} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  %--------------------------------------------------------------------------- \begin{document} %--------------------------------------------------------------------------- % Briefstil und Position des Briefkopfs \LoadLetterOption{DIN} %% oder: DINmtext, SN, SNleft, KOMAold. \makeatletter \pagenumbering{arabic}  %--------------------------------------------------------------------------- % Seitenstil \pagestyle{plain}%% keine Header in der Kopfzeile %--------------------------------------------------------------------------- \begin{letter}{Herr\\                 Mustermann\\                Straße 1\\                12345 Stadt} %--------------------------------------------------------------------------- \setkomavar{subject}{Beispielschreiben} %--------------------------------------------------------------------------- \opening{Liebe Herr Mustermann,}  here is some Text.  \pagebreak  here is some Text. %--------------------------------------------------------------------------- \end{letter} %--------------------------------------------------------------------------- \end{document} %--------------------------------------------------------------------------- A place where you could sit and see something like this (with a fall if you step further):    (Not looking for a technical term, just a common one). How to make partitions mount at startup? If we have a real valued function $f$ continuous at some point $a$, is it necessarily true that $f$ is Riemann integrable on the interval $[a - \delta, a + \delta]$ if a $\delta &gt; 0$ exists? "going to come down" vs "going to have to come down" What is the difference between the following sentences?        This fence is going to come down.   This fence is going to have to come down.      I have doubt that when you are saying fence is going to have to come down, that is enough to say it right? but why I hear in movies saying fence is going to have to come down, is there a difference between them? How much marmelade can I bring into the US? I want to bring homemade berry marmelade in little glass jars with me to the US from Europe as gifts for friends. I have found the following site on importing foods into the US  and would assume that marmelade falls under the condiments category, which should be admissible. However, I am wondering however if there is any limit to how much one is allowed to bring. Will there be any issues if, say, I bring 3 kilograms (6 lbs 10 oz)?   Also on related note, would they be suspiscious when they see many glass jars in my bag? Do I risk getting my bag searched or getting asked what the jars are? Is there anything I can do to avoid any such trouble? In Python, is there a concise way of comparing whether the contents of two text files are the same? I don't care what the differences are.  I just want to know whether the contents are different. How would I go about evaluating this integral? $$\int_0^{\infty}\frac{\ln(x^2+1)}{x^2+1}dx.$$ What I've tried so far: I tried a semicircular integral in the positive imaginary part of the complex plane, excluding the negative real axis, but had trouble calculating the residue at $z=i$ (perhaps there is a way of doing this that I don't know of). After that didn't work, I tried a rectangular box integral from $\epsilon$ to $R$, from $R$ to $R+i/2$, from $R+i/2$ to $-S+i/2$, from $-S+i/2$ to $-S+i\epsilon$, from $-S+i\epsilon$ to $-\epsilon+i\epsilon$ and finally a semicircle around the origin, radius $\epsilon$.   Any help would be appreciated. I have 1:50 wound current transformer and I don't have the datasheet. Could anybody help me to calculate the burden resistor?    Maximum current to be measured: 2A  Max output voltage to ADC: 5V If votes were cast on a post while it was community wiki, and a moderator removes wiki from that post, the votes should count towards reputation again. However, while this is visible in a reputation audit, , and the reputation score needs to be recalculated to reflect the change.  Can someone fix this? Why can't I travel onwards if my bag wasn't going to make the flight? I was flying KLM from the UK to the USA with a short layover in Amsterdam.  Because of delays in the UK, I almost missed my flight.  The flight attendant told me my bag wasn't going to make it, but if I walk fast, my gate is just two over.  When I got to the gate, they had already closed the doors, but the counter was opened - I mentioned that my bag was not going to make it, but that's okay.  She said, "hold on," got onto her walkie-talkie, and said,  "Yep, that's what I thought: you can't fly if your bag's not going."  I originally thought that it might be a security concern, but that doesn't really make any sense.  Why can't I travel if my luggage doesn't make the connection?  EDIT: I should clarify that I have no beef with KLM - they treated my overnight in Amsterdam professionally and helpfully; I'm just curious what the reason would be. creating model mesh and face explosions on Panda3d and Blender $X=(-\infty,0]\cup\left\{{1\over n}:n\in\mathbb N\right\}$ with subspace topology Then $X=(-\infty,0]\cup\left\{{1\over n}:n\in\mathbb N\right\}$ with subspace topology. Then   $0$ is an isolated point $(-2,0]$ is an open set $0$ is a limit point of the subset $\left\{{1\over n}:n\in\mathbb N\right\}$ $(-2,0)$ is open set.   $0$ is not an isolated point of $X$ as every nbd of $0$ contains a point of the form $1\over n$ so  $3$ is true and $1$ is false, $2$ is false as $0$ is not interior point, $4$ is true as every point is interior point. Am i right? PDF Editing in PHP? Does anyone know of a good method for editing PDFs in PHP? Preferably open-source/zero-license cost methods. :)  I am thinking along the lines of opening a PDF file, replacing text in the PDF and then writing out the modified version of the PDF?  I have programmatically created PDF files in the past using FPDF, but found it a little unwieldy at times. find spectrum matrix A Let $A = \left[ \begin{array}{*{20}{c}} 0&amp;b&amp;0&amp;0&amp;0&amp;0\\ c&amp;0&amp;b&amp;0&amp;0&amp;0\\ 0&amp;c&amp;0&amp;b&amp;0&amp;0\\ 0&amp;0&amp;c&amp;0&amp;b&amp;0\\ 0&amp;0&amp;0&amp;c&amp;0&amp;b\\ 0&amp;0&amp;0&amp;0&amp;c&amp;0 \end{array} \right]_{n \times n}$.  Why does matrix $A$ have spectrum $\sigma (A) = \left\{ 2\sqrt {bc} \cos \left(\frac{\pi k}{n + 1}\right):k = 1,2,\ldots,n \right\}$?