Use World Lighting, but Render Without it
Blender 2.8 - Transparent background
How to determine best cutoff point and its confidence interval using ROC curve in R? I have the data of a test that could be used to distinguish normal and tumor cells. According to ROC curve it looks good for this purpose (area under curve is 0.9):    My questions are:    How to determine cutoff point for this test and its confidence interval where readings should be judged as ambiguous? What is the best way to visualize this (using ggplot2)?   Graph is rendered using ROCR and ggplot2 packages:  #install.packages("ggplot2","ROCR","verification") #if not installed yet library("ggplot2") library("ROCR") library("verification") d &lt;-read.csv2("data.csv", sep=";") pred &lt;- with(d,prediction(x,test)) perf &lt;- performance(pred,"tpr", "fpr") auc &lt;-performance(pred, measure = "auc")@y.values[[1]] rd &lt;- data.frame(x=perf@x.values[[1]],y=perf@y.values[[1]]) p &lt;- ggplot(rd,aes(x=x,y=y)) + geom_path(size=1) p &lt;- p + geom_segment(aes(x=0,y=0,xend=1,yend=1),colour="black",linetype= 2) p &lt;- p + geom_text(aes(x=1, y= 0, hjust=1, vjust=0, label=paste(sep = "", "AUC = ",round(auc,3) )),colour="black",size=4) p &lt;- p + scale_x_continuous(name= "False positive rate") p &lt;- p + scale_y_continuous(name= "True positive rate") p &lt;- p + opts(             axis.text.x = theme_text(size = 10),             axis.text.y = theme_text(size = 10),             axis.title.x = theme_text(size = 12,face = "italic"),             axis.title.y = theme_text(size = 12,face = "italic",angle=90),             legend.position = "none",             legend.title = theme_blank(),             panel.background = theme_blank(),             panel.grid.minor = theme_blank(),              panel.grid.major = theme_line(colour='grey'),             plot.background = theme_blank()             ) p   data.csv contains the following data:  x;group;order;test 56;Tumor;1;1 55;Tumor;1;1 52;Tumor;1;1 60;Tumor;1;1 54;Tumor;1;1 43;Tumor;1;1 52;Tumor;1;1 57;Tumor;1;1 50;Tumor;1;1 34;Tumor;1;1 24;Normal;2;0 34;Normal;2;0 22;Normal;2;0 32;Normal;2;0 25;Normal;2;0 23;Normal;2;0 23;Normal;2;0 19;Normal;2;0 56;Normal;2;0 44;Normal;2;0 Does the Rule of Two Serve any Actual Purpose? I know Darth Bane came up with the Rule of Two to ensure the survival of the Sith, but, in reality (or in the Star Wars reality), does it (or any Sith rule) serve a true purpose?  And why does each successive Sith bother with it?  Due to the nature of the Sith, Sith Lords tend toward arrogance and self-importance.  Both the Sith master and Sith apprentice seem to regularly break the rule by training others.  Deceit and personal interest over loyalty is a way of life for the Sith.  What is to keep any Sith from following the Rule of Two (or any rule, for that matter) if it is against their own self interest?  If a Sith Master can stay in power longer by training a 2nd apprentice and pitting the two against each other, is he really going to worry about the Rule of Two more than his own plans and survival?  The Rule of Two also assumes that every Sith Master would place the survival of the Sith over his own survival, as opposed to attempting to ensure his own immortality in whatever way he could (like Plagueis).  When you have a group that, by default, is arrogant and self-serving, as well as deceptive, why would they want the Sith to survive themselves?  I can see how the Rule of Two, and any other Sith beliefs would be possible guidelines, but it terms of the nature of ambitious people (and the Sith are ambitious), it's hard to believe that each new Sith Master would follow this rule faithfully.  So does this rule, or any Sith rule, actually work?  Or is it more of a suggestion that is broken when convenient? How to create a random math problem in LaTeX? I want to create a math problem-solution sheet. The coefficients a, b, c must be assigned on the fly at random so the generated pdf will show a numeric quadratic equation rather than a symbolic quadratic equation. Note a must not be zero.  \documentclass{article} \begin{document} \section{Problem} Let \(x_1\) and \(x_2\) be the roots of \(a x^2 +bx +c=0\). Find  \(x_1x_2\).  \section{Solution} \[ x_1x_2=\frac{c}{a} \] \end{document}   Please kindly make the solution get automatically simplified. For example: \frac{c}{a}=3 when a=2 and c=6.    Actually the real case is more complex than this one. Not only the equations must be generated at random, but also the associated graphic plots that I write in PSTricks.     I chose Paulo's answer because using Maxima as the computation engine is very very great idea. Other answers are also good and creative, especially Altermundus'. Adobe Reader and xcolor within a table breaks the line render How could the trained, physically stronger person lose this lightsaber fight? How could     Kylo Ren   lose the fight against      Rey?   I find the outcome totally illogical even though the Force may be strong in the woman. Furthermore, I would expect a man to be physically stronger than a woman. It is like having a very intelligent but uneducated person beating a math Phd in a math exam. Cardinality of Irrational Numbers I know and I have proved more than once that the set of irrational numbers ($\mathbb{I}$) is uncountable, but now I'm given to solve this problem:   Show that $|\mathbb{I}|=|\mathbb{R}|$,  How can I do that?  Do I need to assume the Continuum Hypothesis in order to that statement to be true?  Thanks Fit a table into one page Editing text file with Vim does not update tail -f Tips and resources for beginning designers Thanks to the internet, graphic design and programming are becoming increasingly overlapping fields.   As a programmer, I constantly find myself needing basic knowledge of Graphic Design, but have trouble locating thorough yet concise graphic design learning resources, and instead usually find bits and pieces of knowledge applicable to the task at hand.  Can you guys offer some tips or recommend some good books, tutorials, blogs, and websites which provide a beginner level overview of web design that have been, in your experience, effective and high quality learning materials. I'm not looking for tips on how to use image editing tools, but assuming a basic grasp of those, which resources and advice will best help a new designer create professional looking designs? Simple way to monitor a multiple URLDownloadSubmit calls? I have a Sharepoint online page on which I would like to remove the blue navigation bar at the very top of the screen (the one with the seach bar in the middle and the button on the left with 9 dots to switch to different Microsoft apps). I have checked all of the header settings and also went into the site settings and modified the search settings. I was able to exclude the site from search results, however the blue bar still remains. Is this possible to remove in a default SharePoint online site without using custom CSS or anything like that? I have recently upgraded SQL Server 2000 database to 2008 R2.    What I did was:   Shutdown SQL Server 2000 (express) service on old machine, Move datafiles (mydatabase.mdf and mydatabase.ldf) to new machine, Run SQL Server Management Studio 2008, Connect to local database engine, Attach datafiles to database. Change the compatibility level of database to SQL 2008 (100).     Question: What else should I do to make migration complete?  I want to:   use new features like checksumming and full recovery model, make this database to be exactly as it was created in SQL 2008 R2, make this database to be fully compatibile, correct and be perfect suited for new, SQL 2008 R2 database engine.     In other words: I just want to know how to correctly and completly convert old SQL 2000 database to new 2008 R2 database, be calm that everything is done right and be happy with all new features.    I'm asking this question, because I've found a lot of sites on the Internet that says so many different things that makes me confused: some say that it is required to rebuild indexes, another says to do other things... and now I know nothing so I want to hear experienced person opinion and clear, step-by-step instructions. I work for very small company, I'm on my own and I don't want to screw things up.    Sir, I'm really impressed with your answer, I wasn't expecting so much.    So some comments:   The database is now in production. As I said, it was upgraded using deattach-attach method as I desribed in first post and as described on MSDN:  It had to be done quickly, so I was forced to do it that way. Let's forget about how inappropriate could it was and focus on current situation. The users/persmission is not a problem here - there are only few and permissions are simple. The application which use database is compatibile with SQL 2000 till 2012 so this is not a problem either. The database file (MDF) isn't big - only about 1GB.     Few more questions:   You recommend to use backup/restore method, but I did as written above, so can I encounter any problems now? Everything worked without any problem. About checksumming and full recovery model: it wasn't available/enabled on SQL 2000, so I want to use them now. You said that the only thing I need to do is to enable those options in database properties? I've read somewhere, that it isn't enough and I should also rebuild indexes or something. I really don't know, I just asking. I'm prepairing to migrate this database to SQL 2012 - so first it was from SQL 2000 to 2008 R2, now it will be from 2008 R2 to 2012 (it was impossible to do this directly because of lack of support of SQL 2000 databases in SQL 2012). So I understand that I should follow your guide: backup it in 2008 R2 and restore in 2012, then do the rest of your tips, right? Please explain me the backup/restore method: Is it like a dump of database to SQL queries and then restoring it by executing a bunch of queries? Will this method by the way "defragment" my database? If not, how to defragment/optimize it manually? As we were using SQL 2000 Express for years (no management interface), we were doing backups simply by stopping engine and RAR the DATA directory. For now, as we are on SQL 2008, isn't this still better than using backup function in Management Studio? Full recovery mode with frequent Transaction log backups - Where is the Transaction log stored - is it the LDF file? How sould I backup it properly?     I know that my questions may sound silly, I'm not professional database admin, but I am the only person here who can do such "hard core" task like upgrading the database engine. I'm also sure that your knowleadge will help a lot to other people like me.  Thank you very much for your time and knowleadge, I really appreciate this. I am trying to figure out this:  c = 1 def f(n):     print c + n  def g(n):     c = c + n  f(1) # =&gt; 2 g(1) # =&gt; UnboundLocalError: local variable 'c' referenced before assignment   Thanks! Some questions on abelian category Let  $f: C \longrightarrow D$ be a morphism in an abelian category $\mathfrak{A}$ with kernel and cokernel both zero. How can I show that it is an isomorphism? I am not able to find it's inverse.   Let $g: C \longrightarrow D$ be a morphism in the abelian category $\mathfrak{A}$. Let $i: K \hookrightarrow C$ be the kernel of $g$. How can I prove that the induced map $\text{coker}\ i \rightarrow D$ is a monic?   I don't want to use Mitchell's embedding theorem. Story with VR worlds for the wealthy Does a car use friction to move? For privacy and performance reasons, I'd like to prevent my computer from ever communicating with certain Internet hosts. I'd like to do this at the OS level, not through web browser plug-ins (not broad enough), or even through my home router (my laptop travels). I'd prefer to use built-in tools.  I'm running Windows 7 Professional 64-bit. I'm all too familiar with the Windows hosts file - and its limitations. There seems to be some confusion over whether hosts supports wildcards, but my own tests confirm that it does not.  I have experimented with Windows Firewall and the IP Security Policy MMC snap-in. So far as I can tell, both require numeric addresses. I don't want to block specific IP addresses, or ranges of addresses, in part because IP-address-to-hostname mappings can and do change.  Is there any tool in Windows 7 Professional with which I can block (or route to 0.0.0.0) communication with Internet hosts by hostname mask? If not, are there any good, free, third-party tools? Empty drives show 2 GB used, Explorer shows nothing I have 4 drives in Windows: C:, D:, E: and F:. Except C:, all of them are empty.    Suddenly it shows up to 2 GB space used – even when there are no files.     [  When I format the drives, it's fine for a while until it shows used space again.  I use Windows 8.1 Pro 64 Bit. Decision Tree in LaTeX with TikZ Grid line doesn't have to be included     \documentclass[10pt]{beamer}  \usetheme{default}  \usepackage{graphicx}  \usepackage{amssymb,amsmath}  \usepackage{tikz}  \usetikzlibrary{matrix}  \usepackage{adjustbox}  \usepackage{caption} \ usepackage{subcaption}   \setbeamercolor{title}{fg=black}  \setbeamercolor{subtitle}{fg=gray}  \setbeamercolor{footlinecolor}{fg=white,bg=green}  \setbeamertemplate{footline}[text line]{% \parbox{\linewidth}{\vspace*{-10pt} \textit{Where Wall Street Goes to School} \hfill \insertpagenumber} } \setbeamertemplate{navigation symbols}{} –  \begin{tikzpicture}[&gt;=stealth,sloped][scale=0.8]  \matrix (tree) [matrix of nodes, minimum size=0.25cm, column sep=2cm, row sep=1cm, ]  { &amp; $C_{i+1,j+1}$ \\ $C_{i,j}$ &amp;$C_{i+1,j}$ \\  &amp; $C_{i+1,j-1}$ \\   };  \draw[-&gt;] (tree-3-1) -- (tree-1-3) node [midway,above] {};  \draw[-&gt;] (tree-3-1) -- (tree-3-3) node [midway,above] {};  \draw[-&gt;] (tree-3-1) -- (tree-5-3) node [midway,below] {};  \end{tikzpicture}  \end{adjustbox} – So basically , we all know the direction outside the magnet its from NORTH to SOUTH. but what i don't understand is that what is the direction inside is it the same ??