As an absolute beginner I am just figuring things out. I was working on a project, which I rendered, but there is no output file in my output folder.  The Render Scene And Options:    My Project In Rendered View:
I usually am able to render successfully to the c:\tmp folder, but when I came into work today, I rendered out the image on my work laptop, and everything seems to work, but I'm not getting an output to the tmp directory.  Does anyone know how to make this work?
Inserting newlines in Rectangle Text elements via ArcPy causes overlap? I ran across an issue the other day when I tried to use ArcPy's mapping module to edit rectangle text elements with newlines (\n) in an ArcMap document.  Here's what the output looked like:    Here's the code I used to generate that output.  The first column are rectangle text elements Text1, Text2, Text3 going down; the second column are "plain" text elements Text4, Text5, and Text6 going down.  import os import arcpy  HomeDir = r"C:\Desktop" arcpy.env.workspace = HomeDir  CurrentMXD = arcpy.mapping.MapDocument(r"C:\Desktop\TextTest.mxd") OutputFilename = r"C:\Desktop\TextTest.pdf" if os.path.exists(OutputFilename):     os.remove(OutputFilename)  for TextElement in arcpy.mapping.ListLayoutElements(CurrentMXD, "TEXT_ELEMENT"):     TextElementName = TextElement.name      String1 = "The quick brown fox jumped over the lazy dog.\nShe sells sea shells by the sea shore."     String2 = "The quick brown fox \njumped over the lazy dog.\nShe sells sea shells by the sea shore."     String3 = "The quick brown fox jumped \nover the lazy dog.\nShe sells sea shells by the sea shore."      if TextElementName == "Text1":         TextElement.text = String1     if TextElementName == "Text2":         TextElement.text = String2      if TextElementName == "Text3":         TextElement.text = String3     if TextElementName == "Text4":         TextElement.text = String1     if TextElementName == "Text5":         TextElement.text = String2     if TextElementName == "Text6":         TextElement.text = String3  arcpy.mapping.ExportToPDF(CurrentMXD, OutputFilename)   So far, it looks like the presence of the messed up text depends on whether the line is longer enough to wrap, and whether the line before the newline is longer than the line after the newline.  Any ideas about what could be going wrong?  Is there a workaround?  I could use plain text elements and worry about wrapping lines using Python, but I'm hoping I can figure something out. iOS app blocking actions with "you must join this site" message for sites I belong to MySQL get missing IDs from table Is voltage the speed of electrons? Uniform random variable as sum of two random variables Taken from :  Show that it cannot be the case that $U=X+Y$ where $U$ is uniformly distributed on [0,1] and $X$ and $Y$ are independent and identically distributed. You should not assume that X and Y are continuous variables.  A simple proof by contradiction suffices for the case where $X$, $Y$ are assumed discrete by arguing that it always possible to find a $u$ and $u'$ such that $P(U\leq u+u') \geq P(U\leq u)$ while $P(X+Y \leq u) = P(X+Y \leq u+u')$.  However this proof does not extend to $X,Y$ being absolutely continuous or singular continuous. Hints/Comments/Critique? A number of times I have asked a certain kind of ‘attractive nuisance’ question – that is, one in which I anticipate a certain kind of answer would be given that I already know I am going to find insufficient or entirely inadequate. Some examples:      A more abstract example would be asking ‘is it possible to do this 100% correctly’, where people itch to come up with hacks, workarounds and half-baked solutions of various degrees of robustness – while the point of the question is obtaining a fully correct and reliable solution.0 I try to be very explicit in the question body about what kinds of answers I am not interested in. And yet, every time I ask such a question, someone gives such an answer anyway, or an outright XY-type, i.e. frame-challenge answer – where in fact the framing of the question is exactly how I want it, and I don’t want it challenged. Since I have already said in the question body that such an answer would be inaqeduate, when I get one, I downvote it. I believe it’s only appropriate, but it tends not to be received very well – I get insulting comments and downvotes in retaliation. I realise that a proper answer would be much harder to come up with than an ‘obvious’ inadequate answer. I suspect that often a real answer should be negative: ‘there is no way to do that’ or ‘there is no way to answer that for sure’. Nevertheless, if that is the right answer, this is the one I want posted – I don’t want the Internet polluted with more tumbleweed of what is already well-known (and may even be subtly wrong), and I don’t want to give ‘A for effort’ upvotes. What is the most appropriate way to act in such a situation?  0 I am also reminded of when Gary Bernhardt  while trying to avoid reflexive ‘don’t use eval’ replies. Of course, expecting nuance from Twitter of all places is silly, but that’s beside the point. Where does pp (PAR) unpack add (-a) files? How can I figure out the size of a file, in bytes?  #include &lt;stdio.h&gt;  unsigned int fsize(char* file){   //what goes here? } Zooming to selection in arcpy.mapping and only seeing selected features? I selected data by using select layer by attribute, then I need to only select these selection and zoom in to the selection.  my code is this, it can zoom in base on the scale I set, but I see other adjacent polygon that has other Code_No, why?  Layer = arcpy.mapping.ListLayers(mxd, "lyr", df)        arcpy.SelectLayerByAttribute_management(lyr, "NEW_SELECTION", "Code_NO = '%s'"%mycodeNo)            df.extent = lyrLayer1.getSelectedExtent() df.scale *= 2 How do I run specific sudo commands without a password? On one particular machine I often need to run sudo commands every now and then. I am fine with entering password on sudo in most of the cases.  However there are three sudo commands I want to run without entering password:   sudo reboot sudo shutdown -r now sudo shutdown -P now   How can I exclude these commands from password protection to sudo? Divisibility by 7 What is the fastest known way for testing divisibility by 7? Of course I can write the decimal expansion of a number and calculate it modulo 7, but that doesn't give a nice pattern to memorize because 3 is a primitive root. I'm looking for alternative ways that can help you decide when a number is divisible by 7 by hand.  I'm sorry if this is a duplicate question, but I didn't find anything similar on the site. For whatever reason, we do no longer need to be root (or using sudo) to run /sbin/shutdown, /sbin/reboot etc.  This seems to be because those executables are now symlinks to /bin/systemctl which handles everything as normal user.  However, what if I want shutdown and reboot to require root authentication again? How can I achieve this? What is the reason that the value "47" is so popular in electrical engineering? One of my friends argues that princessship is the only word which has 3 identical letter comes together (s) ,but I think there is no word such as princessship.  Can anyone tell me whether this is a real word, and if there are any more English words which have 3 letters consecutively? Book a return flight a year in advance Is it possible to buy an airline ticket that has me returning to my country after a year being abroad? I can't seem to book a flight that far in advance online. I dug a large room to specifications, 3 blocks tall and 16 blocks wide as well as long. I dug it at 10 levels above bedrock, in a location {(-240, 0) -> (-224, 16)} specified by  slime finder app. I am definitely more than 24 blocks away and less than 32 away from the spawn room, as specified by the wiki .  Yet, no slimes. I have been sitting in my location patiently listening for the moist slapping sounds of slime. I have gone in to the room every time I heard a phantom slap but still nothing.  Am I just being dumb somehow or do the minecraft lords just hate me?  If it helps/anyone cares here's my seed: 6405460532872068998 Here is some information we got : We know the value of $n$, with size $1043$. We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors. $e = 65537.$ $\varphi(n)$ = $(q-1)(p-1)$ When I calculated $\gcd$ and $\text{modinv}$, I got : $\gcd(e,\varphi(n)) = 65537$ $modinv(e,\varphi(n)) = 1 $ So we can tell that they are not relatively prime. So, how to compute the d, and get the value of m? I'm not that good with math, so I cant understanding well the theory. so can anyone please make an example implementation or write a clear formula? Can a Ranger select two humanoid races as their favored enemies at 6th and 14th levels? In D&amp;D 5e, the Ranger can choose at first level to have a Favored Enemy of a single broad type (i.e. fiends, giants, aberrations, etc.) or of two different specific humanoids (such as orcs and gnolls). They gain additional Favored Enemies at 6th and 14th level.  At each of those levels, could they opt to pick two humanoid races? Or would the choice be between one type and one specific humanoid?  Relevant text:     Choose a type of favored enemy: aberrations, beasts, celestials,   constructs, dragons, elementals, fey, fiends, giants, monstrosities,   oozes, plants, or undead. Alternatively, you can select two races of   humanoid (such as gnolls and orcs) as favored enemies.   And:     You choose one additional favored enemy, as well as an associated   language, at 6th and 14th level.   (Both quotes from PHB, pg 91.)  Specifically, I'm wondering whether "one additional favored enemy" means one absolutely, or whether the "Alternatively..." sentence means that two humanoid races can be substituted for one type whenever you select a favored enemy. How do I call a .NET assembly from C/C++? Suppose I am writing an application in C++ and C#.  I want to write the low level parts in C++ and write the high level logic in C#.  How can I load a .NET assembly from my C++ program and start calling methods and accessing the properties of my C# classes? Why does QgsSpatialIndex.nearestNeighbor(point, 1) sometimes return 2 lines? I'm trying to get the closest line to a point using PyQGIS in a plugin. The active code file is this:   When I request the closest line (only 1)  nearestIds = self.spIndex.nearestNeighbor(self.feat2.geometry().centroid().asPoint(),1)   I sometimes get a list with two lines and the first one is not the closest but as far as I can see the second one is. Why is this?   Does QgsSpatialIndex use only boundingboxes for lines? How do I get the real closest line always, not only most of the time?