Run a Shell Script from the Directory it is in
How can I get the source directory of a Bash script from within the script itself?
How can I do a full shutdown of windows 10 without logging in? My friend and i would like to translate Ubuntu. where should we start? where to find translation tools? How to list all files ordered by size I would like to list all files in the order of big to small in size and the files could be present anywhere in a certain folder. How can I play around targeted discard? Many decks in competitive Magic have access to targeted discard spells, like  and .  Against counterspells, you can rely on a variety of tricks like baiting counters, bottlenecking your opponent's mana, and good old-fashioned counter wars. Targeted discard cards allow your opponent to attack your hand on the very first turn of the game, and go right for your key cards &mdash; and it can often be backbreaking when your opponent takes away a crucial card like a combo piece or a sweeper.  What tricks and tactics can you employ, either during deck-building or in play, to play around an opponent's targeted discard?  (I know that one of the answers is going to be . That's excellent, but please also include approaches that work in formats without free countermagic.) Launch application on a specific monitor I have Ubuntu 14.04 and two monitors. When I open applications I need some of them to be on the primary monitor and others On the secondary. At the moment, apps always open in the primary monitor.   I have dash icons only on one (left) display, so I can't launch apps using the cursor or active window setting from Compiz. Express solutions of equation $ \tan x= x $ in closed form I know that the equation $$ \tan(x) = x $$ can be solved using numerical methods, but I’m looking for a closed form of the solutions. In my opinion, having only numerical solutions means that we don’t know the problem, and sooner or later, we’ll be able to find a closed-form solution or at least a power-series solution. I’m looking for an explicit form of a sequence $ (x_{n})_{n \in \mathbb{Z}} $ in $ \mathbb{R} $ such that  $ 0 &lt; x_{0} &lt; \dfrac{\pi}{2} $, $ \tan(x_{n}) = x_{n} $ for all $ n \in \mathbb{Z} $, and $ (2 n - 1) \dfrac{\pi}{2} &lt; x_{n} &lt; (2 n + 1) \dfrac{\pi}{2} $ for all $ n \in \mathbb{Z} \setminus \{ 0 \} $.  The existence of such a sequence follows from the continuity of $ x \mapsto \tan(x) - x $ over its domain. Its uniqueness follows from the monotonicity of $ \tan(x) - x $ over the intervals $$ \left( (2 n - 1) \frac{\pi}{2},(2 n + 1) \frac{\pi}{2} \right), \quad n \in \mathbb{Z}. $$ Why does shrinkage work? In order to solve problems of model selection, a number of methods (LASSO, ridge regression, etc.) will shrink the coefficients of predictor variables towards zero. I am looking for an intuitive explanation of why this improves predictive ability. If the true effect of the variable was actually very large, why doesn't shrinking the parameter result in a worse prediction? Probability that a k digit number does not contain certain digits How to give a medicine with really bad taste My 4 year old daughter recently have scarlet fever. It seems antibiotics are non-negociable for it, and since she has great chance of being allergic to Penicillin, there is only one antibiotic she can get. It is not the first time we have to give it to her, and probably not the last time.  Apparently, that medicine tastes really REALLY bad. She cries a lot, panics every time we say it's time for this medicine, and vomit it most of the time, resulting in even more medicine being force into her mouth.  It is only this medicine that causes problem. She does not tantrum for other medicine, and most of them, she can take the dose we give her all by herself.  We tried reassuring her, explaining why it is mandatory to get it, explaining it will make the scarlet fever go away. We tried mixing it into other food (which seems clearly worse, taste-wise). We tried asking her to take her herself. It seems we tried everything, and the only thing that achieve it for the moment is actually forcing it into her.  We really do not want to force her in any way. Her mother cried yesterday because we had to force her, and we need to do it twice a day. It is very exhausting, and we would welcome any input or new ideas on how to give her this really bad tasting medicine to her.  EDIT : For clarification, it is a liquid medicine that is administrated with a syringe. It seems there are no alternative, although we will check with the doctor again (particularly if pills are available) No hair theorem for black holes and the baryon number I would like to count the number of unique selections from a column that contains multiple selections from a drop down list.  For example, column B3 contains,     Monday, Tuesday, Wednesday   The count function returns a value of 1 instead of 3 - is there any way to count the three days distinctly? Thank you!  Multiple selections from a drop down list was made possible using the VBA code from: Magnetic field lines When I searched the net about magnetic field lines,  told something about contour lines and that magnetic materials placed along a magnetic field has some specific loci, which i did not understand. Can someone explain it to me in details.  Also how do we know that tangent to a magnetic field line gives the direction of magnetic field? I am very confused. Error 404 : While using flag Photoelectric Effect - Dependence of current on frequency The formula for a one sample t-test, as given by  is  $t = \dfrac{\bar{x} - \mu_0}{s\big/\sqrt{n}}$  However, in this equation, if the sample standard deviation, $s$, is zero, $t$ will be undefined. Is there any reasonable way to get a $t$ value in this case? If $|f(z)|\le |g(z)|$, can we say $f$ is constant? Let $f$ and $g$ be entire functions and $g(z)\neq 0$ for all $z\in \mathbb{C}$. If $|f(z)|\le |g(z)|$, can we say $f$ is constant?  Liouville theorem says that an entire bounded function is constant, but g is not given bounded here. So I think it should be false. What else can we say about $f$? Why do I have to click twice to submit a question when Stack Exchange's automated question review has no advice to show? This is terrible . I understand that the motivation behind "Review your question" is quality control, but if there is nothing for me to review, why can't the question be submitted in a single click?  Instead the page jumps back, to draw my attention to possibly this:    But it doesn't stand out in the UI, and if you didn't read that the button said "Review your question", it's hard to see why the page just jarringly jumped back instead of posting the question.  Is it really important for me to know that the automated system didn't find any way to improve my question?  Does Stack&nbsp;Exchange have metrics to see how often the question passes the quality check in the first go?  To add a minor point, as a veteran Stack&nbsp;Exchange user, the system doesn't have any reviews most of the time (in fact, the only time it had one is today while posting this question where it reminded me that one of feature-request, bug, .. tags were required). Fix a wobbly Shimano freehub? How to make the BibTeX reference list visible in a LaTeX document Im very new at LaTeX and I would appreciate some help solving this problem. I have created a BibTeX file containing all references to a document. In this text file BibTeX items are inserted and no other text are written, for instance @article{...}. When I call for this bib file from the main.tex file I use the commands:  \bibliographystyle{plain} \bibliography{thebibliography}   Now to my question. All i get when I compile this main.tex is the title (bibliography) for this chapter, otherwise the textfield is blank. Is this error occurring because I should write anything in the bib file or have I missed any lines in the main.tex file. Based on the table Encounter XP Multipliers from the Basic Rules' DM section, Page 57, when you're building encounters in 5E, you include an XP modifier depending on the number of creatures your PCs will be fighting: 1.5x for a pair, 2x for 3-6 and so on. However, the PCs only get the base XP as a reward.     This doesn't change the actual xp reward ... just your calculations of how difficult the encounter is.   Why is this? After acknowledging that battles vs multiple opponents are more difficult, why not reward them as such?