Realtek Network/Wireless Driver not detected
Cannot see my wifi [10ec:d723] when trying Ubuntu
Get the newest file from directory structure year/month/date/time I store backups of databases in a directory structure  year/month/day/time/backup_name  an example would be   basics_mini/2012/11/05/012232/RATIONAL.0.db2inst1.NODE0000.20110505004037.001 basics_mini/2012/11/06/012251/RATIONAL.0.db2inst1.NODE0000.20110505003930.001  note that timestamp from the backup file cannot be used. Before the automation testing starts the server time is set to 5.5.2011  So the question is how I can get the latest file if I pass the "base directory" (basics_mini) to some function that I am going to code.  I need to restore the newest database. I do that in php but I wonder if there is a simple shell scripting solution. $n$ Lines in the Plane How am I to "[u]se induction to show that $n$ straight lines in the plane divide the plane into $\frac{n^2+n+2}{2}$ regions"? It is assumed here that no two lines are parallel and that no three lines have a common point. Further, this is not a non-Euclidean problem, but I wouldn't mind a discussion on the non-Euclidean nature of the problem.  I was thinking it might be easier to show using the unit sphere.    A GOOD REFERENCE I FOUND THAT WILL BE USEFUL TO ANYONE COMING ACROSS THIS PROBLEM IS Concrete Mathematics, Graham, Knuth, Patashnik pp. 4–8. Show $a^p \equiv a \mod 2p$ I've stucked at the following problem:  Let $p$ be an odd prime number. Show that for all $a\in\mathbb{Z}$  $$a^p \equiv a\ (\mathrm{mod}\ 2p)$$  How can I prove it? I know within Fermat's theorem that $a^p \equiv a\ \mathrm{mod}\ p$. Evaluation of Differentiation and Integration I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom of the line. Any suggestions would be wonderful. How do I find out which DOM element has the focus? In an extract I am dealing with, I have 2 datetime columns. One column stores the dates and another the times as shown.  How can I query the table to combine these two fields into 1 column of type datetime?  Dates  2009-03-12 00:00:00.000 2009-03-26 00:00:00.000 2009-03-26 00:00:00.000   Times  1899-12-30 12:30:00.000 1899-12-30 10:00:00.000 1899-12-30 10:00:00.000 python ImportError: No module named primes How to render text pixel-perfectly with subpixel antialising with Illustrator? How to call shell commands from Ruby How do I call shell commands from inside of a Ruby program? How do I then get output from these commands back into Ruby? How can you move a document with its version history to a new library? Here's the scenario:  2 document libraries Both contain multiple documents The documents have multiple versions  When I copy a document from library A to Library B using the Content and Structure tool from Site Settings, my versions do not carry over. I'm trying to merge the two document libraries into one, but I want to retain the versions. Do you know of a way to complete this without third party tools or custom code? I've heard suggestions of using Explorer View copy and paste, SharePoint Designer and List Templates, but I'm not sure any of those will carry version info. Modern solution For modern SharePoint experiences, use Move To. Update 4/24/2018: There's a new solution in Office 365. You can now select a file or group of files in the modern experience in OneDrive or SharePoint and select Move to. A file or group of files moved this way will retain version history. Update 6/6/2021: As @KJH mentioned in a comment, you may not see the modern experience unless you . Also, there's more detail now in the Microsoft article . Power set of a finite set is finite proof, no cardinality of power set Prove that $\mathcal{P}(A)$ of a finite set $A$ is finite.      I need to prove this without using the cardinality of $\mathcal{P}(A)$.  This is my attempt, which is by induction: $\newcommand{\lbrac}[1]{\left(#1\right)}$ $\newcommand{\sett}[1]{\left\{#1\right\}}$ $\newcommand{\pset}[1]{\mathcal{P}\lbrac{#1}}$ Proof by induction over cardinality.  If $A = \varnothing$, then $\pset{A} = \sett{\varnothing}$, which is finite.  Suppose that for a set $A$ of cardinality $n$, $\pset{A}$ is finite.  Let $A$ be a set of cardinality $n+1$. $A$ is not empty, since it is of cardinality $n+1 &gt; 0$, and therefore pick some $x\in A$. It follows that $A = \lbrac{A-\sett{x}}\cup\sett{x}$. We claim that $$ \pset{A} = \pset{\lbrac{A - \sett{x}}\cup\sett{x}} = \pset{A - \sett{x}}\cup\sett{C | C\in\pset{A}\wedge x\in C} $$ Suppose $B\in\pset{A} = \pset{\lbrac{A-\sett{x}}\cup{x}}$. Then either $x\in B$ or $x\not\in B$. If $x\in B$, then $x\in B \wedge B\in\pset{A}\Rightarrow B\in C$. If $x\not\in B$ then $B\subseteq A - \sett{x}$.  \newline Either way, $B\in \pset{A - \sett{x}}\cup\sett{C | C\in\pset{A}\wedge x\in C}\Rightarrow \pset{A}\subseteq\pset{A - \sett{x}}\cup\sett{C | C\in\pset{A}\wedge x\in C}$.  Suppose $B\in\pset{A - \sett{x}}\cup\sett{C | C\in\pset{A}\wedge x\in C}$. Then either $B\in\pset{A-\sett{x}}$ or $B\in\sett{C | C\in\pset{A}\wedge x\in C}$ (or both).  If $B\in\pset{A-\sett{x}}$, then $B\subseteq(A-\sett{x})\cup\sett{x} = A$, and if $B\in\sett{C | C\in\pset{A}\wedge x\in C}$, then by definition, $B\subseteq A$. Either way, we get that $B\in\pset{A} \Rightarrow \pset{A - \sett{x}}\cup\sett{C | C\in\pset{A}\wedge x\in C} \subseteq \pset{A}$.  Since we have shown both sets are contained in each other, they are equal.  My goal is to now prove that $\sett{C|C\in\pset{A} \wedge x\in C}$ is finite. I didn't manage to do so without non rigorous claims that could also "prove" the main question.  If this set is finite, and by induction hypothesis $\pset{A - \sett{x}}$ is finite, I'll be done.  Any ideas on how to prove $\sett{C|C\in\pset{A} \wedge x\in C}$ is finite? I would like to show the author names using \citet but I get just the reference number. Here is a minimal code:  \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{natbib}  \begin{document}   The author \citet{toschi09} has shown that ..  \bibliographystyle{plain} \bibliography{foo}  \end{document}   And here is foo.bib  @article{toschi09, author = {Toschi, F. and Bodenschatz, E.}, title = {Lagrangian Properties of Particles in Turbulence}, journal = {Annual Review of Fluid Mechanics}, volume = {41}, number = {1}, pages = {375-404}, year = {2009},  }   What I get is:     The author (author?) [1] has shown that ..   Any help will be more than welcome, thank you! I've got a few macros that perform floating point lookups and calculations for me and I'm interesting in plotting their results. They're the kind of calculation which requires if/else, so they can't be easily written as a simple math formula for \addplot.  Thanks to a previous question (), I now know to use \pgfmathdeclarefunction, but after trying it I've found that addplot seems to prepend a "0Y" or "1Y" to values before passing them as function arguments. My external macros aren't prepared to handle this extra text, and I'm not sure why it's there.   In the course of testing things out, I've also found that calling a function defined with pgfmathdeclarefunction can also change the positioning of the graph...  \documentclass{article}  \usepackage{xparse}  \usepackage{pgfplots} \pgfplotsset{compat=1.10}  \begin{document}  % Example of a macro which does math outside of pgf     \ExplSyntaxOn     \DeclareExpandableDocumentCommand \doubleMacro { m }%      {%       \fp_eval:n { #1*2 }%Math performed by a package other than pgfplots      }%     \ExplSyntaxOff    %Demo: macro does work in regular text \doubleMacro{1.1}.  % Defining custom pgf functions for plotting      \pgfmathdeclarefunction{mathDoubleMacro}{1}{%         \pgfmathparse{\doubleMacro{#1}} %Calls macro which performs math done by another package     }      \pgfmathdeclarefunction{mathDoublePgf}{1}{%         \pgfmathparse{#1*2} %Uses pgf to do the same thing as an external macro could     }  %Generic plot with function given directly to \addplot \begin{center} \begin{tikzpicture}     \begin{axis}         \addplot[domain=0:1] {2*x};     \end{axis} \end{tikzpicture} \end{center}  %Plot using first macro: complains about 'Unknown fp word Y.' \begin{center} \begin{tikzpicture}     \begin{axis}         %\addplot[domain=0:1] {mathDoubleMacro(x)};%Commented out because it gives problems     \end{axis} \end{tikzpicture} \end{center}  %Plot using second macro: works, but graph is displaced to the right of the expected position \begin{center} \begin{tikzpicture}     \begin{axis}         \addplot[domain=0:1] {mathDoublePgf(x)};     \end{axis} \end{tikzpicture} \end{center}  \end{document}   If I define mathDoubleMacro as calling a non-existent macro, then the errors show which x-values which the addplot is trying to evaluate y at:    0Y0.0e0  1Y4.1666e-2 1Y8.3332e-2 ...  1Y9.9998401e-1   What are these nY's all about, and why does \addplot[domain=0:1] {mathDoublePgf(x)} give a graph with different positioning? Prove that if $d \mid n \in \mathbb{N}$, then $\varphi(d) \mid \varphi(n)$. I want to prove that if $d \mid n \in \mathbb{N}$, then $\varphi(d) \mid \varphi(n)$.  It's given that $d \mid n$, so we know that $n = dm$, for some $m \in \mathbb{Z}$. Now, I want to show that $\varphi(d) \mid \varphi(n)$, i.e. that $\varphi(n) = k\varphi(d)$, for some $k \in \mathbb{Z}$. Drawing a blank of where to go from here. Best books for mathematical background? What are the best textbooks to read for the mathematical background you need for modern physics, such as, string theory?  Some subjects off the top of my head that probably need covering:   Differential geometry, Manifolds, etc. Lie groups, Lie algebras and their representation theory. Algebraic topology. How to export/backup Notes in macOS in one go I have a lot of Notes on my machine which I don't want to loose. It's not logical to export them one by one. Is there any way to export them in one go, which would make me either use them on my new   I learned that I could backup ~/Library/Group Containers/group.com.apple.notes but I am not really sure if this would be helpful. This is what I get as for this directory.  $ du -sh ./* 4.0K    ./Library 256K    ./NoteStore.sqlite  32K    ./NoteStore.sqlite-shm 3.0M    ./NoteStore.sqlite-wal   I am running macOS Mojave. tar compression without directory structure Same e-mail user, different address? I was wondering why using foo.bar@gmail.com works but not foo.bar@outlook.com.  In Gmail, foo.bar@gmail.com and foobar@gmail.com (and any combination of periods in the username) is equivalent.  Is this a hidden feature in Gmail? Given that $x^y=y^x$, what could $x$ and $y$ be? It's not too difficult to figure out that $x$ and $y$ can both be 1, and also $x$ can be 2 and $y$ can be 4 (and vice versa). But I can't rule out if there are other solutions. Does it have anything to do with inverse functions? Is there a way to see the solutions by graphing, or algebraically? This is a lake of approximately 13 ha with 81 sampled depth points in about 10 transect lines:    Previously in ARCgis with a 50 ha lake and about a 100 depth sampling points, I got decent output with the TopotoRaster tool. However, no such exact equivalent seems to exist with QGIS or open source software.  In QGIS, I got the interpolated raster below, using the TIN method in the Raster Interpolation plugin. However, this seemed to be a lucky outcome, when I tried to repeat, I got different results (unsatisfactory) in spite of not really varying any parameter.    These are more urban (constructed) tanks than lakes, therefore, they are fairly regular in their bed profile, hence the low point sampling density. Some articles seemed to suggest Inverse Distance Weighting (IDW) as the most suitable technique, yet I seemed to get the worst results with that (possibly owing to low point density).  Are there any heuristics which can be employed here considering the size of the lake, its regular profile and the point sampling density to arrive at which interpolation method is apt? (between Kriging, IDW, Bilinear, Cubic convolution, TIN or spline)  Or is it always a bit of trial and error?