i am trying to add a new line to a file using sed :  sed -i '/&lt;field name="Users" indexed="true"/&gt;/a &lt;copyField source="New_user" dest="text"/&gt;' $RTDIR/schema.xml   i get an error: unknown command: `>'  how can i make it work? and also, the change will be permanent?  Thanks!
I am looking for a way to replace a string in a file with a string that contains a slash by using sed.  connect="192.168.100.61/foo" srcText="foo.bar=XPLACEHOLDERX" echo $srcText | sed "s/XPLACEHOLDERX/$connect"   The result is:  sed: -e Expression #1, Character 32: Unknown option for `s'
How does an accelerating charge radiate electromagnetic waves? Error Code: 1215. Cannot add foreign key constraint (foreign keys) I have two layers, one (A) has point features and the other (B) has polygons.  How do I produce a new table with some (the ID) or all the fields from the A table and some (the area code) or all from the B table where the B polygon contains the A point?  I am using QGIS. A "failed to fetch" error occurs when apt-get update is run. How do I fix this? Event binding on dynamically created elements? Using methods from another class in the main? How to add a class to a given element? Changing Network Interfaces name Ubuntu 16.04 I tried to change network interfaces name on this new Ubuntu 16.04 LTS version but doesn't have the /etc/udev/rules.d/70-persistent-net.rules.  So, I tried to use /lib/udev/write_net_rules but it not exist.  Why do I need this modification? Because I'm using a tool to Simulate virtual platforms that use flex licensing and the authentication need to be in eth0 interface name.  Any suggestion?  The command ip link returns:  user@laptop:~$ ip link  1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp6s0: &lt;NO-CARRIER,BROADCAST,MULTICAST,UP&gt; mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether b8:2a:xx:yy:xx:yy brd ff:ff:ff:ff:ff:ff 3: wlp7s0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 5c:e0:xx:yy:xx:yy brd ff:ff:ff:ff:ff:ff  user@laptop:~$ ifconfig  enp6s0    Link encap:Ethernet  HWaddr b8:2a:xx:yy:xx:yy   lo        Link encap:Local Loopback   wlp7s0    Link encap:Ethernet  HWaddr 5c:e0:xx:yy:xx:yy     (Some information were ignored and suppressed)  I already tried some links: How can I get textures on edge of walls like in Super Metroid and Aquaria? Games like Super Metroid and Aquaria present the terrain with the other facing parts having rocks and stuff while deeper behind them (i.e. underground) there's different detail or just black.      I would like to do something similar using polygons. Terrain is created in my current level as a set of overlapping square boxes. I'm not sure if this rendering method will work such a system for creating terrain but if anyone has ideas I'd love to hear them. Otherwise I'd like to know how I should re-write the terrain rendering system so it actually works to draw terrain in this manner... As teenager Tom Riddle is speaking to Harry Potter in the Chamber of Secrets, both he and Harry are refering to the real Voldemort in the third person. If Tom Riddle had succeeded in sucking all the life energy out of Ginny and had come back alive, wouldn't that have meant there were two Voldemorts in the world? The wraith one which had lived in Quirrell, and the newly constituted one?  This Tom Riddle clearly doesn't have the memories of the wraith version.   As a bonus: If they both existed, would they have competed against each other? Easy curves in TikZ I find myself needing to draw lots of elegantly curved paths in TikZ. Ideally, I'd just specify a series of points, and TikZ would calculate the extra data itself to draw a nice series of curves passing smoothly through these points, perhaps with an optional "looseness" parameter that I could specify. But the only way I can find to draw nice curves is by explicitly giving control points, or by manually specifying in and out angles.  I can think up a simple algorithm to do this, which would certainly be within TikZ's power to perform: just choose the in and out angles in a simple fashion based on the relative angles between each adjacent pair of line segments.  Is something like this already built-in? Or can someone cook something up that does the job?  Edit: Jake has provided an answer using the plot [smooth] functionality. This is almost perfect! But it can't do what I need, because it doesn't let me specify tangent angles manually where needed, which is especially important at the beginning and end of the curve. I would have thought this would be a natural and straightforward addition to the existing plot [smooth] algorithm: for every coordinate, an optional angle should be able to be specified as an argument, which if supplied is treated as the tangent angle for the curve at that point. And while we're at it, it wouldn't hurt to also allow the tension to be modified along the path.  A minimal extension to the algorithm would just accept two optional parameters, for the curve tangent at the beginning and end. SQL Azure and Full-Text Catalogs, Indexes and Searching I'm trying to install Linux alongside my 64-bit Windows 8 and went into my partition manager to find this structure.    In order to create partitions for my Linux install I need to free up some space. I see that the last partition is an empty recovery partition, as you can see highlighted, it's 100% free.  I was wondering is it okay to just remove this partition seeing as it doesn't appear I'll be losing anything?  Not sure if this helps but this is on a Fujitsu AH532 running Windows 8 64-bit with UEFI. Storage order vs Result order How do I center the text horizontally and vertically in a TextView, so that it appears exactly in the middle of the TextView in Android? How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)? Does installing many programs really slow down Windows? Always sort Recent Places by date modifed MacBook Pro locked with Find My Mac and won't let me boot If a function has a finite limit at infinity, does that imply its derivative goes to zero? I've been thinking about this problem: Let $f: (a, +\infty) \to \mathbb{R}$ be a differentiable function such that $\lim\limits_{x \to +\infty} f(x) = L &lt; \infty$. Then must it be the case that $\lim\limits_{x\to +\infty}f'(x) = 0$?  It looks like it's true, but I haven't managed to work out a proof. I came up with this, but it's pretty sketchy:  $$ \begin{align} \lim_{x \to +\infty} f'(x) &amp;= \lim_{x \to +\infty} \lim_{h \to 0} \frac{f(x+h)-f(x)}{h} \\ &amp;= \lim_{h \to 0} \lim_{x \to +\infty} \frac{f(x+h)-f(x)}{h} \\ &amp;= \lim_{h \to 0} \frac1{h} \lim_{x \to +\infty}[f(x+h)-f(x)] \\ &amp;= \lim_{h \to 0} \frac1{h}(L-L) \\ &amp;= \lim_{h \to 0} \frac{0}{h} \\ &amp;= 0 \end{align} $$  In particular, I don't think I can swap the order of the limits just like that. Is this correct, and if it isn't, how can we prove the statement? I know there is  already, but I think this is different in two aspects. First, that question assumes that $\lim\limits_{x \to +\infty}f'(x)$ exists, which I don't. Second, I also wanted to know if interchanging limits is a valid operation in this case.