Replace regex with regex in string python
Splitting a string into words and punctuation
What is the highest obtainable resolution of FREE elevation data in the UK? Cannot install Ubuntu in VirtualBox due to "this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot" error How are answers with the same vote score sorted? Reference for the subgroup structure of $\rm{PSL}_2(q)$ Convert a preprocessor token to a string I'm looking for a way to convert a preprocessor token to a string.  Specifically, I've somewhere got:  #define MAX_LEN 16   and I want to use it to prevent buffer overrun:  char val[MAX_LEN+1]; // room for \0 sscanf(buf, "%"MAX_LEN"s", val);   I'm open to other ways to accomplish the same thing, but standard library only. How do I find out what tool a shortcut is triggering? I used to have problem with connecting two objects, because when I smooth the final object, there was a darker line on the connected parts (for example when I was making head, I've had eyes darker this way). Then I found out that I can get rid of it by hitting Ctrl+N, but I don't realy know what it does. I can just see that the lines are gone. So, what does Ctrl+N do? If a Continuous function $f(x)$ satisfies $f(x) = f(2x)$, for all real $x$, then does $f(x)$ necessarily have to be constant function? If so, how do you prove it? If not any counter examples? I was trying to suggest a retag of  on Seasoned Advice, but the system won't let me; I get the familiar message     Edits must be at least 6 characters; is there something else to improve in this post?   In general, that's not true for retagging; if you don't change the question body at all, it should work. I suspect the logic checking the edit is thrown off guard because of the title warning:     The question you're asking appears subjective and is likely to be closed       I found , but I cannot find any evidence (in SEDE) for invisible characters being present in the question's source. Also, that's supposed to be . I have a land cover classification derived from Landsat TM imagery - I created this classification using ENVI. I would like to edit individual and groups of cells in some areas of the classification in order to improve the accuracy of the output by comparing it with aerial imagery.  Is there a way, using ArcGIS Desktop, to manually edit large groups of cells by selecting them and assigning them to a new or existing class?   I am aware of merging methods based on class statistics, but the area I'm classifying has a high amount of spectral confusion due to thin cloud cover - it seems like a manual edit is the only way to go. divisor of a product of integers is a product of divisors I read this recently on the web and can't manage to understand it. Not homework -- I haven't done math homework for years.  If $d\mid ab$ then $d=d_1 d_2$, that $d_1|a$, that $d_2|b$ and, further, if $(a,b)=1$ then $(d_1,d_2)=1$.  I know it's the same question... if $a = a_1 a_2 ... a_n$, why can't $d$ divide some $a_i$ and only $a_i$? When $\min_{x \in X,y \in Y} f(x,y) = \min_{x \in X} \min_{y \in Y} f(x,y)$? What is the best way to repeatedly execute a function every x seconds? I want to repeatedly execute a function in Python every 60 seconds forever (just like an  in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user.  In , the solution appears to effectively just  for x seconds. I don't need such advanced functionality so perhaps something like this would work  while True:     # Code executed here     time.sleep(60)   Are there any foreseeable problems with this code? Basic voltage divider issue in my amateur circuit XBee Once again I need your help in my project. I have a 4,5v powered circuit. I put a voltage divider with 2 resistors in series to reduce my initial voltage of 4.5 V to 3.4 V (to feed an XBee module).  The issue is that if I do not connect the xbee, the voltage divider reduces the input voltage to the desired voltage(3.4 V), but when I connect the XBee module, the resulting voltage divider voltage drops to a value very low (0.85 V), making the XBee malfunction. Surely it is a basic mistake, I am asking something that is very clear, but I'm newbies.   Basic Circuit:  Vin(4.5 V)-----R2(10 kΩ)---------R1(33 kΩ)--------GROUND                        |                        |                  Vout desired (3.4 V)                        |                        |                       XBee I was using this:    To try and create numbered examples in my document.  However, when I load it and put the example exe in that link in one of the separate Tex files (Introduction.tex) I include in main.tex, I get:  ./Chapters/Introduction.tex:14: TeX capacity exceeded, sorry [parameter stack s ize=10000]. \gb@ifnextchar #1#2#3-&gt;                        \let \reserved@d =#1\def \reserved@a {#2}\def \reserv... l.14 ... and political news \cite{washington_post}                                                   .  More importantly, when ...   Which is not even referring to the exe example I inserted but a couple of blocks of tex above it.  For info, here is my full code before my document begins:  \documentclass{report} % [fontsize=11pt,border=5pt] % standalone for the tree \usepackage{forest} % This overrides warnings like http://tex.stackexchange.com/questions/52576/difference-between-bookmark-levels-greater-than-one-what-does-this-mean \usepackage{bookmark} \usepackage{amsmath} \usepackage{subcaption} \usepackage{standalone} \usepackage[round]{natbib} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} % This is for hyperlinks \usepackage{hyperref} \hypersetup{     colorlinks=true,     linkcolor=blue,     filecolor=magenta,           urlcolor=cyan, }  \urlstyle{same} % Not sure why I need to use this % \usepackage{graphicx} % \graphicspath{ {images/} } % \usepackage[pdftex]{graphicx} % fontsize=11pt,twoside]{scrartcl} % This is for numbered examples \usepackage{gb4e}   Would appreciate some help as I feel like my Latex is very messy here. Best way to start investing, for a young person just starting their career? When I create a UV sphere and add the subdivision surface modifier, the following wrinkle appears.    How can I avoid it?  I've read the article  but there seems to be no clear solution.  UPDATE 1  I've used the word 'apply' in the first sentence of the initial version of this question. It's misleading since I want to preserve the modifier without 'applying' it. Rather, what I meant is 'adding' the modifier.  UPDATE 2  I followed josh sanfelici's solution, but still there is an artifact at the pole.  Here is the screen: (A rendered view with a sun lamp)    Maybe it's the limitation of the general-purpose subdivision modifier.  BTW, when the cast modifier is added after the subdivision modifier, the sphere becomes perfect (even for my original wrinkled sphere).  But since I want to edit the resulting sphere (for example, scaling X, Y, etc) while modifier is added but not applied, it's not usable. Best place to put bug reports? What websites or other resources do users of Blender have available to them to report bugs or problems with the program?  I would like to get this issue cleared in Q&amp;A format so that we can link new users with bug-report-style questions to this post. Expanding an event group shows more events than labeled when there are new events es.SO questions aren't excluded from the Hot Questions list As figured out in  localized SE sites must not be displayed in the HNQ's. But  actually is.        Has to be fixed I guess? TexShop will not compile without trashing aux files after every error I have a couple of LaTeX files with the same problem. If I produce an error, fix it, and then try to compile a pdf, I get the following error.  )Runaway argument? {{ ! File ended while scanning use of \@newl@ablel. &lt;inserted text&gt;                 \par l.90 \begin{document}   If I then click on the console or trash my .aux file, it compiles fine. Any thoughts on what is going on and how to prevent this annoying extra step?