When I try to install a .deb file it takes me to Ubuntu Software Center and doesn't install
How do I install a .deb file via the command line?
Probability of first actor winning a "first to roll seven with two dice" contest? Recreate plot when data file changes Is it possible to use the TikZ/external library and have pgfplots recreate a figure when a data file that is plotted changes? Say I have something like the following:  file.tex:  \documentclass{article}  \usepackage{tikz,pgfplots} \usetikzlibrary{external} \pgfplotsset{compat=newest} \tikzexternalize \newcommand{\figFilename}{}  \begin{document}   \begin{figure}[t]     \centering     \renewcommand{\figFilename}{thePlot}     \tikzpicturedependsonfile{\figFilename.tikz}     \tikzsetnextfilename{\figFilename}     \input{\figFilename.tikz}     \caption{The caption.}   \end{figure} \end{document}   thePlot.tikz:  \begin{tikzpicture}   \begin{axis}[     xlabel={$x$},     ylabel={$y$},]     \addplot+[only marks,mark=x]       table[x=x,y=y] {data.dat};   \end{axis} \end{tikzpicture}%   data.dat:  x y 0 20.44 1 20.06 2 19.76 3 19.54 4 19.40 5 19.34   If I change thePlot.tikz, the external library will detect that the figure is no longer up-to-date and recreate it. Is it possible to have the same effect when any of the plotted data files changes as well? I tried something along the lines of \tikzpicturedependsonfile{data.dat}, and it doesn't work. That wouldn't be an ideal solution anyway, as most times I use many data files in each plot and listing all dependent files manually would be more pain than gain.  So is there an easy, automated way for the external library to check all data files included in a tikzpicture and recreate the plot if at least one of them has changed? Solutions for INSERT OR UPDATE on SQL Server Assume a table structure of MyTable(KEY, datafield1, datafield2...).  Often I want to either update an existing record, or insert a new record if it doesn't exist.  Essentially:  IF (key exists)   run update command ELSE   run insert command   What's the best performing way to write this? How to construct semi direct products between Q and H There is a semi direct product if you go $\theta: Q \rightarrow Aut(H)$.  $H = C_{17}, Q = C_2$.  $Aut(H)\cong C_{16}$.  From here, how do I construct the semi direct products?   I said, in $C_{16}$, there are two elements of order that divide $2$, which are $1$ and $2$. Therefore there are two semi direct products. Also $17 \times 2 = 34$ tells me that in both semi direct products there will be $34$ elements.  How do I construct the semi direct products from here though? Which of those functions are PRFs? A "fast" way for  computing $ \prod \limits_{i=1}^{45}(1+\tan i^\circ) $? Which  is the fastest paper-pencil approach to compute the product $$ \prod  \limits_{i=1}^{45}(1+\tan i^\circ) $$ What would be the effects of warp collisions? Triggered by a  I was wondering what actually would happen to a ship (e.g. the Enterprise-D NCC-1701) that collides with a stationary object such as a) another ship of a similar configuration or b) a gigantic structure like a moon or even a planet.  We know the deflector is supposed to keep interstellar dust (not to be confused with ordinary dust, which is a different thing) from ripping large holes in the ship.  At first, one thinks "Obvious. ." But does it really? Would the deflector manage to actually deflect both masses? If not, where is the threshold of what a deflector can handle? Would the ship maybe tunnel right through the object, because of wibbly-wobbly space wobblification by the warp field? It does do some weird things to the space right in front and behind the vessel.  Important remark: We cannot approach this with what we know about physics at all. For all intents and purposes, both ships must measure the other ship travelling faster than light, resulting in it having infinite (or rather undefined) mass and by extension momentum. If we start with that reasoning any ship jumping to warp would suck in the entire universe (it takes a moment, but think about it). So, obviously we cannot apply our intuition (even our relativistic intuition) here. Does anyone know why typedefs of class names don't work like class names for the friend declaration?  class A { public: };  class B : public A { public:    typedef A SUPERCLASS; };  typedef A X;  class C { public:    friend class A;             // OK    friend class X;             // fails    friend class B::SUPERCLASS; // fails }; List files sorted by the number of lines they contain AES Mix Column Transformation Section 3.4.3 "The MixColumns Step"(page 39) of , it states     The columns of the state are considered as polynomials over   $\operatorname{GF}(2^8)$ and multiplied modulo $x^4 + 1$ with a fixed polynomial $c(x)$.      The polynomial $c(x)$ is given by   $c(x) = \mathtt{03} \cdot x^3 + \mathtt{01} \cdot x^2 + \mathtt{01} \cdot x + \mathtt{02}$      Let $b(x) \equiv c(x) \cdot a(x) \pmod{x^4 + 1}$. Then         How this polynomial multiplication modulo $x^4+1$ is converted to Matrix Multiplication? I have a set of surround speakers, connected to my iMac through the headphone jack. I use a switch to control what goes to the speaker set (iMac, iPod, or MacBook/aux). So that I don't have to be constantly unplugging and replugging, I leave the audio cable in the iMac's audio port. This means that when I'm listening to something from another source, I can't hear anything from the iMac unless I unplug the cable.  Is there a way to force sound to come out of the internal speakers, even if there's something in the audio out port? Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04 I am not able to install LanguageTool extension for LibreOffice. Getting exception when I try to install it.   p.s. Somebody says that the solution is installing openoffice.org-java-common package but Ubuntu 14.04 does not have this package in its repository.  System details:  OS: Ubuntu 14.04 LTS  LibreOffice: 4.2 (4.2.3.3)  LanguageTool: 2.5  Java: Oracle JDK 1.8.0_05     Exception message: Evaluating and proving $\lim\limits_{x\to\infty}\frac{\sin x}x$ Backup whole OS Can an observer B move in such a way that his clock will run faster than that of a fixed observer A? My understanding of Special and General Relativity comes from books which attempt to explain them to non-experts in these fields.   Let A and B be observers, which at some time t(0), are together at some location P fixed to the earth's surface. A and B are provided with "clocks", which at time t(0), are identical lumps of the same radioactive element-that has a very long half-life. A and A's "clock" remain fixed to the earth's surface. B and B's "clock" leave A and stay together, but eventually return to A after some interval of time T (as measured by A's "clock"). If, during this time T, B's velocity relative to A is sufficiently close to the velocity of light or B remains close to a sufficiently massive body, it seems that time can "pass more slowly" for B than for A. So that when B rejoins A, B's "clock" will contain more of the radioactive element than A's "clock"   My question is: Are there any scenarios that B together with B"s "clock" can undergo (during the time T) which will cause time to "pass more quickly" for B than for A? So that when B rejoins A, B's "clock" will contain less of the radioactive element than A's "clock". If there are no such scenarios, is there any fact or law in Relativity theory which rules them out? Usage of the word "meet" in the context of a phone call/video conference Infinite series $\sum _{n=2}^{\infty } \frac{1}{n \log (n)}$ Recently, I encountered a problem about infinite series. So my question is how to know whether the infinite series $\sum _{n=2}^{\infty } \frac{1}{n \log (n)}$ is convergent? How much electronics and other valuables can I bring duty-free when going to India? I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer?  What all I can take?   One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport.  Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff? I'm sure everyone is familiar with the Ship of Theseus paradox, basically "If you replace parts of a ship over time until none of the original ship is left, is the end product still the same ship?"  I just read pop philosophy books, so spare me if this is an idiotic question, but could this be applied to the Brain and consciousness? If you were the take individual atoms/neurons, and somehow replace them with its exact copy one at a time, how would the person experience that?   I don't think there would be an interruption of consciousness, but at the end it's a completely separate (but identical) brain from the one you started with. Exactly as if you had just cloned the whole thing, right? But without interruption.  What interests me is the gradual transition of consciousness here, is it possible to know how that would  work?  I think I remember hearing people argue similarly for both the existence of a transcendent soul and also AI consciousness. And the only other discussion I found of this was on a flat earth forum, so I don't know what to make of that.   I hope I articulated my question clearly. Thank you! How can I install Ubuntu 13.04 + without USB, CD, DVD or Net? (hard drive only) I have an older i386 Sony Vaio desktop PC where the BIOS only allows boot from floppy, CD or very specific USB device types, none of which seem to recognize USB flash drives for some reason. Floppy is not an option because the drive no longer works and I have no media for it if it did. I've tried assorted CD and DVD drives, the CD drives all give read errors and DVD drives all say "unsupported emulation".  My next possible option that I would like to try, is to install the hard drive into another machine as a second HD and figure out a way to format it and save an Ubuntu installation to run from that HD once it is moved back into the target machine. IS this possible and if so, how would I go about doing so? The currently running machine uses Windows XP.