Say, I'm given a filename like libasound.so.2. Is there a way to query the package manager to correlate the filename with its corresponding package?  I'm interested to get answers for any package manager, but my primary focus is on apt and yum.
For example, on Debian or Ubuntu, which package has the /sbin/shutdown command in it? I want to read the source of that command (and possibly modify it to report notification on desktop) and I didn't know which package source to download.
Mac OS X 10.6 executable not found without full path I just installed Apache via MacPorts. It seems that my Mac was absolutely confused about which version of the Apache executables to run.  After moving the Apache executables that ship with the Mac to a directory that is not listed in the PATH variable, trying to run the httpd built by MacPorts fails even though the correct directory (/opt/local/apache2/bin) is listed in the PATH variable.  If I navigate to the directory /opt/local/apache2/bin and type the command httpd I still get the error message     -bash: httpd: command not found   If I type the command with the full path /opt/local/apache2/bin/httpd it works fine.  I've run the command alias to see if something was clashing but the only thing listed is:  alias wget='curl -O'   How do I find what is intercepting the command and preventing the executable being found in the directory, even when I'm inside the same directory?  By the way, the httpd file is executable:  -rwxr-xr-x  1 root      admin  442496  9 May  2012 httpd Old-style/Antique typesetting in LaTeX/TeX I have a raster height model and would like to calculate the horizontal geographic direction (north, east, etc. - orientation) of each cell, then calculate then the mean value of all these cells in one region (polygon). This is to get information about to what direction a vineyard is exposed to. How do I do this? How to create a GUID / UUID I'm trying to create globally-unique identifiers in JavaScript.  I'm not sure what routines are available on all browsers, how &quot;random&quot; and seeded the built-in random number generator is, etc. The GUID / UUID should be at least 32 characters and should stay in the ASCII range to avoid trouble when passing them around. I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc. I have this struct:  struct Map {     public int Size;      public Map ( int size )     {         this.Size = size;     }      public override string ToString ( )     {         return String.Format ( "Size: {0}", this.Size );     } }   When using array, it works:  Map [ ] arr = new Map [ 4 ] {     new Map(10),     new Map(20),     new Map(30),     new Map(40)};  arr [ 2 ].Size = 0;   But when using List, it doesn't compile:  List&lt;Map&gt; list = new List&lt;Map&gt; ( ) {     new Map(10),     new Map(20),     new Map(30),     new Map(40)};  list [ 2 ].Size = 0;   Why? How can I secure an Ethernet-over-power network? I just bought myself an Ethernet-over-power adapter, and plugged it in. It seems to be working great, but now I'm concerned that my neighbours may be able to access my network.  I live in a rowhome complex; is it possible they can access my network? If so, how can I secure it? I have to find an easy ring which this ring is isomorphic with.  I can prove that $5 = (2+i)(2-i) \in (2+i)$ but this doesn't help me further.  My book says the answer is $\mathbb {Z_5} $ Nonlinear function continuous but not bounded I would like an example of a map $f:H\rightarrow R$, where $H$ is a (infinite dimensional) Hilbert space, and $R$ is the real numbers, such that $f$ is continuous, but $f$ is not bounded on the close unit ball $\{ x\in H : \|x\| \leq 1\}$.  Actually, $H$ could be replaced by any Banach space (but not just a normed space-- that's too easy).  My motivation is that if $f$ is linear, this is impossible; but I have next to no intuition about non-linear functions.  Edit: Here's an example for $c_0$ which is even differentiable (disclaimer: I found it here: ).  Define $f:c_0\rightarrow F$ (where F is your field, real or complex) by $$ f(x) = \sum_{n=1}^\infty x_n^n \qquad (x=(x_n)). $$  You can estimate the sum by a geometric progression, so it does converge.  A bit of checking shows that f is Frechet differentible (so certainly continuous).  But $f(1,1,\cdots,1,0,\cdots)=n$ (if there are $n$ ones) so $f$ is not bounded on the closed unit ball.  What I don't immediately see is how to adapt this to $\ell^2$, say. It is perhaps a bit embarrassing that while doing higher-level math, I have forgot some more fundamental concepts. I would like to ask whether the square root of a number includes both the positive and the negative square roots.  I know that for an equation $x^2 = 9$, the solution is $x = \pm 3$. But if simply given $\sqrt{9}$, does one assume that to mean only the positive root? And when simply talking about the square root of a number in general, would one be referring to both roots or just the positive one, when neither is specified? Writing C# debug output to .txt file Smart Phone's camera socket I just want ask how the socket in the image is called?   I couldn't really find and the closer I could get is only Raspberry's module. When is a CDATA section necessary within a script tag? Are CDATA tags ever necessary in script tags and if so when?  In other words, when and where is this:  &lt;script type="text/javascript"&gt; //&lt;![CDATA[ ...code... //]]&gt; &lt;/script&gt;   preferable to this:  &lt;script type="text/javascript"&gt; ...code... &lt;/script&gt; Find a tangent to two quadratic bezier curves I have two quadratic bezier curves and I want to find whether they have a common tangent, and if so where it is.  If the first bezier is defined by points $(x_1, y_1)$, $(x_2, y_2)$, $(x_3, y_3)$, then the points on the curve have coordinates:  $x = (x_1 - 2x_2 + x_3)t^2 + (2x_2 - 2x_1)t + x_1 \\ y = (y_1 - 2y_2 + y_3)t^2 + (2y_2 - 2y_1)t + y_1$  Or to simplify things:  $x = A_xt^2 + B_xt + C_x \\ y = A_yt^2 + B_yt + C_y$  Likewise, I can get an equation for the second bezier:  $x = D_xs^2 + E_xs + F_x \\ y = D_ys^2 + E_ys + F_y$  The gradient of the tangent, $m$, to the first curve at $t$ is $\dfrac{2A_yt + B_y}{2A_xt + B_x}$,  which must be equal to the tangent to the second curve at $s$, $\dfrac{2D_ys + E_y}{2D_xs + E_x}$.  So $m = \dfrac{2A_yt + B_y}{2A_xt + B_x} = \dfrac{2D_ys + E_y}{2D_xs + E_x}$  Which I rearranged to get:  $t = \dfrac{2(B_yD_x - D_yB_x)s + B_yE_x - B_xE_y}{4(A_xD_y - A_yD_x)s + 2(A_xE_y - A_yE_x)}$  The gradient of the tangent is also equal to the difference in the y-coordinates over the difference in x-coordinates:  $m = \dfrac{D_ys^2 + E_ys + F_y - (A_yt^2 + B_yt + C_y)}{D_xs^2 + E_xs + F_x - (A_xt^2 + B_xt + C_x)}$  But that's as far as I got. The algebra looks too messy from here. Can anyone solve this, or is there a better approach? If I my motherboard is SATAI, can it use SATAII hard drives? Information about (simple) mask wearing (concerning covid19) is a complete mystery to me. On several official places it is not recommended for a person without symptoms to wear a mask. For example:    (time 0:20)  or here:    However no explanation is given - which makes me wonder (and even angry). I think everybody should wear a mask because:   Many persons feel ashamed wearing it, even those with symptoms. If everybody wears it, they do not feel ashamed and wear it. As far as I know, one is (wrt covid19) contagious before developing symptoms. So if everybody wears the mask also these people do.   The two above points act as a collective protection.   Simple mask certainly will lower "getting / spreading illness" probability. Of course the "holes" (in a simple mask) are too big to prevent completely virus to enter (or get out when coughing), but it lowers probability! Even if it lowers the transmission probability by e.g. 5%, it might be a lot. As a hypothetical example: it might reduce R0 from 1.02 to 0.97 and so stop the virus spread so fast.   The videos are full of self-contradiction. In the same video    time 0:50 the lady says I should wear a mask if I am in contact with an infected person... why if it is inefficient?  Question: What are reasons for not recommending wearing a mask? Why are my Elytra Wings are not activating? Prove inequality using Schwarz's Lemma I'm having trouble proving the following:  Let $f$ be analytic on $D(0,R)$ and suppose there is a real constant A for which $\operatorname{Re}f(z) &lt; A$ for all $z \in D(0,R)$. If $f(0) = 0$, show that $|f(z)| \leq \frac{2A|z|}{R-|z|}$.   I was told to first start by showing that $|\frac{f(z)}{2A-f(z)}| \leq 1$ and also use the following result, which I was able to prove:  Let $f$ be analytic on $D(0,R)$ and let $f(0)=0$. If $|f(z)| \leq M$ for all $z \in D(0,R)$, then $|f(z)| \leq M|z|/R$ for all $z\in D(0,R)$.  Thanks in advance! Windows 10 Asks me to Enter a Password I am using Windows 10 Pro x64 on my personal laptop on which I have a single user account with no password. For some reason however, Windows 10 has started asking me to enter a password whenever I boot up my machine. All I have to do is press the button without entering anything, and I log in, but I would much rather skip this step in favor of an automatic sign-in. Why has this started happening only now? What can I do to stop this behavior? How to copy some, but not all files? So, you can use the * as a wild card for all files when using cp within context of a directory.  Is there a way to copy all files except x file?