How make a specific color have a different shader
How can I use colours to separate texture node treatment?
How typeset a numeric table from a CSV file I have a CSV file (db.txt)like this:  30.0,   0.0,    0.0 60.0,   1.9098, 5.8779 90.0,   6.9098, 9.5106 120.0,  13.09,  9.5106 150.0,  18.09,  5.8779 180.0,  20.0,   0.0   I need to typeset it. My problem is related with the wrong alignment of decimal point and the number of decimals (must be a constant for each column):  \renewcommand*{\dtlrealalign}{r}  \DTLloaddb[     noheader,     keys={x,y,theta},     headers={         \shortstack{$\boldsymbol{\theta_{2,i}}$},         \shortstack{X},         \shortstack{Y}              }   ]{db}{db.txt} \begin{table}[t]   \caption{Database file}   \centering   \DTLdisplaydb{db} \end{table}     Any advice, please? Can I run PC steam games on a Mac? Space faring human race encounters one highly advanced spaceship.  The one ship tells the human space fleet to go away and leave them alone. We don't listen and our ships are destroyed.  Human spy is sent to the alien world. Aliens look virtually identical to humans except they have no cartilage in their nose and the 'females' are only capable of mating every seven years. The human spy tells this story and is a brilliant tactician. He enters into a game tournament where they play a very complicated version of chess.  Human spy interacts with a higher ranking military officer who has a human female wife.  Human spy gets caught and when he is ultimately returned to Earth he advises humanity to unconditionally surrender to the alien race.  Humans eventually win because the alien males take human wives and their alien DNA is diluted in the vast human gene pool.  Looking for the title and author if anyone can recall them.  06/15 - update  I found the anthology. 'Second Game' was in 'The Arbor House Treasury of Great Science Fiction Short Novels' which came out in 1980 and 1981.  I did read the original story from 1958 which was actually a nominee for the Hugo Award for Novelette in 1959. I have a set of predictors in a linear regression, as well as three control variables. The issue here is that one of my variables of interest is only statistically significant if the control variables are included in the final model. However, the control variables themselves are not statistically significant.  Here is how the multicollinearity of all my variables look like (including control variables):   &gt; vif(lm(return ~ EQ + EFF + SIZE + MOM + MSCR + UMP, data = as.data.frame(port.df)))        EQ      EFF     SIZE      MOM     MSCR      UMP   3.687171 3.481672 2.781901 1.064312 1.438596 1.003408   &gt; vif(lm(return ~ EQ + MOM + MSCR, data = as.data.frame(port.df)))        EQ      MOM     MSCR   1.359992 1.048142 1.412658    My variables of interest are EQ, MOM and MSCR, and the control variables are EFF, SIZE and UMP. EQ is only significant if the three control var are included, and becomes insignificant when they are not:   Here are the coefficients (1rst row) and t-stats (2nd row) when control variables are included (notice that EQ is statistically significant)         intercept           EQ          EFF        SIZE         MOM       MSCR          UMP [1,] 0.005206246 -0.006310531 0.0001229055 0.004125551 0.007738259 0.00473377 5.838596e-06 [2,] 1.866628909 -1.746583234 0.0388823612 1.178460997 2.145062820 2.08131100 1.994863e-01  Now, here is the result of the regression when the control variables are excluded (notice that EQ is NOT statistically significant anymore)         intercept           EQ         MOM       MSCR [1,] 0.007313402 -0.002111833 0.007128606 0.00668364 [2,] 2.652662996 -0.595391117 2.036985378 2.80177366    The problem is that when I include my control variables, all my variables of interest are significant, but my control variables are not.  Which variables should I include in my final model? How should I structure my final model then, given the fact that the model will be used for forecasting?  Thank you, What's wrong if I fit the auto-regression with OLS? I am doing auto-regress by usual linear regression package. e.g.  $y_t=φx+ε_t$ with $x =y_{t-1}$  My reason is that, Auto-regression does assumes iid errors, same for linear regression. Linear Regression doesn't have assumption on independent variables. What's different is merely that the independent variables is replaced with lagged dependent variable y.  But I see AR always is fitted by specific methods, I am afraid I'm doing wrong. Performance impact of updating target columns with same values ON CONFLICT This is a question about the inner-workings of Postgres (v10) and performance.  Given a table, github_repos, with a multi-column unique index on org_id and github_id columns, is there any performance difference (or other issues to be aware of) between the two bulk upsert operations below? The difference is that in the first query, the org_id and github_id columns are included in the UPDATE, whereas in the second query they are not. Since the UPDATE runs ON CONFLICT, the updated values of org_id and github_id will be the same as the old values, but those columns are included in the UPDATE because the underlying library I am using is designed that way. I'm wondering if its safe to use as-is or whether I should be explicitly excluding those columns in the UPDATE.  Query #1:  INSERT INTO "github_repos" ("org_id","github_id","name") VALUES (1,1,'foo') ON CONFLICT (org_id, github_id) DO UPDATE SET "org_id"=EXCLUDED."org_id","github_id"=EXCLUDED."github_id","name"=EXCLUDED."name" RETURNING "id"   Query #2:  INSERT INTO "github_repos" ("org_id","github_id","name") VALUES (1,1,'foo') ON CONFLICT (org_id, github_id) DO UPDATE SET "name"=EXCLUDED."name" RETURNING "id"   github_repos table:        Column       |       Type        | Collation | Nullable  -------------------+-------------------+-----------+----------+  id                | bigint            |           | not null |  org_id            | bigint            |           | not null |  github_id         | bigint            |           | not null |  name              | character varying |           | not null |  Indexes:     "github_repos_pkey" PRIMARY KEY, btree (id)     "unique_repos" UNIQUE, btree (org_id, github_id) Previous questions confirmed that Hex can last through multiple encounters (assuming my warlock's concentration doesn't get broken by a club to the head or the like) and at higher levels even through a short rest.   My question is how targeting Hex works when trying to keep it up for extended periods of time.   Can I just cast it on nothing and keep it up until a valid target presents itself or is an initial valid target required?   Then later, does changing the target of the Hex require that the original target is brought to 0 HP?   Once the initial target dies does the spell stay active even if I don't immediately choose a new target?  My suspicion from reading the spell is that it needs an initial target, but then from that point on I can just keep it up after that target dies until it either expires or a new target presents itself. Is this correct? If $X, Y$ are jointly standard normal with correlation $r$, and $a, b$ are constants, what is $p(Y < b | X < a)$? The application here is interpreting the correlation coefficient $r$ in terms of $X$'s ability to predict $Y$ for extreme values of $X$. For example, if $r = .8$, then what is $p(Y &lt; 0 | X &lt; -2)$? When approximating a posterior using MCMC, why don't we save the posterior probabilities but use the parameter value frequencies afterwards? Writing conditional (if/then) statements into ArcGIS Field Calculator using Python Parser? I have gotten stuck on seemingly simple ArcGIS field calculator python expression.  I obtained a great answer to a another similar question a few years ago: . Now I need to populate a new field based on 6 ranges of values (bedrock depth).  My attempt at writing this expression is below:    I just need to populate the empty field "bedrockdp" using the ranges in the toc called brockdepmin.     Pre-Logic Script Code:  def !GRIDCODE! (value):     if value &gt;0 and value &lt; 50:         return "0 - 50 cm from the surface"     else:         return "n/a"   bedrockdep =  GRIDCODE (!bedrockdep!) Random number generation and probability Google Spreadsheets: IF not working I have problems with my IF command in Google Sheets. If gives #ERROR! all the time. See this simple test:    Not even if I put in the number directly and avoid references:    Am I using the IF wrong? Or what could such a problem be? This example is from a new document. iPhone App CrashReport Removing the Bracket from the First Line of bmatrix How can I write a matrix with a header line that is not bracketed? I have used the following code to produce the results below. In addition of being ugly, it is impractical when I need to align the first row, n1, ..., n6 with the matrix columns.  \documentclass{book}  \usepackage{amsmath}    \begin{document}    \[ \ \ \ \ \ \ \ n_1\ \ \ \ \ \ \ \ n_2\ \ \ \ n_3\ \ \ \ \ \ \ \ \ n_4\ \ \ \ n_5\ \ \ \ n_6\]     \[ \begin{bmatrix}         1 &amp; -1 &amp; 0 &amp; 0 &amp; 0 &amp; 1\\         0.960 &amp; -0.977 &amp; 0 &amp; 0 &amp; 0 &amp; 0.983\\         0 &amp; 1 &amp; -1 &amp; -1 &amp; 0 &amp; 0\\         0 &amp; 0.977 &amp; 0 &amp; -0.983 &amp; 0 &amp; 0\\         0 &amp; 0 &amp; 0 &amp; 1 &amp; -1 &amp; -1\\         0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 1\\        \end{bmatrix}        \begin{bmatrix}n_1\\n_2\\n_3\\n_4\\n_5\\n_6\end{bmatrix} =        \begin{bmatrix}0 \\ 0 \\ 0 \\ 0 \\ 0 \\ 100\end{bmatrix} \]  \end{document} Attack moving or Attack Canceling I watch streams sometimes and i see the high elo Ranged AD move between each shot. Do they gain anything with this? And if so whats a good way to practice it. How do I boot from ISO file stored on hard disk? Is there a place to dispute duplicate markings? Turn off the link hover statusbar in Google Chrome I want to turn off the feature where whenever I hover over a hyperlink and in the bottom lefthand corner it shows a light blue hover tooltip about where that link goes.   Why do I want to turn it off? It's annoying to me. I am distracted as I work. None of the other browsers do it. Besides, it serves little purpose because it can be spoofed with the onmousedown event on a link. Take for instance ads on Facebook -- those spoof.   I really don't care where a given link goes and wish I could turn that feature off, even if I have to install a Google Chrome Extension.   So, is there a fix to turn the annoying link hover tooltip feature off? If time standard clocks and any memories about the time standard are destroyed, can we recover the time standard again? Assume the time standard clocks and any memories about the time standard are destroyed. Can we recover the time standard again exactly?  Recovering the time standard again means we can determine the date  and time that are exactly the same as the destroyed time standard clocks will show (if they are not destroyed). How to find stopping distance of a car?