Can Drunkard's Luck let someone gain advantage if he has advantage and disadvantage? If I am a Drunken Master Monk and I have one source each of both advantage and disadvantage, can I still use Drunkard's Luck to remove the disadvantage as per the class feature:       When you make an ability check, attack roll, or a saving throw and have disadvantage on the roll, you can spend 2 ki points to cancel the disadvantage for that roll. (XGtE 34)     and thereby have advantage? or am I not allowed to use Drunkard's Luck because the disadvantage is already cancelled out by the advantage per this rule:     If circumstances cause a roll to have both advantage and disadvantage, you are considered to have neither of them, and you roll one d20.
Do you have advantage when multiple sources give advantage and only one gives disadvantage? As I understand it:   if you have Advantage from two different sources, you simply have Advantage (no stacking) if you have advantage from one source, and disadvantage from one source, they cancel out.     So what if you have advantage from two or more sources, and disadvantage from one source?  My assumption is that you simply have advantage, or put another way, you have Advantage on a roll when the # of Advantages > # of Disadvantages (and vice versa).  Is that correct?
Running "sudo apt-get update" returns connection errors After installing Ubuntu 18.04 from the Windows store I open Bash and want to run sudo apt-get update, but this returns the following errors:  Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease   Connection failed [IP: 91.189.91.26 80] Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease   Connection failed [IP: 91.189.88.162 80] Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease   Connection failed [IP: 91.189.88.161 80] Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease   Connection failed [IP: 91.189.88.162 80] Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Connection failed [IP: 91.189.88.162 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Connection failed [IP: 91.189.88.161 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Connection failed [IP: 91.189.88.162 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Connection failed [IP: 91.189.91.26 80] W: Some index files failed to download. They have been ignored, or old ones used instead.   When I open 91.189.91.26 in a browser, it shows the site without a problem.  Previously this worked without any problem, but I did a clean reinstall of Windows and now it doesn't work anymore. It seems some firewall or proxy issue, but I tried with the firewall disabled and I got the same result.  Any idea why this is happening? Maybe it is a 18.04 issue? If so, is it possible to return to 16.04 on Windows 10? Becasue I don't see a uninstall option. There are Recurrent Neural Networks and Recursive Neural Networks. Both are usually denoted by the same acronym: RNN. According to , Recurrent NN are in fact Recursive NN, but I don't really understand the explanation.  Moreover, I don't seem to find which is better (with examples or so) for Natural Language Processing. The fact is that, although Socher uses Recursive NN for NLP in his , I can't find a good implementation of recursive neural networks, and when I search in Google, most of the answers are about Recurrent NN.  Besides that, is there another DNN which applies better for NLP, or it depends on the NLP task? Deep Belief Nets or Stacked Autoencoders? (I don't seem to find any particular util for ConvNets in NLP, and most of the implementations are with machine vision in mind).  Finally, I would really prefer DNN implementations for C++ (better yet if it has GPU support) or Scala (better if it has Spark support) rather than Python or Matlab/Octave.  I've tried Deeplearning4j, but it's under constant development and the documentation is a little outdated and I can't seem to make it work. Too bad because it has the "black box" like way of doing things, very much like scikit-learn or Weka, which is what I really want. I just read  on EE.SE and that triggered a doubt in me.  If I were asked whether there is any relationship between the electrical resistivity and the density of a substance I'd answer negatively, but is it really so?   Is there really no (relevant) relationship between those two bulk properties of a material? Can anyone confirm or disprove this and give some explanation thereof? I lost the sa password on a machine, and when I log in to the machine directly using an account in the admin group, SQL Server Management Studio will not allow me to log in using Windows authentication.  My plan was to simply log into the server, connect via Windows Authentication, and reset sa to use a new password. Since I cant' connect via Windows Authentication, this won't work.  How else can I reset the sa password? How to strike through obliquely, e.g. to indicate cancellation? How can I strike through an expression (e.g. "2x") obliquely, e.g. from bottom left to top right, so as to indicate cancellation? With the \sout command from the ulem package, I can only strike horizontally. How to vertically center content with variable height within a div? What is the difference between char * const and const char *? Is a DNA molecule a single strand of polynucleotide or two of them linked together? What is the maximum party size and the corresponding monster buffs? What is the maximum party size (if there is one) in Diablo 3?  Additionally, how much of a buff do monsters get when adding party members?     "A new ally has joined, but the minions of Hell grow stronger." Javascript && operator as if statement? Are users' reputation scores on the home page supposed to stand out that much now? It seems a couple minutes ago, a change was applied to the styling of the homepage, with users' rep scores now being much darker (and standing out more):        Compare with the former light grey colouring (image courtesy of ):        Is this intentional? If so, why? It highlights something that's not really relevant, in my opinion. I am looking for a YA book about a boy who learns to use powers from a mind-adept, in a seemingly abandoned house. The adept helps him open his mind by using a cube. One of his powers, I believe, is to go into dreams of people that  he knows. He helps his young female neighbor friend by doing this, opening a door in her mind. He tries to open the mind-door of a local older bully, but finds out the young man can't be helped because he has been abused mentally and physically. I don't believe the book I read is past 1995. It might have the word "adept" in it. N circles in the plane Maps from subsets of $\mathbb{R}^2$ that are either open/closed/continuous I'm self studying J. Lee's Introduction to Topological Manifolds, and after doing all other exercises on chapter 2, I can't seem to come with the proper counterexamples for this one.      For each of the following properties, give an example consisting of two subsets $X, Y \subset \mathbb{R}^2 $, both considered as topological spaces with their Euclidean topologies, together with a map $f: X \rightarrow Y$ that has the indicated property.         Open but not closed/continuous   Closed but not open/continuous    Continuous but not open/closed         etc... (all cases)   I think the reason for my difficulty is a lack of geometric intuition of what open, closed and continuous maps look like as deformations of shapes in $\mathbb{R}^2$ (I can construct counterexamples from artificial made up spaces).   I tried squashing balls and 'pumping space' into lines, as well as joining strips in annulus shapes, but all the examples I seem to come up with are either too well behaved (i.e. all 3) or too misbehaved.   Instead of a case by case answered I would prefer a couple worked out cases and some intuition on how to visualise open / closed maps in this context. What is the best way to restrict access to adult content? I bought my kids a PC and installed 12.04 (Unity) on it.  The bottom line is, I want my children to use the computer unsupervised while I have confidence they cannot access anything inappropriate.  What I have looked at:  I was looking at Scrubit a tool which allows me configure my wifi router to block content and this solution would also protect my other PC and mobile devices.  This may be overkill as I just want the solution to work on one PC.    I also did some Google searches and came across the application called .  My experience of OSS is that the best solutions frequently never appear first on a Google search list and in this case I need to trust the methods therefore my question is very specific.   I want to leverage your knowledge and experience to understand What is the best way to restrict adult content on 12.04 LTS as this is important to me.  It maybe a combination of things so please don't answer this question "try this or that", then give me some PPA unless you can share your experience of how good it is and of course if there are any constraints. Showing $(a^{2}+2)(b^{2}+2)(c^{2}+2)\geq 9(ab+bc+ca)$ Share Wireless connection with Wired Ethernet Port What are the pieces of evidence that universe is expanding? iptables port redirect not working for localhost I want to redirect all traffic from port 443 to the internal port 8080. I'm using this config for iptables:  iptables -t nat -I PREROUTING --source 0/0 --destination 0/0 -p tcp \          --dport 443 -j REDIRECT --to-ports 8080   This works for all external clients. But if I'm trying to access the port 443 from the same maschine I'll get a connection refused error.  wget https://localhost   How can I extend the iptables rule to redirect local traffic too? I came upon an interesting way to relatively quickly compute modular exponentiation with large numbers. However, I do not fully understand it and was hoping for a better explanation.  The method basically states if you have $x^y \bmod N$, it can be computed by repeatedly multiplying by $x$ modulo $N$:  $$x \bmod N \rightarrow x^2 \bmod N \rightarrow x^4 \bmod N \rightarrow x^8 \bmod N \rightarrow \ldots \rightarrow x^{2[\log y]} \bmod N$$  This is supposed to calculate in $\mathcal{O}(\log_2 N)$ time.  An example is given:  $$x^{25} = x^{11001_2} = x^{10000_2} * x^{1000_2} * x^{1_2} = x^{16} * x^8 * x^1$$  I don't really understand how this is faster. Aren't you just doing the same thing? You're just breaking down the exponents into representations of base $2$. Also where does $x^{2[\log y]}$ come from? If you're breaking it down into exponents of two where does a logarithm come from? (Aren't logs representations of numbers in exponents of $10$?)  I'm sorry if this appears to be a really stupid question - I have minimal knowledge in math.  Also, I wasn't sure if this belongs here or on stack exchange, so give me the word and I'll move it.