What is the difference between nohup and crontab?
cron Vs. sleep - which is the better one in terms of efficient cpu/memory utilization?
What is the resolution I need to make a picture to make curves look smooth and not pixelated? Why was Hagrid's wand snapped in two when he was expelled from Hogwarts? Why was he banned from performing magic? Yes, he was expelled from Hogwarts after being framed by Tom Riddle as being responsible for Moaning Myrtle's death via Aragog the Acromantula. But why did he receive this punishment?  ‘What’ve you been feeding [the pumpkins]?’ said Harry. Hagrid looked over his shoulder to check that they were alone. ‘Well, I’ve bin givin’ them – you know – a bit o’ help.’ Harry noticed Hagrid’s flowery pink umbrella leaning against the back wall of the cabin. Harry had had reason to believe before now that this umbrella was not all it looked; in fact, he had the strong impression that Hagrid’s old school wand was concealed inside it. Hagrid wasn’t supposed to use magic. He had been expelled from Hogwarts in his third year[...] Chamber of Secrets - page 90 - Bloomsbury - chapter 7, Mudbloods and Murmurs  Why would Hagrid's wand be snapped in two and he not be allowed to do magic when:  Attendance and completion of an education at Hogwarts was not compulsory by wizarding law¹; homeschooled children were allowed to do magic for their lessons, and then do magic fully when they turned 17. The Weasley twins dropped out of Hogwarts after practically destroying parts of the castle with fireworks (and conjuring an awesome swamp on the fifth floor), yet were allowed to do magic despite not completing Hogwarts or any kind of homeschooling curriculum (that we know of). No Death Eater character that we know of was banned from using magic, despite their crimes and devotion to Voldemort. I don't recall any Death Eater wands being snapped and the owner banned from performing magic after being convicted of Death Eater crimes (please do correct me if I'm wrong). For example, Bellatrix Lestrange's wand was not snapped in Goblet of Fire when she received a life sentence in Azkaban and, as we know, her wand played a fairly significant part in Deathly Hallows.  ¹I realize in Deathly Hallows Voldemort made attendance at Hogwarts compulsory; however, by that time, Hagrid had been cleared of the charges of being responsible for Myrtle's death and was allowed to use magic again. Is it possible to run commands from spotlight? I run commands in terminal a lot and i'm wondering if it is possible to run the commands from spotlight. For example in spotlight  would like to run the command(because i have a lot of network issues):   ping google.com   And then spotlight to load terminal and execute the command instead of having to load terminal because it takes so long to load. So is this possible? Why is black the best emitter? Did svchost.exe behaviour change in Windows 10 Creators Update (Build 1703)? How to merge columns in a table? I have this table, but wanted to format the first row. I like to match the two columns of first row, and last two columns of the same first row. Any suggestion on how to do that?  \begin{table}[!h]  \caption{Comparison of percentages.} \begin{tabular}{lclclclclc} \hline \hline  Mode &amp;  Var  &amp;  Cum\\ \hline {}       &amp; EF   &amp; CHF    &amp; EF2   &amp; CHF2\\ 1   &amp;  17.5 &amp; 19.1   &amp; 17.5  &amp; 19.1\\ 2   &amp;  11.8 &amp; 12.7   &amp; 29.3  &amp;  31.9\\ 3   &amp;  6.6  &amp;  5.6         &amp; 35.9    &amp;  37.4\\ \hline \end{tabular} \end{table} My path is \\server\folderName1\another name\something\another folder\  How do I extract each folder name into a string if I don't know how many folders there are in the path and I don't know the folder names?  Many thanks How to write 1, 2, ... as a subscript to a letter? How to compute the determinant of a tridiagonal matrix with constant diagonals? How to show that the determinant of the following $(n\times n)$ matrix  $$\begin{pmatrix} 5 &amp; 2 &amp; 0 &amp; 0 &amp; 0 &amp; \cdots &amp; 0 \\ 2 &amp; 5 &amp; 2 &amp; 0 &amp; 0 &amp; \cdots &amp; 0 \\ 0 &amp; 2 &amp; 5 &amp; 2 &amp; 0 &amp; \cdots &amp; 0 \\ \vdots &amp; \vdots&amp; \vdots&amp; \vdots &amp; \vdots &amp; \vdots &amp; \vdots \\ 0 &amp; \cdots &amp; \cdots &amp; 0 &amp; 2 &amp; 5 &amp; 2 \\ 0 &amp; \cdots &amp; \cdots &amp; \cdots &amp; \cdots &amp; 2 &amp; 5 \end{pmatrix}$$  is equal to $\frac13(4^{n+1}-1)$?    More generally:     How does one compute the determinant of the following  (where the three diagonals are constant)?      $$M_n(a,b,c) = \begin{pmatrix} a &amp; b &amp; 0 &amp; 0 &amp; 0 &amp; \cdots &amp; 0 \\ c &amp; a &amp; b &amp; 0 &amp; 0 &amp; \cdots &amp; 0 \\ 0 &amp; c &amp; a &amp; b &amp; 0 &amp; \cdots &amp; 0 \\ \vdots &amp; \vdots&amp; \vdots&amp; \vdots &amp; \vdots&amp; \vdots &amp; \vdots \\ 0 &amp; \cdots &amp; \cdots &amp; 0 &amp; c &amp; a &amp; b \\ 0 &amp; \cdots &amp; \cdots &amp; \cdots &amp; \cdots &amp; c &amp; a \end{pmatrix}$$      Here $a,b,c$ can be taken to be real numbers, or complex numbers.   In other words, the matrix $M_n(a,b,c) = (m_{ij})_{1 \le i,j \le n}$ is such that $$m_{ij} = \begin{cases} a &amp; i = j, \\ b &amp; i = j - 1, \\ c &amp; i = j + 1, \\ 0 &amp; \text{otherwise.} \end{cases}$$  There does not seem to be an easy pattern to use induction: the matrix is not a diagonal  of the type $M = \bigl(\begin{smallmatrix} A &amp; C \\ 0 &amp; B \end{smallmatrix}\bigr)$ (where we could use $\det(M) = \det(A) \det(B)$ for the induction step), and there are no lines or columns with only one nonzero entry, so  gets complicated quickly.  Is there a general pattern that one could use? Or is the answer only known on a case-by-case basis? It's possible to compute the determinant by hand for small $n$:  $$\begin{align} \det(M_1(a,b,c)) &amp; = \begin{vmatrix} a \end{vmatrix} = a  \\ \det(M_2(a,b,c)) &amp; = \begin{vmatrix} a &amp; b \\ c &amp; a \end{vmatrix} = a^2 - bc \\ \det(M_3(a,b,c)) &amp; = \begin{vmatrix} a &amp; b &amp; 0 \\ c &amp; a &amp; b \\ 0 &amp; c &amp; a \end{vmatrix} = a^3 - 2abc \end{align}$$  But there is no readily apparent pattern and the computation becomes very difficult when $n$ gets large. Constructor not defined error in test code When I press F3 to see the debug screen in I use Minecraft 1.8.1, some information is missing.   Most notably, there are no X, Y, Z coordinates.     What happened to my debug overlay? Consider the sequence $(\phi_n)_{n\in \mathbb{N}}$ of test-functions $\phi_n\in \mathcal{D}(\mathbb{R})$ defined by  $$\phi_n(x) = \dfrac{n}{\sqrt{\pi}}e^{-n^2x^2}.$$  I want to show that this is a delta sequence, in the sense that:  $$\lim_{n\to\infty}(\phi_n,\psi)=(\delta,\psi)=\psi(0), \quad \forall \psi\in \mathcal{D}(\mathbb{R}).$$  In that case we know that we have  $$(\phi_n,\psi)=\dfrac{n}{\sqrt{\pi}}\int_{-\infty}^{\infty}e^{-n^2x^2}\psi(x)dx.$$  The problem here is to compute this integral. The function $x\mapsto e^{-n^2x^2}\psi(x)$ has no singularities, hence contour integration wouldn't help. Integration by parts or substitution also doesn't seem to be of great help.  The major problem is that there is a function $\psi$ inside the integral about which we don't know really anything apart from the fact that it is $C^\infty$ and with compact support.  How can we compute this integral and in the end show that the sequence $(\phi_n)$ is a delta sequence?  Just to make clear, I'm here doing all of this in the context of the Riemann integral. Powering a WS2812B strip When does Bleeding Attack effect apply? I've designed for a campaign a duo of rogues. My character is as , and his follower is a Knife Mistress. Couple of question about them. Our party is about to ambush several . My Sniper will hide near their camp, and shoot the weakest one when fight begins. His follower will then rush the troll and slice him in several pieces. My Sniper has the Bleeding attack feat:  Bleeding Attack (Ex) Benefit: A rogue with this ability can cause living opponents to  by hitting them with a sneak attack. This attack causes the target to take 1 additional point of damage each round for each die of the rogue's sneak attack (e.g., 4d6 equals 4 points of bleed). Bleeding creatures take that amount of damage every round at the start of each of their turns. The bleeding can be stopped by a DC 15 Heal check or the application of any effect that heals hit point damage.  Emphasis mine. Thus, a normal enemy would bleed every turn, until he get cleaned of the bleeding effect. However, troll have a special ability, which is  5 (acid/fire)  Regeneration (Ex) A creature with this ability is difficult to kill. Creatures with regeneration heal damage at a fixed rate, as with , but they cannot die as long as their regeneration is still functioning (although creatures with regeneration still fall unconscious when their hit points are below 0). Certain attack forms, typically fire and acid, cause a creature’s regeneration to stop functioning on the round following the attack. During this round, the creature does not heal any damage and can die normally. The creature's descriptive text describes the types of damage that cause the regeneration to cease functioning.  So, the troll will automatically get rid of the bleeding effect during his first turn. My question is: Does the bleeding effect apply before the regeneration, or get neglected, because the troll will heal during his turn? Am I right to assume that, Bleeding attack effect getting triggered at the beginning of the troll turn, it will deal him the damages before the wounds heals? Smart guides aren't smart TL:DR Smart guides aren't accurate - even though the snap, (end up causing more problems in the long run) is there a way to fix it?  Maybe there are some settings that I'm missing (need to be changed)    I use my smart guides all the time (and am overall pleased with them). I do have my issues with it, as explained here:  A lot of times, when I'm trying to make a bunch of triangles like this:    Done by making a triangle, cloning, flipping, rotating etc. Repeat until full  (Perfect) Snapping using Smart Guides    Ends up looking likebetween the triangles (Outline Mode)    Now I personally (with a strong attention to detail) will notice that there is something off after making just 1 or 2 triangles (Even before outline mode... strokes look oh so slightly thicker/off)   And then I check in outline mode... and sure enough:    Notice the line spaces (and this is in outline mode, so if I didn't notice it before, now it's sitting right in front of my nose)  The way I (seemingly) "fixed" the first image was by adding in a thick stroke outline so that masks out the difference, however, in a lot of my cases I don't want to have a stroke at all (and then you really notice the problems). I'm attempting a mass update on Contacts via Execute Anonymous. My code gives me the following error:     System.LimitException: Apex CPU Time Limit Exceeded   Here's my code:  List &lt;Contact&gt; contactList = [select Id, Mass_Update_Checkbox__c from Contact Limit 1000];  for (Contact contact : contactList) {     contact.Mass_Update_Checkbox__c = TRUE;  }  update contactList; When is the message "Have you considered accepting an answer or starting a bounty for this question?" displayed? I have built a forecasting model for a company. Since it is dedicated to practical usage, I prefer to use the relative error parameter (like MAPE, SMAPE, &amp; MASE) as a measurement for my model performance and display it on the dashboard (the percentage error is easier to understand by user). I found an interesting reference about the criteria of a good forecast result based on MAPE from Lewis (1982):  ...but in my case, I can't use MAPE for some dataset because there is some zero actual demand so it can't be used as denominator in MAPE. So, I use SMAPE &amp; MASE instead, but I can't find any good references about good forecast result criteria based on SMAPE &amp; MASE, nothing like above. So, I'd really appreciate any help/suggestion about it :), Thank You! Reference: Lewis, C. D., 1982. Industrial and Business Forecasting Methods. London: Butterworths. When I'm in a phone call, I still get alerts for emails and texts. The noise will play and, if the phone is on Speaker, it will vibrate -- often leading the person I'm talking to wonder what that weird noise was.  Surely there must be a way to silence the phone while you're talking on it. It's very distracting to have beepings going off right next to your ear! 70s UK science fiction TV show with time travel and telepathic cat I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel.