I want to cleanup my cmake project and run this command  find -name CMakeFiles -o -name CMakeCache.txt -exec rm -rf "{}" +   It deletes files CMakeCache.txt but refuses to remove directories. So I have to workaround it with this hack  find -name CMakeFiles | while read line; do rm -rf $line; done   Does anybody know what might be the reason why find/rm behaves this way and how to make it work properly?  Update:  I found out. The problem is in operator precedence. Operator -o makes -exec work only for the second operand CMakeCache.txt . So the correct syntax needs parens ()  find \( -name CMakeFiles -o -name CMakeCache.txt \) -exec rm -rf "{}" +   Thanks for posting the related question.
I'm trying to understand why the find command is not deleting files in one particular case. I've got the following command:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7   Which returns the files I would expect:  C:\path\to/Pictures/pmcctv/cap_20160915T193251_620067800.jpg C:\path\to/Pictures/pmcctv/cap_20160915T193322_742708800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081046_394767500.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081125_615129600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081129_503678200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T081255_842394600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161008_693586800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161012_749396800.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161043_774132200.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161150_497251900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161154_437379600.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161337_350955300.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161341_452596000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161412_870774000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161443_969064400.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161554_468109900.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161558_378086000.jpg C:\path\to/Pictures/pmcctv/cap_20160916T161916_668433100.jpg   Now if I try to run the same command with -delete, the files are not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -delete   I've also tried with -exec rm, but they are also not deleted:  find C:\\path\\to\\Pictures\\pmcctv -name cap_*.jpg -o -name cap_*.ogg -o -name cap_*.flv -o -name cap_*.mp4 -o -name cap_*.webm -mtime +7 -exec rm {} \;   find returns no error and the files are owned by me with permissions 644.  Any idea what could be causing this?  (note: I've cut the commands to make it more readable but normally there's no line break)
Password protecting a page I'm trying to password protect a page but it doesn't seem to be working. I've set the password for the page but when you navigate to it it just loads up like normal and doesn't ask for any passwords.  This is the loop I have on my page:  &lt;?php /**  * @package WordPress  * @subpackage Default_Theme  * Template Name: Page  */  get_header(); ?&gt;  &lt;?php global $post; if ( post_password_required( $post ) ) { ?&gt;  &lt;?php $fields = get_acf(); ?&gt;  &lt;script type="text/javascript"&gt;  (function() {   window.onload = function() {   ...  }} )  &lt;/script&gt;  &lt;div id="map"&gt;&lt;/div&gt;  &lt;?php } else { ?&gt;     Not passworded        &lt;?php if (have_posts()) : ?&gt;         &lt;?php while (have_posts()) : the_post(); ?&gt;          &lt;?php endwhile; ?&gt;     &lt;?php endif; ?&gt;         &lt;?      } // Page isn't password-protected     ?&gt; &lt;?php get_footer(); ?&gt;   I want to password protect everything within the page.  UPDATE:  I have custom content on the page so if possible I need to be able to wrap some code around it all.  Update: For ridiculously small hard drives (8GB), what Ubuntu Based (although not necessarily official) distribution offers the smallest installed size?  Let me clarify: I still want a certain amount of personal file space, preferably a few gig. I also don't have a problem with performance, while it is mediocre, a 2.6GHz single-core and 1GB of ram suffice to run ubuntu fine, but i find that it  uses 6-7GB of space. I am aiming for closer to 4GB. Why do shadows from the sun join each other when near enough? I was laying on my bed, reading a book when the sun shone through the windows on my left. I happened to look at the wall on my right and noticed this very strange effect. The shadow of my elbow, when near the pages of the book, joined up with the shadow of the book even though I wasn't physically touching it.   I have posted :The video seems to be the wrong way up, but you still get the idea of what is happening.  What is causing this? Some sort of optical illusion where the light gets bent?  Coincidentally, I have been wondering about a similar effect recently where if you focus your eye on a nearby object, say, your finger, objects behind it in the distance seem to get curved/distorted around the edge of your finger. It seems awfully related...  EDIT: I could see the bulge with my bare eyes to the same extent as in the video! The room was well light and the wall was indeed quite bright. Distance between footnote and the line above it Current Configuration: I have two SQL Servers, which are connected by the failover mechanism, meaning one is primary and one is secondary. I restarted both services on both servers sequentially. On the secondary server, all the databases are in the &quot;Synchronizing&quot; state. AG replication mode is synchronous. It has been 12hr it's still showing &quot;Synchronizing&quot; state. What I did so far to resolve Drop the database from the secondary server and remove the database from AG group on the primary server and add it back. Any insight on this, I am using SQL Server 2017. How to add greek polytonic with setxkbmap I want to add greek polytonic keyboard layout under Lubuntu (so in LXDE). I already realized there is no easy tool to do it with the graphic interface, so I need to use setxkbmap executing something the like of:  setxkbmap pl,gr   Now, how to make setxkbmap set the greek polytonic variant? I've been googling for some time now, and can't find the manual for the TikZ library calc. All I see is people using it. Where can I find the manual or some info?  Is it the same as the LaTeX package calc? The latter doesn't seem to mention TikZ in the manual. Should an image carousel on a mobile site automatically rotate? A group $G$ with $G'$ abelian and every abelian normal subgroup finite Let $G$ be a group such that  $G'$ abelian  and any abelian normal subgroup of $G$ is  finite. Show that $G$ is finite. Is there a rising trend in Number Series I am trying to build a stock screening utility.   What  I am trying is to find if there is a rising trend in a time series of profit margins of a company. I know there can be dips in some years but I want to find if mathematically that overall there is a rising trend as well as towards the recent years there is higher margins as compared to previous years.   Is there any way we can find it mathematically?          Profit Return Year,Company A,Company B,Company C 2005,38.97,20.44,22.01 2006,22.4,20.59,20.63 2007,22.4,20.59,20.63 2008,21.56,22.01,23.87 2009,25,20,23.52 2010,25,22.38,18 2011,30,24.13,24.85 2012,32,25.43,27.47 2013,30,20,22 2014,35,27,20 How can I find posts related to lost reputation due to a "user was removed" message? Today I noticed that my reputation got truncated by 64 points, and when I looked at my reputation history, I saw  notifying me of points removal along to a "user was removed" message. Each has a slightly different timestamp, ranging from 12:39:04 to 12:39:43.    I can't find the questions/answers concerned by this (and I don't remember having won as much as 65 points once, making this even stranger). I would like to find out how I could have lost 65 points while I never won as much in a single question/answer.  Is there a way I can check which of my posts were impacted? Why is ATP the most prevalent form of chemical energy storage and utilization in most cells? Refused entry to UK, not sure what to do I'm a writer and theater/film director who has been traveling nearly all my life without incident. In February, I decided to pull up stakes in NYC and move to London. I am a freelancer and I'm working with three different organizations in NYC so I wasn't working illegally in the UK. I was, however, seeing if there might be some opportunities in London, ie. meeting with Artistic Directors of various theatre companies to see if they might be interested in producing my work.   In April, I was invited to a conference in San Diego and then a film festival in Switzerland. I didn't think it would be a problem if I went and then bummed around in France for a few days since I hadn't broken any laws and had left the UK well under my six month leave to stay. Well, when I tried to return to London, I was denied entry at Luton. The border control officer said I didn't have enough funds for a two month stay and put a black cross over a stamp in my passport. They put me in a detention room until the next flight back to Lyon, which was the following morning. I don't know anyone in Lyon so I ended up going to a friend's place in Paris.   After a few days of not knowing what to do, a friend suggested that perhaps I should try going back to London on the Eurostar since border control is in Paris. I wondered if I ought to go to the British Embassy but was deterred by something on their website that says that a visitors visa could take up to three weeks (I can't sit around here in Paris for three weeks) and anyway, the decision ultimately is with the border control, so I decided to take a chance on the Eurostar. I bought myself a return ticket in two weeks to Paris just so I had something to show.   Well, the UK border control denied me entry after giving me a third degree. They accused me of lying and seeking work in the UK. They also insisted that the amount of money I had was not enough to live on for two weeks. So I'm back at my friend's place in Paris, wondering what to do.   Is it possible for me to ever get back to the UK? I had to cancel one meeting and I'm wondering if I have to cancel going to the Sheffield DocFest. (Two of my projects were accepted to programs there.)   Should I apply for a visa from the British Embassy? Will this really take three weeks? When I started to say something about obtaining a visa, the border control officer cut me off and said, "Why are you going to the Embassy? This has nothing to do with the Embassy. We make the decisions." Problem after update: blue screen with only the mouse cursor Is there a simple way to add exFAT support? When I insert a USB stick or camera flash card I get the following error:  unknown filesystem type 'exfat'   Is there a simple way to add exFAT support to Ubuntu without kernel patching? BJT Astable Multivibrator The new Chip credit cards are being introduced to provide better security to consumers, merchants and credit card vendors.    Sample Card:   (source: )    Card Reader &amp; PIN Entry:    Are they really better from a security point of view?  What are the advantages and disadvantages? Using Unicode Zero Width Spaces allows all space comments In GMAIL you can list all your boss-tell-off and wife-cuss-out emails by clicking Drafts    I'd like to see my started-but-never-finished responses, possibly between x Answers and y Votes in /&lt;&lt;user&gt;&gt;/Stats/? The electroweak and strong forces seem to be completely different types of forces to gravity. The latter is geometric while the former are not (as far as I'm aware!). So why should they all be described in the same way? - Why are gravitons needed?  Alternatively, I suppose my question is why a theory of everything has to be some form of quantum gravity. Is there a reason why a theory of everything requires gravity to be quantised? Is it possible for the quantum world and gravity to be described by some overarching theory which does not require gravity to be quantised? Or is there some reason why this is not the case?