How to check for either uppercase OR lowercase letters with a regex
Learning Regular Expressions
Can't connect to Windows Update How to set up a root cron job properly I tried to set up a root cron job to run a Bash script as root, to run at minute 7,37, every hour, every day of month, every month. This script is located in /usr/bin and named tunlrupdate.sh. It updates the DNS of Tunlr.  $ ls -l /usr/bin/tunlrupdate.sh  -rwxr-xr-x 1 root root 2133 Sep 24 15:42 /usr/bin/tunlrupdate.sh   This Bash script is available .  When invoked the script writes what's happening in a log located in /var/log/tunlr.log  To add this root cron job I used the standard for root's crontab  sudo crontab -e   And inserted these 2 lines at the end. I expect cron to run the script as root.  # check for updated Tunlr DNS every 30 minutes at the hour + 7 mn and hour + 37 mn 07,37 * * * * root /usr/bin/tunlrupdate.sh   A later command sudo crontab -l confirmed that the cron job has been inserted.  I did reboot Ubuntu and was checking in the log file if the cron job was launched properly. However there is nothing in the logfile /var/log/tunlr.log meaning the job was never successfully launched.  I did check that if I run the script from the command line  sudo /usr/bin/tunlrupdate.sh   then the logfile is updated accordingly.  Why is this cron job not running as planned in my system?  UPDATE 1 : All the proposed solutions so far do not work. I thank Olli for a CLI to list the system log sudo grep CRON /var/log/syslog. However I did get a CRON error  CRON[13092]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] &amp;&amp; [ -d /var/lib/php5 ] &amp;&amp; find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php /maxlifetime) ! -execdir fuser -s {} 2&gt;/dev/null \; -delete)   with the suggested PATH= insertion &amp; use of absolute path from root for functions in the script or without this suggested solutions here. I still get this error.  After some searching I pinpointed the error in the file /usr/lib/php5/maxlifetime as is explained : Change #!/bin/sh -e --&gt; #!/bin/sh -x  Then listing the CRON error log in my system  sudo grep CRON /var/log/syslog Feb 11 18:07:01 Marius-PC CRON[14067]: (root) CMD (root /usr/bin/tunlrupdate.sh) Feb 11 18:07:01 Marius-PC CRON[14066]: (root) MAIL (mailed 1 byte of output; but got status 0x00ff, #012)   I still don't get the bash script executing. This time no error is shown in the log. To get assurance this was not the content of the script I reduced the script to the following 3 lines:  #!/bin/bash LOGFILE=/var/log/tunlr.log echo $LOGFILE &gt;&gt; $LOGFILE   I still don't get the cron job through. Nothing is written in the log file. So even may be an empty script will not run in cron ? I don't get it. I am know trying a script reduced to these 2 lines:  #!/bin/bash exit 0   And still the same error log. The cron script does not go through ... For which complex $a,\,b,\,c$ does $(a^b)^c=a^{bc}$ hold? Financial proof to get a Schengen visa to France I am planning to apply for a Schengen visa to visit France. I have an attestation d'acceuil, but the visa requires I submit bank statement for the past 3 months. I can get this statement, but the problem is that my company has been paying my salary in cash for the past months, and I place the money into the account by myself.  Can I submit the following?   my accounting book (current account)  letter from the bank stating that I have money in it payslips for the past 3 months   Will that satisfy the financial requirements for the visa? $f(z)$ and $\overline{f(\overline{z})}$ simultaneously holomorphic From time to time I see an enum like the following:  [Flags] public enum Options  {     None    = 0,     Option1 = 1,     Option2 = 2,     Option3 = 4,     Option4 = 8 }   I don't understand what exactly the [Flags] attribute does.  Anyone have a good explanation or example they could post? What's the difference between an adjective and a past participle? I'm really confused about the object     the doctor specialized will help you   or     the documents required   How can I tell in the future, if I have to use the past participle or the adjective? And what's the name of this structure? How can I avoid asking duplicate questions? Careers ads break the Android app Clicking any Careers (or Jobs) ad in the Android app feed results in an instant crash for the Android App version 1.0.89. What is an example of a transformation on a posterior distribution such that the MAP estimate will be non-invariant? Suppose that we have a posterior distribution $p(\theta\mid y)$ and we wish to define a transformation on $\theta$ such that $\phi = f(\theta)$. I know that generally such transformations will not affect the MLE as it is on the data space, but will result in non-invariance on the Maximum A Posteriori (MAP) estimate as it is a function of the parameter space. I am wondering if there is an example to illustrate this? Thanks. How can I search within a manpage? Show that there is no epimorphism from ($\mathbb{Q}$, +) to ($\mathbb{Z}$, +) HowTo redirect HTTP to HTTPS on the same httpd? Here is what I have got:   CentOS 5.4 (32-bit)    installed Apache httpd (Server version: Apache/2.2.11 (Unix)) mod_rewrite already presents   Question: how to redirect simple  to  not using VirtualHost defines?  PS: tried to find in later answers on SF, but doesn't find nice solution.  Thanks. On the hardness of data to learn Almost in all texts which are discussing theorems of statistical learning, they assume analyzing arbitrary unknown distribution (the worst case). But in practice different problems (different data) have different levels of hardness, for example linear separable data is easier to learn than the data that are less (or not) separable by hyperplanes.  Are there any works on formalizing the hardness of data (similar to the stuff done in complexity theory)  Note: I am not sure if the same as analyzing VC-dimension or not, but I think it is not. Do SharePoint 2013 JavaScript Client object model support run with elevated privileges code Can I elevate Visitors Group users permission via javascript client object model code to do some list or library item updates ? Maybe the concept, why it's used, and an example. Why do Lagrange Multipliers work? I know that the Lagrange multiplier method helps us evaluate critical points of $f$ on the closed boundary of the restriction.   In other words we solve:$$\nabla f=\lambda \nabla g$$  But why does this method actually work? Can someone please give me an explanation. Thank you! Book series about aliens who put "caps" on people to control them I remember reading a series when I was around 7th or 8th grade about aliens who had taken over Earth by putting metal caps on people when they were "entering adulthood" to control them (not direct control, but it would keep them from rebelling). There was a faction of people who able to escape and had fake caps and would save teens who were about to be capped.  The main protagonist was a teen boy who was a boxer (or training to be a boxer or something). The aliens would hold tournaments for the humans and whoever won would be "worthy" to serve as personal slaves to the aliens.     The protagonist won and was able to get inside to try and learn more about the aliens from the inside. Help! My party isn't challenged? While I've been running my campaign, I'm starting to get stumped. I am playing with a party of four, and we recently switched from 3.5 to Pathfinder, but the problem was the same in both situations.  No matter what I throw at the party, they seem to have no problems. Even if I put them up against something that is supposed to be 'Epic' or 'overwhelming' in terms of CR, they make out just fine. The one exception to this is when I had several encounters in one day that taxed them to near death. Usually I have about two encounters a day, but that day I had four encounters, with two of them being APL+1 and the other two being APL+2, and that was challenging. But other than that nothing seems to faze them!  How can I make the game more challenging without making it harder?  Just for reference, the party is fairly standard, and low level (level 4):   Wizard (tends to resort to mind-affecting spells, or grease if the creature is immune) Cleric (heals a lot, but always has spells / healing left over) Rogue (sneak attack, of course, which is more potent in Pathfinder) Fighter (gets enlarged and in-charge'd) Projecting a point onto a convex set decreases its distance from each point of that set For a convex set $K$, $x\in \mathbb{R}^d$ and $y=\Pi_K(x) $ (the projection of $x$ onto $K$), we want to show that for any $z\in K$ it holds that: $\|x-z\| \ge \|y-z\|$.  $$ $$  I'm not sure if the following proof is valid:  $$ y=\Pi_K(x) = \arg \min_{y\in K} ||y-x||  \Rightarrow \forall z\in K \langle y-x,y-z\rangle =0 $$ $$ ||y-x||^2_2+||y-z||^2_2=||x-z||^2_2  \quad (Pythagoras)$$  $$ \Rightarrow ||y-z||^2_2 \le ||x-z||^2_2 $$ $$ \Rightarrow||y-z|| \le ||x-z|| $$