I have this piece of code, can it ever evaluate to true? struct type {     char a;     int b;     char c;     float d; } t;  char e; int f; char g; float h;  int out = sizeof(t) == sizeof(e) + sizeof(t) + sizeof(g) + sizeof(h); print(&quot;%d&quot;, out);
Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
Hiding some slides in student handouts in Beamer I am preparing lecture slides for a class. I would like to hide some of the slides from the students. As an example, I would like to be able to compile students.pdf which has only student slides 1 and 2 (i.e., "teacher slide" is hidden); but teacher.pdf which has all three slides.  \documentclass{beamer}  \begin{document}  \begin{frame}{Student slide 1} blah blah blah \end{frame}  \begin{frame}{Teacher slide} secret stuff not to be shared with students \end{frame}  \begin{frame}{Student slide 2} blah blah blah \end{frame}  \end{document}   How would I do this in beamer? In a regular document, e.g., article, I would use the comment environment.  I feel that the approach in  is overkill for my needs. How can I solve the folowing Diophantine equation with two unknowns? Find one integer solution to the following Diophantine equation:   \begin{equation*} \\\forall \,x,y \in \mathbb{Z}\\ 6xy + x - y = 274 \end{equation*}   The resultat ist $x = 9$, $y = 5$ (Obtained with  )  I need to know a method that allows me to reach such a result. How can I calculate the value of these two variables in a Diophantine equation? For example: 6xy + x - y = 458 Creating polyline-based "heatmap" from GPS tracks? This winter I am planning to track my downhill skiing/snowboarding using a GPS.  Most of my riding will occur at the same resort.  I would like to be able to create a sort of "heatmap" that shows the amount of runs that I have made in a given area.  As I add more and more GPS traces to my database, my goal would be to see a sort of linear heatmap of the most traveled areas.  Given the nature of downhill skiing, you would expect the uphill chairlift lines will be the "hottest" because it will be the only places visited over-and-over again.  Given that 1) my track will not be the same every time and 2) the area covered by following one "run" may be a few hundred feet wide, what might be the best way to analyze this "linear" data to create a sort of heatmap?  My thoughts were to buffer the lines, then intersect the polys to get a sort of Venn Diagram thing going.  My preference is to use open-source technologies.  I've got QGIS and PostGIS loaded and available.  UPDATE: In regards to @blah238's response, I was thinking of something that might be able to "collect" the number of passes ("runs") through an area, and then symbolize by the count.  Conceptually, this would be similar to ArcGIS "" (but for lines, not points) or  (but for multiple line in roughly the same area).  A more visual example of a similar concept might be a traffic-flow map, where highly-congested areas would equate to "highly-traveled" ski runs/areas:    I've read the following questions that may give some ideas, but they don't really address what I am trying to accomplish: I was browsing PhD position offers in Europe on different websites and I was quite surprised to find that several offers contained sentences such as     University of X value equality and diversity. We strongly encourage women and BAME applicants for this position.    where BAME stands for Black, Asian and Minority Ethnicities; or     The research group aims to increase the number of women in scientific positions. Female candidates are therefore encouraged to apply.   Is it considered normal in the academic environment to discriminate between  candidates according to their race and/or gender for "egalitarian" reasons?   How is the choice of a candidate based on their gender and/or race considered "egalitarian"? Story with multiple 'third planet' races Does the Great Old One warlock's telepathy from the Awakened Mind feature take an action? Does the Great Old One warlock's telepathy from the Awakened Mind feature take an action?  It doesn't seem too clear to our group and we have basically ruled it as equivalent to talking. Record screen, microphone and web camera in Ubuntu 17.10 (Wayland Session) How to prove $ \prod_{d|n} d= n^{\frac{\tau (n)}{2}}$ Input field for decimal property Is a 1st-level spell cast using a 4th-level slot a 1st-level spell, or a 4th-level spell? As the title says: Is a 1st-level spell cast using a 4th-level slot a 1st-level spell, or a 4th-level spell? Roll back from OS X Mavericks ( or any newer OS) to Mountain Lion I installed the developer preview of OS X Mavericks, &amp; too many things broke. I can't stay on it &amp; need to roll back to Mountain Lion. Any ways of doing that? Please help!  I originally installed Mountain Lion &amp; Mavericks through the Mac App Store. My tweets are not showing up in other people's mentions My replies are not showing up in other people's mentions. I tried tweeting several friends, my other accounts but my tweets just won't appear in their mentions? They do appear on my own Twitter page. It's been almost 24 hours now and it's pretty frustrating. Per-site Meta post didn't populate Moderator Inbox Per  I'm posting this issue.  I'm a moderator over on Sci-fi &amp; Fantasy.SE.  My moderator inbox missed :    The Meta Question in question should show up after the moderator message and before the new meta question, as it was posted on Jan 2 (it's currently Jan 6, so '2 days ago' is Jan 4). Classes and lessons at Hogwarts are presumably scheduled at fixed times of day. The first class might start, for example at nine in the morning.  To be on time for one's lessons, it is therefore crucial to know the current time but we know that electric watches of course do not work at Hogwarts because of all the magical interference. Are there magic watches? Is there maybe a spell to tell the time?  How do people at Hogwarts usually tell the time? Firefox - Websites with custom fonts not displaying Mandatory excerpt for custom post type How do I get a block with data to place myself? When $\min_{x \in X,y \in Y} f(x,y) = \min_{x \in X} \min_{y \in Y} f(x,y)$? How to integrate $\int_0^{\pi/2}\frac{\sin^nx}{\sin^nx+\cos^nx}dx$? Possible Duplicate:          How can we integrate $$\int_0^\frac{\pi}2\frac{\sin^nx}{\sin^nx+\cos^nx}\,\mathrm dx , \,\,\,\,\,\,\,\,\, n\in N \quad?$$ Thanks for any hint. The screenshot below says it all, really. The object is offset in both the X and the Z axes, though only the X axis says 1. No other modifiers are on it, no constraints, no locked axes, and I can't think of anything else that would affect this. How can I make it stop doing this?