sed append path to end of specific line pattern search
Using sed with special characters
Deleting a comment (mine) shouldn't count as a comment vote I had an old question that I revisited in order to link it in a new answer. I noticed that in the comments Steven A Lowe had a funny comment that I -- at the time -- had responded to with "why can't I upvote comments?"  Well, of course, now I can.  So, I voted Steven's comment up then went to delete mine. I got the warning box that I can only submit comment votes once every 5 seconds. This seems like a bug to me. Deleting is not the same as voting. When I created my account, I used Facebook Connect as my only login type and I can only log in to my account using it.  I wish to create a Stack Exchange login to be able to log in with instead of Facebook Connect, but I can't find how to do this. It seems that the option for creating a Stack Exchange login is only present when creating a new account? How old is Chewbacca, anyway? Do Wookiees get gray fur when they are old? Nginx: Forward all Subdomains My code doesn't work with second level tld's like domain.co.uk Here is my conf:   # add www.   if ($host ~ ^(?!www)) {    rewrite ^/(.*)$ http://www.$host/$1 permanent;   }    # remove subdomain   if ($host ~ &quot;^www\.(.*)\.(.*\.([a-z]{2,4}|[a-z]{2}\.[a-z]{2}))&quot;) {    set $host_without_sub $2;    rewrite ^/(.*)$ http://www.$host_without_sub/$1 permanent;   } \texttt overfull hbox problem I asked a question earlier about \verb and overfull hbox :   And regarding the solution there, changed many of my \verbs to \texttt{}s.  I have come up with a new problem now.  An example:  \documentclass {article} \begin{document} \section {Introduction}      The entry point is in \texttt{TRCS.Main()} (\texttt{TRCS\char`\\TRCS.cs}).    The stateless (see \S 3.4.3) forms are started immediately, then another controller   is invoked, namely  \texttt{Workflow}. \end{document}   Compiling this example will show my problem.  \texttt{Workflow} causes an overflow, and a rather significant one.  What should I do to alleviate the problem?  Thanks in advance for your help! I'm looking for a single word, for someone who...   keeps seeing everything that is wrong with everybody else.  never seems to see the good of other people, only the bad things. points at others, as if he forgets he has weaknesses himself. does not brag about himself, he just seems to be dissatisfied with everyone else.   I prefer a word that is as unambiguous and clear-cut as possible. .NET offers a generic list container whose performance is almost identical (see Performance of Arrays vs. Lists question). However they are quite different in initialization.   Arrays are very easy to initialize with a default value, and by definition they already have certain size:  string[] Ar = new string[10];   Which allows one to safely assign random items, say:  Ar[5]="hello";   with list things are more tricky. I can see two ways of doing the same initialization, neither of which is what you would call elegant:  List&lt;string&gt; L = new List&lt;string&gt;(10); for (int i=0;i&lt;10;i++) L.Add(null);   or  string[] Ar = new string[10]; List&lt;string&gt; L = new List&lt;string&gt;(Ar);   What would be a cleaner way?  EDIT: The answers so far refer to capacity, which is something else than pre-populating a list. For example, on a list just created with a capacity of 10, one cannot do L[2]="somevalue"  EDIT 2: People wonder why I want to use lists this way, as it is not the way they are intended to be used. I can see two reasons:   One could quite convincingly argue that lists are the "next generation" arrays, adding flexibility with almost no penalty. Therefore one should use them by default. I'm pointing out they might not be as easy to initialize. What I'm currently writing is a base class offering default functionality as part of a bigger framework. In the default functionality I offer, the size of the List is known in advanced and therefore I could have used an array. However, I want to offer any base class the chance to dynamically extend it and therefore I opt for a list. Combining |- and !.5! in TikZ How do I combine the !.5! operator with the -| operator?  I want a node that has x-coordinate equal to the average of x coordinates of nodes A and B, and a y-coordinate equal to the average the y coordinates of nodes C and D. How do I withdraw a paper from a journal after it was accepted but before it was fully published? On the advice of a senior colleague, I decided that I do not want to publish the paper anymore and with that journal. I wrote the editor several times; he has received the emails, but refuses to reply. I know he gets the emails because if its on other matters he has replied but not on the paper. I am ready to forfeit the processing fee I gave them but they refuse to reply and have already published the abstract of the paper to their site but not the full paper. Is legal action an option and do I have the right to sue? What are the guidelines in matters like these? What is the recommended CIDR when creating VPC on AWS? I have been creating AWS VPCs and I am wondering if there is a recommended CIDR value when creating VPCs. What are the factors that I must consider when choosing a CIDR and does the CIDR value affect the performance of the network? Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{-&gt;}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output: In the cases of black holes that form from supernova and collapse of a massive star, I understand that in most of these cases, the star loses significant amounts of mass from the explosion. Presumably, after this point as the remaining mass becomes more dense as it further collapses unto itself, it eventually becomes a black hole with gravitational force greater than that of its parent star. But, if gravity is based on mass, how can the black hole have greater gravitational force than the star from which it is formed? Title of a book telling about people teleported to a hostile planet while in deep meditation I read it sometime in the 90's but it seemed at least 15 years old at that time. The title might be containing something with 'wolves' or 'wilderness'.  Alert - Spoilers below      The book tells of some (I think) earth cult that dictates the practice of meditation. This cult is somewhat of a scam as When reaching the top level of meditation the meditator is either teleported or his consciousness abducted (I can't remember..) to be used as a calculation machine by the abductors.   Any references would be greatly appreciated. I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file? Maximize window shortcut What is the keyboard shortcut to maximize a window on OSX? I'd like to know the shortcut that is equivalent to double clicking on the window title. I do not want to make the window full screen. How do I join several objects into one? I'm creating side skirts for a truck and I am duplicating the frames I want. The problem is it's making the duplicated object into another object. How do I put it into the same one? Images can be pushed outside the boundaries of a post by using nested lists A   B   C   D   E   F             I don't even know. It just seemed weird.  Yes, I understand I could just avoid doing something like that. But the problem already exists with a single level.   Consider having 2 images in a post. Both exceed the maximum width of a post. One is nested in a list. Key to this issue is that my original images were much larger. They were automatically resized.  Image    List      I think it looks weird. Using TP4056 module to charge battery while load remains connected Is there a rational number between any two irrationals? Suppose $i_1$ and $i_2$ are distinct irrational numbers with $i_1 &lt; i_2$.  Is it necessarily the case that there is a rational number $r$ in the interval $[i_1, i_2]$?  How would you construct such a rational number?  [I posted this only so that the useful answers at  could be merged here before that question was deleted.] I'm sure there must be a simple reason for this but I can't seem to be able to import a shp file or a feature class from another file or sde geodatabase into a Feature Dataset without getting an error.  The feature classes come in fine if I don't don't try to import them into a Feature Dataset.  The feature dataset definitely has the same projection as the feature classes I'm trying to import so I don't think that's the problem.  The Error I get is ERROR 000210 and just says Failed to convert and cannot create output and Failed to execute (CopyFeatures).    Any ideas what I may be doing wrong here.  Seems like something so simple.  I'm trying to use the Feature Datasets to better organize my data which I think is there purpose.   Update:  So as you can see below, Jason helped me find the answer.   As suggested by Matt below, I added a new Idea to the ArcGIS Ideas site.  Here is the link to that, so please promote this up if you agree a better error message is needed here: