frequency distribution of data
Assessing approximate distribution of data based on a histogram
Say I have two strings,  String s1 = "AbBaCca"; String s2 = "bac";   I want to perform a check returning that s2 is contained within s1. I can do this with:  return s1.contains(s2);   I am pretty sure that contains() is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like:  return s1.toLowerCase().contains(s2.toLowerCase());   All this aside, is there another (possibly better) way to accomplish this without caring about case-sensitivity? I am trying to determine if the sum $\sum_{n=1}^\infty \frac{n+4^n}{n+6^n}$ is convergent or divergent.   In attempting to solve this problem I began by seeing if I could do the divergence test - in this case it is not helpful. The terms $4^n,6^n$ look like geometric series type terms but the $n$ in the numerator and denominator are troublesome. I first tried factoring $n$ out of the expression:  $$\sum_{n=1}^\infty \frac{n+4^n}{n+6^n} = \sum_{n=1}^\infty \frac{1+\frac{4^n}{n}}{1+\frac{6^n}{n}}$$  Next I tried comparing to the series $$\sum_{n=1}^\infty \frac{\frac{4^n}{n}}{\frac{6^n}{n}} = \sum_{n=1}^\infty \frac{{4^n}}{{6^n}} = \sum_{n=1}^\infty{\left(\frac{2}{3}\right)}^n$$  This is a convergent geometric series as $r = \frac{2}{3}\lt1$  now I reason that the series $\sum_{n=1}^\infty \frac{1+\frac{4^n}{n}}{1+\frac{6^n}{n}}$ is neither smaller not greater than the series $\sum_{n=1}^\infty{(\frac{2}{3})}^n$ Am I able to conclude anything in this case by a direct comparison test or can I only conclude that the first series is convergent if the second is greater than the first?  Thanks heat weighting: failed to find solution for one or more bones Here is the .  Picture:   It's nothing special but I cant figure out why I get problems rigging this mesh. It would be important and a great Help! Thanks for reading and I know there are a lot of guides answering this question but I tried all and it doesn't seem to work. What would happen if you put your hand in front of the 7 TeV beam at LHC? Some speculation here:   Is there a possibility it would pass 'undetected' through your hand, or is it certain death?  Can you conclude it to be vital, or only loose your hand?  Would it simply make a small cylindrical hole through your hand, or is there some sort of explosion-effect?  Assume your hand has a cross section of 50cm², and a thickness of 2cm, how much of the beam's energy would be transferred to your hand? Solve $z^2+|z|=0$ Solve for $z$: $$z^2+|z|=0$$ I found this question on my textbook but I unable to derive an answer to it as a modulus of $z$ is present. I am unable to take an approach please guide me ..thanks Proving the number of iterations in the Euclidean algorithm Let m and n be natural numbers. Suppose $ min(m, n) \leq 2^k $ for some natural number k. Show that the Euclidean algorithm needs at most $ 2k $ iterations to find the GCD of m and n. Basically I have no clue how to start this proof, I think I should be looking at the remainders and somehow showing that $ a_{k+2} \leq \frac{a_{k}}{2} $ where $a_{k}$ represents the kth remainder. Other than that, I have no clue about where to begin. How do I trust a self signed certificate? "Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"? Whenever I startup from the LinuxLive USB, and try to install Ubuntu 12.04, it only gives me two options instead of the usual 3 or 4. My options are "Replace Windows 7 with Ubuntu" and "Something Else". Whenever I go into "Something else", it looks extremely confusing. How do I install it side-by-side while using the "Something else" section? These are my partitions.   /dev/sda /dev/sda1 ntfs (104Mb, System Required Partition) /dev/sda2 ntfs (1000097Mb, Windows 7 Partition)   Or should I try reinstalling my installer on a CD rather than USB and maybe then it will have the "Install alongside" function? I want to cd into /var/named but it gives me a permission denied error, and when I want to use sudo to do this I am not permitted. What is the technical reason for this, and is it possible to do this some other way? How to get a list of applications installed in Ubuntu dash? In Gnome, we have applications grouped up based on their type (like - games, accessories, et al). But in Unity, we need to manually type in the Unity to get the App.  Is there any keyword/utility to display the applications in GUI?  Ubuntu Version : 14.04 Hardware : Dell Inspiron 3437 Determine which circuits are parallel and which are in series I need to find the Equivalent Resistance across A and B. The problem is, I don't know which one's are in series and which ones are in parallel. How do I identify which ones are parallel or series? How should tiny $p$-values be reported? (and why does R put a minimum on 2.22e-16?) For some tests in R, there is a lower limit on the  calculations of $2.22 \cdot 10^{-16}$. I'm not sure why it's this number, if there is a good reason for it or if it's just arbitrary. A lot of other stats packages just go to 0.0001, so this is a much higher level of precision. But I haven't seen too many papers reporting $p &lt; 2.22\cdot 10^{-16}$ or $p = 2.22\cdot 10^{-16}$.   Is it a common/best practice to report this computed value or is it more typical to report something else (like p &lt; 0.000000000000001)? Permission denied, are you root? I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal. How do I check if an element is hidden in jQuery? Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()?  How would you test if an element is visible or hidden? Installing Ubuntu on a SSD Going to install Ubuntu 10.10 on new intel x25M 80GB SSD. It will be fresh install. I have been googling for past few days and getting overwhelming articles/blogs/Q&amp;As. One particularly very useful being:     But with so many suggestions and differences of opinions (on different links) this simple OS install process seems to be daunting task to me and I really want to stick with Ubuntu (although have used for very short period of time).  Can someone help me by answering few questions (yes, they are repeated because I couldn't comprehend the answers elsewhere)   Which file system (ext2/3/4 or something else)? (consider SSD life) Can it be changed after installation? Should I partition the disk? (as we do in traditional HDD) for now, no plan of dual booting. Only Ubuntu will live on scarce space of 80GB SSD. I have 2 GB RAM, should i still allocate swap space (if I don't allocate swap space, can I still hibernate the machine)? will swap space impact SSD life? Should I consider putting additional 1GB RAM to avoid swap space? What is partition aligning? Is it needed to be done before installing the Ubuntu OS or can be done later?   Intended usage - heavy browsing, programming, regular video/music and some other non-CPU/RAM-intensive programs. Will keep big files in an external hard drive.  laptop config - 3yr old Vaio, Core2 Duo, 2GB RAM  More references:        (resizing/creating does not seem a simple process after look this) I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.  Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode:  boolean isWithinRange(Date testDate) {     return testDate &gt;= startDate &amp;&amp; testDate &lt;= endDate; }   Not sure if it's relevant, but the dates I'm pulling from the database have timestamps. Why is AES considered to be secure? The security of RSA is based on the integer factorization problem, which is a very well defined and understood mathematical problem. This problem must be solved in order to fundamentally break RSA.   What about AES (and others based on the same idea)? Why is it difficult to break? Is there any mathematical principle that ensures its security? I was using , implemented in scikit-learn, for my research work. But I have no good understanding of this.   Can anyone please give a simple, good explanation of one class SVM? Using (or not) the word "to" in a sentence ending with "be able" CAST and IsNumeric Why would the following query return "Error converting data type varchar to bigint"?  Doesn't IsNumeric make the CAST safe?  I've tried every numeric datatype in the cast and get the same "Error converting..." error.  I don't believe the size of the resulting number is a problem because overflow is a different error.  The interesting thing is, in management studio, the results actually show up in the results pane for a split second before the error comes back.  SELECT CAST(myVarcharColumn AS bigint)   FROM myTable   WHERE IsNumeric(myVarcharColumn) = 1 AND myVarcharColumn IS NOT NULL   GROUP BY myVarcharColumn   Any thoughts?