Automatically Run a Command/script at startup This question is ALL over ubuntu, with MODS saying its duplicate, but I have found no good answers!  I want to run the command, (this will work for script as well)  sudo service deluged restart   at boot after everything is done, IE: last thing to run  I first found this post, marked duplicate    Which seth blocked from future help and linked to this post    First off, I run a server, not a desktop (Which is what the linked "duplicate" guide shows you), so I can only use CLI based guides. Second those are 2 different questions.  Then there is this post    Marked as duplicate and linked to this question which may answer his specific question, but does not answer the question, run a command at boot.    Anyway, there is more!, but what I am getting at is I know what I want is just ONE example of how to do this via CLI and simple. I am not a coder, but I can read code and edit it to suit my needs and understand it, i just can't create it so to speak.  As another mod (takkat) has said, this is a duplicate of a question relating to    but again my point is that this post, i am using  sudo service deluged restart  as an example on how to run a command/script at boot, not troubleshooting why a service is not runnnig. While rc.local may serve as a dirty fix for a problem i have,  it can be used in a lot of other situations.   please try to answer the question directly, not give me links to what you think might help, and if it is a duplicate then link to a cli guide that covers HOW TO RUN A COMMAND/SCRIPT AT BOOT, because CLI guides can be used by both desktop and server users of Ubuntu.
How to run scripts on start up? How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?
I'm in UV Editor and trying to snap the 2d cursor to the vertex ( while the vertices are visible). I turn ON snap and set it to 'vertex mode' , but the 2d cursor won't snap to any visible vertex at all. I can only make it snap to the grid (increment node). Is it a bug ? or did i miss something here ? i'm using 2.8. Rename all the files within a folder with prefix “Unix_” Rename all the files within a folder with prefix “Unix_” i.e. suppose a folder has two files a.txt and b.pdf than they both should be renamed from a single command to Unix_a.txt and Unix_b.pdf What differentiates the scientific method from other methods From the controversy in , I would like to know what differentiates "the scientific method" from other method.  I'm asking for differentiation, rather than a definition, because definitions call for an all encompassing answer, which is often hard to find.  If someone asks "what is an alternative to the scientific method," I would like to be able to start by being able to reliably say whether a particular method is the scientific method or not.  Of course, being a linguistic issue, the definitions of words themselves are flexible.  For instance, it is not uncommon to hear one in science talk of "truth" in a sense which is incompatable with the mathematical meaning of "truth."  Accordingly, I would like to stick to the following ideals in wording whenever possible:   Prefer mathematically accurate terminology.  Ideally the word "proof" should be used in the form found in proof theory, and "true" and "false" should be used in the form of Boolean algebra.   No method should claim a hypothesis which predicts the state of the future is "true" unless they claim soothsaying abilities (most scientific theories include a random variable to avoid needing to claim soothsaying abilities... this is legitimate)  Words which imply direction should be clarified carefully.  "Good" and "bad" are notoriously difficult, but phrases such as "advancing society" can also be very tricky as well. The physical world and the world of information theory should be treated differently.  In particular, the concept of "testing a hypothesis" will likely need to be broken down into testing and observing the physical world, taking measurements (which should have errors associated with them), and only then is the hypothesis compared against the results of the measurements. Mathematically extending arguments into infinity (such as claiming some specific cellular level learning process qualifies as the scientific method) are valid, but may rapidly make it harder to distinguish non-scientific methods from scientific ones.  Such claims should be made carefully, but they are not inherently invalid.   If these ideals are too strict, you may bend them, but you should qualify such choices with an explanation of why my recommended wording choices are too strict.  Their goal is to put different methodologies on the levelest playing fields that I can manage in this medium.  Being stack exchange, bonus points for references to existing theories, though you may need to paraphrase their results to fit with the ideals I'm recommending for these answers.  Answers may be tested two ways:   Positive: If we think something is the scientific method, does it meet the requirements set forth? Negative: If we think something is not the scientific method, does the answer explain why it is not? Right-hand sidebar covers the footer on the "ask question" page and markdown help page I have noticed that while asking questions and scrolling to the bottom of the page, the right sidebar containing recent questions covers the footer partially. Also, a part of it goes beyond the browser's boundary. It may not be a big problem but it still doesn't look good.    This also happens on the  page Storage order vs Result order This is a spin-off question from .   says this on the subject of storage order (clustered index) and the output order     A lot of people believe that a clustered index guarantees a sort order on output. But that's not what it does; it guarantees a storage order on disk.   See, for example, .   I've read the blog post by Hugo Kornelis and understands that an index doesn't guarantee that the sql server reads the records in a specific order. Yet I have a hard time accepting that I can't assume this for my scenario?  CREATE TABLE [dbo].[SensorValues](   [DeviceId] [int] NOT NULL,   [SensorId] [int] NOT NULL,   [SensorValue] [int] NOT NULL,   [Date] [int] NOT NULL, CONSTRAINT [PK_SensorValues] PRIMARY KEY CLUSTERED  (   [DeviceId] ASC,   [SensorId] ASC,   [Date] DESC ) WITH (     FILLFACTOR=75,     DATA_COMPRESSION = PAGE,     PAD_INDEX = OFF,     STATISTICS_NORECOMPUTE = OFF,     SORT_IN_TEMPDB = OFF,     IGNORE_DUP_KEY = OFF,     ONLINE = OFF,     ALLOW_ROW_LOCKS = ON,     ALLOW_PAGE_LOCKS = ON)   ON [MyPartitioningScheme]([Date])   My original query was this:  SELECT TOP 1 SensorValue   FROM SensorValues   WHERE SensorId = 53     AND DeviceId = 3819     AND Date &lt; 1339225010   ORDER BY Date DESC   But I suggest that I could as well use this one (read below for my explanation):  SELECT TOP 1 SensorValue   FROM SensorValues   WHERE SensorId = 53     AND DeviceId = 3819     AND Date &lt; 1339225010   As you can see, my table rows are small (16bytes) and I've got only one index, a clustered. In my scenario, the table consists of 100.000.000 records at this moment (and this will most likely increase tenfold).  When the database server queries this table it has two ways of finding my rows, either it seeks the primary key and thereby reading and returning my values in desc. order of Date, or it has to do a full table scan. My conclusion is that a full table scan on all those records will be way too slow and the database server will therefore always seek the table via its primary key and thereby returning the values sorted by Date DESC sed : Ignore line starting whitespace for match Find $F$-related vector fields on $M\times N$, where $F(x)=(x, f(x))$ I am reading Lee's book on Differential geometry. In Chapter 4, Lee has this exercise.  Let $M$, $N$ be smooth manifolds, and let $f:M\to N$ be a smooth map. Define $F : M\to M \times N$ by $F(x) = (x, f(x) )$. Show that for every smooth vector field $V$ of $M$ , there is a smooth vector field on $W$ on $M \times N$ that is $F$-related to $V$.  I can understand that we must have $W_{(x,f(x))}=V_x\oplus Df(x)V_p$ for all $x\in M.$ The set $\{(x,f(x)):x\in M\}$ is a closed set in $M\times N.$ Therefore, if we can show that for all $(p,f(p))\in M\times N$ there is a neighbourhood $U_p$ and a smooth vector field on $U_p$ extending $V_x\oplus Df(x)V_x$ we are done by partition of unity. But I cannot show that. Can someone help me out? Let $G$ be a group and $H$ be a subgroup of $G$ of index $2$ .Then show that if $a,b\notin H$ then $ab\in H$. How can I stop fish from sticking to a stainless steel pan? I think Anne Burrell lied to me. She said fish will always stick to a stainless pan. This is true. No matter how well I lubricate my pan, my fish will always adhere like cement. She also said that the pan will release the fish "when it's ready." Maybe meaning it will eventually become unstuck when the fish is done cooking? Well, I've tried that, and it never works. No matter how long I wait, it never becomes unstuck. Most recently I gave it as much time as I could. When I finally chiseled it off the pan, tearing it apart in the process, I saw that it was starting to burn on that side. I've started going back to non-stick until I get this figured out.  Are there any tips? Am I heating the pan wrong? Does it help to slide the fish around a bit after putting it in the pan? Why are mathematical proofs that rely on computers controversial? There are many theorems in mathematics that have been proved with the assistance of computers, take the famous  for example. Such proofs are often controversial among some mathematicians. Why is it so?  I my opinion, shifting from manual proofs to computer-assisted proofs is a giant leap forward for mathematics. Other fields of science rely on it heavily. Physics experiments are simulated in computers. Chemical reactions are simulated in supercomputers. Even evolution can be simulated in an advanced enough computer. All of this can help us understand these phenomena better.   But why are mathematicians so reluctant? In Markov inequality proof, why is $\int_a^\infty xp(x) \, dx \ge \int_a^\infty ap(x) \, dx$ Markov inequality,   $$\Pr(X \ge a) \le \frac{E[x]}{a}$$  Proof  $$\begin{aligned}      E(X) &amp;= \int_0^\infty xp(x)\,dx = \int_0^a xp(x)\,dx + \int_a^\infty xp(x)\,dx \\       &amp;\ge \int_a^\infty xp(x)\,dx \ge \int_a^\infty ap(x) \, dx  \end{aligned}$$  Why is the last inequality true? Why is it ok to change $x$ to $a$, and we know it is less than or equal to? How did they figure it out? Thanks! Show $100+t$ is reducible in $\mathbb{Z}[[t]]$ $\mathbb{Z}[[t]]$ is the ring of formal power series with integer coefficients, and the problem asks to show that $100+t$ is reducible. This means I need to find two power series, $\sum_{i=0}^\infty a_i t^i$ and $\sum_{j=0}^\infty b_j t^j$ with $a_i,b_j\in\mathbb{Z}$, that when multiplied give $100+t$. Since the integers are an integral domain, I know that neither of these power series may be finite, but I'm having a really hard time figuring out how to come up with two series that will telescope properly. Any suggestions? Can $R \times R$ be isomorphic to $R$ as rings? I'm using Ubuntu 13.04 and I have ASUS X550V laptop. This is my rfkill list:  0: asus-wlan: Wireless LAN     Soft blocked: no     Hard blocked: no 1: asus-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: no 2: phy0: Wireless LAN     Soft blocked: no     Hard blocked: yes 3: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   Before you start going: Hey, just turn on your hardware switch, dummy... my hardware switch is Fn + F2 and it works perfectly fine on my Windows boot. But, on my Ubuntu boot it does nothing... All the other Fn + F_ combos work (turn off the touchpad, screen turn off, screen brightness, sound) and they give some kind of visual indicator when I press it.  My lshw log:  *-network DISABLED                 description: Wireless interface                 product: AR9485 Wireless Network Adapter                 vendor: Atheros Communications Inc.                 physical id: 0                 bus info: pci@0000:03:00.0                 logical name: wlan0                 version: 01                 serial: 24:0a:64:28:b4:25                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless                 configuration: broadcast=yes driver=ath9k driverversion=3.8.0-19-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn                 resources: irq:17 memory:f7900000-f797ffff memory:f7980000-f798ffff I'm wondering about the period character . used as a shortcut for the local computer name.  You can use it when logging into Windows 7, for example, to specify that the user account you're entering belongs to the local computer rather than to a domain:  .\MyLocalUserAccount   And you can use it within a Windows Management Instrumentation (WMI) query to indicate that the target is the local computer rather than a remote computer.  You can also use it when working with named pipes to for similar purposes.  However, you cannot use it as the UNC network name for the computer, like this:  \\.\MyShare   Does this character have an official name (e.g. "LocalHostToken") and when and where can it be used for this purpose? Is it possible to combine processing power of 2 computers? Here are a few questions, I wish you could enlighten me.   Is it possible to combine processing power of 2 computers? How do I do it? Create UEFI bootable USB stick to install Windows AND Ubuntu from it I know how to make a UEFI bootable stick to install Ubuntu (explained ) and I know how to make one to install Windows 7 (, sorry). I guess for Win 8 the procedure would be similar, but I haven't looked into it.  I also know how to make a legacy bootable stick from which I can install Windows and Ubuntu using YUMI. I have failed so far though at creating a UEFI bootable stick that can do this. When I do a UEFI boot from my YUMI multiboot stick it gives me no option to choose between Ubuntu and Windows (hardly surprising I guess) and instead simply UEFI boots Windows (which I find kind of surprising to be honest but maybe this is due to the fact that I added the Windows image after the Ubuntu image and this simply replaced Ubuntu's EFI boot files).  So how would I proceed to create such a bootable stick? How to get permission number by string : -rw-r--r-- I need to set the same chmod, how to get number for -rw-r--r-- ? Have the Linux kernel bugs that caused data loss when using a Samsung 850 Pro SSD been resolved? I just got a brand new Samsung 850 Pro SSD, and I would like to install Ubuntu 14.04 onto it.  I have read some pretty ugly stories of data loss with the 850 series SSDs when using Linux due to bugs in the kernel, as well as bugs in the TRIM operation.  I have done my research, but most of what I'm finding is very outdated. For example, see , and , as well as .  My question is, what is the current status? Have all major the bugs been worked out yet? Can I use variables inside {} expansion without `eval`? Can I use variables inside {} expansion without appealing to eval? If so, how?  This doesn't work:  $ touch 1.foo 1.bar $ ls 1.{foo,bar} 1.bar  1.foo $ extensions=foo,bar $ ls 1.{$extensions} ls: cannot access 1.{foo,bar}: No such file or directory   It works with eval:  $ eval ls 1.{$extensions} 1.bar  1.foo