I have a shapefile which looks like this (this is a snippet of it):    I would like to create a grid in a new shapefile which will be overlaid (that's not a technical term, I'm just not sure how to describe it) on this map.    The grid should be comprised of equal sized polygons, except by the borders where they can (and in all likelihood will) be smaller. It should look like this:    I have tried using the Create Fishnet tool in ArcMap to accomplish this, but this gives me a grid which is always rectangular and does not stop at the borders of the original shapefile.  How do I create this shapefile?
I have created a fishnet grid (3km x 3km) over a vector polygon.   I now want to clip the fishnet over the vector polygon retaining all grid squares within the boundary of the polygon.   Therefore I want all squares that would typically be clipped into partial squares to remain as whole squares.   Does anybody know how to do this?
Is "has or will read" grammatical? I just wrote  in an ELL chat room. But looking at it (or more accurately, listening to my "inner voice" trying to "read it aloud"), I find it bothers me a lot.  A quick check on Google Books finds a claimed 432 written instances of , and 910 instances of , which suggests a significant minority of writers don't have a problem with the fact that the two different read's don't sound the same.  When I check the same construction with other verbs that don't have the same written form for past participle and present tense, it seems people nearly always include both (e.g. :1230, :8; :357, :7).  I'm not usually a big fan of "grammatical rules", but it seems to me there "ought" to be a rule that you shouldn't delete one instance of the verb unless it's "the same" as the one you're keeping. And it also seems to me that since language is primarily spoken, "the same" ought to mean "sounds the same when spoken", not "looks the same when written".  Can anyone who knows more than me about formal rules of grammar settle this one?    As an aside, offhand I can't think of any verb where the past participle and present tense sound the same but are written differently (maybe there aren't any), but would deletion be okay in that case? Incorrect whitespaces or list item size in Android SE app Noticed that sometimes when there are 10+ answers to a question - some answers look like they have \n\n...\n line breaks in the end, so the body of the answer has incorrect height.  It probably has something to do with ViewHolder or adapter not setting correct row height. Although as far as I know, it should do this according to text amount/length. I'm a bit overwhelmed by the available options in regards to the three major photo editing apps from Adobe.  Does anyone know of an article or site that lists the features of Lightroom, PS Elements, and PS, side by side?  I know that Lightroom revolves around edits and workflow, and that PS is the big kahuna of image editing.  Where does Elements fit in to this understanding? Why did the Resistance automatically assume the use of this tech in The Last Jedi? Why do some font commands behave differently? I've always been confused by the differences in behavior of font commands.  For example, we have \mathrm{} and \texttt{}, which can be used like this: \texttt{hello} world.  And then we have \it and \bf which must be used as {\it hello} world. If one uses \it{hello} world, both words are italicized.  Internally, what is the difference here? And was this difference a conscious design decision? If so, why? NSInvalidUnarchiveOperationException: Could not instantiate class named NSLayoutConstraint Find $\lim \limits_{n \to \infty}{1*4*7*\dots(3n+1) \over 2*5*8* \dots (3n+2)}$ I am trying to find  $$\lim \limits_{n \to \infty}{1*4*7*\dots(3n+1) \over 2*5*8* \dots (3n+2)}$$  My first guess is to look at the reciprocal and isolate factors:  $${2 \over 1}{5 \over 4}{8 \over 7} \dots {3n+2 \over 3n+1}= {\left(1+1\right)}\left(1+{1 \over 4}\right)\left(1+{1 \over 7}\right) \dots \left(1+{1 \over 3n+1}\right)$$ Now we take the natural log: $$\ln{ + \ln\left(1+1\right)} + \ln\left(1+{1 \over 4}\right) +\ln\left(1+{1 \over 7}\right) \dots +\ln\left(1+{1 \over 3n+1}\right)$$ Using $\ln(1+x) \le x$, we get: $$\ln{ + \ln\left(1+1\right)} + \ln\left(1+{1 \over 4}\right) +\ln\left(1+{1 \over 7}\right) \dots +\ln\left(1+{1 \over 3n+1}\right) \le 1 + {1 \over 4} + {1 \over 7} + \dots + {1 \over 3n+1}$$ Now, I'm stuck. I suppose I might use the fact that the RHS is similar to the harmonic series and show that it converges to some log, but I'm not sure how to do that. Do you have any clues? Eclipse is giving me a warning of the following form:     Type safety: Unchecked cast from Object to HashMap   This is from a call to an API that I have no control over which returns Object:  HashMap&lt;String, String&gt; getItems(javax.servlet.http.HttpSession session) {   HashMap&lt;String, String&gt; theHash = (HashMap&lt;String, String&gt;)session.getAttribute("attributeKey");   return theHash; }   I'd like to avoid Eclipse warnings, if possible, since theoretically they indicate at least a potential code problem.  I haven't found a good way to eliminate this one yet, though.  I can extract the single line involved out to a method by itself and add @SuppressWarnings("unchecked") to that method, thus limiting the impact of having a block of code where I ignore warnings.  Any better options?  I don't want to turn these warnings off in Eclipse.  Before I came to the code, it was simpler, but still provoked warnings:  HashMap getItems(javax.servlet.http.HttpSession session) {   HashMap theHash = (HashMap)session.getAttribute("attributeKey");   return theHash; }   Problem was elsewhere when you tried to use the hash you'd get warnings:  HashMap items = getItems(session); items.put("this", "that");  Type safety: The method put(Object, Object) belongs to the raw type HashMap.  References to generic type HashMap&lt;K,V&gt; should be parameterized. How to get rid of notch at pgfplots axes intersection? Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive? Often confusion arises when the  spell is used, an  is worn, or the 's anti-magic ray is employed, whether a given character's ability will still function.   The spell does give you some guidelines on how to adjudicate the effects of the loss of magic but says very little about how to determine what is affected.  In short, how do I tell if an ability is magical? I'm not the most experienced person when it comes to commands. I worked out how to do stuff like when holding x you have y effect. I wanted to think of something that gave other people an effect when hit. Here is what I came up with but I got stuck when it said it couldn't execute the command.  /scoreboard objective add nokill dummy  /scoreboard objective add poi dummy  /scoreboard players set [player] nokill 1  /scoreboard players add @a poi 1 {SelectedItem:{id:minecraft:diamond_sword,display:{Name:{Poison sword}}}}  /execute @a[score_poi_min=1] ~ ~ ~ /effect @p[score_nokill_max=1,r=5] {HurtTime:1} minecraft:poison 10 1 Why does the addition of a \left and \right introduces an extra space around the formula? Specifically, why do $\cos(\theta)$ and $\cos\left(\theta\right)$ render differently?  Is there a way to use resizable delimiters without introducing the spurious spaces?  Why did Knuth design it like this?  Edit: This occurs too, if \operatorname{MYOP} or some other operator, like \lim, \min etc. is used. (This edit is basically to make it easier to find this answer.) Calculating polygon area within polygons in QGIS? I am new to QGIS - I want to estimate the area of the reef under a polygon grid. My shapefiles are already in meters, however I am having a hard time calculating the area under the grid layer. Attached are the photos. I want to calculate the total area of the bold black polygons (reefs) under each grid square (image 2). How much reef is inside each square, for example, grid1: 25 sq.km, grid 1 sq.km, etc. Each reef polygon has its corresponding area in the layer attribute table.    ADDITIONAL PHOTO: RED IS THE REEF  THE ATTRIBUTES OF THE REEF LAYER I am following Carroll's GR book. He explain that it is convention to parameterize geodesics of photons by a parameter $\lambda$ such that  $$p^\mu ~=~ \frac{d x^{\mu}}{d \lambda}.\tag{3.62}$$  But this is the definition of 4-velocity for a massive particle in the case of $\lambda=\tau$ equal to proper time. My question then, is $$u^\mu = p^\mu$$ for all massless particles? I ask because it's well-known that proper time $\tau$ freezes for massless particles. When there are X New Questions, the views don't update untill you refresh the page If you multiclass a Warlock and a Sorcerer, then you have a character with both the Spellcasting and Pact Magic features.  PHB Page 101, Sorcerer, Spellcasting, Spell Slots:     You regain all expended spell slots when you finish a long rest.   PHB Page 107, Warlock, Pact Magic, Spell Slots:     You regain all expended spell slots when you finish a short or long rest.   PHB Page 165, Customization Options, Multiclassing, Class Features:     Pact Magic. If you have both the Spellcasting class feature and the Pact Magic class feature from the warlock class, you can use the spell slots you gain from the Pact Magic feature to cast spells you know or have prepared from classes with the Spellcasting class feature, and you can use the spell slots you gain from the Spellcasting class feature to cast warlock spells you know.   Do the spell slots keep their previous method of recovery (sorcerer slots long rest, warlock slots any rest), or do they all act consistently as I am led to believe from the language of the multiclass section? Do they all recover only from long rests as per the sorcerer feature, or can they all be recovered with a short rest because the warlock feature says so? How is double negation interpreted in English? When having a number of files opened in Texmaker, at the top of editor pane, there is a drop down panel with the names of open documents in it. I prefer to have tabs of open documents at the top of editor pane, similar to Texstudio and Winedt. Is there a way that I can change this setting? Why do some badges appear white in color and others are dark?