How many attacks do I get with a ready action?    I normally get two attacks in an action, an action surge attack(when I use an action surge), and a bonus action attack. If I ready an attack so that it triggers when an enemy appears, how many attacks do I get?  I take it the action surge and bonus action can't be readied, but since the readied action is now a reaction, do I still get my two attacks?
Do you get to use the additional attack from the Extra Attack feature as well when you Ready an Attack action?  One of my players, a monk, decided to Ready an action as an earth elemental was about to attack. The trigger was the elemental moving within five feet of him. When this occurred, he took his Attack action, and then proceeded to take the extra attack as well.  I was unsure at the time whether or not the extra attack would also happen, and I haven't had much luck figuring it out.
PHP "header (location)" inside IFRAME, to load in _top location? How to mount a NTFS partition in /etc/fstab? I have two partitions that I want to mount on startup: /dev/sda3   /mnt/devel  ext4    defaults    0   2 /dev/sda2   /mnt/excess ntfs    defaults    0   2  The ext4 partition mounts fine (owned by me, writable only by me), but the NTFS mounts owned by root with R\W permission for all. How to fix this? drwxr-xr-x  7 amanda amanda 4096 2012-03-14 19:07 devel drwxrwxrwx  1 root   root   4096 2012-03-14 22:38 excess Given that $f:[0,1]\to \Bbb{R}$ is a continuous function, I need to show that $$\lim_{n \to \infty}\prod_{k=1}^{n}\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)=e^{\int_0^1f(x)dx}$$  Writing $$y=\lim_{n \to \infty}\prod_{k=1}^{n}\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)$$ and taking the logarithm of both sides and interchanging limit and logarithm(since $f$ is continuous), I get $$\log y = \lim_{n\to \infty}\sum_{k=1}^{n}\log\left(1+\frac{1}{n}f\left(\frac{k}{n}\right)\right)$$ Now I know that the limit of the Riemann sum $\lim_{n\to \infty}\sum_{k=1}^{n}\frac{b-a}{n}f\left(a+\frac{(b-a)}{n}k\right)=\int_a^bf(x)dx$. However if I want it to read $\int_0^1f(x)dx$ in the given problem, I would need the term inside the summation to read $\frac{1}{n}f\left(\frac{k}{n}\right)$. The way to do this it would seem is to take the series expansion of $\log(1+x)$ and ignoring the $x^2$ and higher order terms. Is it justifiable to do so? Derivation of a generalization of Mertens' Third Theorem. One of Mertens' Theorems states $$\prod_{p\le x}(1-\frac{1}{p})\sim \frac{e^{-\gamma}}{\ln(x)}.$$ I have seen a generalized version that states  $$\prod_{m&lt;p\le x}(1-\frac{m}{p})\sim \frac{c(m)}{(\ln(x))^m},$$ where $m$ is a positive integer and $c(m)$ is a real number that depends on $m$. How can I derive this result? Is there a way to find what the values of $c(m)$ are? Thank you very much. Django set default form values I have a Model as follows:  class TankJournal(models.Model):     user = models.ForeignKey(User)     tank = models.ForeignKey(TankProfile)     ts = models.IntegerField(max_length=15)     title = models.CharField(max_length=50)     body = models.TextField()   I also have a model form for the above model as follows:  class JournalForm(ModelForm):     tank = forms.IntegerField(widget=forms.HiddenInput())       class Meta:         model = TankJournal         exclude = ('user','ts')   I want to know how to set the default value for that tank hidden field. Here is my function to show/save the form so far:  def addJournal(request, id=0):     if not request.user.is_authenticated():         return HttpResponseRedirect('/')      # checking if they own the tank     from django.contrib.auth.models import User     user = User.objects.get(pk=request.session['id'])      if request.method == 'POST':         form = JournalForm(request.POST)         if form.is_valid():             obj = form.save(commit=False)              # setting the user and ts             from time import time             obj.ts = int(time())             obj.user = user              obj.tank = TankProfile.objects.get(pk=form.cleaned_data['tank_id'])              # saving the test             obj.save()      else:         form = JournalForm()      try:         tank = TankProfile.objects.get(user=user, id=id)     except TankProfile.DoesNotExist:         return HttpResponseRedirect('/error/') Which databases use real multidimensional indices? Is oracle ever using several indices to get data from tables, or will it always take the one that seems to have the highest selectivity? How about other dbms? I need to customize my references in the following style using biblatexs Alpha style having the columns Label, Author, and Title and Other Information.    Till now with your help I could already change the square brackets to slashes.   My code so far is:   \documentclass[12pt]{scrartcl}  .  .   \usepackage[% natbib        = true, backend       = bibtex8, %bibtex, biber style         = alphabetic, %citestyle     = alphabetic, maxcitenames  = 2, mincitenames  = 1, %bibstyle      = alphabetic, %authoryear, %draft, %, sorting       = nyvt, maxbibnames   = 6, minbibnames   = 6, language      = ngerman, date          = long, backref       = false, backrefstyle  = none,  % none, three, two, two+, three+, all+ firstinits=true  ]{biblatex}    \usepackage[babel,german=quotes]{csquotes}    \bibliography{input/literatur}      \newrobustcmd{\mkbibslashes}[1]{/#1/}      \DeclareFieldFormat{labelalphawidth}{\mkbibslashes{#1}}    \DeclareFieldFormat{shorthandwidth}{\mkbibslashes{#1}}     \DeclareCiteCommand{\cite}[\mkbibslashes]    {\usebibmacro{prenote}}    {\usebibmacro{citeindex}% \usebibmacro{cite}}    {\multicitedelim}    {\usebibmacro{postnote}}    \renewcaptionname{ngerman}{\refname}{Literaturverzeichnis}   .   .   .   Thanks again Error when using endfloat with unicode characters I have a problem with the endfloat package and unicode characters.  When I compile the following, everything works as expected:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx}  \begin{document}  \begin{figure} \caption{Ö} \end{figure}  \end{document}   However, when I also load the endfloat package (\usepackage{endfloat}), I get the following error message:  ! Package inputenc Error: Unicode char \u8:ÖÖ not set up for use with LaTeX.   This could be a bug, but my suspicion is that I'm making a mistake somewhere.  I'm hardly the first person to use special characters with the endfloat package.  However, the above example is so simple, I don't see where I could have made a mistake.  Any advice is appreciated.  Edit: The file is of course encoded using utf-8. Electric shock - was I stupid, unlucky, or a combination of both? One of the double sockets in our garage needed replacing (damaged after a washing pole hit it) - a pretty trivial job that I'd done before. So I flipped the MCB for the ring main, used a non-contact voltage tester to check nothing was there, and set to work. I disconnected the old socket fine, and was lining the cables up to fit into the new socket when... ow.  My finger bridged the live and earth pins, and suffice to say the live wire was very much alive. Bar a few finger spasms I was fine fortunately, and believe me I realise I was very lucky in that respect (I'm in the UK, so that was 240V.) Before finishing the job I then shut off the entire property's electrics - I was taking no more chances.  Further inspection confirmed two things I immediately suspected at this point - the MCB in the garage (installed before we moved into the house) was shutting off power via the neutral, not the live, and the voltage tester was dodgy (I had tested it on the same socket earlier and it seemed fine, further testing showed it presumably had a loose connection internally and only worked sporadically.) Needless to say it's now in the bin, and an electrician has been called to sort the MCB and check the rest of the house for similar issues.  Unsurprisingly this has shaken me up a bit - I would say I'm a rather safety conscious person, and in this case thought I'd done all the checks properly (including taping over the relevant trip switch to ensure no-one flipped it back on while I was working.) In some ways I can't help feeling I was unlucky that the MCB was wired by a cowboy, in combination with the voltage tester failing in the way that it did, at the time that it did. However, I'm not one to solely blame tools - clearly some, if not most of the blame here lies with myself also.  So in short, what should I have done differently - and was I primarily being stupid, or really quite unlucky? has anybody been successful getting pandas to work with QGIS's Python installation, on Windows? I've used the OSGeo4W installer to install QGIS2.2, which comes with Python 2.7 and Numpy 1.5.1. Any reasonably new version of pandas requires Numpy 1.6.1 or newer. So that seems like my main problem. I've tried: - Building an older version of pandas (e.g. 0.7.3 and 0.4.1) using easy_install, but that gives me a very long list of errors, at least the last of which are related to distutils\msvc9compiler.py - Using binaries of old pandas versions, but they are all built for Numpy 1.6.1 - Upgrading Numpy, which also gives me an error message. In case anybody is interested, the message ends with "File “C:\OSGeo4W\apps\Python27\lib\distutils\msvc9compiler.py”, line 299, in query_vcvarsall” newline “raise ValueERror(str(list(result.keys())))” newline “ValueError: [u’path’]"  I'm wondering if anybody else has ever been successful in getting pandas to work with a QGIS install on Windows??  It would be so easy if QGIS would ship with, say, a version of Numpy that's less than three years old. Does anybody know if such an upgrade is in the works for upcoming QGIS versions? How can I verify a Google authentication access token?  I need to somehow query Google and ask: Is [given access token] valid for the [example@example.com] Google account?  Short version: It's clear how an access token supplied through the  can be used to then request data from a range of Google services. It is not clear how to check if a given access token is valid for a given Google account. I'd like to know how.  Long version: I'm developing an API that uses token-based authentication. A token will be returned upon provision of a valid username+password or upon provision of a third-party token from any one of N verifiable services.  One of the third-party services will be Google, allowing a user to authenticate against my service using their Google account. This will later be extended to include Yahoo accounts, trusted OpenID providers and so on.  Schematic example of Google-based access:    The 'API' entity is under my full control. The 'public interface' entity is any web- or desktop-based app. Some public interfaces are under my control, others will not be and others still I may never even know about.  Therefore I cannot trust the token supplied to the API in step 3. This will be supplied along with the corresponding Google account email address.  I need to somehow query Google and ask: Is this access token valid for example@example.com?  In this case, example@example.com is the Google account unique identifier - the email address someone uses to log in to their Google account. This cannot be assumed to be a Gmail address - someone can have a Google account without having a Gmail account.  The Google documentation clearly states how, with an access token, data can be retrieved from a number of Google services. Nothing seems to state how you can check if a given access token is valid in the first place.  Update The token is valid for N Google services. I can't try a token against a Google service as means of verifying it as I won't know which subset of all Google's services a given user actually uses.  Furthermore, I'll never be using the Google authentication access token to access any Google services, merely as a means of verifying a supposed Google user actually is who they say they are. If there is another way of doing this I'm happy to try. I'm currently using an entry-level DSLR with 18-55mm lens and having great trouble trying to creating a blurred background effect in my photos. Now matter what aperture or shutter speed I choose, I'm not able to get it.  There's a general question about , but what specific things can I do to get this effect with an entry-level lens? Events triggered by dynamically generated element are not captured by event handler Where did the disco repos go, or what is going on? This problem is quite easily solved by using logarithms and derivative and forming the function $f(x,y) = x^y - y^x$, however there are assertions that this problem can be solved without using either of the two. I can not see how one would proceed to solve this problem in the absence of logarithmic manipulation and differentiation. Can anyone shed some light on this? Differentiation operator and eigenvalues Let $V = \{p(x) \in F[x] \ | \ \deg(p(x)) \le n\}$. Let $T : V \to V$ be given by differentiation, in essence $$T(p(x)) = p'(x)$$ It seems to me that the only eigenvalue that can exist is $\lambda =0$, since the given operator lowers the degree of any given polynomial and hence makes it impossible for a constant multiple of a polynomial to be equal to the polynomial's derivative. Is my claim correct? In Oracle, I can re-create a view with a single statement, as shown here:  CREATE OR REPLACE VIEW MY_VIEW AS SELECT SOME_FIELD FROM SOME_TABLE WHERE SOME_CONDITIONS   As the syntax implies, this will drop the old view and re-create it with whatever definition I've given.  Is there an equivalent in MSSQL (SQL Server 2005 or later) that will do the same thing? Should "each" be followed by a singular or plural possessive? If a possessive noun, which is plural, is preceded by "each", then should it use the singular or plural possessive form?  For example, which of the following is correct?    spend time in each other's presence spend time in each others' presence Are 7 hours enough time to leave the Brussels airport and go to the city center? Automotive electronic circuit design, Voltage divider to uC ADC pin Automotive Circuit requirement:   If input pin is connected to Battery(T87 line), the output of the circuit shall provide a output voltage of 5V to ADC pin of microcontroller, if the input pin is connected to GND, the output of the circuit shall provide a output voltage of 0V to ADC pin of microcontroller and if the input pin is left floating, the output of the circuit shall provide a output voltage of 2.5V to ADC pin of microcontroller.   The battery voltage in load dump condition could be up to 60V, but in normal operation without any fault condition, it would be up to 32V.  Would a simple voltage divider (with a pull-up to 5V) with a blocking diode be enough? Any other ideas? What parameters of the ADC of the microcontroller should be considered? Injection current into the uC- ADC pin would be critical, right? How do I find out the voltage thresholds? Also, what are the parameters of the Schottky diode that I should look to select? The diode would decouple the input pin from the centre tap of the voltage divider, because in case the input pin is connected to battery, the injection current into the uC ADC pin would be too high.  I have used a switching diode, since it was already available in the Bill of Materials.