I've come across this expression and am not quite sure what it actually should be. Is it "I want the beer to never end" or "I want the beer never ends" or something else? Which is the correct way?
Some verbs are followed by ing, e.g. I enjoy swimming. We can't say I enjoy to swim. Likewise, some verbs are followed by to, e.g. I decided to make a plan.   Which particular verbs are followed by ing and to? Can you please provide a list for that?  Moreover, which verbs can be followed by both without having the meaning changed?
Why can't this be done with Master Theorem Apparently recurrences like this cannot be solved with the Master Theorem:  $T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log(n)}$  Because $n^{\log_b(a)} = n^1$ is not a polynomial multiple of $f(n) = \frac{n}{\log(n)}$ since $\frac{n}{\frac{n}{\log(n)}} = \log(n)$, which is less than $n^\epsilon$ for any positive $\epsilon$.  But when is this really even an issue?   For example why wouldn't the time complexity be $n \log n$ using case 2 of the Master Theorem? Unrolling the recursion:  $$T(n) = n\sum_{k=1}^{\log_2(n)} \frac{1}{\log_2(2^k)}$$  $$T(n) = n\sum_{k=1}^{\log_2(n)} \frac{1}{k}$$  Doesn't this suggest $\Theta(n \log n)$ even though it supposedly cannot be done with Master Theorem? Sum of indepedent random variables and a constant .NET obfuscation tools/strategy I bought an Acer laptop and installed Ubuntu 14.04LTS but WiFi drivers are not available for it. So I am trying to install a windows driver using wifidocs/driver/ndiswrapper.  On doing lspci -vvnn, it gives:  Network controller ［0280: Qualcomm Atheros Device ［168c:0042］ (rev 30)   Then I also disabled the atheros drivers. Using lspci and lspci -n, I can say PCI id is 168c:0042. But Acer website has three atheros drivers. I could not figure out which one to download but downloaded one on a windows PC and pasted the zip file on my desktop then unzipped it from the terminal using unzip &lt;filename&gt;.zip. The page says you have to go to control panel system hardware and all that on the windows system. I did not do it. Windows computer not being mine, I am afraid I should not install any additional driver on it. After unzipping it has one .inx file and one .bin file but no .sys file. I don't know whether I am completely right till here or have I missed something? And if I am right then how to proceed from here? I also made a new directory and copied the unzipped .inx and .bin files in it. Then in that directory I ran the ndiswrapper -i &lt;filename&gt;.inf but it says ndiswrapper not installed and when I do sudo apt-get install ndiswrapper-common, I get the reply that ndiswrapper-common is already the latest version. What to do? here is my dmesg | grep ath10k result  [   7.882758] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0 [    8.190016] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2 [    8.334587] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA9377/hw1.0/board-2.bin failed with error -2 [   10.140677] ath10k_pci 0000:03:00.0: qca9377 hw1.0 (0x05020000, 0x003820ff sub 105b:e09a) fw WLAN.TF.1.0-00267-1 fwapi 5 bdapi 1 htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features ignore-otp [   10.140682] ath10k_pci 0000:03:00.0: debug 0 debugfs 0 tracing 0 dfs 0 testmode 0 Here is the output of lspci -nnk | grep -iA2 net  02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Acer Incorporated [ALI] Device [1025:098a]     Kernel driver in use: r8169 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 30)     Subsystem: Foxconn International, Inc. Device [105b:e09a]     Kernel driver in use: ath10k_pci I have been developing a few python addins and I'm just wondering what is the best way to re-compile the addin anytime I edit the script.  Currently, if I make an edit to the script, it seems like I have to   Close ArcMap Go to My addin folder and double click the 'makeaddin' python file Double click the 'Python Addin File Restart ArcMap for the changes to come into effect   If I don't do these steps, then the edits aren't recognized. This gets pretty annoying and time consuming when I want to place maybe a simple print line somewhere or I do a small edit just to test a result.  Is there a better way of doing this? Regular expression: match start or whitespace Can a regular expression match whitespace or the start of a string?  I'm trying to replace currency the abbreviation GBP with a £ symbol. I could just match anything starting GBP, but I'd like to be a bit more conservative, and look for certain delimiters around it.  &gt;&gt;&gt; import re &gt;&gt;&gt; text = u'GBP 5 Off when you spend GBP75.00'  &gt;&gt;&gt; re.sub(ur'GBP([\W\d])', ur'£\g&lt;1&gt;', text) # matches GBP with any prefix u'\xa3 5 Off when you spend \xa375.00'  &gt;&gt;&gt; re.sub(ur'^GBP([\W\d])', ur'£\g&lt;1&gt;', text) # matches at start only u'\xa3 5 Off when you spend GBP75.00'  &gt;&gt;&gt; re.sub(ur'(\W)GBP([\W\d])', ur'\g&lt;1&gt;£\g&lt;2&gt;', text) # matches whitespace prefix only u'GBP 5 Off when you spend \xa375.00'   Can I do both of the latter examples at the same time? Let's say that there is a question asked in a bad manner, in a way that the question is missing. For example the user shows the code and doesn't explain very well which is the problem.    Usually someone starts digging in the OP mind posting comments and asking him for details. It may happen that the question gets edited and the OP edits it to a valid question.    Do you usually give the OP time to edit the question or you immediately vote to close it? Having line color vary with data index for line graph in matplotlib? how to bring up the menu at the bottom left hello everyone I have a little problem, how do I bring up the menu in the circle? when I select another object the menu becomes non-existent How to correctly enable Desktop Cube in Unity 3D? I have read several questions regarding how to fix an already enabled desktop cube or the problems it had in 11.04. But in 11.10, how can I correctly enable desktop cube in Unity 3D? diagram software for Ubuntu? Not booting from USB or CD (SYSLINUX Message) I am trying to install linux on my laptop, a Toshiba Satellite C6550-S5200. I did it once but something happened so I removed it then I had to destroy all data on hard drive so now I have nothing on it. Well I got a iso file burned to a CD and to a flash drive. With the flash drive I get.   SYSLINUX 4.06 EDD 4.06-pre7 Copyright (C) 1994-2012 H. Peter Anvin et al  With the CD it will start booting it but somewhere loading it up, the dots turn all orange and stay that way and my CD drive turns quiet.  Oh and some more info the images work because I tried loading them up on another pc and it worked just fine.  I manage to get the CD to boot I just had to let me pc boot up first then insert the CD and have it boot the CD then. Once I get done installing ubuntu it works fine but I have to leave the PC on 24/7 for if I turn it off the PC will freeze 5-10 seconds after booting back up no matter how I install it. How do I address unchecked cast warnings? Eclipse is giving me a warning of the following form:     Type safety: Unchecked cast from Object to HashMap   This is from a call to an API that I have no control over which returns Object:  HashMap&lt;String, String&gt; getItems(javax.servlet.http.HttpSession session) {   HashMap&lt;String, String&gt; theHash = (HashMap&lt;String, String&gt;)session.getAttribute("attributeKey");   return theHash; }   I'd like to avoid Eclipse warnings, if possible, since theoretically they indicate at least a potential code problem.  I haven't found a good way to eliminate this one yet, though.  I can extract the single line involved out to a method by itself and add @SuppressWarnings("unchecked") to that method, thus limiting the impact of having a block of code where I ignore warnings.  Any better options?  I don't want to turn these warnings off in Eclipse.  Before I came to the code, it was simpler, but still provoked warnings:  HashMap getItems(javax.servlet.http.HttpSession session) {   HashMap theHash = (HashMap)session.getAttribute("attributeKey");   return theHash; }   Problem was elsewhere when you tried to use the hash you'd get warnings:  HashMap items = getItems(session); items.put("this", "that");  Type safety: The method put(Object, Object) belongs to the raw type HashMap.  References to generic type HashMap&lt;K,V&gt; should be parameterized. For example: $$7x \equiv 1 \pmod{31} $$ In this example, the modular inverse of $7$ with respect to $31$ is $9$. How can we find out that $9$? What are the steps that I need to do? Update If I have a general modulo equation: $$5x + 1 \equiv 2 \pmod{6}$$ What is the fastest way to solve it? My initial thought was: $$5x + 1 \equiv 2 \pmod{6}$$ $$\Leftrightarrow 5x + 1 - 1\equiv 2 - 1 \pmod{6}$$ $$\Leftrightarrow 5x \equiv 1 \pmod{6}$$ Then solve for the inverse of $5$ modulo 6. Is it a right approach? Thanks. Removing all 'stable' theme's CSS from a Drupal 8 custom theme I would like to remove all CSSs automatically included from stable theme:  /core/themes/stable/css/system/components/*   I can remove them one by one inside the .info.yml file:  stylesheets-remove:   - 'core/themes/stable/css/system/components/ajax-progress.module.css'   - 'core/themes/stable/css/system/components/autocomplete-loading.module.css'   - ...   Is there a way to remove all of them at once?   Something like:  stylesheets-remove:   - 'core/themes/stable/css/system/components/*' Learning Python programming with generic GIS goals in mind? In your opinion, what is the best book/site to learn Python with GIS goals in mind?  By "best", I mean:   not very long (book) easy to understand (book/site) good practical examples (book/site)   For answers specific to learning how to use the ArcPy site-package for Python to customize ArcGIS for Desktop there is a separate Q&amp;A: Purpose of hole in stove leading to oven I'm staying in a hotel and have access to a "electric coil stove" for one of the first times.  I accidentally turned on the oven light and saw that the light was shining up through only one of the stoves:    There's only a port from the oven into the top right stove, and note that the stove is not on.  Here's a view from within the oven:    Is there a hole here as a vent for the oven for some reason, or is this for the stove? I typically use a glass "flat-top stove" that doesn't have an oven underneath it. I've never seen a direct hole from a stove to the oven before, and have to wonder what the purpose is. Repeat copies of array elements: Run-length decoding in MATLAB How do I set a background image while I am editing? When replacing non-grounding type receptacles is a GFCI receptacle required, or can any GFCI device be used? Under the NEC (it was 210(7)(d)(3), but appears to have moved around some), it is permissible to replace an ungrounded receptacle with a GFCI receptacle, then wire further ungrounded or non-grounded (i.e. a NEMA 5 without a ground wire hooked up) receptacles on the circuit to the load side of the GFCI, all in lieu of running a ground wire in order to replace the existing ungrounded receptacles with grounded receptacles.  However: does this permission extend to replacing the branch circuit overcurrent protection device with a GFCI-type circuit breaker (or a CAFCI breaker that provides ground fault protection for personnel)?  Or can only GFCI receptacles be used for this retrofit? The NEC's verbiage does not make mention of breaker-type GFCIs...