Correlation/association between two point layers
Determining if trees within forest gaps are clustered using R?
class C {   T a; public:   C(T a): a(a) {;} };   Is it legal? I was looking for a possible duplicated question about  in , then looked using the Big G! since the integrated search didn't give me any useful result (laugs) then I found the , but in Stackoverflow! Then, I proceed to flag as off-topic, but since "It's too old to migrate" I don't have the option to do so...  So, my question is, should I leave it like that? Or the question is better in UL (also on topic, just read the question)? Any guidance to this young pada-wan is greatly appreciated. In the beginning of the series, it's mentioned that Muggle-born wizards/witches are identified due to inadvertent spell-casting. However, it seems like later in the book, disarmed wizards/witches are completely helpless.   What is the explanation for why some spells can be cast without a wand and is there an in-universe explanation for why this isn't done? Also, are there spells that can be cast non-verbally (with/without a wand)? How to make a cylinder / pipe with slanted ends (like pasta penne)? Isomorphism of a product $C_n \times C_m$ of cyclic groups with the cyclic group $C_{mn}$ Given that $C_n$ is a cyclic group of order $n$, what conditions must integers $n$ and $m$ satisfy such that the group $C_n \times C_m$ is isomorphic to C$_{mn}$?   So I attempted to investigate a few lower-order cyclic groups to find a pattern. In particular, I looked at $C_2 \times C_3$ and compared it to $C_6$. Here are a couple of diagrams:  $C_2 \times C_3$ -   $C_6$ -   They Cayley tables look pretty different (identity elements are all over the place for $C_2 \times C_3$) so I concluded that they are not isomorphic.  I did the same for $C_2 \times C_4$ and $C_8$:  $C_2 \times C_4$ -   $C_8$ -   Again, I arrived at the conclusion that the 2 groups are not isomorphic due to their Cayley table structure.  It seems I'm stuck now. Are my conclusions wrong for the examples I examined? If so, how do I find the conditions for the general case of comparing $C_m \times C_n$ with $C_{mn}$? Use of "save" or "save for" in sentences The Problem  Currently if I flag a post, I cannot check the status of the flag unless I have prior helpful flags. This means, for example, that a new user who wants to check the status of his first flag cannot do so while it is pending (active).  This feature request is based on my experience on MSO, where I wanted to check the status of my flag but could not get to the summary page without cheating (tweaking my SO link to work with MSO). It also stems from this question, where the OP indicates he had the same issue:   My Proposal  If I have flagged any post, then show me a "flags" link (red arrow in image below). If I have any helpful flags, then the number of helpful flags should be displayed (blue arrow). If I have not flagged anything, then neither should be displayed (as with current site functionality). Installing a strong-tie post anchor on unlevel concrete Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models? Say I have a Rails Model called Thing. Thing has a url attribute that can optionally be set to a URL somewhere on the Internet. In view code, I need logic that does the following:  &lt;% if thing.url.blank? %&gt; &lt;%= link_to('Text', thing_path(thing)) %&gt; &lt;% else %&gt; &lt;%= link_to('Text', thing.url) %&gt; &lt;% end %&gt;   This conditional logic in the view is ugly. Of course, I could build a helper function, which would change the view to this:  &lt;%= thing_link('Text', thing) %&gt;   That solves the verbosity problem, but I would really prefer having the functionality in the model itself. In which case, the view code would be:  &lt;%= link_to('Text', thing.link) %&gt;   This, obviously, would require a link method on the model. Here's what it would need to contain:  def link   (self.url.blank?) ? thing_path(self) : self.url end   To the point of the question, thing_path() is an undefined method inside Model code. I'm assuming it's possible to "pull in" some helper methods into the model, but how? And is there a real reason that routing only operates at the controller and view layers of the app? I can think of lots of cases where model code may need to deal with URLs (integrating with external systems, etc). *.xhtml url-pattern causes java.lang.NullPointerException at com.sun.faces.context.flash.ELFlash.loggingGetPhaseMapForReading What is the difference between `grep`, `egrep`, and `fgrep`? Can anyone tell me the technical differences between grep, egrep, and fgrep and provide suitable examples?  When do I need to use grep over egrep and vice versa? Truncated 200GB table but disk space not released I have only 2GB left, so I need to remove this history table. This table now is empty but the database disk space not released. And the database file is 320GB. What is causing disabled options when adding a mesh/curve object to the scene? Sometimes when adding an object to the scene I see that all options (on toolbar or in window after pressing F6) are disabled. Can anyone tell me when can this happen? What is causing it and how to revert it - make it enabled again. It worked for me when I restarted Blender and reloaded the scene. However I would really like to know what can cause it? $x^2+y^2=z^n$: Find solutions without Pythagoras! I was presented with the following problem:      Prove that there exist solutions to $x^2+y^2=z^n$ for all $n$, with $x,y,z, n \in \mathbb{N}$   I showed that by taking any Pythagorean triple $x^2+y^2=z^2$ and multiplying by $z^{2(n-1)}$ we get $(z^{n-1}x)^2+(z^{n-1}y)^2=(z^2)^n$, which allows me to generate solutions easily for any value of $n$. I managed to find several similar questions on this site, such as  concerning the specific case $n=3$. I notice that all of these questions take a similar approach and start with a Pythagorean triple and use it to generate general solutions.  Is there a way to prove the statement (or better yet provide solutions to the equation) without first relying on Pythagoras? Composition of two Riemann integrable functions Suppose $f,g$ are two Riemann  Integrable functions .Is it true that $f\circ g$ is also Riemann  Integrable?  Trying this for a long time but not getting the answer How do I remotely wake my Mac over Wi-Fi? I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code:  ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo);   where m_strInstallUtil is the fully qualified path and exe to "InstallUtil.exe" and strExePath is the fully qualified path/name to my service.  Running the command line syntax from an elevated command prompt works; running from my app (using the above code) does not. I assume I'm dealing with some process elevation issue, so how would I run my process in an elevated state? Do I need to look at ShellExecute for this?  This is all on Windows Vista. I am running the process in the VS2008 debugger elevated to admin privilege.  I also tried setting startInfo.Verb = "runas"; but it didn't seem to solve the problem. Filling cells with sequential numbers in an Excel (2003) macro I need to fill an excel column with a sequential series, in this case from -500 to 1000.  I've got a macro to do it, but it takes a lot of lines for something that seems like it should be a single function [something like FillRange(A2:A1502, -500, 1000, 1)].  But if that function exists, I can't find it.  Is the following as simple and elegant as it gets?  'Draw X axis scale Cells(1, 1).Value = "mV" Cells(2, 1).Value = -500 Cells(3, 1).Value = -499 Cells(4, 1).Value = -498  Dim selection1 As Range, selection2 As Range  Set selection1 = Sheet1.Range("A2:A4") Set selection2 = Sheet1.Range("A2:A1502")  selection1.AutoFill Destination:=selection2 Which parts are from Eminems real life? In "" we saw how Bunny Rabbit got into the rapping gang and won the heart of millions of rap lovers. Now in Eminem's original life too similar thing happened. We know how Dr. Dre helped him getting into an industry which is dominated by mainly black people in USA. In fact,  called the film semi-autobiographical. So I want to know which parts are direct picturisations of his real life? How to use paging in a WFS query? I am running a GetFeature request against a WFS server which does not support to download all data at once. Can I use ogc:PropertyIsGreaterThanOrEqualTo to split the dataset into chunks at download them step by step? I wonder how I can construct the actual URL to include the paging filter. Here is what I tried:  http://example.com/wfs.aspx?request=GetFeature&amp;service=WFS&amp;version=1.1.0 \ &amp;typeName=example:example&amp;maxFeatures=50000 \ &amp;FILTER=&lt;ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"&gt; \ &lt;ogc:PropertyIsGreaterThanOrEqualTo&gt;&lt;ogc:PropertyName&gt;OBJECTID&lt;/ogc:PropertyName&gt; \ &lt;ogc:Literal&gt;50000&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsGreaterThanOrEqualTo&gt;&lt;/ogc:Filter&gt;   This is not a valid URI though... That's why uri-encoded the filter part:  http://example.com/wfs.aspx?request=GetFeature&amp;service=WFS&amp;version=1.1.0 \ &amp;typeName=example:example&amp;maxFeatures=50000 \     &amp;FILTER=%3Cogc%3AFilter%20xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net \ %2Fogc%22%3E%3Cogc%3APropertyIsGreaterThanOrEqualTo%3E%3Cogc%3APropertyName%3EOBJECTID \ %3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3E50000%3C%2Fogc%3ALiteral \ %3E%3C%2Fogc%3APropertyIsGreaterThanOrEqualTo%3E%3C%2Fogc%3AFilter%3E   This actually works. Is there a "nicer" way to do this?