EOL Syntax Error while saving a string
"EOL while scanning single-quoted string"? (backslash in string)
Why is the network configuration I set in /etc/network/interfaces ignored on Ubuntu 17.10? How can I raise a soldiers hacking ability? My main specialist seems to have a hard time hacking stuff. How can I make him better at it? Norm of adjoint operator in Hilbert space Prove that   $$\sum^{n}_{i=1}\binom{n}{i}i=n2^{n-1}$$   I can't find counting interpretations for either of the sides. A hint of "if $S$ is a subset of $\{1, . . . , n\}$ and $S^\prime$ is its complement then $|S| + |S^\prime| = n$" was also given, but I still don't know how to begin. What does a type followed by _t (underscore-t) represent? This seems like a simple question, but I can't find it with the Stack Overflow search or Google. What does a type followed by a _t mean? Such as  int_t anInt;   I see it a lot in C code meant to deal closely with hardware—I can't help but think that they're related. The various modern revolutions in physics, in psychology, in politics, even in literary style, have not escaped his intelligent notice, but they can scarcely be said to have influenced him deeply.    Could you please explain the following?  They can scarcely be said to have influenced him deeply.  Or, I can not understand such a structure like the following:  In contrast, prices set by a central planner are necessarily arbitrary, since there is no standard against which they can be said to be correct or incorrect. d'oh! Rejecting a PhD offer after having accepted it. Advice? Google sheets split multi-line cell into new rows (+ duplicate surrounding row entries) What is the limit of series $\frac{1}{2 \cdot 3 \cdot 4} + \frac{1}{4 \cdot 5 \cdot 6} + \frac{1}{6 \cdot 7 \cdot 8} + \cdots $?  The $n$th summand is $\frac{1}{(2n)(2n + 1)(2n+2)} = \frac{1}{4} \frac{1}{n(2n+1)(n+1)}$.  I have tried expressing this as a telescoping sum, or as the limit of Riemann sums of a partition (the usual methods I normally try when doing this type of question- what are some other strategies?) What exactly is weakly informative prior? Is there a precise definition of weakly informative prior?  How is it different from a subjective prior with broad support? Pattern matching with LIKE, SIMILAR TO or regular expressions in PostgreSQL I had to write a simple query where I go looking for people's name that start with a B or a D :   SELECT s.name  FROM spelers s  WHERE s.name LIKE 'B%' OR s.name LIKE 'D%' ORDER BY 1   I was wondering if there is a way to rewrite this to become more performant. So I can avoid or and / or like? I have an object at a fixed position in 3D space. I would like the camera to circle around it while facing it. I want to path of the camera to be circular in 2D, meaning that it does not move up or down.  I need this to be pretty accurate. I don't want to manually set a keyframe every frame for position and rotation. I would like to do this maybe with an expression, not with manual keyframing. I am not sure how to go about this but I think it is going to involve Python as well as some trigonometry. How do I add a border around windows but keep the current theme? I seem to live my life in the terminal - many terminals in-fact.  I also love the Ambiance theme - but the new borderless windows does not provide the visual differentiation I'm used to (the same black windows appear to blend into each other).    Thus to my question - how do I add back the single pixel border for windows that is found in earlier Ubuntu versions?  I want to keep the Ambiance overall theme since this looks good and I dont want to swap to another theme.      Now I know that I can modify the Ubuntu Ambiance theme as follows:  mkdir ~/.themes cp -r /usr/share/themes/Ambiance .themes   Then flipping between the theme options in the Settings - Appearance picks up changes in the theme in now in the .themes folder.  I presume I need to alter one of the .css files but I dont know which one.  I was also looking at  but the solutions there doesnt work for 14.04.  I also looked at the  but got rather lost trying to figure out which one applies to my situation. How can I match multiple occurrences with a regex in JavaScript similar to PHP's preg_match_all()? I am trying to parse url-encoded strings that are made up of key=value pairs separated by either &amp; or &amp;amp;.   The following will only match the first occurrence, breaking apart the keys and values into separate result elements:  var result = mystring.match(/(?:&amp;|&amp;amp;)?([^=]+)=([^&amp;]+)/)   The results for the string '1111342=Adam%20Franco&amp;348572=Bob%20Jones' would be:  ['1111342', 'Adam%20Franco']   Using the global flag, 'g', will match all occurrences, but only return the fully matched sub-strings, not the separated keys and values:  var result = mystring.match(/(?:&amp;|&amp;amp;)?([^=]+)=([^&amp;]+)/g)   The results for the string '1111342=Adam%20Franco&amp;348572=Bob%20Jones' would be:  ['1111342=Adam%20Franco', '&amp;348572=Bob%20Jones']   While I could split the string on &amp; and break apart each key/value pair individually, is there any way using JavaScript's regular expression support to match multiple occurrences of the pattern /(?:&amp;|&amp;amp;)?([^=]+)=([^&amp;]+)/ similar to PHP's preg_match_all() function?  I'm aiming for some way to get results with the sub-matches separated like:  [['1111342', '348572'], ['Adam%20Franco', 'Bob%20Jones']]   or   [['1111342', 'Adam%20Franco'], ['348572', 'Bob%20Jones']] How to compare objects by multiple fields Assume you have some objects which have several fields they can be compared by:  public class Person {      private String firstName;     private String lastName;     private String age;      /* Constructors */      /* Methods */  }   So in this example, when you ask if:  a.compareTo(b) &gt; 0   you might be asking if a's last name comes before b's, or if a is older than b, etc...  What is the cleanest way to enable multiple comparison between these kinds of objects without adding unnecessary clutter or overhead?   java.lang.Comparable interface allows comparison by one field only Adding numerous compare methods (i.e. compareByFirstName(), compareByAge(), etc...) is cluttered in my opinion.   So what is the best way to go about this? I have a quaternion, coming from a system with the following:(intertial sensor)  Right handed. Forward direction: Y axis Right direction: X axis Up direction: Z axis   I need to convert this into a coordinate system that is: (Unreal engine)  left-handed. Forward direction: X axis Right direction: Y axis Up direction: Z axis   I have tried negating the axis, and angle, I have tried switching values, i cannot get this to work. All help greatly appreciated! I am working in C#, with Microsoft.Xna.Quaternion. I have bought return tickets from London to Lille Europe on Eurostar. The trains on my outward and inbound journeys both stop at Calais Frethun.  Will Eurostar let me get on in Calais on the inbound? What about getting off at Calais on the outbound leg? I suspect leaving the train early is easier than getting on the train 'late'. "Not a COM32R image" error when trying to install from a USB key Not a COM32R image boot   is a message that the console infinitely keeps spitting out when I try to install Ubuntu 10.04 from a USB. I created the USB using the StartupDiskCreator in 11.04.  What is the reason for this behavior? What do I do to set it right?   I have followed the steps perfectly, as enlisted in the . Timestamp in the  is going out of it's boundary.        AFAIK, the suggested edits timestamp was near to it's type (i.e. asked, proposed) like this:        Checked on Chrome (27.0.1453.110 m), Firefox (21.0) on Windows XP  The issue is in other Stack Exchange sites as well. E.g. Have a look at  on Physics.SE. Also in   Can we fix this? How to install Ubuntu 18.04 alongside Windows 10 How to install Ubuntu 18.04 alongside Windows 10?  I have tried different process to install Ubuntu 18.04 in my PC in dual boot mode alongside Windows 10. But it turned out that most of the process didn't worked for my PC. My PC's configuration is 500 HDD, 3.5GHz Intel processor, 4GB RAM, 1GB Intel graphics &amp; supports both BIOS &amp; UEFI.