struct Node {     char        c;     double      d;     int         s; } Node;   I recently started studying linked lists and in between just trying random things to explore. I tried getting size of the node at first i thought it would be 13 later on googling i found there is concept of padding and data alignment.  So My system has 64bit processor and according to that i calculated  (1(char) + 7(for padding) + 8(double) + 4(int) ) = 20  So why it comes out be 24.  Also as you can see iam beginner can you provide some references where i can read more fundamental stuff or things which will be helpful.  I appreciate any advice you give. Thanks
Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
Simple Linq query has duplicated join against same table? Short description of the scoping rules? What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers. Rendering 2D sprites in a 3D world? Meaning of "over in" I read this sentence in a book:     I just took part in a study over in the Psychology Department.   Why do we add over in front of in the here? Rejection of text containing SQL statements OK, I've been having weird problems for the last 1/2 hour trying to  on StackOverflow, and I keep getting this result (on Firefox 3.6)     The connection was reset      The connection to the server was reset while the page was loading.         The site could be temporarily unavailable or too busy. Try again in a few        moments.   If you are unable to load any pages, check your computer's network        connection.   If your computer or network is protected by a firewall or proxy, make sure        that Firefox is permitted to access the Web.      The problem seems to occur when I try to post some code with 'd--- table' in it, where 'd---' is replaced by the word drop.  I cannot post the following 3 lines, in either SO or this site, if they include the well-known SQL statements DROP.  stat.executeUpdate('d--- table if exists people;'); stat.executeUpdate('create table people (name, occupation);'); prep = conn.prepareStatement(...     'insert into people values (?, ?);');   test again:  'dro* table' 'drop ball' drop the table drop fable drop    t*ble droptable   drop a table  The evil words for me are "drop" and "table"... how come you guys can post? :(  edit: Could someone please suggest another online site that is not stackoverflow that is a quick way to try out a POST request of a text field?  UPDATE: Never mind. I don't know what the answer is, but the same problem occurs on Google's website. So it's not stackoverflow. Now to go to my IT Dept... Finding the inverse of the arc length function Often when I edit one of my answers, it's because I want to better address the original question. The only problem is that I can't see the original question while I'm editing my answer!  I'd love to see the original question text beneath the "answer edit" form. This way I could scroll down slightly to read it if I wanted to, or just ignore it if not.  Current workaround is to click the 'return to answer' link and hope that you remember to launch it in a new tab/window, then tab back and forth.    Imported from this uservoice item: Is a strong background in maths a total requisite for ML? I'm starting to want to advance my own skillset and I've always been fascinated by machine learning. However, six years ago instead of pursuing this I decided to take a completely unrelated degree to computer science.   I have been developing software and applications for about 8-10 years now, so I have a good handle but I just can't seem to penetrate the maths side of machine learning/probabilities/statistics.   I start looking at learning material and on the first page it might include something which confuses me and immediately sets up a barrier in my learning.   Is a strong background in maths a total requisite for ML? Should I try and fill in the blanks of my maths before continuing with ML? Can self learning really work for just a developer without any hard computer science background?    Related question: Is it possible to reintegrate a Horcrux? XeLaTeX update [20201004] and item ball in Beamer Beamer item balls go missing while compiling in XeLateX since yesterday's TeXlive update, however, the same code works with pdfLaTeX. Any solution, please. Here is my MWE: \documentclass{beamer}  \setbeamertemplate{itemize item}[ball] \setbeamertemplate{enumerate item}[ball]  \begin{document}  \begin{frame} \frametitle{A tested title} text \begin{enumerate}     \item this is an item \end{enumerate} text3 \begin{itemize}     \item this is an item \end{itemize} \end{frame} \end{document} Finding multivariable limits for the function $\frac{3x^2y}{x^2+y^2}$ How to update Ubuntu terminal? How to update Ubuntu terminal? Inline math equation Point size How to change all equations point size(inline and display equations) globally, point size worked in within \begin{array}...\end{array} but not changed for $....$?  Please find MWE file:  \documentclass{book} \usepackage{amsmath,array} \usepackage{stix}  \everydisplay{\fontsize{15pt}{18pt}\selectfont} \everymath{\fontsize{15pt}{18pt}\selectfont}  \parindent0pt \begin{document}  Use the alternative calculation described above. In comparing the two values, you want to consider fluctuations in inventory over time. Use the alternative calculation described above. In comparing the two values, you want to consider fluctuations in inventory over time.  $\alpha\beta\gamma\delta\epsilon0123456789+-$ \bigskip  $\begin{array}{@{}l}\alpha\beta\gamma\delta\epsilon0123456789+-\end{array}$   \begin{align*} \alpha\beta\gamma\delta\epsilon0123456789+- \end{align*}  \end{document} In my lecture, the lecturer said:      Let $K$ be the key generation algorithm. Given a security parameter represented in unary, $1^k$, $K(1^k)$ will output a keypair $(pk; sk)$, known as the public key and the private (or secret) key, respectively.    My question is: When I want to implement the cryptosystem, how should I represent this $1^k$?  When I implement the key generation procedure, do I literally require callers to pass me a string of $k$ one-bits that the procedure will never use?  And, if so, why is it there in the first place? I understand what a decibel is, the spirit of the question is different: why do we still use decibels (and with at least two different, context-specific definitions), if we have the feat of scientific notation? I dare to claim that the change of 5e-1 (which is a half) is much more readable than 3dB (voltage? power?). 1e6 is more clear than 120dB, etc. Just for the joy of adding? 3dB + 7dB is 10dB, but 2e5+3e6 is errrm... I see many new datasheets from the top vendors (LTC, for example) use the V/V convention, which is closer to the scientific notation than to the decibels. An upcoming paradigm change? What is $1^k+2^k+\cdots+ (p-1)^k$ modulo $p$? (From Ireland and Rosen). Why are my Elytra Wings are not activating? Are shell scripts sensitive to encoding and line endings? Is it appropriate to use a question mark at the end of a compound sentence where the first independent clause is a question but the second is a statement? For example:     Do you want attribution for that quotation, because I'm definitely sharing it and want to know if I should give you credit?   or      Do you want attribution for that quotation, because I'm definitely sharing it and want to know if I should give you credit.   I suppose this could work, but it's a little niche, as the second clause might not always be appropriate for a parenthetical.     Do you want attribution for that quotation (because I'm definitely sharing it and want to know if I should give you credit)? Best Algebraic Geometry text book? (other than Hartshorne)