If I have a Warlock who takes magic initiate in cleric and chooses cure wounds as the first level spell, could I use my Warlock spell slots to cast that spell as well as the 1/day casting of cure wounds? I know that Pact Magic can be used to cast spells using the Spellcasting class feature (PHB 164), so shouldn't you be able to use your Warlock slots to cast the magic initiate spell?
Can you cast a spell learned from the Magic Initiate feat using spell slots? Say I play a wizard who learns cure wounds by taking the Magic Initiate feat. Could I cast that spell using the Wizard's spell slots?
Take the following script:  #!/bin/sh sed 's/(127\.0\.1\.1)\s/\1/' [some file]   If I try to run this in sh (dash here), it'll fail because of the parentheses, which need to be escaped. But I don't need to escape the backslashes themselves (between the octets, or in the \s or \1). What's the rule here? What about when I need to use {...} or [...]? Is there a list of what I do and don't need to escape? How to use unicode characters in Windows command line? I am solving a clustering problem on a trivial dataset with the k-means algorithm. I am running a couple of tests and, from time to time, one centroid doesn't attract any points, i.e. I've got an empty cluster (see the purple "x" in the picture).  What should I do? Shall I delete it or just stop updating its value? Why?    I am aware that built-in functions (e.g., kmeans() in R) have automatic ways of dealing with this situation, but I am trying to write the standard algorithm from scratch. As soon as I fix it I'll be able to compare my results to built-in functions. At this moment I'm looking for some theoretical reasons why I should prefer one solution or another.  In the picture each colour represents a cluster according to the current iteration and each "X" is its centroid (old ones have been kept and marked with the number of the iteration in which they were computed).      [Some related links about empty cluster case, added later by @ttnphns: ; ; ; ; ; ; ; ; ] Command for creating a directory and navigating into it directly? Offline update of Windows? What options, if any, exist for offline update of Microsoft  Windows?  If a solution exists please list your experience using it.    Background:  If for any reason a computer does not have a connection to  the Internet or the connection is too slow to download  several hundreds of megabytes every so often some kind of  offline Windows Update is required.  In a multi-computer environment a lot of bandwidth (and thus in some cases money) and/or  time could also be saved if it is possible to update in an  offline manner. Improper integral $\sin(x)/x $ converges absolutely, conditionaly or diverges?  We have that $$\int_1^{\infty}\frac{\sin x}{x}dx$$ $$u=\frac{1}{x}$$ $$du=-\frac{1}{x^2}dx$$ $$dv=\sin xdx$$ $$v=-\cos x$$ $$\int_1^{\infty}\frac{\sin x}{x}dx=-\cos(1)-\int_1^{\infty}\frac{\cos x}{x^2}dx$$ $$\int_1^{\infty}\frac{\cos x}{x^2}dx&lt;\int_1^{\infty}\frac{1}{x^2}dx$$ So it converges. Now I need to find out if $\int_1^{\infty}|\frac{\sin x}{x}|dx$ converges or diverges. Limit as $x\to 2$ of $\frac{\cos(\frac \pi x)}{x-2} $ Place each foot on a scale: can you add the two to find your weight? I frequent a blog from a British psychologist, and every Friday he likes to pose an interesting puzzle or riddle. The Monday after that he posts the answer. They're good fun, and IANAP but  made my it-might-not-be-quite-as-simple-as-that detector go off.  My question boils down to this: let's say I have two identical scales, and I stand on the scales with one foot on each scale. The scales read W1 and W2. Does my weight equal W1 + W2? Let $\int_{- \infty}^{\infty} f(x) dx =1$. Then show that $ \int_{- \infty}^{\infty} \frac{1}{1+ f(x)} dx = \infty.$ How to plot and solve the numerical solution of a integro-differential equation How to Toggle Selected Objects Visibility with H shortcut as in Maya I want to be able to toggle the visibility of selected objects with a shortcut (H) the way you can do in Maya and XSI, shown in the GIF. I'm guessing scrippting is needed. I've tried to do it my self but I'm new to Python and Blender and as soon as the objects are hidden they seem to no longer be in a selection state/list. Eg if I manually select the hidden object/s in the Outliner and try to print the selected object to the console, none seem to be selected. Is this possible to do with the current state of Blender 2.8? How to change certain pages into landscape/portrait mode How can I change some pages into document into landscape mode, while leaving the others in portrait mode (or vice versa)? I deleted the "/etc/passwd" file and cannot log in Articles: When do I use "a", "the", or "__"? Are all continuous one one functions differentiable? Today, the size of the close-votes queue is 55k questions and growing. Is that a problem?   Which action could be taken to clean it up? It seems to be growing faster than Stack&nbsp;Overflow members are capable to handle it. Can't install Ubuntu 18.10 on XPS 15 - EFI\BOOT\mmx64.efi not found I tried to install Ubuntu 18.10 on my XPS 15 9570 earlier. Everything was working fine until I got to the partition selection part of the installation. That's when the installer crashed and I had to shut down my machine. I think it's because I had my SATA configuration set to RAID ON instead of AHCI, which is now fixed.  Now when I try to run the installer from my bootable USB I get the following error  Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found Failed to start MokManager: Not Fond Something has gone seriously wrong: import_mok_state() failed   Hoping someone might have some idea as to what is going on Find executable files recursively I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.  ls -l `find Test/ -perm /u=x,g=x,o=x -type f`   Is this a good/right/quick command or not?  My solution is:  find Test/ -executable -type f -exec ls -l {} \;   and got the same result as warl0ck and pradeepchhetri offered. How can we discipline a strong-willed, misbehaving 5 year-old? My 5 year old son receives and fears punishment but repeatedly exhibits the same unacceptable behaviors.  He's always been strong-willed, and is usually the kind to view a statement like "Don't do that" as an open invitation to do it.  We've tried redirection or distraction tactics, but he is still so narrowly focused on doing the original behavior.  Even worse, he will typically do the prohibited behavior and flagrantly tell us or show us that he's done it.  Repeatedly, even after punishment.  (He's in time out right now for this very thing).  He's consistently punished, yet he continues down the same self-destructive path each time.  When he is punished, we explain what he did wrong, why he's being punished, and why he shouldn't do what he was told not to do.  Sometimes he'll even tell us first why he's in trouble, so it makes me wonder if he's acting out for the inevitable negative attention he gets.  I think he gets plenty of love and positive attention- he's an only child and stays with a relative during the day.  We're trying to give him a good, fun childhood, but we need to figure out how to effectively discipline him.    His repeated misbehavior includes:   Yelling at the top of his lungs in public (stores, friends' houses, etc) Running away from us (at parks, stores, parking lots, etc) Talking back and disrespecting authority figures Hurting animals even after we explain why it's wrong Repetitive nuisance behaviors (repeating himself, banging his fists, kicking walls, intentionally crumbling food on floors, etc) Repeatedly asking us why he can't do something even after it's been explained to him Basically, most bad behaviors that young children may do, but repeated over and over again, even after discipline   He gets a warning to stop the behavior, then depending on the severity of what he's done (and where we are), he'll either go to time out or lose a privilege (such as taking away a favorite movie or missing out on an activity).  Going to time outs and losing privileges really upset him, but still do not ultimately deter him from the bad behavior.  It's like he can't help himself.  My spouse and I are getting worn down.  We try to model good behavior and encourage him to be well-mannered and respectful.  This behavior mortifies us.  It seems we can't even enjoy life as a family because our son is so disruptive and unresponsive.  Most public outings have to be cut short or eliminated because he consistently misbehaves and doesn't respond to our discipline.  After he's misbehaved, when we try to have heart-to-heart talks with him about his behavior and why we expect him to mind us, he usually has a little trouble expressing himself, and a lot of times we get the same nonsensical responses from him (Us: Why did you do [bad behavior]?  Him: Because I didn't want to).  He also doesn't like to make eye contact.  We don't usually feel like we've gotten through to him.  Is there another discipline tactic we could try?  Or does it sound like we need to see a professional at this point?  We're at a loss, and don't want things to spiral further out of control as he gets older (and even begins school).  We just want him to understand that his behavior isn't always acceptable.  Thanks for reading.  Update (from comments below): My spouse and I disagree on spanking, as we had different experiences with it. He feels it's necessary sometimes. Since our son failed to improve after time outs and taking away items/privileges, I grew to agree with him and we used it for select bad behaviors. It didn't work any better. However, when he was spanked, he was always told why. I didn't mention that we have used it because I was afraid it would distract from the original question, but since it has already come up [in comments], yes, it has been explored, but with no better results than our other tactics. Indecomposable limit ordinals A limit ordinal $\gamma&gt;0$ is said to be indecomposable iff $\nexists\alpha,\beta&lt;\gamma$ such that $\alpha+\beta=\gamma$.  In view of this definition, I’m trying to prove the equivalence of the following statements for limit ordinals $\gamma$:  (1) $\gamma$ is indecomposable.  (2) $\alpha+\gamma=\gamma$ $\forall\alpha&lt;\gamma$.  (3) $\gamma=\omega^\alpha$ for some $\alpha\in\mathrm{ON}$.  I’ve been able to get $(1)\implies(2)$ and $(3)\implies(1)$, but I have nothing more than scratch work for $(2)\implies(3)$.  Any suggestions would be appreciated.