How to redirect both stdout and stderr to a file
How to redirect and append both stdout and stderr to a file with Bash?
I'm trying, but something is wrong with my code in LaTeX: \begin{asy} pair dynkinMark(real x, real y, string s = &quot;&quot;, pen p = defaultpen, pair B = dir(45)) { if (s != &quot;&quot;) { dot(&quot;$&quot;+s+&quot;$&quot;, (x,y), B, p); }     else { dot((x,y), p); }     return (x,y); }  dynkinMark(0,1, &quot;1&quot;, dir(135)); dynkinMark(0,2, &quot;2&quot;, dir(135)); dynkinMark(0,3, &quot;3&quot;, dir(135)); dynkinMark(0,4, &quot;4&quot;, dir(135)); dynkinMark(7,1, &quot;1'&quot;); dynkinMark(7,2, &quot;2'&quot;); dynkinMark(7,3, &quot;3'&quot;); dynkinMark(7,4, &quot;4'&quot;); path p1 = (0,1)..(2,2.0)..(5,3.5)..(7,4); path p2 = (0,2)..(2,1.2)..(5,2.5)..(7,3); path p3 = (0,3)..(2,2.8)..(5,1.5)..(7,1); path p4 = (0,4)..(2,3.8)..(5,3.5)..(7,2); draw(p1, blue); draw(p2, heavycyan); draw(p3, mediumcyan); draw(p4, lightblue); dot(&quot;$12$&quot;, IP(p1, p2), dir(90), heavygreen); dot(&quot;$13$&quot;, IP(p1, p3), dir(90), heavygreen); dot(&quot;$23$&quot;, IP(p2, p3), dir(90), heavygreen); dot(&quot;$14$&quot;, IP(p1, p4), dir(90), heavygreen); dot(&quot;$24$&quot;, IP(p2, p4), dir(90), heavygreen); real y = 0.8; label(&quot;$s_1$&quot;, (IP(p1,p2).x, y), heavygreen); label(&quot;$s_2$&quot;, (IP(p1,p3).x, y), heavygreen); label(&quot;$s_1$&quot;, (IP(p2,p3).x, y), heavygreen); label(&quot;$s_3$&quot;, (IP(p1,p4).x, y), heavygreen); label(&quot;$s_2$&quot;, (IP(p2,p4).x, y), heavygreen); \end{asy} How do I split a string, breaking at a particular character? My non-native English speaking friend just asked me: "Data is..." or "Data are..."?  I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments).  My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)?    Related questions: Ubuntu 14.10 folder icons missing Can you use class features while Polymorphed? More specifically I'm trying to understand if a Barbarian who has been polymorphed, either willingly or not would be able to . However this also applies to things such as , or , anything a player might want to continue to use while no longer themselves.  Many questions specify you're able to rage while Wild Shaped, as  specifies      You retain the benefit of any features from your class, race, or other source and can use them if the new form is physically capable of doing so.   However,  specifies the following,     The target's game statistics, including mental ability scores, are replaced by the statistics of the chosen beast. It retains it's alignment and personality.   And     The creature is limited in the actions it can perform by the nature of its new form.   Unlike Wild Shape, nowhere does polymorph specify that you retain benefits from your class or race. Does this imply that class abilities do not carry over to polymorphed individuals? Why Session object destruction failed Where do I ask a question about copyright? Looking for a basic PostGIS viewer to use as basis for own application I'm looking for a rather basic PostGIS viewer. It should be possible to pan, zoom and retrieve coordinate information on mouse click. No need to support coordinate transformations. It should introduce as little further dependencies as possible. Preferably written in C++. Triangle inequality for L2 norm I am posed with a problem as below.  Let $X$ be the collection of real valued functions that are measurable on $[0,1]$. For a given number $p\geq 1$ define the $L^p$ norm by $(\int_0^1|f(x)|^p)^\frac{1}{p}$.  I need to show for $p=1,2$ that this defines a semi norm on $X$. $p=1$ was simple as was all of $p=2$ except for the triangle inequality. I am having trouble proving the triangle inequality for this. Could anybody nudge me into the right direction or am I simply over thinking it? I think I can prove it for vectors but I'm not sure how to tackle it with integrals. Right now I can only use relatively basic results because this in for an introductory measure theory course.  Thanks! I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C? Fire (at, on, in, to) target How to correctly choose the preposition in "fire (at, on, in, to) target"? For some reason my iMac keeps turning off around 5 to 10 minutes into boot.  Also just recently it turns on but has shaded lines going down the screen. I have not installed any weird programs and i have not used it in around 3 months.   Any ideas on what the issue is, i don't have any other information about the issue besides whats happening when i use it.  The image i'm showing you was found on google but this looks exactly like mine does.  The model of my imac is the late 2011 model. When I try to launch Minecraft 1.7.4 or newer, the game crashes on startup, and the game output screen says this:  #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=*, pid=*, tid=* # # JRE version: Java™ SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot™ Client VM (* mixed mode, sharing windows-* ) # Problematic frame: # C  [ig4dev32.dll+0x3e88] OR # C  [ig4dev64.dll+0x55ec] OR # C  [ig4icd32.dll+0x104a77] OR  # C  [ig4icd64.dll+0x84930a]   This happens with both Java 7 and 8.  What causes this error, and what can I do to fix the issue? Using equations to draw out complex objects How do people come up with equations of curves to draw out complex objects?  Some popular examples would include:  &amp;  .  This  explains the rationale for the batman curve nicely.  But other than trial and error, I can't see a reasonable way of drawing the much more complicated PSY curve. HTTP Callout from Triggers I have a trigger on the Custom Object that calls a class. That class makes an HTTP GET request to a Web Service.  However I get the following error:  Callout from triggers are currently not supported.  How can I get data to an external Web Service using Apex code?  However i can use @future method but it can only be support void and this method cannot return results, i need to be able to send data to external ervice and receive acknowlegements from it. How to Create Bootable Windows 10 image in Debian? Pseudocode but originally developed for Windows 7 iso file but applied for Windows 8 in the thread  but it does not work with Windows 10 iso  # https://rwmj.wordpress.com/2010/11/04/customizing-a-windows-7-install-iso/ # https://unix.stackexchange.com/a/312477/16920 $ dd if=../en_windows_10_x64_dvd.iso \     of=boot.img bs=2048 count=8 skip=734  $ mkisofs -o ../new-win.iso -b boot.img -no-emul-boot -c BOOT.CAT \     -iso-level 2 -udf \     -J -l -D -N -joliet-long -relaxed-filenames .   Unsuccessful output when run on Windows 10 image  dd if=/home/masi/Downloads/en_windows_10_multiple_editions_version_1511_x64_dvd.iso of=/home/masi/Downloads/boot.img bs=2048 count=8 skip=734 8+0 records in 8+0 records out 16384 bytes (16 kB) copied, 0.000392973 s, 41.7 MB/s    Some of the following fields have changed for the iso file used in dd   bs=2048 count=8  skip=734   How can you study which field values you can use for Windows 10 iso?  OS: Debian 8.5 64 bit Hardware: Asus Zenbook UX303UA Linux kernel: 4.6 of backports Related threads: ,  Motivation: I need Windows 10 to use Canon P-150 duplex scanner, but when I started my Windows, I got Error 0xC0000428 because Windows update has again broken things there and I use Windows otherwise so rarely; and I have no spare Windows left to make bootable media Show that for any prime $ p $, there are integers $ x $ and $ y $ such that $ p|(x^{2} + y^{2} + 1) $. So we obviously we want $ x^{2} + y^{2} + 1 \equiv 0 ~ (\text{mod} ~ p) $.  I haven’t learned much about quadratic congruences, so I don’t really know how to go forward. I suppose you can write it as $ x^{2} \equiv -1 - y^{2} ~ (\text{mod} ~ p) $, but again, I’m not sure where to go. I know about the Legendre symbol and quadratic residues, which I know are involved in this question, but I don’t know how to apply what I know. :( Why AccessViolationException cannot be caught by .NET4.0 The Windows Domain I manage has hundreds of computer names which I don't recognise and I'd like to remove old ones which aren't in use before trying to track down the misnamed ones.  Is there someway to see when the last time a machine logged onto the network? Either via dhcpd or a user login event or something else. plist or sqlite