Find all positive integers $n$ for which $(n-1)!+1$ is a power of $n$
To find all $n$ such that $(n-1)!+1$ is a perfect power of $n$
Minimum file permissions to rename file I put a 64-bit ELF file in my unprivileged user's home directory. I wonder which permissions do I need to have only possiblity to rename this file being logged in as unprivileged user. From what I understand I only need execute permission for user to whom file belongs to, set for parent's directory. Is that right?  So if path to my file is /home/Simon_dir/zip and I wrote chmod 0100 /home/Simon_dir and file permissions are set to 0000, should I have rights to rename the zip file being logged in as unprivileged user? How to get Microsoft Search to index common file types like .pdf and .pub I'm trying to get Windows Search (4.0) to index PDFs and .pub, .doc, etc. files.  The files are on an XP Pro PC acting as a file server. But I don't have MS Office, etc. installed (no need, trying to keep it "slim and trim") but WS 4.0 is doing the indexing of those files and not indexing .pdf and .pub.  I've found a few  (from Foxit PDF reader) rated 3/5 and only support WS 2.0 or 3.0.  Looking for other solutions and also a way to index .pub files. I am trying to buy a laptop, and I have seen in many place that they show GDDR3 and sometimes  DDR3. What is the difference between them?  afaik DDR3 is a type of RAM used for system memory, while GDDR3 is a type of RAM used for graphics cards. So does "G" only stand for Graphics or does it have another particular meaning? Is hyperref really the best way to add metadata to a TeX file? So I know one of hyperref's features is that it can add metadata to you PDFs. This is a nice feature and if you're putting stuff online, it's good to include metadata.  But is the hyperref package really the best way to do it? I mean, if you're using hyperref anyway, that's fine. But if you don't want hyperrefs in your document, it seems weird to include the package, and then turn off pretty much all its functionality. And given that hyperref is a shorthand for "package conflict nightmare", is seems insane that you should have to deal with it just for the sake of some metadata.  So I have two questions.   Is there a good reason that hyperref includes this functionality which is apparently unrelated to its primary purpose? Is there a better (smaller, less conflicty, easier...) option to include metadata in my PDFs? I'tm trying to show in SQLcmd window the results of these queries:  SELECT SYSDATETIME() AS "date";  PRINT 'EXTRAÍDO POR:' SELECT SUSER_NAME() AS "Owner"  PRINT 'PASSWORD SETTINGS'; exec xp_loginconfig;  PRINT 'PASSWORD SETTINGS'; select * from sys.sql_logins;   And using this command in SQLcmd:  sqlcmd -S myServer -i inputpath -s, -o outputPath(like C:\log.xls) -e   So the sqlcmd output the file and does not show nothing in sqlcmd screen. How can i print these "Print" commands in the sqlcmd screen? (command promt).  When I run it on SSMS works well, like:  (1 row affected) OWNER:  (1 row affected) PASSWORD SETTINGS  (8 rows affected) PASSWORD SETTINGS  I would like to show in the prompt command this, like in the SSMS.  Thanks! Polygon intersection using turf js I have given this code for intersection: function intersectPolyByPolyFC(poly,fcPoly){         var fgp=[];//variable for feature group         var bbPoly=turf.bboxPolygon(turf.bbox(poly));//polygon representation of the bounding box of a reference polygon         for(var i=0;i&lt;fcPoly.features.length;i++){//loop through the feature collection of polygons             var bb=turf.bboxPolygon(turf.bbox(fcPoly.features[i]));//variable bb represents each polygon for feature collection             if(turf.intersect(bbPoly,bb)){//condition to check if the two bounding boxes intersect                 var int= turf.intersect(poly,fcPoly.features[i]);                 if(int){                     int.properties=fcPoly.features[i].properties;                     fgp.push(int);                 }             }         }         return turf.featureCollection(fgp);     }  and the function definition I have given as var bufline=turf.buffer(line,0.05,{units:&quot;kilometers&quot;}); var intBUOWL= intersectPolyByPolyFC(bufline, lyrBUOWL.toGeoJSON()); L.geoJSON(intBUOWL,{style:{color:'red',weight:5}}).addTo(mymap);  When I am drawing a line over a polygon for intersection I am getting this error Uncaught TypeError: Cannot read property 'map' of undefined     at Object.t.collect (turf.min.js:1)     at summarizePointsByLine (buffer.html:440)     at NewClass.&lt;anonymous&gt; (buffer.html:155)     at NewClass.fire (Events.js:190)     at NewClass._fireCreatedEvent (leaflet.draw.js:8)     at NewClass._fireCreatedEvent (leaflet.draw.js:8)     at NewClass.completeShape (leaflet.draw.js:8)     at HTMLAnchorElement.handler (DomEvent.js:92)  How can I resolve this error? Why does reversing serial upvoting not reverse the Mortarboard badge? user has serial up-voting reversed, but he still have badge Mortarboard.   Is it correct behavior of badges? I suppose it should be reversed too.  And will this 200 daily reputation (2012-03-20) score for the Epic, and Legendary badges? Why doesn't the Related question list show that questions are closed? What is the difference between align and equation environment when I only want to display one line of equation? I am typesetting a physics document, and sometimes I need to type equations of several lines while in most cases I only need to type one-line formula. So is it OK if I always use align environment instead of switching between align and equation What are their differences? Propane gas fireplace pilot won't light I've asked this question before. Now I've posted some pictures as I can't figure out where I should clean. I don't smell propane. I tired lighting manually with a lighter and nothing. I know to turn the valve on,  rotate the wheel to pilot. Push in and try igniter. It worked fine 6 months ago.   Any suggestions? Diamond is not shown for mod name under wiki posts If a diamond mod is an author of a wiki post then the diamond is not displayed besides the mod name. E.g. :        Even when the name refers to the user profile page (in case of more then one author) like in :        Is it intentional or a bug? biblatex – et al. beginning from second citation? Basically all I need to know is how I can use "et. al" beginning from the second citation of a source. I am using the following  \usepackage[ natbib=true, style=authoryear ]{biblatex}   I need citations to look like this:  First citation of a source     Drobetz, Schillhofer, and Zimmermann (2004)   Second and further citations     Drobetz et al. (2004)   Right now, every citation looks like the first one. With the biblatex option maxcitenames I can only adjust all citations and not all but the first one. Any help? I've switched from Drupal 7.14 to 7.15 three weeks ago and therefore, I'm encountering a series of very sophisticated (for me) memory limit errors.  Those errors occur any time I'm trying to clear cache in performance or to run update scripts.  My hosting company has increased my memory limit in php.ini up to 126 M, 256 M, 512 M, and even 1024 M. But the errors still occur. I've migrated my site from shared to VPS, But the error incredibly still occurs. I have no way and no idea how to move forward.   Here are the errors:   Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 30 bytes) in /home/example/public_html/sites/all/modules/views/views.module on line 416 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 108 bytes) in /home/example/public_html/includes/menu.inc on line 2736 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in /home/example/public_html/sites/all/modules/chain_menu_access/chain_menu_access.module on line 59 allocate 64 bytes) in /home/example/public_html/sites/all/modules/views/includes/base.inc on line 93 Connect Java to a MySQL database Add a transparent image on top of a material I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1). How to find out why "context is incorrect"? I have been trying to write my first addon for Blender over the last couple of days. One error I came across quite often is the context is incorrect error for an operation of bpy.ops.  I learned that one can ask the poll function of an operator if the context is correct, but this does not tell why the context is correct/incorrect. What would be the best way to figure that out? Only way I could think of is to look into the code of the poll function. If that is the best way, what is the fastest way to find the appropriate piece of code? TikZ rectangular node with different rounded corners I'm writing my thesis using MiKTeX and WinEdt 9 for Windows. I write the different chapters individually, and then I have a "masterfille" with the documentclass "report" where I use the command "input" to load the individual chapters. In other words there is only a preamble in the "masterfile".  I have a very general problem which is the following: No matter what kind of mistake I do whatsoever, I will first receive the correct error message, say I forgot to end a table or something (it really does not matter). If I correct this mistake and try to recompile without using the option "Erase Output Files" in Winedt, I will always and very quickly receive a new error message, often containing a mysterious "Undefined control sequence". Having to do this every time and to recompile plus run the Biber (L+B+L+L+D) is very time consuming, since the document is very large. Any ideas what the problem could be? Here is the preamble of my "masterfile" (I am probably including irrelevant information, sorry for that):   \documentclass[12]{report} \setcounter{tocdepth}{2} \usepackage{layout} \setlength{\voffset}{-0.75in} \setlength{\headsep}{5pt} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{authblk} \usepackage [T1]{fontenc} \usepackage[backend=biber, style=authoryear-comp]{biblatex} \usepackage{xyling} \usepackage[super]{nth} \usepackage{xspace} \usepackage{cgloss4e} \usepackage{abstract} \usepackage{array} \usepackage{multirow} \usepackage{hyperref} \usepackage{xr} \usepackage{gb4e} \noautomath  \let\eachwordone\itshape   \makeatletter \pretocmd{\@footnotetext}{     \@noftnotefalse\setcounter{fnx}{0}%     \renewcommand{\thexnumi}{\roman{xnumi}}     }{}{} \apptocmd{\@footnotetext}{     \@noftnotetrue     \renewcommand{\thexnumi}{\arabic{xnumi}}     }{}{} \@ifpackageloaded{bidi}{% \pretocmd{\@LTRfootnotetext}{     \@noftnotefalse\setcounter{fnx}{0}%     \renewcommand{\thexnumi}{\roman{xnumi}}     }{}{} \apptocmd{\@LTRfootnotetext}{     \@noftnotetrue     \renewcommand{\thexnumi}{\arabic{xnumi}}     }{}{} } \makeatother     \addbibresource{ref.bib}    \title{The origins of Old Romance V2: A comparative study of Late Latin, Old French and Middle High German} \author{XXX} \date{\today}   \begin{document}  \tableofcontents   \chapter{Old French} \input{chapters/OldFrench2}  \printbibliography  \end{document} What should I do after a suspected compromisation of my system? I was trying to install Lightworks 11.5.1 (amd64) on Ubuntu 14.04(amd64) but there's a notice: Dependency is not satisfiable: libtiff4. Is there anyway to solve this dependency issue?  Thanks in advance.