Why the struct is storing more bytes than its definition?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Do immature fruits perform photosynthesis? Most immature fruits are green: peppers, pine cones, plums, lots of them. I want to know if the green is from chlorophyll in the cells. Do the fruit cells perform photosynthesis? When you cover a green stem or leaf, it will turn pale and stretch. That is because the stems have little need for chlorophyll in the dark, which is why they are pale. They stretch because the auxins in the stems are not destroyed by the photons, and the stems stretch out and topple over. If a green fruit is covered, will it turn pale and stretch like that? Biometrika journal style file not getting along with TeXLive-2020 I cannot compile styleguide.tex in biometrika.zip (see ). Here is a MWE which leads to the same error message, though not sure yet that I've not tossed baby out with bath water. \documentclass{article} \RequirePackage[thmmarks]{ntheorem}  \makeatletter \def\arabic#1{{\rm\expandafter\@arabic\csname c@#1\endcsname}} \theoremnumbering{arabic} \newtheorem{definition}{Definition} \makeatother  \begin{document}  \begin{definition} This is a definition. \end{definition}  \end{document}  Here is the output of pdflatex: % pdflatex styleguide This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./styleguide.tex LaTeX2e &lt;2020-02-02&gt; patch level 5 L3 programming layer &lt;2020-03-06&gt; (/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo)) (./ntheorem.sty  Style `ntheorem', Version 1.24 &lt;2004/09/20&gt; ) (/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def ) (./styleguide.aux) ! Use of \@item doesn't match its definition. \update@series@target@value #1-&gt;\def \reserved@a {                                                   #1}\ifx \target@meta@famil... l.13 T       his is a definition. ? q OK, entering \batchmode What methods of ‘clearfix’ can I use? I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.  &lt;div id="container"&gt;   &lt;div id="content"&gt;&lt;/div&gt;   &lt;div id="sidebar"&gt;&lt;/div&gt; &lt;/div&gt;   There seem to be numerous methods of fixing the clear bug in Firefox:   &lt;br clear="all"/&gt; overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the &lt;br clear="all"/&gt; solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust? Commutator subgroup and cyclic normal subgroup Evalute $ \lim_{n\rightarrow \infty}\sum^{n}_{k=0}\frac{\binom{n}{k}}{n^k(k+3)} $ Evaluate $\displaystyle \lim_{n\rightarrow \infty}\sum^{n}_{k=0}\frac{\binom{n}{k}}{n^k(k+3)}$.   $\bf{My\; Try::}$ Although we can solve it by converting into definite Integration.  But I want to solve it without Using Integration.  So $\displaystyle \lim_{n\rightarrow \infty}\sum^{n}_{k=0}\frac{\binom{n}{k}}{n^k(k+3)} = \lim_{n\rightarrow \infty}\sum^{n}_{k=0}\frac{(n-1)(n-2).......(n-k+1)}{k!\cdot n^{k}\cdot (k+3)}$  Now How can i solve after that, Help required, Thanks How do I install drivers for Realtek RTL8812BU? So I've been experimenting with Ubuntu on and off for a while, but I honestly have no idea what the hell I'm doing. So I have a realtek RTL8812bu WiFi dongle that I'm hoping to get working. I did some research, and came across  that a couple people across two threads said worked for them:  At the bottom it said there is a new version . So somewhere it said it was confirmed to work on kernels up to 4.16, so I checked and I'm on 4.15.0. But the problem I'm having, is what am I supposed to do? There is some installation guide at the bottom that is about as clear as mud to me since I don't know much. If light is an electric and (magnetic field), how can it be absorbed? I was wondering how light or any electromagnetic radiation can be "absorbed" if it consists of electric and magnetic fields. For example if there is a charge at point A, and the  light reaches point A, it will cause that charge to move depending on the value of the electric field. However, why wouldn't this electric field continue on and influence others particles everywhere else? For example, if you have a static charge creating an electric field, then if you put a charge at point A it will feel its effects and then if you bring a charge at another location B it will also feel its effects, namely it will not have been absorbed. Please shed some light on this. Thanks  edit: Does this mean the electron that absorbs this light moves in such a way that it creates an electric field of its own canceling the initial one? Or am I way off? Disclaimer Yes, I am fully aware that what I am asking about is totally stupid and that anyone who would wish to try such a thing in production code should be fired and/or shot.  I'm mainly looking to see if can be done. Now that that's out of the way, is there any way to access private class members in C++ from outside the class?  For example, is there any way to do this with pointer offsets? (Naive and otherwise non-production-ready techniques welcome) Update As noted in the comments, I asked this question because I wanted to write a blog post on over-encapsulation (and how it affects TDD).  I wanted to see if there was a way to say &quot;using private variables isn't a 100% reliable way to enforce encapsulation, even in C++.&quot;  At the end, I decided to focus more on how to solve the problem rather than why it's a problem, so I didn't feature some of the stuff brought up here as prominently as I had planned, but I still left a link. At any rate, if anyone's interested in how it came out, here it is:   (I suggest reading it before you decide that I'm crazy). How to enable root login again after changing password? I had enabled root login before and tried to change its password using this . But after successfully changing the password and locking it via sudo passwd -dl root. I cannot login back to SSH, it says Access is denied.  I have two users on my machine. root and admin, admin does not have su permission. When I try to use sudo on admin user, it says that admin is not in the sudoers file. That is why i need my su user back. Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different? Participles to modify the subject of the main clause "Essos is an immense landmass located to the east of Westeros,   extending into the far east of the known world." (Here, "extending"   describes the Essos or does it describes the landmass? )   Having seen this sentence above, I question came to my mind.   Can I use participles to modify the subject of the main clause when there is no connection between main clause and participle clause. For example:      1- "He is a bookworm, living in Canada. (He is a bookworm + He lives in   Canada, there is no connection between being bookworm and living in   Canada)      2- He, living in Canada, is a book worm. (I suppose, this placement would be more correct) How can I automatically determine fonts used in an image or PDF? Let $G$ be a graph of minimum degree $k&gt;1$. Show that $G$ has a cycle of length at least $k+1$.  How would I show this? I understand that a cycle is a sequence of non-repeated vertices and the degree of a graph is the number of neighbors the vertex has. How to get the CPU cycle count in x86_64 from C++? Sort file by group of lines If I have a file with contents similar to:  FirstSection     Unique first line in first section     Unique second line in first section  SecondSection     Unique first line in second section     Unique second line in second section  ...  NthSection     Unique first line in Nth section     Unique second line in Nth section   Is it possible to use unix commands (e.g. sort, awk) to sort the file alphabetically by the first non-indented line in each three line group, whilst keeping the indented lines under their existing group? Parse JSON in JavaScript? I posted this at  and got redirected here. This does indeed look like a better place to ask.  I would like to decorate my headlines (section, subsection, etc.) by adding a background color. I would like this box filled with a single solid color to span across the entire typearea.  This picture is a screenshot of an OpenOffice document where the headline has the formating, layout and color I want.    Requirements on a solution   The resulting style is supposed to be used by others, meaning an equivalent latex output to the picture above shall be created by this code:  Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text   \subsubsection{This is a headline}  Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text Some Text  If the section is supposed to be unnumbered one should be using \subsubsection*. LaTeX still needs to be in charge of the whitespace between paragraphs and the blue box.   What I have tried so far  As far as I can google the headline together with the section numbering are a simple paragraph. Latex adds some skips before and after and squeezes in a few commands that modify the font(s).  My ideas revolve around locking this paragraph in a \colorbox. The colorbox macro works like this: \colorbox{color}{the content around which to draw a box filled with the specified color}. My problem is I can't get a grasp on this paragraph.  The easy 80%  My work is based on koma-script and by redefining \othersectionlevelsformat and \(sub)*section. I can draw two boxes, one surrounding the section numbering and another surrounding the section title. However this has 3 open issues:   the upper edges of the boxes are unaligned and the box with the title is slightly larger than the line with the numbering The box around the title does not strech to the right end of the typearea the box around the numbering doesn't grow if the title spans multiple lines (no surprise here)   The hard 20%  I tried to make latex put the section numbering into a \savebox I could access later and put as part of the title. That would eliminate the need for two boxes and solve all three of my problems at once, but that doesn't work. I only get to modify the title before the actual numbering is done. So while I can put the numbering into a savebox, I can't do anything with it until it's too late.  I tried putting the \section ... statement into a colorbox, but it doesn't like that and the document fails to compile with ! LaTeX Error: Something's wrong--perhaps a missing \item. The same holds for saveboxes. I guess colorbox uses those.  I tried putting the \section ... statement in a minipage and put a box around that. This has two issues. 1st: latex doesn't put any empty space above a section. 2nd: not only the section numbering and title have the background but also the empty space between section title and first paragraph.  So how can one hack latex to do a section title formating as shown in the screenshot above? How to print all printable ASCII chars in CLI? Example of vector space such that $cv = 0$ where $c \ne 0$ and $v \ne \vec{0}$ Is there an example of a vector space $V/F$ such that $0 \ne c \in F$, $\vec{0} \ne v \in V$, but $c \cdot v = 0 $?  I couldn't think of an example. I am new to the telecom simulations system specially multisim, which I am having a project that I want to simulate.  My project in (Analog Communications) is consisting to have FM Transmitter (Modulator) that accepts a generated signal (Sin, Cos) and get me the modulated output as a Graph.  I've found this FM transmitter circuit (3 km range):   ![two muppets][1]  and I am building that circuit on Multisim, and I failed. Because I faced many problems, first of, the variable capacitor symbol is weird here in the multisim, and the regular capacitor doesn't have variable options. Secondly, when I Use signal generator as (Sin, Cos), the output gets weird after 5 second of the simulation.  I want to show the input signal (before modulation) and the output signal (transmitted or modulated).  I guess my output result where not the as expected, as the signal (Sin with phase 90&deg;) is giving weird result of few seconds of simulating.  Below are screenshots of the simulation results within time.          Any ideas how to edit or fix the above circuit to have this output is similar to what it should be?