Distribution of number of Bernoulli trials before some large number of sucess
Distribution of number of Bernoulli trials to a given number of successes
Microsoft.Office.Interop.Excel doesn't work on 64 bit Variations in the pronunciation of "the" Although there are rather simple rules determining the pronunciation of "the", native speakers quite often deviate from these rules (including, e.g., TV shows). According to the Longman Pronunciation Dictionary,     The EFL learner is advised to use [ðə] before a consonant sound (the   boy, the house), [ði] before a vowel sound (the egg, the hour). Native   speakers, however, sometimes ignore this distribution, in particular   by using [ðə] before a vowel (which is in turn usually reinforced by a   preceding ʔ), or by using [ði:] in any   environment, though especially before a hesitation pause. Furthermore,   some speakers use stressed [ðə] as a strong form, rather than the   usual [ði:].   My question is: when native speakers use [ðə] instead of [ði] before a vowel sound, do they do it on purpose or accidentally? If it is on purpose, how do they (typically) decide which pronunciation to use? What is a valid reason to use [ðə] before a vowel sound? Does JavaScript have the interface type (such as Java's 'interface')? Complete userChrome.css specification in Firefox Is there a way to have a 64 bit enum in C++?  Whilst refactoring some code I came across bunch of #defines which would be better as an enum, but being greater than 32 bit causes the compiler to error.  For some reason I thought the following might work:  enum MY_ENUM : unsigned __int64   {       LARGE_VALUE = 0x1000000000000000,   }; How to prove that $L=${$a^p$: p is prime} isn't regular? I tried using pumping lemma or finding infinite equivalence classes, but I didn't succeed.  It's clear to me that there is no automata that accepts this language, but I just can't formally prove that this language isn't regular.  How can you prove it? Please note: I posted this question about an hour ago on my account (I just made it as I am new to the site). I revisited my post and saw that I had not given definitions of what I was asking (I thought they were common notations) and it would not let me edit the post for some reason so I will ask here now and hopefully someone can delete the other thread.  How to prove for a finite group $G$ that $|\langle g \rangle|=o(g)$?  Here are the definitions:  Let $G$ be a finite group and $g \in G$  $o(g)$ is the smallest $m \in \Bbb{N}$ such that $g^m=e$ (the identity element of the group). (If such an $m$ exists)  $\langle g \rangle=\{g^m : m \in \mathbb{Z}\}$  I really don't know how to show that this is true I tried to say let $o(g)=m$ and then show that $|\langle g \rangle|$ has exactly $m$ elements but I wasn't even sure it did because it would contain the elements $g^0,...g^{m-1}$ so that would mean it's true but what about $g^{-1}$ and the other elements with negative coefficients so it seems like it would actually be bigger than $m$?  Thanks. Although we can create or update fieldsets using salesforce UI but Is there any way to insert or update FieldSets using apex code (using metadata or API calls) ? Joining attributes of polygons and points by location in QGIS I have two shapefiles....   points containing a number field 'response_time' a polygon grid of square polygons containing fields including 'PNTCNT' with the number of points per polygon, calculated already using the tool 'points in polygon'   There are between 0 and 600 points within the bounds of each polygon in the grid.  I want to add fields to the polygon grid for the mean, min and max response times within each polygon, in addition to the PNTCNT field already there.  I have tried the 'Join attributes by location' tool, making the polygon layer the target and the points the join layer, and vice versa. I've selected 'take summary of interesting features'.  But I can't get the result I want. All I end up with is the polygon grid again but with an extra field 'COUNT' which replicates (or duplicates) the 'PNTCNT' field. No min, max and mean of values from the points layer.  What am I doing wrong? Is there a better way to do this? I have tried this using QGIS 1.7 and 1.8. I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it. I want to call the help function on each one. In Ruby I can do something like ClassName.methods to get a list of all the methods available on that class. Is there something similar in Python? eg. something like: from somemodule import foo print(foo.methods)  # or whatever is the correct method to call How to create a good glass reflection with Principled BSDF Proper use of the IDisposable interface Posting a Solution of a problem that You faced to Help Newbies About an Hour ago, I faced a problem and tried different ways to solve it.  At last I was going to post my Question on Stack Overflow, but the last trick which came in my mind worked, and the problem got resolved.    Now, if I want to post that problem on Stack Overflow with the solution which worked for me, for the purpose to help other newbies to get their answer if they face the same problem, what is the proper way of posting such solution to a problem? Create 128 Barcodes within Excel Is there a way to create Barcodes (128 standard) on a Mac, preferably via an add-in?  I need it to create barcodes in Excel sheets (or moreso a friend of mine needs it).   I have tried all VBA macros and fonts I found on Google, but none give me a scannable result (usually there are weird characters like ó's mixed in). Does anybody have a working solution? Filtering points in GeoServer layer Bash while read loop breaking early I've been banging my head against for wall for a while with this one.  I want to SSH into a set of machines and check whether they are available (accepting connections and not being used). I have created a small script, tssh, which does just that:  #!/bin/bash  host=$1 timeout=${2:-1}  ssh -qo "ConnectTimeout $timeout" $host "[ \`who | cut -f1 | wc -l \` -eq 0 ] &amp;&amp; exit 0 || exit 1"   This script works correctly. Returning 255 if there was a connection problem, 1 if the machine is busy and 0 if everything is good. If anyone knows a better way to do this please let me know.  So next I try and call tssh on my set of machines using a while read loop, and this is where it all goes wrong. The loop exits as soon as tssh returns 0 and never completes the full set.   while read nu ; do tssh "MYBOXES$nu" ; done &lt; &lt;(ruby -e '(0..20).each { |i| puts i }')   At first I thought this was a subshell problem but apparently not. Any help, along with comments on style/content, would be much appreciated! I know I'm going to kick myself when I find out why... If n is an odd integer, show there exists a positive integer k such that 2^k mod n = 1. How can I prove $\sup(A+B)=\sup A+\sup B$ if $A+B=\{a+b\mid a\in A, b\in B\}$ If $A,B$ non empty, upper bounded sets and $A+B=\{a+b\mid a\in A, b\in B\}$, how can I prove that $\sup(A+B)=\sup A+\sup B$? Is there a way to detect the collapse in wave function of entangled particles instantaneously? Is there a machine or instrument which will notify us instantly when the wave-function has collapsed if we have access to only one of the entangled particles? Note that the wave function collapse will be triggered by observing the particle which we do not have. Or in other words is there a way to identify (instantaneously) if the entangled pair of a particle has been observed and the wave function has collapsed. How to avoid the 'not properly formatted as code' alert