Analyzing include directives for slow builds of translation units
Detecting superfluous #includes in C/C++?
$5$ tourists plan to attend Octoberfest. Each attends a location at random from the choices: Alpine, Bingeman, Concordia, Kitchener, Queens, Schwaben, Transylvania. Q What is the probability that two attend one location and three attend another same location?  I get that there are $\binom{5}{2}$ possibilities to create 2 groups. There are $\binom{7}{2}$ ways to choose 2 places so shouldn't it be $\frac{\binom{7}{2}\binom{5}{2}}{7^5}$? How can i get my community Base URL in apex I am using  Salesforce Community and I have network Id of the community but I don't know how can I get Base URL of my community. Any one know how can I get my community base URL using its id in apex as a internal user.  Is there any other way in which salesforce internal user can get the base URL of all his community in the apex also i don't find any object in which Community Base URL is stored. I checked network sObject but it only store community path prefix not the complete URL so how can i get the base URL for my community? Number of labeled trees which have one vertex of degree 4 How many labeled trees which have one vertex of degree 4 can we have? A tree with $10$ vertices has $9$ edges, so the sum of the degrees of the vertices is $2\cdot 9=18$. If there is one vertex of degree $4$, the sum of the degrees of the other $9$ vertices must be $14$. I don't know what to do next. Should I count all possible vertex degrees? How do I set access permissions per field? What I need to do  I have some user account fields that should be administrator-only (read/write/edit).  For example, the IP address used to register.  So, I want to restrict access to administrators.  Current state of field permissions in Drupal 8 (as of Feb 19, 2016)   In Drupal 7, I used the  module.  However,  There is a , but this has been going on for seven years and is marked as "postponed." I just browsed through this wonderful book: . The irony is, I am still not able to understand the motivation for using multivariate (regression) models instead of separate univariate (regression) models. I went through stats.statexchange posts  and  that explain (a) difference between multiple and multivariate regression and (b) interpretation of multivariate regression results, but I am not able to tweak out the use of multivariate statistical models from all the information I get online about them.   My questions are:   Why do we need multivariate regression? What is the advantage of considering outcomes simultaneously rather than individually, in order to draw inferences. When to use multivariate models and when to use multiple univariate models (for multiple outcomes).  Take an example given in the  with three outcomes: locus of control, self-concept, and motivation. With respect to 1. and 2., can we compare the analysis when we do three univariate multiple regression versus one multivariate multiple regression? How to justify one over another? I haven't come across many scholarly papers that utilize multivariate statistical models. Is this because of the multivariate normality assumption, the complexity of model fitting/interpretation or any other specific reason? How can I determine the name of the Bash script file inside the script itself?  Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that? How do I tell if ACR will work with my camera and how do I get the correct version for Photoshop? I am a beginner photographer with a Canon 7d and MacBook Pro. I'm not sure if Adobe camera Raw is compatible with either and really need advice on how to go about downloading the correct version. Mechanism of Screenshot Basically I with my team are figuring out a way to block screenshots taken on our corporation's computers (Mac mostly). I have searched it extensively and found that there is something called Screen buffer which is being accessed by any screenshot taking software (eg. Snipping Tool etc). I tried to find the exact mechanism and the actual implementation of such softwares but with no luck. Also I found out that Netflix uses some kind of technology which corrupts screenshot image and blackens it. I did not find any actual mechanism or implementation to study it further. I also came across something called Hardware overlays but did not understand it properly in order to use it for actual implementation. I have considered a way to edit scancode maps in registry but I am looking for a more general way. I read a few articles for apple's FPS though. Can somebody please guide me through this? Some good resources for the same would be highly appreciated. Any particular or relevant forums or subs to discuss this are also welcome How to read contacts on Android 2.0 Making Change for a Dollar (and other number partitioning problems) I was trying to solve a problem similar to the "how many ways are there to make change for a dollar" problem.  I ran across a  that said I could use a generating function similar to the one quoted below:     The answer to our problem (293) is the   coefficient of $x^{100}$ in the reciprocal   of the following:      $(1-x)(1-x^5)(1-x^{10})(1-x^{25})(1-x^{50})(1-x^{100})$   But I must be missing something, as I can't figure out how they get from that to $293$. Any help on this would be appreciated. What's the difference between the apt packages: 'cinnamon' and 'cinnamon-desktop-environment'? I have a fresh Ubuntu install and want to install Cinnamon as the desktop environment. When I do apt search cinnamon, I get multiple results, but two seems like they are the correct one.   The first is just   cinnamon/xenial 2.8.6-1ubuntu1 amd64 all     Innovative and comfortable desktop (Common data files)   while the other is   cinnamon-desktop-environment/xenial,xenial 2.8.0 all     Cinnamon desktop environment - full desktop with extra components   What's the difference between the two? What does the cinnamon-desktop-environment package contain that the cinnamon doesn't? In the new canon what do we actually know about Darth Plagueis? I read and loved  but with all the recent changes to what is and isn't canon I'm losing track.  There's a common theory that Supreme Leader Snoke is Darth Plagueis, most are discounted because Plagueis is a Muun. But where does that information come from? What current canon information do we have about Plagueis that disproves this theory and what has been marked as Legends? I will be traveling from Australia to Austria, transferring in Abu Dhabi. Is it alright for me to bring a vibrator in the check-in luggage, or are there laws against that?  It is approximately 17cm long. Are there any precautions to take? How do I install VMware Player 4.0.3 (and patch the installer to work on my 12.04 system)? Execution order of event receivers and workflow on a list Negative Mass and gravitation Since Newtonian gravity is analogous to electrostatics shouldn't there be something called negative mass? Also, a moving charge generates electric field, but why doesn't a moving mass generate some other field? '+' and 's' in permission strings If the ls -l command gives me a permission string like  rwsr-s--x   What does the 's' mean? The only sources I found mention that it can be present sometimes but do not elaborate.  What does a '+' instead of a '-' mean? I have found mentions of 'extended permission' but nothing clear. How to read dash files “While” loop without “do”; “if” statement without “then” I have a similar question as this :     How can I get rid of the do in a for loop and the then in an if   statement when typesetting algorithms using the algorithm and   algorithmicx packages?   but I want the same thing for algorithm2e package.  A minimal compilable example:  \documentclass[10pt]{article} \usepackage[linesnumbered,ruled]{algorithm2e} \SetKwRepeat{Do}{do}{while} \SetKw{KwGoTo}{go to}  \begin{document}  \begin{algorithm} \DontPrintSemicolon \KwIn{$A,B$} \KwOut{$C$} \While{$B &gt; 0$} {      $C = C+1$;      $B = B-1$;     \uIf{$C &gt; A$}        {            \textbf{break}\;        } } \caption{ABC} \end{algorithm}  \end{document} Opening PDF generated by Python AddIn using Report (*.rlf) file automatcally? As a test I have:   Authored a test.mxd with one layer called Localities in a single data frame called Layers Authored a test.rlf using View | Reports > Create Report of ArcGIS 10.2.2 for Desktop Created a Python AddIn which creates the expected PDF file from the Report (*.rlf).   This is the code which all works to create the PDF report from the Localities features within the current extent:  import arcpy  import pythonaddins  class ReportForExtent(object):     def __init__(self):         self.enabled = True         self.checked = False      def onClick(self):         mxd = arcpy.mapping.MapDocument("CURRENT")         df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0]         lyr = arcpy.mapping.ListLayers(mxd,"Localities",df)[0]         arcpy.mapping.ExportReport(lyr,r"C:\temp\test.rlf",r"C:\temp\test.pdf","EXTENT",extent=df.extent)         del mxd   Is there a way to have the Python AddIn not just create the PDF file but also open it in Adobe Acrobat Reader?