Slicing a list into a list of sub-lists
How do you split a list into evenly sized chunks?
Regexp that matches valid regexps Splitting all polygon features in a shapefile into smaller equal width polygons I have a shapefile of thousands of polygon features, that i would like to break up into smaller pieces (i.e. break a square into 8 equal pieces). I have read all over these boards for the right solution and haven't found one yet unfortunately. I've tried parcel editor but that only allows you to manually edit one feature at a time, and I've tried fishnet but that doesn't run through each individual feature it just processes across the entire extent of the shapefile. I have the full license for ArcGIS so all options are game. Ultimately I would like to be able to split this initial shapefile of features into a specified amount of equal width slots that each would be their own feature in the resulting shapefile.  Any thoughts? What would be the easiest way to UV map a complex object? I'm attempting to make a texture for a model i've been working on, so i've been trying to get a decent UV map, However whenever I do it usually ends up either very distorted or a lot of unrecognizable pieces or several different UV maps. What are some easier ways of unwrapping/UV Mapping? How to describe arbitrary accelerations in special relativity How to remove the whitespace BEFORE itemize/enumerate? I'm somewhat of a LaTeX noob, and this is driving me completely nuts.  When I type  \documentclass{article} \usepackage{enumitem}  \begin{document}     Some text     \begin{itemize}[noitemsep]         \item Item 1         \item Item 2         \item Item 3     \end{itemize} \end{document}   I don't want the space which appears in between the text "Some text" and the itemization to be there:    When I search around on Google all I see is tons of long, complicated advice on this site, StackOverflow, forums, etc. on how to not fix the problem ("parskip is evil", etc.), or tons of vague/confusing answers on what package to look at, with no actual example for me to learn from.  So while this question is already asked many times, I have never found a single concrete answer to this question.    The question couldn't be simpler: How do I "properly" get rid of this extra space? "Year olds" or "year-olds" I am writing about some leadership stuff, and I am trying to say that I am leading the 14-15 year old boys. How do I correctly use year-olds as in, "I was the adviser to the 14-15 year-olds."  Thanks in advance Where in the world is tikzlibraryhobby.code.tex? I was trying to reproduce Claudio Fiandrino's answer to .  However, I do not have the hobby package by Andrew Stacey in my local distribution.  After reading  and , I looked at the latest  (build on December 7, 2012) but could not located the hobby package in it.  I found  but do not know where each file is supposed to go in my distribution.  How do I add the hobby package? In general, what would be the easy way to get any new TikZ package installed in a Mac?  EDIT:  I have used the drag-and-drop (mac) method as described below.  (1) Drag pml3array.sty file to /Users/Username/Library/texmf/tex/latex folder. (2) Drag hobby.code.tex file to /Users/Username/Library/texmf/tex/generic/pgf/math folder. (3) Drag pgflibraryfpu.code.tex to /Users/Username/Library/texmf/tex/generic/pgf/libraries folder. (4) Drag tikzlibraryhobby.code.tex to /Users/Username/Library/texmf/tex/generic/pgf/frontendlayer/tikz/libraries folder.  I no longer get the hobby cannot be found error message.  But, is this correct? I'm new to regular expressions and would appreciate your help.  I'm trying to put together an expression that will split the example string using all spaces that are not surrounded by single or double quotes. My last attempt looks like this: (?!") and isn't quite working. It's splitting on the space before the quote.  Example input:   This is a string that "will be" highlighted when your 'regular expression' matches something.   Desired output:  This is a string that will be highlighted when your regular expression matches something.   Note that "will be" and 'regular expression' retain the space between the words. In most sentences that use the word lunch, I found this word does rarely take the definite article the. For example:     I have lunch in three hours.      Shall we go out for lunch?      Let's have some lunch.      I'll take my lunch to school.   But now I wonder if this word really cannot take the definite article, and if it can, in what cases do I use the definite article and in what cases not?  And also, if the word lunch cannot take the definite article, why cannot it have it? Let $a=p_1^{x_1}p_2^{x_2}\cdots\cdot p_q^{x_q}$ and $b=p_1^{y_1}p_2^{y_2}\cdots p_r^{x_r}$ ,   say — Since gcd(a,b) is the largest common divisor of a and b and is divisible by any other common divisor of the two,   GCD$(a,b)=p_1^{\min(x_1,y_1)}p_2^{\min (x_2,y_2)} \cdots p_q^{\min (x_q,y_q)}$  LCM$(a,b)= p_1^{\max(x_1,y_1)}p_2^{\max(x_2,y_2)}\cdots p_r^{\max (x_r,y_r)}$  I understand GCD(a,b) has to divide both $a,b$. Therefore the exponent of any prime factor $p_i$ in GCD has to be in both $a,b$  — therefore $p_i^{\min(x_i, y_i)}$. But I'm muddled and anxious. Why does $\min$ appear in GREATEST common divisor? Why does $\max$ appear in LOWEST common multiple? Is there a way to run Python on Android? We are working on an  version and this platform has a nice Python API..  However, there is nothing official about Python on Android, but since  exists, is there a way to let the snake and the robot work together?? Single word for people who are like "a frog in the well" Is there a single word describing someone who is like a frog in a well? The frog believes the well is the entire world. How can I describe people who think that their own small environment is the entire world? I'm new to Linux. I got the "Unix And Linux System Administration Handbook" It speaks of several verisons of linux and unix, and the commands for viewing linux man pages and not specific to ubuntu.   How do I view the manpages? How to add spacing between columns? Local collection of Python packages: best way to import them? "Out of pocket"? I'm increasingly hearing the phrase "out of pocket" used in America as a colloquialism to mean "away from the office", "unavailable", or "incommunicado".     I apologize for not replying sooner; I have been out of pocket.    What is the etymology of this usage? It always sounds odd to me, since I had previously always associated the phrase with expenses, e.g., "I had to pay for the service out of pocket," meaning, "I had to pay for the service using my own money." Should either of these usages be avoided? What is the extent of their acceptance? How do you find the Lie algebra of a Lie group (in practice)? Given a Lie group, how are you meant to find its Lie algebra?  The Lie algebra of a Lie group is the set of all the left invariant vector fields, but how would you determine them?  My group is the set of all affine maps $x \rightarrow A.x+v$ from $R^n$ to $R^n$ under function composition. Is "princessship" a real word? Are there any other words which have the same letter 3 times consecutively? Is there any truth to the idea that you shouldn't multiply seasonings when multiplying a recipe? I often hear cooks discuss that idea that if you are multiplying, say, a recipe for 4 to be a for 32, that you shouldn't multiply some herbs, spices, or salt. I've never understood any reason why this should be true. Maybe something to do with surface area to volume ratios, or cooking times? Does anyone have a real explanation, or is this nonsense? What are these rays that appear in photograph of sun? In many images of light emitting objects we see such rays. Why do they appear ? What is the math behind their number and direction?