From what I understand the 'nouveau' driver does not support CUDA. I compiled a very simple CUDA program and was very surprised that it did actually run successfully. Is there now some CUDA support in the 'nouveau' driver?  Edit: What I did was building a simple CUDA program that allocates and initializes a number of arrays of floating point numbers, launches a saxpy kernel and compares the result. In fact the program ran fine (main returned 0) which had me concluded that also all other part of the program ran fine. Since I'm running the nouveau driver I further concluded that some CUDA support is available. What I did not pay attention to was the fact that the program's result was actually wrong. It looks like the program didn't launch the compute kernel but did everything else. I didn't consider this a possibility.  This is Ubuntu Desktop 20.04 with GFX1070 on Intel based PC.
I have installed Ubuntu on, but now I am trying to install NVIDIA CUDA Toolkit for the GPU. When I install it, it says that there is no driver found, so I have tried to install the driver, but I don't know why after installation, the system not coming up. Maybe it is because of the wrong version of the driver.   When I tried to detect the driver version using sudo lshw -C display , it showed this information:    But here it doesn't say that what is the product name of the driver, and also when I go Software &amp; Updates -> Additional Drivers, then it says NVIDIA Corporation: Unknown.    What should I do?
Identify which OrgWideEmailAddress records are valid for current user I'd like to create a popup list on one of my Visualforce pages, for a user to select from a list of OrgWideEmailAddress records.  My goal is to limit the list to only those records that they're allowed to use.  I'm going to save the selection for use in later automatic emails.  Based on what I've read, I won't be able to send emails to certain OrgWideEmailAddresses:   The address hasn't been verified yet.  I don't see any fields in the schema that appear to show verification state. The address is only available to profiles that the user isn't a member of.  I don't see where the profile list is stored for each record.   Some of my problem could just be due to not understanding the standard objects so well, and perhaps there's a way to get at this through UserInfo, or by making my query on the User object which may have a child relationship to OrgWideEmailAddress since it's listed in the schema viewer of the Force.com IDE.  Here's the test code I'm working with:  for (OrgWideEmailAddress addr : [SELECT DisplayName, Address          FROM OrgWideEmailAddress ORDER BY DisplayName]) {     System.debug( addr.DisplayName + ' &lt;' + addr.Address + '&gt;'); }   I tried creating a new Messaging.SingleEmailMessage and then calling setOrgWideEmailAddressId() on it with each OrgWideEmailAddress Id, in hopes that invalid Ids would throw an exception, but to no avail.  My goal is to modify the test code to provide just the subset of records that the current user will be able to use. Disable the guest user completely in El Capitan without having to disable 'Find My Mac' I know it should be straight forward but unfortunately, it  isn't.  I did disable the guest user in the System Preferences by unchecking the checkbox for Allow guests to login in to this computer, but it still shows up on the login screen.  I have heard that disabling 'Find My Mac' would fix it for OS X Lion, but I want to keep it.  Is there a way to do this? Remove a child with a specific attribute, in SimpleXML for PHP I have several identical elements with different attributes that I'm accessing with SimpleXML:  &lt;data&gt;     &lt;seg id="A1"/&gt;     &lt;seg id="A5"/&gt;     &lt;seg id="A12"/&gt;     &lt;seg id="A29"/&gt;     &lt;seg id="A30"/&gt; &lt;/data&gt;   I need to remove a specific seg element, with an id of "A12", how can I do this?  I've tried looping through the seg elements and unsetting the specific one, but this doesn't work, the elements remain.  foreach($doc-&gt;seg as $seg) {     if($seg['id'] == 'A12')     {         unset($seg);     } } Accessing inherited variable from templated parent class Consider the following code:  template&lt;class T&gt; class Foo { public:   Foo() { a = 1; }  protected:   int a; };  template&lt;class T&gt; class Bar : public Foo&lt;T&gt; { public:   Bar() { b = 4; };    int Perna(int u);  protected:   int b;  };  template&lt;class T&gt; int Bar&lt;T&gt;::Perna(int u)  {    int c = Foo&lt;T&gt;::a * 4; // This works   return (a + b) * u;    // This doesn't }   g++ 3.4.6, 4.3.2 and 4.1.2 give error   test.cpp: In member function `int Bar&lt;T&gt;::Perna(int)': test.cpp:25: error: `a' was not declared in this scope   g++ 2.96 and MSVC 6, 7, 7.1, 8 and 9 accept it, as do (at least) older Intel and SGI c++ compilers.   Do the new Gnu C++ compiler obey the standard or not? If they do, what is the rationale behind that inheriting class is not able to see a protected inherited member variable?  Also, if there's  int A() { return a; }    in Foo, I get error  test.cpp:25: error: there are no arguments to A that depend on a template parameter, so a declaration of A must be available test.cpp:25: error: (if you use -fpermissiveâ, G++ will accept your code, but allowing the use of an undeclared name is deprecated)   when I try to use it in a member function of Bar. I find that curious as well: Bar inherits Foo, so I think it's obvious that A() in scope of Bar is Foo::A(). Cartoon with a young unicorn and a demon In the late 80s or early 90s I remember watching an animated series that followed a young unicorn and a demon.   In one episode the unicorn gave the demon his horn, and the unicorn almost died.   In another episode there was a man who was able to turn people into human shaped building blocks and built a huge tower from them.   Those are the two scenes I remember with any clarity.   Does anyone have any idea? What is better performance wise with i7 2600k: 1x4GB or 2x2GB RAM? Is it better to use 2x 2GB or 1x 4GB RAM with a i7 2600k Sandy Bridge performance-wise for:   Applications? Games? Both? When I go to any github.com page in Chrome, I get a big ugly error:  You attempted to reach github.com, but the server presented a certificate issued by an entity that is not trusted by your computer's operating system. This may mean that the server has generated its own security credentials, which Chrome cannot rely on for identity information, or an attacker may be trying to intercept your communications. You cannot proceed because the website operator has requested heightened security for this domain.  The same thing happens (in Chrome and with curl) when I go to  too. This strange problem started about a week and a half ago. Here's what I see when I click the broken lock icon in the address bar:   But gist.github.com works just fine:   It doesn't work with curl either:  Everything works fine in Firefox. How can I fix my root CA problem? Here's what it looks like in Firefox:   Update: I noticed that the first certificate in the chain is different in my broken Chrome/Safari as compared to Chrome on my other computer.   (There's no nasty red X anymore because I trusted it in Safari.) See how the issuers are different? What can I make of that? Prove that between any two different real numbers there is a rational number and an irrational number.  My attempt at a proof: (Throughout this proof it is assumed without any loss of generality that $x &lt; y$)  1.) $x$ is irrational and $y$ is irrational.  In this case the arithmetic mean $\frac{x+y}{2}$ is always an irrational number between $x$ and $y$. Also, if $y$ is irrational then it has a non-terminating decimal expansion and so we can always find a positive integer $n$ such that $x &lt; y - 10^{-n}y &lt; y$. The middle of the three numbers here will have a terminating decimal expansion, and hence it is rational. It also clearly lies between $x$ and $y$. These examples of rational and irrational numbers should also work in the cases:  2.) $x$ is irrational and $y$ is rational.  3.) $x$ is rational and $y$ is irrational.  There is one last case to consider.  4.) $x$ is rational and $y$ is rational.  In this case the arithmetic mean of $x$ and $y$ is rational. An irrational number for example could be the ratio $\frac{ex + \pi y}{e + \pi}$  I'm not sure if this proof is a good method or if it is even valid, so some feedback would be appreciated. How to get the native version of Spotify running? Prove: If $a$ and $b$ are odd integers, then $8\mid (a^2-b^2)$  So far I have: $$8\mid \left((2n+1)^2-(2m+1)^2\right)\Longleftrightarrow 8\mid \left(4n^2+4n+1-4m^2-4m-1\right) $$ Is this right so far? Where do I go from here? Step by step explanation please! Graphical glitches using Ubuntu 18.04 on Dell XPS 13 2019 laptop My laptop keeps on having weird screen glitches, sometimes for a second, and that goes away just by moving the cursor, sometimes, making me restart the whole thing.  I could still use the play/pause key and it still played/paused the video that was running even though the screen was completely teared.  Also, printscreens actually print a normal screen and do not show the problem.  Some pictures of the screen when it happens :     Do you guys know what I could do to solve the issue ? Can't create new folder from anywhere in Windows 7 I have this problem on two of my new laptops and can't seem to find a decent workable solution elsewhere in forum land. The problem is that on my Windows 7 Professional machines the right mouse button doesn't show the New Folder option and elsewhere as well (via Explorer) I'm unable to create new folders.   I'll be happy to get this tiny problem resolved and declare that Windows 7 is almost perfect! Thanks to all of you in advance for your contribution!  PS: None of the Vista solutions seem to work here!      Tried NewFolderFix.reg, didn't work - "Not all data was succesfully written to the registry. Some keys are open by the system or other processes."  Converted FolderFix.reg to .inf file and that worked.  Don't recall the problem appearing after an update.  MS answer to the explore process hanging (KB 972685) was to install the latest Visual C++ Update (vcredist.exe).  Nope. That didn't help either.  I haven't touched Silverlight since installation when Windows 7 hit the shelves. I tortured the RC installation before that, and never had problems there either.    UPDATE-  Logged back into Administrator account, still missing from there. Spent a bit more time looking instead of just fixing. Just yto make sure, logged back into my user account - still OK there.  Turns out the entries in HKCR\CLSID were the culprit here. Reg file wouldn't take again (as above) but inf file fixed it. This key was unable to be entered from regfile, or altered or deleted in Regedit (Permissions).   Don't quite understand why a common key in HKCR needed to be entered separately for each user.   Here is the file I used to fix it. Just copy into notepad, save as newfolderfix.inf, rt-click and select Install  ================================================================  [Version]  Signature=$Windows NT$  [DefaultInstall]  AddReg     =REGEntries.AddReg  [REGEntries.AddReg]  HKCR,"%String0%",,0x0,"CLSID_ExecuteFolder"  HKCR,"%String0%\InProcServer32",,0x0,"ExplorerFrame.dll"  HKCR,"%String0%\InProcServer32","ThreadingModel",0x0,"Apartment"   [Strings]  String0 = "CLSID\{11dbb47c-a525-400b-9e80-a54615a090c0}"  =============================================================   Thanks to others who helped point me in the right direction. A large number of variants of this question were already asked here, including these - , , which are close, but none seem to answer my question. Assume that $n$ balls are thrown randomly and independently into $k$ bins.  What is the probability of finding $x$ empty bins? What is the expectation of the number of empty bins? Literal &#39; appears in flag panel instead of being escaped Is there a way to copy maintenance plans from one SQL Server 2012 to another? Both servers are not accessible via the same copy of Management Studio at the same time (on different networks). How does Cooper get out of the black hole? In the movie Interstellar,  Cooper (played by ) enters a black hole and sends a message to Murph (his daughter). Later, he is found by rangers, but I don't understand how he gets out of the black hole?  As far as I know, nothing can get out of a black hole, as it has extremely high gravity. I have a laptop with win7 installed. I have now made a 60gb partition which I want to install ubuntu into. The question I have, before I do the installation, is how large each of the root, swap, and home partition should be? I have read some place that root could be as small as 8GB, but isn't that too small? Since I guess beside ubuntu all the softwares installed will reside there as well? And I think I'm going to set my swap to be 2GB large.  My main concern is how large should the root partition should be. I'm mainly going to use ubuntu for programming and browse the web. How is Faulhaber's formula derived? I have been wanting to understand how to find the sum of this series.   $$1^p + 2^p + 3^p +{\dots} + n^p$$  I am familiar with Gauss' diagonalised adding trick for the sum of the first $n$ natural numbers.  I can prove the formulas for  $$\begin{align}   \sum_{1}^{n} k^2 &amp;= \frac{n(n+1)(2n+1)}{6}\\  \sum_{1}^{n} k^3 &amp;= \frac{n^2(n+1)^2}{4}\\ \sum_{1}^{n} k^4 &amp;= \frac{n(n+1)(2n+1)(3n^2+3n-1)}{30} \\ \end{align}$$  With mathematical induction. But, beyond that even proofs with mathematical induction are difficult.  I'm interested in learning the theory and the proof behind Faulhaber's formula. What is the knowledge required to understand this proof ? Proof of -(-v)=v in a vector space The exercise is: Prove that $-(-v)=v$ for every $v \in V$  Proof Suppose  $v \in V$ and $V$ is a vector space. Then $-(-v) \in V$ as result of the scalar multiplication property and $-(-v)=-(-1\cdot v)=-1 \cdot(-1\cdot v) =(-1 \cdot-1)\cdot v = 1 \cdot v = v $ The desired result $-(-v)=v$ holds.  The solution manual gives the proof:  Proof   I just wanted to make sure that the way I did the proof isn't missing anything?Thanks I have 3 accounts that I am deleting - however, several hours after the 24 hour (+ grace period - end about 4-5 hours ago), the countdown completed, but disappeared and the accounts are still there.   I would rather not go through another 24 hours, and would like to have these accounts deleted (and yes, I have thought about it and this decision is not up for discussion).  Currently, the accounts are still there.  Could this please be seen to?