I'm working on a project on LaTeX which includes heavy externalization of pgfplots figures, so I've hidden everything in a tex subfolder of the main one and work only there. Every time, though, I have to scan through all the files (they're like an hundred or more) to search my .tex source or my custom .sty files.  I've found the option output-directory and I'm using it, but it only moves the main .log and .aux files, and the .md5 from the externalized figures, however every other .pdf and .log relative to any single figure created with pgfplots is still in the main directory.  I usually compile straight from the shell and use vim to write the files. Can I do this?
The example bellow comes from the  (p610). It does not work my computer. Note that it works when I comment the option [prefix=figures/]. Any idea of what could go wrong here?  \documentclass{article} % main document, called main.tex \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize[prefix=figures/] % activate  \begin{document} \tikzsetnextfilename{trees} \begin{tikzpicture} % will be written to ’figures/trees.pdf’ \node {root} child {node {left}} child {node {right} child {node {child}} child {node {child}} }; \end{tikzpicture} \tikzsetnextfilename{simple} A simple image is \tikz \fill (0,0) circle(5pt);. % will be written to ’figures/simple.pdf’ \begin{tikzpicture} % will be written to ’figures/main-figure0.pdf’ \draw[help lines] (0,0) grid (5,5); \end{tikzpicture} \end{document}
Under what circumstances will a passive HDMI-to-VGA adapter work? I have bought a no-brand, passive HDMI Male to VGA Female adapter, to link up a PC with a more dated monitor. It did not work.  After doing some reading, I have learned that buying such an adapter is often discouraged because in many cases it will not convert the signal from Digital to Analog, or the Motherboard/CPU on a specific computer might not be compatible with that particular adapter.   So my question is: seeing how there are so many of these passive adapters on the market, are there circumstances under which they actually do suffice to connect an HDMI output to a VGA input? Or are they generally just a rip-off?  Example of the kind of adapter I bought: When I used listings package to import C# code snippet from within my LaTeX file, I got an output as follows.    At the first line, there is an unnecessary white space because of the BOM (Byte Order Mark) that is intentionally added by Microsoft (R) Visual Studio.  I really want to remove it from the output rather than from the C# file, how to do that?   Here is my LaTeX code:  \documentclass{article} \usepackage{listings,xcolor} \lstset{% language={[Sharp]C}, backgroundcolor=\color{yellow!20}, basicstyle=\tiny, keywordstyle=\color{blue}, identifierstyle=\color{magenta}, breaklines=true}   \begin{document} \lstinputlisting{Program.cs} \end{document} Please recommend undergraduate-level textbooks on electrodynamics which emphasize practical applications and real life examples. Please describe the book's level and contents and its intended audience in as much detail as possible.   Please provide both applications from everyday life for curious students as well as engineering applications from a physics perspective. There does not exist group $G$ such that Aut$(G)\cong \mathbb{Z}_n$ (for odd $n$) Enable External Sharing Programmatically We have a scenario on which we are creating site collections from a provider-hosted app. Some of these site collections will be used by external users. Is there a way from CSOM (server-side) to enable external sharing on the site collection? I haven't found any resources stating whether this is or not doable.  I'm trying to replicate the settings you can specify at the site collections page on the tenant admin site:    Thanks! Spatial query to return multiple values I have a woodland scheme advice layer that has a polygon for each area of advice (brown layer in the picture). I also have a polygon layer of UK local authorities (red boundary layer in the picture). I would like to perform a spatial query which returns the local authority name for each woodland advice scheme. This would work fine if each woodland advice scheme was found in just one local authority boundary. However many are found across a boundary of two different authorities. For instance, one scheme sits across the boundaries of the authorities of Fife and Angus. The scheme is the yellow selected polygon in the picture and the red line is the authority boundary. How do I get the spatial join to return a value of Fife; Angus (or something similar to identify two values) instead of just Fife or Angus. If Newton's third law is true, why can we sink in sand? Newton's third law of motion states that every action has an equal and opposite reaction. That is the reason we do not sink into the earth, because when our weight exerts a force on the earth it also exerts an equal and opposite force on us.  But when we stand on quicksand or on fluids we can sink in. How is this possible? Does it not exert an equal and opposite force on us? Or are Newton's laws different in the case of fluids and substances of low densities? How many authors should attend a conference? I wrote a paper with  3 other students regarding my final year project in mechanical engineering. It was recently selected for a conference in NIT Delhi. Minimum one author is required to present and the price is pretty steep for the participation certificate.Should all of us attend the conference or just one of us? Does the certificate hold any value? I know that any group satisfying $x^2=1$ for all $x$ is abelian. Is the same true if $x^3=1$? I don't think it is, but I can't find a basic counterexample. Motion Tracking objects that go out of frame and re-enter later I am motion tracking a video in which the camera turns away from one scene and then shortly returns to it. However, the segments that went off-screen lose their track and do not continue tracking once the camera returns. I am wondering if there is a manual way to tell a segment where and when to continue looking for it's tracking target. Is this possible to do? How to display Trash and Home folder icons? I've googled quite a bit but nothing I've found works. I just want to display the Trash, Home folder, Computer etc icons on my Desktop in Ubuntu.  The closest I've come is installing dconf-tools, running it, going to org -&gt; gnome -&gt; desktop -&gt; background and checking show-desktop-icons then org -&gt; gnome -&gt; nautilus -&gt; desktop and checking the icons I want to show.  Nothing happens.  I've also tried looking in compizconfig-settings-manager and gconf-editor but can't find anything there.  Ideas? Reputation does not update after community wiki is removed from a post, and does not match the value displayed in the reputation audit If votes were cast on a post while it was community wiki, and a moderator removes wiki from that post, the votes should count towards reputation again. However, while this is visible in a reputation audit, , and the reputation score needs to be recalculated to reflect the change.  Can someone fix this? How to delete directories with path/names too long for normal delete Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created.  Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit.  Our ant script is somehow able to delete them when doing a clean, but sometimes I need to delete the workarea directory (where all the temp files go) without actually doing a full clean from ant.  This is the same errors , but the answers there don't really work for me as I'm dealing with a directory, not a file, and I don't always know what specific files or subdirectories are causing the problem.  And I'm trying to avoid any manual process (other than triggering a single command) to actually delete them.  If I try deleting the directory from Explorer I get the error   Cannot delete [file name]: The file name you specified is not valid or too long.   Specify a different file name   Trying Remove-Item in powershell gives the following error:  Remove-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. At line:1 char:12 + Remove-Item  &lt;&lt;&lt;&lt; -force -Recurse &lt;directory&gt;   Does anyone know of any tools or easy ways to get around this delete error without having to manually find the problem files and move/rename them? Practical way to implement prevention of IP Spoofing I am an undergraduate Computer Science student and was hoping to gain some knowledge of ways to help prevent IP spoofing but all the resources I have tried out elaborate this concept in a theoretical way. I want to try out my hands at one of the techniques like:      How do I simulate this whole situation in my own system were I myself am the attacker and I myself have to defend it? And once I have gained an understanding of it, then how do I start translating that into programming terms? how to get output of a script/program into a file? Optimal bcrypt work factor Is there a way to export my artwork as PDF so that it has a transparent background? Something like exporting objects only... whenever I try to save my .ai as pdf, it always comes with a full white background. If I try to save as eps, I get a chunky white background (where it has white rectangles behind the artwork only where the artwork exists, so there are transparent chunks).  If I export as png, I get an image like what I'm looking for. Is there any way to do that in a vector format? How to appeal to undelete an answer deleted by moderator? How can someone make an appeal to un-delete an answer that was deleted by a moderator?    There should at least be an appeal/vote process, if the deletion was unfair. Moderators are humans like rest of us, and they can be unjust. count vs length vs size in a collection From using a number of programming languages and libraries I have noticed various terms used for the total number of elements in a collection.  The most common seem to be length, count, and size.  eg.  array.length vector.size() collection.count   Is there any preferred term to be used? Does it depend on what type of collection it is? ie. mutable/immutable  Is there a preference for it being a property instead of a method? Relation between magnetic moment and angular momentum -- classic theory How do I prove the relation between the vectors of magnetic moment $\vec\mu$ and angular momentum $\vec L$, $$\vec\mu=\gamma\vec L$$  ?  Many text books and lecture notes about the principles of magnetism show the relation of $\mu$ and $L$ as scalars only and then just state that the relation holds also for the vectors. An example:   $$\mu=I\cdot A = \frac{q}{t}\pi r^2 = \frac{qv}{2\pi rm}m\pi r^2$$  ($I=q/t$: current, $A$: area of a loop, $q$ charge, $t=2\pi r/v$: time of 1 rotation, $v$: velocity of particle, $m$: mass )  The angular momentum is $\vec L = \vec r\times\vec p$ or $L=mrv$ and therefore $$\Rightarrow \mu = {\frac{q}{2m}} L = \gamma L.$$  Why is this also true for the vectors? Is there a general explication by classical physics without the need of quantum theory?