Two dice are rolled. What is the chance of rolling at least ONE six? (The answer is $\frac{11}{36}$.)  My solutions manual has a very elaborate table drawing method and I don't want to do that. I need something more quick. (I could have drawn the table in the time it took me to answer this question and so forth, but I'm keen on learning new methods!)
$11$ out of $36$? I got this by writing down the number of possible outcomes ($36$) and then counting how many of the pairs had a $6$ in them: $(1,6)$, $(2,6)$, $(3,6)$, $(4,6)$, $(5,6)$, $(6,6)$, $(6,5)$, $(6,4)$, $(6,3)$, $(6,2)$, $(6,1)$. Is this correct?
How to create wifi hotspot in Ubuntu 17.10 Using strtok with a std::string I have a string that I would like to tokenize. But the C strtok() function requires my string to be a char*. How can I do this simply?  I tried:  token = strtok(str.c_str(), " ");    which fails because it turns it into a const char*, not a char* How to rate philosophy essays? I might end up teaching philosophy in Finnish lukio/gymnasium. I will not get an opportunity to practice teaching it - I do get to practice teaching mathematics a fair deal, though. (The situation is somewhat unfortunate.) I have taken subject studies in philosophy at university. They amount to around 60 credits (ECTS).  Suppose I give the students an exam, which asks them to write an essay or two. After that my task is to grade the exams in a fair way and comment them in such a way that the students can learn from the feedback.  -  Suppose the task was to write an essay on the problem of universals - nominalism and realism, say. Let us say 6 points is the perfect score for this task.  I would expect the students to define nominalism and realism (2 points, maybe?) and explain the problem (2 points). Remaining two points for taking some stance and arguing for it - realism is more reasonable because so and so. Partial credits for demonstrating only partial understanding.  -  Am I missing some important aspects of philosophical thinking? Should I emphasize the different parts of an answer in a different way? I suspect my perspective is influenced by fairly extensive mathematics education - is there something particular I should watch out for? Can I download the Winter Bash hats for use as profile picture? Can I download  and use them as my profile picture?  I actually like some of them, and want to keep them for future use. Should we pass a shared_ptr by reference or by value? Transpose some columns to rows using pivot with SQL Suppose we have a sample of size n= 9, where the sum equals 27, and the sum of the squaredvalues equals 113. Sample mean is 27/9=3 and mean of squared values is 113/9 = 12.56 Can we then say that the sample variance $S^2 = E(\overline X^2) - E(\overline X)^2 = 12.55 - 9 = 3.56$ ? How to know if Google Sheets IMPORTDATA, IMPORTFEED, IMPORTHTML or IMPORTXML functions are able to get data from a resource hosted on a website? Google Sheets has several import functions   IMPORTDATA IMPORTFEED IMPORTHTML IMPORTXML   Sometimes the above functions returns errors like #N/A Imported content is empty and would like to be sure that there isn't a problem with the resource content to be imported.  How do I know if these functions are able to get the content that I looking to import?  I know that there also exist IMPORTRANGE but that function only is able to import content from Google Sheets spreadsheets Convert audio stream to WAV byte array in Java without temp file Install Java JDK and JRE on Debian 8 I've been reading , and I would like to know why the Lasso provides variable selection and ridge regression doesn't.  Both methods minimize the residual sum of squares and have a constraint on the possible values of the parameters $\beta$. For the Lasso, the constraint is $||\beta||_1 \le t$, whereas for ridge it is $||\beta||_2 \le t$, for some $t$.  I've seen the diamond vs ellipse picture in the book and I have some intuition as for why the Lasso can hit the corners of the constrained region, which implies that one of the coefficients is set to zero. However, my intuition is rather weak, and I'm not convinced. It should be easy to see, but I don't know why this is true.  So I guess I'm looking for a mathematical justification, or an intuitive explanation of why the contours of the residual sum of squares are likely to hit the corners of the  $||\beta||_1$ constrained region (whereas this situation is unlikely if the constraint is $||\beta||_2$). Recently I downloaded Pokemon GO but when I try to sign up with google account,the option isn't there. Help please. I use a LG G2 mini Now that I have Google Chrome all set up, I got myself a new laptop. Does anyone have any idea how to transfer my settings, cookies, favorites, etc?   I checked documents and settings\me\application data, and found nothing. How to check if a 2D point is in a polygon? Hide deleted answers with certain characteristics Today I exceeded 10K reputation on Stack Overflow, and I see deleted answers.  I am now faced with pages like  where half the answers are "deleted."    Among these are many non-answers deleted by diamond moderators, and a self-deleted answer deleted on Nov 25 '09.  I find this very distracting, especially in my chosen sort order of "oldest" where these deleted answers are NOT displayed at the bottom.  I wish to be able to hide deleted answers based on combinations of characteristics such as:   age since deletion deleted-by-owner deleted by diamond moderators zero undelete votes   This would be a setting every user could enable for himself.    Here are HTML excerpts that may be useful for userscript filtering.  This shows the code that appears for a moderator deletion, as well as the date stamp.  &lt;div class="deleted-answer-info"&gt;deleted by &lt;a href="/users/10936/dori"&gt;Dori&lt;/a&gt;&lt;span class="mod-flair" title="moderator"&gt;♦&lt;/span&gt; &lt;span title="2011-06-26 09:13:34Z" class="relativetime"&gt;Jun 26 at 9:13&lt;/span&gt;&lt;/div&gt;   Here is the same class for deleted by owner:  &lt;div class="deleted-answer-info"&gt;deleted by owner &lt;span title="2009-11-25 19:12:11Z" class="relativetime"&gt;Nov 25 '09 at 19:12&lt;/span&gt;&lt;/div&gt; Ppening an HTML file on localhost in XAMMP/apache 2.2 using subdirectories under htdocs I have a site directory for html (dreamweaver CSS3) with lots of subdirectories that contain HTML files for a number of drop down menus. They work fine where they are, but they all have menus that are JavaScript and could be kept in a separate file. So, I want to use Include. I don't want to have to FTP my files to HostGator every time I want to test the includes. I want to have this on my local machine. So, I am attempting for the first time to setup XAMMP and then run my html files (site) on localhost, so I can see what they look like before ftping everything to HostGator and putting it live.  I tried copying the main site folder to htdocs, and then copying the path to the file I want to run in front of the localhost in Firefox, but it gave me file not found:   Do I have too many subdirectories? Why isn't the file being found? It is there.  Tried this too:   No go. Does commutativity imply Associativity? In Visual Studio, I can cycle through my clipboard history by pressing CTRL+SHIFT+V rather than CTRL+V. I believe it's called a clipboard ring. But that feature doesn't seem to exist outside of Visual Studio, at least not with the same key combination. Is there a key stroke combination built in to windows to do the same, i.e. be able to cycle through your clipboard history while pasting? Can I visit the US twice within a 90 day period under the Visa Waiver Programme? 2nd time is only to transfer (change terminal, not airside). Software Tester Skill Matrix with Levels I would like to know if there's a standard Skill set for Skill Matrix for a Software Tester of different levels, like for example, what are the skills needed for an Entry level tester as well as what technologies and responsibilities he needs. And for the Mid Level tester and Senior Level as well.  Note that I am working in a company who designs and develops websites.