In my subs, I usually perform several forms of validation before proceeding with the sub. Is it a bad habit to exit the sub? For example:  Private Sub mySub()      if Not Validated() then         exit sub     end if     'do stuff End sub   Would it be better to enclose the entire body in an If-Then statement?   private sub mySub()     if validated then        'do stuff      end if end sub
Are there good reasons why it's a better practice to have only one return statement in a function?   Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?
'find' utility does not output all files when using wildcards Running:  $find . -name *.exe   gives:  ./MakeItSo_1.2.2/MakeItSo_1.2.2/MakeItSo.exe ./MakeItSo.exe   but those are not the only exe files in the directory. For example, running  $find . -name ATLTester.exe   gives:  ./Debug/ATLDmoVexaTester.exe How to uncover a table column wise in Latex beamer I have a table with 7 columns and want to show the first 5 at once, and then  the 6th and 7th on consecutive slides.  This is the code I have for now:  \begin{frame}{Наслов}     \begin{itemize}         \item Ставка.     \end{itemize}         \begin{tabular}{ccccc&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide}c}             $p_1$ &amp; $p_2$ &amp; $\ldots$ &amp; $p_{9}$ &amp; $p_{10}$ &amp; $W$  &amp; $D$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $1$     &amp; $w_1$&amp; $d_1$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $1$      &amp; $0$     &amp; $w_2$&amp; $d_2$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_3$&amp; $d_3$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_4$&amp; $d_4$\\             $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$ &amp; $\vdots$\\             $0$   &amp; $0$   &amp; $\ldots$ &amp; $0$      &amp; $1$     &amp; $w_{1023}$&amp; $d_{1023}$\\             $1$   &amp; $1$   &amp; $\ldots$ &amp; $0$      &amp; $0$     &amp; $w_{1024}$&amp; $d_{1024}$         \end{tabular} \end{frame}   This produces 2 slides: the first one with p1, p2, ..., p9, p10 and D columns, and the second with W added, while I want them to appear in the following order:   1st slide: p1, p2, ..., p9, p10  2nd slide: p1, p2, ..., p9, p10, W 3rd slide: p1, p2, ..., p9, p10, W, D   I looked in the manual and found this example:  \begin{frame}     \begin{tabular}{l!{\vrule}c&lt;{\onslide&lt;2-&gt;}c&lt;{\onslide&lt;3-&gt;}c&lt;{\onslide&lt;4-&gt;}c&lt;{\onslide}c}     Class &amp; A &amp; B &amp; C &amp; D \\     217     X &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\     Y &amp; 3 &amp; 4 &amp; 5 &amp; 6 \\     Z &amp; 5 &amp; 6 &amp; 7 &amp; 8     \end{tabular} \end{frame}   which does what is supposed to. However, I don't seem to be able to apply its logic to my problem. :( Is anyone willing to help?   P.S. What are the meanings of &lt; and ! in columns specification? UTF-8 all the way through I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2. Finding a conformal map from the intersection of two disks to the unit disk. Disk space usage doesn't add up with df & du How to find out why "context is incorrect"? bordermatrix with blocks I need to write a complicated matrix, that has a structure as in the attached picture. Assume that $A$ is an $n\times n$  real matrix, i.e. $$A^T=-A.$$  Since $\det(A-\lambda I)=\det(A^T-\lambda I)$, $A$ and $A^T$ have the same eigenvalues. On the other hand, $A^T$ and $-A$ also have the same eigenvalues. Thus if $\lambda$ is an eigenvalue of $A$, so is $-\lambda$. If $n$ is odd, $\lambda = 0 $ is an eigenvalue.  A curious search in Google returns  the nonzero eigenvalues of $A$ are all pure imaginary and thus are of the form $iλ_1, −iλ_1, iλ_2, −iλ_2,$ … where each of the $λ_k$ are real.   Here is my question:     How can I prove the fact that "the nonzero eigenvalues of $A$ are all pure imaginary"? Use Complete Induction of set theory to prove $\frac{1}{\sqrt{1}} + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + ... + \frac{1}{\sqrt{n}} > \sqrt{n}$. How can I install applications like Google Chrome on Ubuntu?  Are there any commands to install an application?    Index of answers: How to clip an Openlayers OSM Background to a Vector Boundary? Why isn't Force Speed used more often? Is there a power saving application similar to Jupiter? "some " vs. "some of " Some of rules can be the same for most websites.   vs.     Some rules can be the same for most websites.   I think I want to say     Some of these rules can be the same for most websites. Is a particular sequence required for detailed replicator requests?    To elaborate, is there a reason Captain Picard orders his tea, "Tea. Earl Grey. Hot." aka "Noun. Descriptor. Descriptor." and not "Descriptor. Descriptor. Noun." or "Descriptor. Noun. Descriptor." (in the event he forgot a descriptor)?  Would ordering it as "Hot. Earl Grey. Tea." or even the non-statement "Hot Earl Grey tea." produce a warm (hot), smoky (gray-ish) gas with the odor of tea?  I assume his ordering sequence is an acquired background affectation, but I'd like confirmation.  Note: I'm using "descriptor" instead of "adjective" to avoid minutia/debate about classification. Prove by induction $\sqrt{1}+\sqrt{2}+\sqrt{3}+...+\sqrt{n}\ge\frac{2}{3}n\sqrt{n}$ for all positive integers Assumption: $\sqrt{1}+\sqrt{2}+\sqrt{3}+...+\sqrt{k}\ge\frac{2}{3}k\sqrt{k}$   Prove true for $n=k+1$ $$\sqrt{1}+\sqrt{2}+\sqrt{3}+...+\sqrt{k}+\sqrt{k+1}\ge\frac{2}{3}(k+1)\sqrt{k+1}$$  I'm upto :$$\sqrt{1}+\sqrt{2}+\sqrt{3}+...+\sqrt{k}+\sqrt{k+1}\ge\frac{2}{3}k\sqrt{k}+\sqrt{k+1}$$after which I'm stuck. Clone a hard disk content to another hard disk I subjected my hard disk (C drive) to a disk scan and found that there was 12 KB of bad sectors. I now consider that disk to be unreliable, and am looking forward to transferring all my data to another file.  The problem is, I want to clone the complete drive (including the apps, OSes, files and everything, verbatim) to another drive. I know there would be some crazy software activation issues, like Windows Not Genuine problem and so on. But I wonder whether is there a tool powerful enough to do the cloning and at the same time maintain the  OS and apps? When will data.SE get updated data? promised that data.SE would &quot;soon&quot; get live data:     I realize it's a long weekend, but given that data.SE is now over 2 months out of date, it would be nice if this was finally rolled out. Will Ubuntu get patched against Meltdown and Spectre? The following is a canonical post that attempts to cover a broad number of Meltdown and Spectre questions.  It is being maintained by Thomas Ward who is in contact with the Security and Kernel teams on this matter for other reasons as well.   I recently read about the  vulnerabilities.  I was wondering, will Ubuntu be patching against the vulnerabilities?  And is there an ETA on a fix? How can we play split screen in the XBOX 360 version of Minecraft? My little brother and I want to play Minecraft together on the Xbox 360, and we heard there was a split screen option. We've looked inside the options menu but weren't able to find it. Does the game really have a split screen option, and if so, how do we enable it?