Acidentally used gzip -r and now individual files in many sublevels are zipped I tried to use the gzip command on my public_html folder, and I've landed in a pretty big mess.  Exact command I used: gzip -r /home/account/www/  Now, in many sub-levels I have individually compressed .gz files. Is there an easy way to undo my actions?
How do I gunzip all files recursively in a target directory? I'd like to know what is the command to use to gunzip all files in a target directory recursively? I tried to use the unzip command but it didn't work.  I tried the command from
Orthogonal Projection onto the $ {L}_{\infty} $ Unit Ball What is the Orthogonal Projection onto the $ {\ell}_{\infty} $ Unit Ball?  Namely, given $ x \in {\mathbb{R}}^{n} $ what would be:  $$ {\mathcal{P}}_{ { \left\| \cdot \right\| }_{\infty} \leq 1 } \left( x \right) = \arg \min_{{ \left\| y \right\| }_{\infty} \leq 1} \left\{ {\left\| y - x \right\|}_{2}^{2} \right\} $$  I managed to get an answer using the . Yet I would be happy to see if someone can derive the answer directly.  Thank You. Terminating Python scripts in Processing framework I'm writing a Python script to use it in Processing framework. I need to cancel script execution if certain conditions are met (to save user's time). I tried to use sys.exit(arguments) command. The issue is that not only the script, but QGIS itself shuts down too. I also tried quit() but result is the same. How should I terminate script in Processing framework? The following code is for reproduction purpose only. I don't need ad hoc solution for this particular case because I already have it. I need to know how to deal with this issue in general. ##Raster processing=group ##raster_1=raster ##raster_2=raster   from osgeo import gdal import sys from numpy import * import ntpath import re import platform from PyQt4 import QtGui   raster_1 = gdal.Open(raster_1) raster_2 = gdal.Open(raster_2)  rasters_list = [raster_1, raster_2]  # create a message for the case when CRSs of rasters do not match class WrongCRS(QtGui.QMessageBox):    def __init__(self):     super(WrongCRS, self).__init__()      self.initUI()    def initUI(self):      self.warning(self, 'Oops!',             &quot;Rasters must have the same CRS!\n\nExecution cancelled!&quot;, QtGui.QMessageBox.Ok)  # check CRS proj = None for raster in rasters_list:   new_proj = raster.GetProjection()   if proj is None:     proj = new_proj   else:     if proj != new_proj:       WrongCRS()       sys.exit('CRSs do not match!')     else:       continue If $\omega \in \Omega^q(M)$, and $(\omega|_{U})_p = 0$, is $\omega_p = 0$? If I have a manifold $M$ and $\omega \in \Omega^q(M)$, considered an open subset $U$ of $M$, and choose a point $p \in M$, is it true that $(\omega|_{U})_p=0 \rightarrow \omega_p=0$? With $\omega|_{U}$ I mean the pull-back of $\omega$ by the embedding $F:U\to M$. The converse is obviously true, but this implication? Positioning of decorations on parallel lines I'm displayed three lines on a pgfplot. I want to show a marker for the slope of each line and the difference in height between lines.     I'm showing the slopes by adding triangles under the lines  (at a manual position) and placing an annotation inside the triangle (at a manual position). I'm showing the difference between the height of the lines by adding a brace manually as well.   How can I place the braces on the plot and anchor them at a certain point on each line? The triangles can be added at the end of each line declaration, but doing it like this is ok. The braces are put in place manually, which is not sustainable as I create more plots.   I want to avoid using xshift, yshiftand manual adjustment to put the braces,traingles and annotations in the right place. How can I do this?      \documentclass{article} \usepackage{pgfplots}  \pgfplotsset{compat=1.9}  \begin{document}   \begin{tikzpicture}[scale=0.45,trim axis left, trim axis right]     \begin{axis}[ylabel={$\hat{S(4)}$},xlabel={$S{^*}_{breakeven}$},ylabel style={rotate=-90},domain=1:25, legend style={legend pos=north west,font=\scriptsize}, legend cell align=left]  \addplot+[samples=200,mark=none]                                    {6.26 + 0.28*x} coordinate[pos=0.5](x) coordinate[pos=0.9] (y) (x)-| (y) node [midway,xshift=-0.6cm,yshift=0.3cm] {\footnotesize $Slope X$};;  \addplot+[samples=200,mark=none, dotted, thick]             {2.66 + 0.28*x}  coordinate[pos=0.3](a) coordinate[pos=0.6] (b) (a)-| (b) node [midway,xshift=-0.5cm,yshift=0.2cm] {\footnotesize $Slope 1$};  \draw [decorate,decoration={brace,amplitude=5pt,raise=4pt},xshift=4pt]  (225,107) -- (225,73)  node [midway,xshift=0.6cm] {\footnotesize $\beta_1$};  \end{axis} \end{tikzpicture} \end{document} Why does the Replace() string method not modify my string variable? Can a level 1 Warlock Cast a 4th level spell from 8th level Sorcerer with their warlock pact magic spell slots? Can my player’s multiclass Warlock 1/Sorcerer 8 cast the higher level sorcerer spells from with their warlock pact magic spell slots?  My player argued that he could now cast his 4th level sorcerer spells with his level 1 warlock  spells slots. I think he interpreted pact magic as "highest spell slot possible",  so he figures that since he has 4th level spell slots, he interprets that the warlock spell slots are 4th level slots now too. Over the last 3-4 weeks I have been trying to find a rogue DHCP server on my network but have been stumped! It is offering IP Addresses that do not work with my network, so any device that needs a Dynamic Address is getting one from the Rogue DHCP and then that device stops working. I need help to find and destroy this thing! I think it might be a Trojan of some sort.  My Main Router is the only valid DHCP Server and is 192.168.0.1 which offers a range of 192.160.0.150-199, and I have this configured in my AD as Authorized. This ROGUE DHCP claims to be coming from 192.168.0.20 and offering an IP Address in the range of 10.255.255.* which is messing up EVERYTHING on my network unless I assign a static IP Address to it. 192.168.0.20 does not exist on my network.  My network is a single AD Server on Windows 2008R2, 3 other physical servers (1-2008R2 and 2 2012R2) about 4 Hypervisor VM's, 3 laptops and a Windows 7 box.  I can't ping the rogue 192.160.0.20 IP, and I can't see it in the ARP -A output, so I can't get its MAC address. I'm hoping that someone reading this post has come across this before. The  specifically says not to ask  for career advice but people do it anyway.  Should I consider the Help Center outdated or only loosely enforced?    And what about a career advice site on the network?  There are 70+ sites, and most of them are for relatively narrow interests (which is not a criticism, I enjoy looking through the many sections).  A career section seems like it would be very popular.  Also, a careers section would help keep career questions off the other sites. Why is AES resistant to known-plaintext attacks? Show Capslock on Windows 8 How can one cite theorems of references? I would like to cite the item (iii) of proposition 3 of a reference. How can I do it? Which ways do you suggest? This is a question not only about LaTeX, but also about style. One option I have seen to cite pages of a reference is \cite[p.~333]{Audet}. Is there something similar to cite theorems, propositions and so on? Is it OK to require users to have a third party login account? For a web app I'm developing I was dreading having to   Require users to create yet another account / password to keep in mind. Handle retrieval of lost passwords etc.   What many sites (like this one for instance) has started offering is to use a third party account to create an account.   What I wonder is whether it would be considered OK to require having third party account, i.e. Is there any way to have BibTeX or biblatex insert a bibliography without having citations in the body of the document itself? Maybe a way to hide the in-text citations, so that BibTeX still sees them and includes them in the bibliography, but does not print them in the body? How do I avoid rendering glitches from overlapping faces? For instance, here I have two cubes that are offset only on the x-axis. When I render them (using Blender's internal renderer), the overlapping faces interfere with each other and the result looks awful. A quick and easy solution would be to offset them by just a smidget, but is there another solution that allows faces to overlap and not exhibit this graphical glitch? How can I define a mathematical function as a LaTeX macro? Is the empty set a subset of itself? su options - running command as another user I was wondering how to run a command as another user from a script.  I have the script's owner set as root. I also have the following command being run within the script to run the command as the hudson user:  su -c command hudson   Is this the correct syntax? Computing dominant area in polygon using ArcGIS Desktop? Reading InputStream as UTF-8 "This product is good value" vs "This product is of good value" in a sentence 1.This product is good value. 2.This product is of good value.    Are there any difference in meaning between "good value" and "of good value"?