Variation of a Maximum_Subarray_Problem
maximum subarray of an array with integers
What's the cleanest, most effective way to validate decimal numbers in JavaScript?  Bonus points for:   Clarity. Solution should be clean and simple. Cross-platform.   Test cases:  01. IsNumeric('-1')      =&gt; true 02. IsNumeric('-1.5')    =&gt; true 03. IsNumeric('0')       =&gt; true 04. IsNumeric('0.42')    =&gt; true 05. IsNumeric('.42')     =&gt; true 06. IsNumeric('99,999')  =&gt; false 07. IsNumeric('0x89f')   =&gt; false 08. IsNumeric('#abcdef') =&gt; false 09. IsNumeric('1.2.3')   =&gt; false 10. IsNumeric('')        =&gt; false 11. IsNumeric('blah')    =&gt; false I need a CD or USB stick, that will install Ubuntu on a completely headless machine. Stick CD in and restart, no keyboard or screen should be involved.  There are a few obstacles:   The language selection menu when you first boot the CD. The fact that the CD menu waits. The installer's asking questions during installation. one or more [plural or singular]? Should I use singular or plural after one or more?  Example:      One or more [signal/signals] The binomial sum   $$s_n=\binom{n+1}{0}+\binom{n}{1}+\binom{n-1}{2}+\cdots$$   satisfies the Fibonacci relation.   I failed to prove that $\binom{n-k+1}{k}=\binom{n-k}{k}+\binom{n-k-1}{k}$... Any hints or suggestions? Adjusting font size with TikZ picture Taking from the PGF manual,  \begin{tikzpicture}   \draw [help lines] (0,0) grid (3,3);   \coordinate (a) at (rnd,rnd);   \coordinate (b) at (3-rnd,3-rnd);   \draw (a) -- (b);   \node (c) at (1,2) {x};   \draw let \p1 = ($ (a)!(c)!(b) - (c) $),             \n1 = {veclen(\x1,\y1)}         in circle [at=(c), radius=\n1]; \end{tikzpicture}   I'd like to increase the size of x. The problem is that I have multiple circles in the same diagram. Some of them require a larger sized font, while others are okay at default. How do I do this? I will like to know some of the android emulators that work really well with Ubuntu 11.10 and above. I want to try 'whatsapp' on Ubuntu through an android emulator. Thanks in advance Suppose Player 1 has a Dragon on the table and  in hand, while Player 2 has two Spiders on the table.  Player 1 chooses to attack with the Dragon and Player 2 chooses to block with one of the Spiders.  Before combat damage is to be dealt, Player 1 uses Unsummon on the blocking Spider.    Does Player 2 take any life damage from the attacking Dragon? In the ,  can monitor some things like the total traffic on the site. However, it seems to be broken at the moment, all figures are almost zero. This is how it looks for Meta Stack Exchange (other sites show similar pictures): ToolStrip sometimes not responding to a mouse click Control Android with broken screen from PC Voldemort couldn't kill Harry as long as he called the Dursleys home. Why didn't he just murder the Dursleys? This would prevent Harry from being able to live there. To be truly standards-compliant, must all functions in C (except for main) have a prototype, even if they are only used after their definition in the same translation unit? How does a Windows antivirus hook into the file access process? [Firmware Bug]: TSC_DEADLINE disabled due to Errata - what should I do about this? Prove the map sending a matrix to it's inverse is continuous. Currently the Flag feature, on answers, offers five choices. Three of them request moderator attention:   Not an answer Very low quality "Other"   In the spirit of reducing the burden on moderators, and distributing that work a little bit more evenly around the community, I'm proposing a couple of small tweaks to the way answers are flagged.   Eliminate  as an option. Very low quality posts that are, nevertheless, genuine answers do not need moderator attention - they should just be downvoted. (Further justification for this is  and ) Replace  with four specific options:   Should have been a comment - this is not an answer, it is a comment on the question or on another answer. Flagger would then be required to choose which post it should have been a comment on. Should have been an edit - this is not an answer, it is additional information about the question from the original asker. Only appears if the answer is from the same user as the question. Me-too! non-answer - this answer consists of nothing more than "Me too!" or "Did anyone find the answer?" Conversational and irrelevant - this is not an answer, just a random conversation or rant, or meaningless typing that should be deleted    This makes life much easier on the moderators, because now the moderator is not expected to clean up after the bad answer, they merely have to peek at what happened and click "Agree" or "Disagree". If they agree:   Should have been a comment converts the answer to a comment Should have been an edit converts the answer to an edit and it is appended to the question Me-too! non-answer deletes the answer and leaves a form-message for the poster explaining that we don't like "Me too", but they should upvote the question if they think it's important or valuable Conversational and irrelevant - deletes the answer and leaves a form-message for the poster explaining that we are a Q&amp;A site, etc. etc.   In fact, if enough people with high enough flag weight or reputation (FORMULA TBD) apply the same flag, the moderation happens automatically, without moderator involvement.  To prevent the moderation queue from filling up with problems that might cure themselves, these flags don't even go in the moderator queue until some period of time (TBD) has passed.  Thoughts? What is the best filesystem to use cross-platform (Linux, Windows, OS X) which supports disk sizes of at least 2TB and file sizes >4GB?  I'm planning to use it on a USB drive on different computers.  Are there any filesystems that can be used on all the named OSes without installing additional drivers? How to calculate information included in R's confusion matrix I want know the formulas for the information highlighted in the confusion matrix in the picture below: Computer doesn't boot up, shows PXE error and/or "operating system not found", "no bootable device", "insert boot media", or other similar error How do I write this matrix as a product of elementary row matrices. \begin{pmatrix}3&amp;-1&amp;3\\ -2&amp;3&amp;2\\ 1&amp;-3&amp;1\end{pmatrix}  Any help would be greatly appreciated!  I have done this before with other matrices, yet this one is bringing me trouble. I have spent too long on this as I believe it should be easy and yet my answers are always wrong. What Do you do after you get the identity matrix?  What I am doing: So I first row reduce it to the identity matrix:   I first switch $R_1$ and $R_3$ Then $R_3-3R_1$ then $R_2+2R_1$ then $-1/3R_2$ then $R_3-8R_2$ then $R_2-2R_1$ then $3/32R_3$ then $R_1+3R_3$ and finally $R_2+4/3R_3$   I know there is many possible ways to get this too the identity matrix but this worked for me. I then apply all of the above steps to identity matrices and multiply them together to check my work but it never works out to be the original matrix so I am forced to believe something is wrong.