I am sure that this is a very basic question but I'm afraid that I have been unable to get it to work or understand what is going on.  I have a node project that I usually run with  sudo npm start   and I am trying to create a bash script that will launch this for me.  I have tried a few variations:  su myname -c "npm run start" sudo su myname -c "npm run start" su myname -c "sudo npm start"   but they all seem to execute the command without superuser rights. From the research that I have done it seems that  sudo su myname -c "npm run start"   is the correct one but it doesn't work (it runs but without permissions). Can someone please point me in the right direction?
To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.
Multiple workspaces on Ubuntu 18.04.1 LTS and later with GNOME Shell Any idea how to have more than 2 workspaces on Ubuntu 18.04.1? Am I Using JDBC Connection Pooling? LCM is associative: $\ \text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))$ Definition: The least common multiple of $a.b\in\Bbb{Z}$ is the smallest  $k\in\Bbb{N}$ that is divisible by both a and b.         Proposition: $\text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))\tag{2}$    Proof: We want to show $\text{lcm}(\text{lcm}(a,b),c)\mid\text{lcm}(a,\text{lcm}(b,c))$ and $\text{lcm}(a,\text{lcm}(b,c))\mid \text{lcm}(\text{lcm}(a,b),c)$ such that $\text{lcm}(\text{lcm}(a,b),c)=\text{lcm}(a,\text{lcm}(b,c))$.  Let $k=\text{lcm}(\text{lcm}(a,b),c)$, then $c\mid k$ and $\text{lcm}(a,b)\mid k$, but if we let $l=\text{lcm}(a,b)$, then $a\mid l\,\,\text{and}\,\, b\mid l$. Therefore $c\mid k\,\,,a\mid k\,\,\text{and}\,\, b\mid k$, but then $\text{lcm}(b,c)\mid k$. Thus $\text{lcm}(a,\text{lcm}(b,c))\mid k$      Question: Does this makes sense, ifso can I do the same for $\text{lcm}(\text{lcm}(a,b),c)\mid \text{lcm}(a,\text{lcm}(b,c))$? Atmospheric lighting in cycles How would I go a about making volume light beams?  I have have tried  various tutorials, but they must be for a older version. as applying them does seemingly nothing.  A link to a functioning tutorial would be greatly appreciated as well.  I don't have a picture or .blend to show, as my problem with atmospheric lighting does not pertain to any specific scene. Prove $\lim\limits_{n\to\infty}n^{-1/(p+1)}(1^{1^p}\cdot 2^{2^p}\cdots n^{n^p})^{n^{-p-1}}=e^{-1/(p+1)^2}$ Prove that for real number $p\geq  0$ we have   $$\lim_{n\to\infty}\frac{(1^{1^p} \cdot2^{2^p}\cdots n^{n^p})^\frac{1}{n^{p+1}}}{n^\frac{1}{(p+1)}} = \exp\left(\dfrac{-1}{(p+1)^2}\right).$$ Please select a file error Replacement for alliums? Flight cancelled but doesn't show up on status I booked a SpiceJet flight from Dubai to Ahmedabad on Dec 16 (SG-16) scheduled to depart at 7:25 PM. At noon I received an SMS from SpiceJet to advise me that my flight has been delayed by 4h 50m. Sure enough, when I checked flight status on SpiceJet's website, that was the case. But on other websites like flightstats.com and dubaiairports.ae, the status was that flight was "delayed by 2h 25m".    At 5 PM, I got an SMS that flight had been cancelled. I double checked on Spicejet's website and that too showed the flight to be cancelled. But both flightstats.com and dubaiairports.ae still showed the flight as delayed by 2h 25m.    I went to the airport and met SpiceJet officials. Sure enough, the flight was cancelled. But somehow, the flight cancellation status never made it to the system. I have a Tripit Pro account, and even that never sent me an alert for that. I contacted the travel agent through which I booked my flight (makemytrip) for a refund, and they said that their system doesn't show that flight was cancelled. Now, even the Spicejet website has removed the cancellation status from that flight.    Apart from the SMS, I now have no proof that my flight was cancelled.    Can someone tell me, how can I proceed with a refund claim? Why would spacetime curvature cause gravity? It is fine to say that for an object flying past a massive object, the spacetime is curved by the massive object, and so the object flying past follows the curved path of the geodesic, so it "appears" to be experiencing gravitational acceleration. Do we also say along with it, that the object flying past in reality exeriences NO attraction force towards the massive object? Is it just following the spacetime geodesic curve while experiencing NO attractive force?  Now come to the other issue: Supposing two objects are at rest relative to each other, ie they are not following any spacetime geodesic. Then why will they experience gravitational attraction towards each other? E.g. why will an apple fall to earth? Why won't it sit there in its original position high above the earth? How does the curvature of spacetime cause it to experience an attraction force towards the earth, and why would we need to exert a force in reverse direction to prevent it from falling? How does the curvature of spacetime cause this?  When the apple was detatched from the branch of the tree, it was stationary, so it did not have to follow any geodesic curve. So we cannot just say that it fell to earth because its geodesic curve passed through the earth. Why did the spacetime curvature cause it to start moving in the first place? Can a fired moderator be elected as a moderator? While this question is inspired by recent events, it is an independent question and not tied down to any specific moderator or situation.  There's precedent for a moderator who resigned their diamond to simply ask Stack Exchange for their diamond back, without having to stand for reelection. Obviously, this may not apply if the moderator did not resign, but was removed for cause by Stack Exchange.  If a moderator has been "fired" by Stack Exchange (has had their diamond removed involuntarily by corporate action), is the person eligible to pull a  and regain a diamond through the democratic process on one of our sites, or would any such attempt be blocked? I'm aware that there is a restriction on  from standing for election, but this is not the same thing as being stripped of a diamond (fired moderators, IME, aren't also given a full site suspension unless their behavior goes beyond "possibly not a very good moderator" into "supervillain" territory).  If there is no particular rule, what should that rule be?   Should fired moderators be immediately eligible to stand for election, subject only to community approval of them returning? Should fired moderators have to go through a separate re-vetting process with Stack Exchange to regain eligibility to stand for office? Should fired moderators have an ineligibility window in a similar way that suspended users have one (e.g. after X months or years after being fired, they may stand for election). Should fired moderators be forever banned from election?   In no way am I asking about the process for a fired moderator to seek restoration through corporate appeals, etc. I'm asking only about the community election process - if a site's community wants to elect a previously fired moderator, is this inherently objectionable to Stack Exchange? Complex numbers equation: $z^4 = -16$ Is it possible to get rid of the bullets in the miniframes outer theme How can we communicate short messages long-distance? In our 5e game, we stole a boat. And a horse carriage. And a lot of other stuff for moving things between cities.   Our DM meant for this to be a way to skip road encounters. We decided to fund a shipping company and hire managers (Knights retainers, etc.) to turn a profit. The DM ruled that these would cover lifestyle expenses, provide us with easy smuggling, etc.   However, we want to keep tabs on the treasure we're moving back and forth.   What can we use for communicating with our managers from anywhere in the world? What about from say, across the city?  We don't need to communicate often or for long - a single round will work. All we need is for the manager to say "we need you back" What would happen if the earth would stop spinning? How much heavier would we be? I mean absolutely stop spinning. How much does the centrifugal force affect us?  If you give technical answers (please do), please explain them in laymen's terms, thanks.  Edit: I am asking what would be different if the earth were not spinning. Nevermind the part about it stopping. What is the motivation for including the compactness and semi-simplicity assumptions on the groups that one gauges to obtain Yang-Mills theories?  I'd think that these hypotheses lead to physically "nice" theories in some way, but I've never, even from a computational perspective. really given these assumptions much thought. Add a duplicate:0|1 search operator Problem with >> inside of \tt I have an inline code example with a nested Java generic declaration, using the typewriter typeface. However, the closing &gt;&gt; is rendering as a black box. A cursory Google search suggested $&gt;&gt;$, but this removes the typewriter font. Using \textgreater in place of the actual &gt; also encounters the same problem. Here is the offending snippet:  ...declaration {\tt List&lt;Map&lt;Integer, String&gt;&gt;} is...   Any ideas? Dual-system Windows and Ubuntu I did dual boot with Windows 7 &amp; Ubuntu 14.04. I get both in boot menu but can't boot into Windows 7. The primary drive where Windows 7 was configured now shows to be logical drive with all files in it. How to resolve it ?  This is what it shows:  irshad@irshad-desktop:~$ lsblk NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 465.8G  0 disk      ├─sda1   8:1    0  58.6G  0 part /media/irshad/B2E08E69E08E339F     ├─sda2   8:2    0     1K  0 part      ├─sda5   8:5    0 195.3G  0 part /media/irshad/8E90A6A690A6946D     ├─sda6   8:6    0 182.8G  0 part /media/irshad/7650B08250B04B1F    ├─sda7   8:7    0    25G  0 part /    └─sda8   8:8    0     4G  0 part      sr0     11:0    1  1024M  0 rom     I tried to run update-grub but I get the following result.  $ sudo update-grub  Generating grub configuration file ...  /etc/grub.d/06_custom: 31: /etc/grub.d/06_custom: function: not found  /etc/grub.d/06_custom: 34: /etc/grub.d/06_custom: save_env: not found  /etc/grub.d/06_custom: 36: /etc/grub.d/06_custom: Syntax error: "}" unexpected Virtualbox Windows 10 Guest installation is freezing up in 14.04 I've installed VirtualBox using the Software Centre and I'm running a system on Ubuntu 14.04 with 8gb RAM, 64-bit dual core processor.  I want to run Windows 10, I've tried both 64 and 32 bit versions, in virtualbox. However, every time I start up windows 10 it gets to the point where the dots go round in a circle, then it freezes up and crashes back to the virtualbox manager. The only information it gives me is that the virtual machine was aborted.  I've changed the settings around a lot and nothing is working.  Any help would be appreciated.  Oh, and I've run Windows 10 technical preview on this machine before, a while ago  Thanks for any help in advance. Probability that a k digit number does not contain certain digits