Function for creating colour wheels
How to automatically generate N "distinct" colors?
I am having problems booting my Ubuntu after an attempted hardware fix today. My laptop was working fine but had some minor issues, so we tried a different motherboard, which had a major issue, so we changed it back to the original board. However, now I have problem booting.  The title pretty much says it all. I am using Ubuntu 16.04, but on boot, I get:  [    0:000000] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x52 (or later)   and I am now stuck at the BusyBox (initramfs).  Does anyone know how to fix this issue? I am not so familiar with bash or initramfs, so I would appreciate a detailed step-to-step guide if possible. pgfplots external with large dataset (lualatex?) I have fairly large datasets with densely strucutred data that i cant downsampe much without loosing structure. I use TexMaker on Ubuntu 14.04LTS. I use   \usepackage{tikz,pgfplots,pgfplotstable} \pgfplotsset{compat=1.9} \usepgfplotslibrary{external} \tikzexternalize   and   \tikzsetnextfilename{figs/test1}   to externalize the figures. This works good compiling with pdflatex -shell-escape. But as the data becomes to large I am out of memory. I am trying to compile using LuaLaTeX -shell-escape instead of pdfLatex but get the following error message:   ! Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact ion=batchmode -jobname "figs/test1" "\def\tikzexternalrealjob{article}\input{ar ticle}"' did NOT result in a usable output file 'figs/test1' (expected one of . pdf:.jpg:.jpeg:.png:). Please verify that you have enabled system calls. For pd flatex, this is 'pdflatex -shell-escape'. Sometimes it is also named 'write 18' or something like that. Or maybe the command simply failed?   so pgfPlots seem to call pdfLatex without the appropriate -shell-escape flag and without me specifying it. How can i get this to compile in LuaLatex? or can i compile only the figures in LuaLatex and the rest in pdfLatex (the opposite of what is happening now)? I found  and  example but neither helped me...  Thankfull for help and i am also thankful for any general advice that can help me resolve the problem of ploting larger data sets in pgfplots.   Cheers /J I have a card with a due date of today. The task is complete, and we've moved it to our "Done" list.  How can I update the card so that the due date icon is not red implying that it is late while retaining the date for historical reference? Is it possible to change the line style in a tikz figure in the same \draw command?  I am looking for something like:  \documentclass[tikz]{standalone} \begin{document}     \begin{tikzpicture}         \draw[style1] (0,0) -- ++(1,0)  **CHANGE STYLE** -- ++(1,0);     \end{tikzpicture} \end{document}   The main motivation is that I don't want to loose the relative coordinate as I go on with a long \draw command. Hide details of a chapter from TOC and list of tables, figures and algorithms How do I delete data for one game in the iPad Game Center? which novel involved sending instantaneous tachyon body copies around the galaxy, mostly to die? The novel centers around a man living a comfortable existence in the pretty distant future.  To support himself, he is occasionally asked to enter a box which will copy his entire body, and send it out faster than the speed of light to some developing world, to work.  His copy on this world wakes up and realizes what a big mistake he's made.  The copy does grueling work, feels lonely, and eventually just dies of radiation sickness.  Back on earth, the man never realizes how bad it is out there, and keeps sending out more copies.  I think the story is probably 80s or earlier - not sure if it's a short story, or the beginning of a novel which I lost &amp; never finished. What is the difference between 'can', 'could', 'may' and 'might'? I'm a native English speaker and I've been doing some research into English grammar for a programme I'm working on. However, on looking into modal verbs, I've only just come to appreciate how subtle and complicated they are.  What is the difference between these sentences? What possible different response might one have to each?        I can go to the cinema tonight.   I could go to the cinema tonight.   I may go to the cinema tonight.   I might go to the cinema tonight.      Granted, the first of these looks more like a statement of ability or possibility than the three that follow. But in what ways does it differ from the others, since all suggest ability and possibility? And crucially, what distinguishes the other three.  Perhaps it's a matter of tone, of context, of the speaker... The question may appear quite simple but I haven't found a satisfactory answer elsewhere.    looked quite useful in that it covered levels of confidence and certainty but it was talking about the potential state of something rather than the possibility for the person who is speaking. Are there any differences in that sense?   looked at these verbs used in question form (e.g., differences between 'Can I...?' and 'May I...?') but I'm not so interested in that for now.  Any thoughts appreciated. In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  &lt;container-transaction id="MethodTransaction_1178709616940"&gt;   &lt;method id="MethodElement_1178709616955"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;*&lt;/method-name&gt;   &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;   &lt;/method&gt;   &lt;method id="MethodElement_1178709616971"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;methodB&lt;/method-name&gt;   &lt;/method&gt;   &lt;trans-attribute&gt;RequiresNew&lt;/trans-attribute&gt; &lt;/container-transaction&gt;   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B) I would like to update a large number of C++ source files with an extra include directive before any existing #includes. For this sort of task, I normally use a small bash script with sed to re-write the file.   How do I get sed to replace just the first occurrence of a string in a file rather than replacing every occurrence?  If I use  sed s/#include/#include "newfile.h"\n#include/   it replaces all #includes.   Alternative suggestions to achieve the same thing are also welcome. Word or expression for "someone using fake kindness to hide something or his true nature" What's the difference between Fermi Energy and Fermi Level? I'm a bit confused about the difference between these two concepts. According to Wikipedia the  and  are closely related concepts. From my understanding, the Fermi energy is the highest occupied energy level of a system in absolute zero? Is that correct? Then what's the difference between Fermi energy and Fermi level? How does one change the Attribute table view on QGIS 3? An initial answer says to use the Switch to Table view button but I can't seem to find this button. What are the units of entropy of a normal distribution? I have a random process that follows a normal distribution. It's parameters are mean = 35 units, std.dev. = 8 units. I've seen from the  for the normal distribution that there is a formula to calculate the entropy. So plugging in the figures as:- $$     .5\log\left(2\pi e^1 8\cdot 8\right) $$ I get a value of 1.52, which I take to be  per sample.  My question is what are these units?  What thing do I have 1.52 of?    is (typically) measured in units of bits, after Claude Shannon's definition.  So can I take it that each sample generates 1.52 bits of entropy?  Clearly recording those samples generates information and therefore occupies a real and discrete amount of storage space. Ergo entropy cannot be unit less. Show by a counterexample that for a family $(X_i)_{i\in I}$ of random variables the independence of all pairs $(X_i,X_j)$ with $i,j\in I, i\neq j$ does not imply the independence of the family (It is enough to consider $\mbox{card}(I)=3$.).      Hello, I am searching for a simple example. The professor gave the hint that one might consider random variables which only can take two different values, but I do not know exactly what is meant.  By the way:  We call the family $(X_i)_{i\in I}$ of random variables independent, if $(\sigma(X_i))_{i\in I}$ is independent, whereat we call a family $(\mathcal{E}_i)_{i\in I}$ with $\mathcal{E}_i\subset\mathcal{A}$ independent, if for any finite subset $I_0\subset I$ and any choice $E_i\in\mathcal{E}_i, i\in I_0$, it is $$ \mathbb{P}(\bigcap_{i\in I_0}E_i)=\prod_{i\in I_0}\mathbb{P}(E_i). $$ php loop through json array How to loop through arguments in Bash ($1 $2 $3 and so forth)? Custom action to set emblem in thunar Can we calculate the standard error of prediction just based on simple linear regression output? The standard error of prediction in simple linear regression is $\hat\sigma\sqrt{1/n+(x_j-\bar{x})^2/\Sigma{(x_i-\bar{x})^2}}$.  My question is to calculate the standard error of prediction for $pop=1029$ just based on the following regression output. I can get all except $\bar{x}$. And I also know how to calculate the approximate standard error of prediction based on the standard errors of intercept and coefficient of $pop$, ignoring their correlation. Comma — a punctuation error? Consider:     This book provides a solid psychological understanding of these experiments, and adds a few expansions and conclusions of its own. It also provides …   My question regards the comma. I have been told that having the comma there is an error.  According to  this seems to be the case according to “some style guides”. The reason is that the stuff after the comma is not independent; it’s dependent on what comes before.  What do you think? It would seem to me the comma helps a lot, because those two “and”s without any comma make the sentence rather cluttered. That’s why I put the comma there. So I’m not sure.