When trying to install Chrome onto my AWS Ubuntu instance, I ran the following command:  sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add   And got: This command can only be used by root
How do you install Google Chrome on Ubuntu?
How do I send a file as an email attachment using Linux command line? I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file.  The next step I want to accomplish is to send that tar file through email to a remote email server for safekeeping.  I've been able to send the raw script in the body an email by piping the backup text file to mailx like so:  $ cat mysqldbbackup.sql | mailx backup@email.com   cat echoes the backup file's text which is piped into the mailx program with the recipient's email address passed as an argument.  While this accomplishes what I need, I think it could be one step better, Is there any way, using shell scripts or otherwise, to send the compressed .tar file to an outgoing email message as an attachment?  This would beat having to deal with very long email messages which contain header data and often have word-wrapping issues etc. How can I use only the external flash on slave mode without firing the built-in flash? I have a Canon 700D and YN-568EX ii external flash that I am using in slave mode. But whenever I try to fire the built-in flash pops up automatically and fires itself. Is there any option to use only external flash? Uncaught SyntaxError: Unexpected token with JSON.parse Accessing raster attribute table in QGIS? I have some Python code that makes Raster Attribute Tables for GeoTiffs using GDAL.    In ArcGIS I can see these attribute tables fine and they behave how I like (as classifications) but in QGIS the whole concept of an attribute table seems to be missing.    Is there any way to access a RAT in QGIS? Does the Symmetric difference operator define a group on the powerset of a set? $G$ is the set of all subsets of a set $A$, under the operation of $\triangle\;$: Symmetric Difference of sets.  $A$ has at least two different elements.  I need to check if this is a group, and if it does to show if the group is abelian and/or finite.  Associativity - easy from Symmetric Difference. Identity element - empty group. Inverse element - each element is inverse to itself. Am I right?  abelian? finite? What does the "RW" logo mean in a DVD+R? If you look at this product:    you can clearly see that it is a DVD+R, i.e. once it is written, it cannot be erased/rewritten.  Then what does the "RW" logo (in the lower right corner) mean? I thought it stood for ReWritable, but experimenting with the medium shows that it is not. All of my Firefox add-ons have been disabled suddenly, how can I re-enable them? How can I install Ubuntu encrypted with LUKS with dual-boot? The Ubuntu installation disk has an option to install Ubuntu encrypted using LUKS. However, there is no option to perform an encrypted installation along-side existing partitions for a dual-boot scenario.  How can I install Ubuntu encrypted alongside another partition from the live disk? MongoDB could not connect local server I had mongdb installed and evrything was working fine. I wanted to delete the mongodb lock. By mistake the directory /var/lib/mongodb/ got deleted.  So, I uninstalled mongo db and installed again. But now i always keep getting this error:  Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145 exception: connect fail   The error remains same even if I try to login from terminal or rockmongo or my application. I am using ubuntu12.04 and have latest version of mongo. The new GNU Octave 4.0.1 was released March 23, 2016.  I would like to find some standard way to install it in El Capitan (mine OS X 10.11.3) because it has significantly better support in some functions than Matlab, discussed in the thread .  I do brew search octave and get  homebrew/science/octave    Caskroom/cask/octave       Caskroom/cask/xoctave       where one of the first two should be a correct one. The project's homepage  for OS X is down  about installing Octave on OS X systems.  There is also ruby's way of installing Octave described in the thread  but for Yosemite.  I would like to find some standard way of getting Octave for OS X.   I do successfully brew update and brew upgrade before the commands. My Homebrew is 0.9.5 (git revision 80d1; last commit 2016-03-24).  . I run brew info octave but I get  Error: No available formula with the name "octave"     How can you install Octave in some standard way for El Capitan? I have a British passport from 2006 September and going to Florida. The passport in has camera symbol. Is it valid? I am going to Florida in a few days. I have a British passport that I acquired in September 2006. It has a "camera" symbol on front and is biometric. Just seen news items that only passports from October 2006 or later will be accepted by the USA. Is my passport valid for travel to the USA? I do have a valid ESTA. would this be considered a 'methodology' or a 'method'? Say I developed something called "Methodology for Establishing Remaining Life of Components". Basically, at work, we have components (or equipment). I wanted to develop a way to identify how much longer the components / equipment can last before they ware out and cannot be used.  It takes into account "the degree of damage currently in the component, the rate of future damage accumulation based on realistic operating scenarios, and the degree of damage required to cause failure." Taking these three into account, the remaining life of a component can be assessed. This is what I call "Methodology for Establishing Remaining Life of Components".   My question is, would this be considered a 'methodology for establishing remaining life of components' or just a 'method for establishing remaining life of components'? Or do you need more information to figure out if it is a method or methodology?   I cannot provide all the information for business purposes, but if additional  information is required to figure out if it is a method or methodology, I will provide it. How do I transfer my Pokemon Go account to another device (Android to Android)? I was having trouble playing the game on my android so I downloaded it to my wife's phone (Galaxy S6). I read some posts on how to get it running on my android and it worked but, my level 7 account is on my wife's phone.  How do I get it back to my android? When I sign out and back in it doesn't ask for any sign in info. I've tried deleting the app's data and even uninstalling and re-installing, but it still doesn't ask for sign-in info. What is the difference between correlation, causation and prediction? Suppose we have a set of events $\Omega$, containing events $A$ and $B$. My econometrics professor tried to distinguish the following three terms today.    Causation --- $A$ causes $B$ if the occurrence of $A$ always leads to another specific outcome $B$. For example, clapping my hands causes a sound to be emitted.  Prediction --- $A$ predicts $B$ if on average, $B$ is the expected outcome from $A$ occurring. In other words, whereas causality is deterministic, prediction is probabilistic. For example, studying for a test would predict doing well on the exam. But there's no guarantee.   Correlation --- $A$ and $B$ are correlated if when one occurs the other does too. But there may be some hidden variable causing both.    Are these distinctions meaningful? Or did he make these terms up?   My Questions   What is the difference between causation and correlation?  Are "causes" always deterministic? What happens if a target for removal becomes ineligible after a card has been cast? When you have a card like  which reads "Exile Target Creature with power 3 or less", as I understand it, it becomes untargetable if the opponent's creature power increases thanks to a pump spell like .  But what if the Disregard is already on the stack and targeting; and they respond with Brute Strength? I'm pretty sure (and my opponent with Brute Strength was certain) that it won't exile the creature, but I don't know which rule states this, and there's no gatherer ruling on the spell. Can anybody explain about real linear space and complex linear space? This is definition      "A real linear $V$ is said to have an inner product if for each pair of elements $x$ and $y$ in $V$, there corresponds a unique real number $(x.y)$ satisfying what we know as axioms for inner product."    What does it mean? $(x.y)=xy$ and $xy$ is a real number?   When $(x.y)$ is complex, it is called complex space, does that mean that $(x.y)=xy=$ complex?   I don't understand what inner product is. Cannot delete directory with Directory.Delete(path, true) Safari Extension to Manage Tabs? Table of Variables What should a rational person accept as a miracle?