Why doesn't chmod work in my bash script? Error is something about the directory...? Script is this: #!bin/bash echo &quot;setpriv start&quot; chmod u=rwx ./ * echo &quot;setpriv end&quot;  Output in bash window is this: robertk@HP_2013:~$ bash -x setpriv ' echo 'setpriv start setpriv start ' chmod u=rwx ./ '* chmod: cannot access '*'$'\r': No such file or directory ' echo 'setpriv end setpriv end robertk@HP_2013:~$ ^C  ????? Thanks -- something dumb / simple, I'm sure, but what???
'\r' added end of the script command This is my script:  #!/bin/bash hd='pwd' cd $hd   When I try to run it, it fails with:  line 3: cd: $'pwd\r\r': No such file or directory   What is going on?
Invalid Topology [Topoengine error] from ArcGIS for Desktop? Using ArcGIS 10.1 for Desktop, I'm trying to run the Identity function on two large data sets but it fails every time. I don't think it is a lack of hardware as I can run other processes on the same data sets.   I've already updated software, and added the 64 bit geoprocessing add-in, checked and repaired geometry, and done the fix in  (set ARCTMPDIR env variable to a writable local folder).   Executing: Identity DudleyStamp OA2011 "D:\Case Studies\National2\National.gdb\DudleyStampOA11" ALL "1 Meters" NO_RELATIONSHIPS  Start Time: Wed May 08 21:11:43 2013 Reading Features... Processing Tiles... Assembling Tile Features... ERROR 999999: Error executing function. The table was not found. The table was not found. [DudleyStampOA11] The table was not found.   The table was not found. [DudleyStampOA11]   Invalid Topology [Topoengine error.] Failed to execute (Identity). Failed at Wed May 08 21:45:41 2013 (Elapsed Time: 33 minutes 58 seconds)   Based on comments so far I tried copying data to new file geodatabase, and running the tool from ArcCatalog still get exactly the same error.  I have ordered 16GB of the fastest RAM my computer can take (I current have 4GB). I also have a 6 Core AMD Phenom II X6 1090T, SSD, and AMD Radeon HD 6970 Graphics Card. So I'm not sure what more hardware I can add.  I've also tried increasing the size of the page file which was a suggestion I found on Google with no effect. npm commands not working on WSL with zsh I'm using tex4ht to produce XHTML files from a LaTeX file. The XHTML file I obtain uses images for some equations which tex4ht could not convert directly to XHTML.   Problem: images of equations have very bad quality.   What I want: Better quality images.  More info on attempts &amp; system:  I'm using MikTeX 2.9 under Windows Vista. I go to the command line and type htlatex document.tex "xhtml" to get the resulting XHMTL file.   After doing some search on the web, I tried to change the file tex4ht.env as mentioned in  (changing -density 110x100 to -density 220x220 -geometry 50%) in all locations I could find in my system (within the MikTeX path and also in the AppData windows directory) but the results are the same. I obtain during the compilation of hlatex the following line (among others):     System call: mgs -sDEVICE=pngalpha -sOutputFile=Untitled11x.png   -r110x110 -dEPSC rop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbat ch -dNOPAUSE zzUntitled1.ps -c quit   In particular, I would guess that the -r110x110 means resolution was still set to 110x110, despite my changes to the file tex4ht.env.  Any suggestions on how to improve the quality of equations images? I have been getting this question lately from students and although I have a lot of information to offer, I have not found a source that I can point people to where they can read an update answer (I have found a lot of misinformation and obsolete information). So, some of the questions I have for package formats like snap, appimage, flatpak and others in this evolution of universal packaging systems are:   Who created the package format? What features does it offer? What features are unique to it? (That the others do not yet have) Who supports it? What Distributions use it? What focus does the package have? (For Desktop, Clouds, Mobile, etc..) Which are more actively developed? How to perform Stream functions on an Iterable? Malus Law in Michelson Morley experiment My book of physics (I don't quote it here, since it is in Catalan) says  that in the 1887 Michelson - Morley experiment, after getting the transversal and longitudinal phase shifts, they claim that the number of fringer observed will belong to the number of times that both phase shifts contains 2 pi because that is the phase two maximums  repeat. My question is: why is here said that waves should form maximums? Because as I understand it, the expected result was to obtain a destructive interference whose phase shift could be jsed to determine Earth's velocity. If they were expecting a destructive interference, shouldn't the book use the phase two minimums repeat? How to quickly and safely defrost chicken? What is the safest, quick way to defrost chicken? Microwave? Running water over it? How do I connect multiple devices to an ISP that gives web-based portal for logging in? laptop fails to suspend or hibernate (wakes up after 2-5 seconds without user interaction) I would like to change a file extension from *.txt to *.text. I tried using the basename command, but I'm having trouble on changing more than one file.  Here's my code:  files=`ls -1 *.txt`  for x in $files do     mv $x "`basename $files .txt`.text" done   I'm getting this error:  basename: too many arguments Try basename --help' for more information Copy existing property from e.g. Properties window to a custom panel So if I have this custom panel in the 3D view, is there a way I can take a property from for example the properties window and paste it onto my panel below the "text" prop, without creating a new property?  The reason I do not want to create a new property is because I want them to share all data, such as values, keyframes, drivers etc.        bl_info = {     "name": "",     "description": "",     "author": "",     "version": (0, 0, 1),     "blender": (2, 70, 0),     "location": "",     "warning": "",      "wiki_url": "",     "tracker_url": "",     "category": "" }  import bpy  from bpy.props import (StringProperty,                        BoolProperty,                        IntProperty,                        FloatProperty,                        FloatVectorProperty,                        EnumProperty,                        PointerProperty,                        ) from bpy.types import (Panel,                        Operator,                        AddonPreferences,                        PropertyGroup,                        )   class inouse_Settings(PropertyGroup):      my_bool = BoolProperty(         name="Enable or Disable",         description="A bool property",         default = False)     class UV_OT_my_panel(Panel):     bl_space_type = 'VIEW_3D'     bl_idname = "UV_OT_my_panel"     bl_label = "Custom"     bl_category = "Custom"     bl_region_type = 'TOOLS'      def draw(self, context):          scn = context.scene         mytool = scn.inhouse         layout = self.layout          col = layout.column(align=True)         row = col.row(align = True)         row.prop(mytool, "my_bool", text="Text")       def register():     bpy.utils.register_module(__name__)     bpy.types.Scene.inhouse = PointerProperty(type=inouse_Settings)  def unregister():     bpy.utils.unregister_module(__name__)     del bpy.types.Scene.inhouse  if __name__ == "__main__":     register() How to install mysql? How was the torque-force relationship discovered "I feel bad for you" versus "I feel badly for you" What causes the portraits of Wizards to behave interactively? How do I help my third-grader focus on homework? My child just entered third grade, and the homework load is much higher this year, with a lot of writing and math drills. It is all work that she can do easily, but it's causing the whole family a lot of pain, because she's have a really hard time just sitting down and doing it — asking many questions about things she clearly actually knows, and getting distracted by the smallest thing going on around her. (Setting up a special quiet area isn't helping, because the distractions could be her pencil or a sudden burst of word association based on something in the lesson.)  So, a page of writing and a couple of pages of math which could be done in fifteen minutes total is taking an hour and a half. She can easily explain the reasoning behind the math problems, but when it comes to writing down what she just said, it's like pulling teeth. She'll slowly write a word, sounding it out in slow motion as she writes each word. And she'll say that she doesn't understand a question, but when she actually gets her mind pointed at it, she can write a great answer. And she's clearly picking up the concepts in class; I have no doubt that she actually understands, which is part of our frustration.  My wife feels like she's just wanting attention, but I think it's more about our daughter's own ability to focus. We both feel that sitting down and working painfully through each question isn't really helping her. That works, but my wife feels like it's just rewarding the behavior, and I feel like it's not really helping her learn any better focus on her own, which, you know, she'll need in actual life. And, we're happy to spend child with our kid, this pretty much the opposite of quality time.  Neither rewards or consequences seem to have any effect, and nor do charts. All of those things basically just seem to add another layer of complication, distraction, and misery. What else can we do? Confused about the possibility of different differentiable structures. In Loring Tu's "An Introduction to Manifolds" an atlas on a manifold is a collection of coordinate charts that are pairwise compatible and cover the manifold. A smooth manifold is defined to be a topological manifold together with a maximal atlas or differentiable structure. The maximal atlas is constructed by taking an atlas and appending all coordinate charts that are compatible with the atlas and using this he shows that any atlas on a locally Euclidean space is contained in a unique maximal atlas.  He also later shows that for any chart on a manifold, the coordinate map is a diffeomorphism onto it's image.   My question arises when Tu mentions in an aside that every compact topological manifold in dimension four or higher has a finite number of differentiable structures. What I don't understand is how it is possible for a smooth manifold to have more than one differentiable structure. Doesn't the fact that for any chart the coordinate map being a diffeomorphism coupled with the fact that composition of smooth functions is smooth mean that any two coordinate charts on a manifold are compatible and thus they must all belong to one maximal atlas? How is it possible to have another? Am I not understanding the word "maximal" or atlas or some other concept? ls -la symbolics... what does that last symbol mean? What Did Lyanna Stark Say to Ned Stark? In the final episode of season 6 we see that Lyanna Stark is whispering something to Ned. What is she saying? forecast using arima models I am trying to predict values using arima(0,1,1). After doing predict(mod,n.ahead=5) (in R) am getting the same value for all the predictions:   5947.681 5947.681 5947.681 5947.681 5947.681    Is it correct?