GCC Windows __asm RDTSC clobber
How to get the CPU cycle count in x86_64 from C++?
Extracting Z data from point layer using ArcGIS Desktop? I have created a point layer with ~150 points. I have a DEM beneath it, which is where I have taken the X and Y values from.   Does anybody know how I can retrieve the Z values, without using the info button?  I am using ArcGIS Desktop 10. I have licences for the spatial analyst etc tools. Given the key, the plain text and the cipher text can I calculate the IV used in CBC mode? If I have the plain text, the ciphertext and the key for an AES-128 CBC operation, can I determine the IV, even if I don't know the padding (assuming the padding follows one of the more common formats)?  I believe it should be possible since my understanding is that the IV is only used as an initial XOR of the plain text in encryption, and should, therefore, be able to be available like this:  AESDecrypt(key, ciphertext) =&gt; (PlainText XOR IV); IV = ((Plaintext XOR IV) XOR (Plaintext))   Is this correct? What may happen after a stack of spells resolves? Within the same phase, once a stack of spells has resolved in its entirety, is priority once again given to a player so that more spells may be cast?  For example:  I attack with a creature. Opponent opts not to block. Now, I want to buff (e.g. +3/+3) my creature multiple times, but I'm afraid of my opponent responding with a burn (e.g. Deal 3 damage) spell at the top of the stack. Can I buff once, ask if opponent wants to respond, then allow the stack to resolve. Then, in the same phase, cast more buff? How to calculate the division and remainder of a big number manually Let $x = 2017^{2017}$. How can I manually determine:   The remainder of the division of $x$ by $31$ The least significant digit of $x$ Proof that the coefficients in an OLS model follow a t-distribution with (n-k) degrees of freedom When users create a node, they should be redirected to a payment page; if payment is successful, the user can see the node.  Is there any way to achieve this? Random contacts on my iPhone 5 I recently bought a new iPhone 5. When I was going through my contacts today, I noticed a lot of email adresses stored along with the other numbers. I didn't even know most of them! What has happened? Does C# have extension properties? Although we didn't do any changes, this new error appeared in the GSC Structured Data section:    I don't really get what it means. There are many fields for Schema.org, is homeLocation suddenly a required field? Does that make any sense? Is it possible for many domain names to share one IP address? Is it possible for many domain names to share one IP address? For example, www.xjtl.com, www.fmie.com, sdmfl.com, etc.  Hundreds of domain names share just one IP – when you do a DNS query for each of them, the same IP is returned.  Are there any laws or Internet rules that disallow this? Should the weight of downvotes be increased? What is meant by immutable? This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie.    Can somebody clarify what is meant by immutable?  Why is a String immutable? What are the advantages/disadvantages of the immutable objects? Why should a mutable object such as StringBuilder be preferred over String and vice-verse?   A nice example (in Java) will be really appreciated. Adjusting font size with TikZ picture Taking from the PGF manual,  \begin{tikzpicture}   \draw [help lines] (0,0) grid (3,3);   \coordinate (a) at (rnd,rnd);   \coordinate (b) at (3-rnd,3-rnd);   \draw (a) -- (b);   \node (c) at (1,2) {x};   \draw let \p1 = ($ (a)!(c)!(b) - (c) $),             \n1 = {veclen(\x1,\y1)}         in circle [at=(c), radius=\n1]; \end{tikzpicture}   I'd like to increase the size of x. The problem is that I have multiple circles in the same diagram. Some of them require a larger sized font, while others are okay at default. How do I do this? Is using Gravatar a security risk? This has been . It is unfortunate the accepted answer is so far from reality.   There are some facts:    's MD5 hash is an unsalted MD5 hash of an email address. A 3rd party could harvest every MD5 hash for every user's email on Stack Overflow.  The 3rd party could store all the hashes in a lookup table Email addresses are usually of a very particular format The attacker could start with a brute force of @gmail.com followed by @yahoo.com, etc. The attacker has the advantage that he/she could attack a huge set of emails in one go. So instead of needing to brute force every email individually the attacker can brute force in bulk.   The algorithm is quite simple, calculate a "random" MD5, look it up in the lookup table.       Is Gravatar a big enough security risk to warrant caching images locally?     Examples:    Someone could harvest about 50k email addresses quite easily and shoot off a bogus promotion from Stack Overflow to all the users. A spammer/stalker/generic evil guy can tie you identity to all the rest of the sites that use Gravatar. Should we write “allow” or ”allows” in “require that the class allow[s]”? Can you explain to me whether I should or should not use ‑s at the end of the  verb allow in this sentence?     This function requires that the container class allow[s] random access   The sentence in the book I read wrote allow without ‑s. However, the container class is a third-person singular, so the ‑s must be required. Is that right? I am working with dimensionality reduction algorithms. Linear Discriminant Analysis (LDA) is a supervised algorithm that takes into account the class label (which is not the case of PCA for example). I am using Python to do a comparative study between some algorithms.  Why with two classes (k = 2), regardless of the data dimensionality, LDA gives one dimension, i.e. the new subspace is composed of only one dimension? For example if I try to project my dataset (of 100 attributes and 2 classes) to 10-dimensional space by using LDA(n_components=10) I only obtain 1 dimension?  For k&gt;2 I can obtain the number of discriminant vectors that I specified as n_components. How can I get n_components dimensions for k=2? We are in the combat phase:   I declared my attackers  My opponent declared his blockers, stating which attackers he was blocking I cast an instant, which automatically kills his blocker. There is nothing blocking my attacker now   Now we're in the damage phase. I said that my attacker now does damage and  reduces my opponent's hit points. My opponent said that because my attacker was blocked no damage could be done. I pointed out that the blocker was destroyed before the damage phase, so therefore he wasn't blocking, but he wasn't having it. (My attacker does not have trample)  Is this covered by a specific section in the rules? Simulating group_concat MySQL function in Microsoft SQL Server 2005? I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :) Difference in output between SAS's proc genmod and R's glm I'm trying to replicate a model fitted in SAS in R but the fit I'm getting gives me slightly different coefficients and standard errors.  Data:  testdata &lt;- data.frame(matrix(c("f","Test", 1.75,   16, 0,  16, 0,  1,  1, "m",    "Test", 1.75,   15, 1,  16, 6.25,   1,  0, "f",    "Test", 2.75,   4,  12, 16, 75, 1,  1, "m",    "Test", 2.75,   9,  6,  15, 40, 1,  0, "f",    "WHO",  1.75,   15, 1,  16, 6.25,   0,  1, "m",    "WHO",  1.75,   14, 2,  16, 12.5,   0,  0, "f",    "WHO",  2.75,   2,  13, 15, 86.6667,    0,  1, "m",    "WHO",  2.75,   3,  13, 16, 81.25,  0,  0 ), ncol=9, byrow=TRUE)) names(testdata) &lt;- c("sex", "vaccine", "dose", "not_p", "para", "n", "pct",                       "vacnum", "sexno")   SAS:  proc genmod data=model_data; class sex; model para/n  = dose sex vacnum    /dist=bin    link=logit   type3; run;  Analysis Of Maximum Likelihood Parameter Estimates  Parameter   DF Estimate Std Error Wald 95% Conf Lim Wald Chi-Square Pr &gt; ChiSq  Intercept   1 -9.4020   1.6220    -12.5810  -6.2230  33.60           &lt;.0001  dose        1  3.9208   0.6460      2.6546   5.1870  36.83           &lt;.0001  sex f       1  0.5574   0.5184     -0.4587   1.5735   1.16           0.2823  sex m       0  0.0000   0.0000      0.0000   0.0000    .              .  vacnum      1 -1.3221   0.5483     -2.3967  -0.2475   5.81           0.0159  Scale       0  1.0000   0.0000      1.0000   1.0000        R:  testdata$sexno &lt;- as.factor(testdata$sexno)     a &lt;- contr.treatment(2, base = 1, contrasts = TRUE)  contrasts(testdata$sexno) &lt;- a  fitreduced &lt;- glm(para/n ~ dose + as.factor(sex) + vacnum,                    family=quasibinomial(link="logit"), data=testdata)  coef(summary(fitreduced))                    Estimate Std. Error   t value    Pr(&gt;|t|) (Intercept)     -9.4013750  1.7613982 -5.337450 0.005935450 dose             3.9173794  0.7001133  5.595351 0.005007179 as.factor(sex)1  0.5704671  0.5568436  1.024466 0.363525300 vacnum          -1.3336100  0.5887552 -2.265135 0.086189704   I believe I have the right contrasts to give me a type III SS but there is a small discrepency in values, have a missed something here? Does borrowing from my 401(k) make sense in my specific circumstance?