#include &lt;stdio.h&gt; struct test {     unsigned int x;     long int y: 33;     unsigned int z; }; int main() {     struct test t;     printf("%d",sizeof(t));     return 0; }   output     24  size of long int is 8 byte but here it is taking 16 byte why?
Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
jQuery :first vs. .first() Configure proxy for APT? I need to configure proxy. There wasn't apt.conf file in etc/apt/ so I've created it using nano.   But I don't understand what I need to write there. I've written  http_proxy = http://lgn:pwd@192.168.1.254:8080/ there and then restarted networking. But when I try to apt-get update - it doesn't work.   Actually I don't understand what port and ip I should write in apt.conf file(there was example with 192.168.1.254 ip and 8080 port so I decided to use them). Allow users to hide connections between accounts This feature request is inspired by the question on Programmers.SE on .   Stack Overflow is a site aimed at professional programmers, and it is used by some employers and some employees to examine or showcase the candidates abilities. I don't see any problem with that, but there is one aspect I'm a bit concerned about. Certain SE sites are far more private than the professional sites like SO. Anyone that participates in Christianity, Judaism, Islam or Biblical Hermeneutics is likely giving out a significant amount of information about their personal belief or world view to anyone who can connect the user name to the actual person. Another example would be controversial topics on Skeptics or Politics; not everyone would like to give their employer access to that kind of information.  The fundamental problem is that the SE platform does not allow for any separation inside one account. Of course one could create separate accounts for private and professional topics, but that requires a significant amount of clairvoyance and a rather annoying user experience juggling separate browsers to log into different accounts at once. An additional problem is that SE has automatic user merge features that can be triggered by logging into two accounts in the same session. I'm not sure how they work exactly, but I suspect that having your two accounts accidentally merged is a real danger if you are not careful.  There should be a mechanism to hide the connection between SE accounts, without having to use separate OpenIDs. For example, if I would like to use my SO account in job applications, I should be able to separate it from all my other accounts. The separation would only be for the publicly accessible part, moderators could still be allowed to see the connection between accounts. And behind the scenes it would just work as it is now, just without any links between the accounts.   The aspects that would need to be changed that I can think of are   the accounts tab in the user profile, that shouldn't show any connections for separated profiles copying the user profile to other sites should not work for separated profiles the network profile should not show the connections between separated profiles Area 51 should also not show the profile connections   This separation would not have to be bulletproof, but it should prevent users googling a specific person to make connections the user does not want to make public. How do I change my default browser? Is there an option to change my default browser for all my applications? pwd without symlinks What's the best way of replacing a plug or switch in a house with aluminum wiring? When choosing cards for a deck, one of the most important things to consider is the number of land you put in. The biggest issue is mana curve, of course. What shortcuts are best for determining the proper amount of land with a given mana curve? Is it ok to leave a slow cooker unattended? Now that all SE sites have their own meta site, why doesn't Stack Apps have a meta?  Sure, Stack Apps is somewhat of a limited site (or rather, a site about a limited subject), so by some counts, it might not need a meta. However, I think there are some things that could be discussed about how Stack Apps should be run and there is no good place to do that now. Thus, I support the creation of a Stack Apps meta. What is hard reset and what is factory reset? It is mentioned at  that one should do Factory reset or hard reset. I'm a bit confused about what is hard reset?  Factory reset I suppose is using the option in settings to reset phone to the factory state i.e. when it was unboxed. How to salt PBKDF2, when generating both an AES key and a HMAC key for Encrypt then MAC? When using Encrypt-then-MAC with AES and HMAC by password, and given 128 bits of payload with the ciphertext to store a random salt, which would be more secure:   Using PBKDF2 with then entire 128 bit random salt and generating 512 bits of derived data to split into a 256 bit AES Key and a 256 bit HMAC key.   or   Using PBKDF2 separately for each key using two 64 bits salts to generate a 256 bit AES Key and a 256 bit HMAC key.    or    Better option? How can I disable the Windows 8 charms bar? Can someone please tell me how to disable the annoying effect that pops up when you drag cursor to top- or bottom-right corners? Calling sleep(5); and updating text field not working Automatically inserting "Section", "Subsection", etc Statement of Purpose Template I am trying, loosely based on  to make a template for my Statement of Purpose. How could I remove the empty extra line between the horizontal rule and the text? Moreover, how could be the first letter be of larger font in the title?  Any other suggestion is more than welcomed.  \documentclass{article}  \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}  \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}  \makeatletter% since there's an at-sign (@) in the command name \renewcommand{\@maketitle}{   \parindent=0pt% don't indent paragraphs in the title block   \begin{center}     \MakeUppercase{\Large \bf \@title}     \HRule%   \end{center}%   \textit{\@author \hfill \@date}   \par } \makeatother% resets the meaning of the at-sign (@)  \title{Statement of Purpose} \author{name} \date{Ph.D. Applicant}  \begin{document}  \maketitle% prints the title block  Emergency medicine has always been a passion of mine\ldots  \end{document} How to access a SQL Server database from other computer connected to the same workgroup? I have created a C# application which uses a SQL Server database. I have other computers connected to me and to each other in a workgroup. I have shared my C# application with others. When they open the application they get the error      A network related or instance-specific error occured while establishing a connection to SQL Server. the server was not found or was not accessible   But the application is working fine on my PC. The connection string I am using is   Data Source=ASHISHPC1\SQLEXPRESS;Initial Catalog=ACW;User ID=ash159;Password=ashish159   which is stored in a .config file.   The application is working fine on my PC. What must I do? I have enabled the TCP/IP in the server but the same error persists. Some change in connection string or something else? Note: This is not the same as , which is about the moderator tool. I am talking about the flag history page that is accessible through the user profile at .  I tend to have a pretty good hit rate for flags, well above 90% helpful on several sites. I also semi-regularly review the flag history page, both to see the status of any outstanding flags as well as see how flags I raised have been handled. Particularly, whenever a flag of mine is declined, I look over the post I raised the flag against with this new information in mind, to try to determine if I should change my flagging behavior in some way to better match the specific site's scope.  However, comment flags are difficult in this regard. Most often, there is only a binary status: helpful or declined. Helpful comment flags nearly always lead to the comment being deleted, so that obviously could present a bit of a problem, but that's not really relevant because a helpful flag means you should just keep doing what you've been doing. Declined comment flags, on the other hand, usually mean the comment is kept. It's the declined comment flags that I want to learn more about. But there's no way to!  All the flag says is which post it was on, how I flagged a comment, that I was the one to raise the flag (which frankly is rather useless information when you are already looking at your own flags summary), when the flag was raised and whether it's pending, helpful or declined. In a very few cases the moderator handling the flag may leave a helpful return comment.  This can get even more confusing if I raise multiple flags in quick succession against comments on the same question including any answers to it, because they basically all get bundled together.  Even in the case of a declined flag where the comment remains, there is no way to find your way back to the specific comment you flagged! Thus it is very difficult to recognize the error of your ways. Because comment flags (with few exceptions) are handled by diamond moderators only, the lack of feedback about which comment's flag was declined means it's easy to keep wasting the moderators' time without even intending to do so.  Hence my feature request: add a link to the specific comment that the specific flag was raised against, ideally only if that comment remains. Bibliography with page numbers In GKP's Concrete Mathematics, there is a useful and interesting feature I would like to see in more books. The bibliography entries include:   a - the page numbers where the book or article is cited in the document. b - a few lines of review of the cited work.   It is a kind of mix between bibliography, index and review.  Are there stable LaTeX packages/BibTeX styles to do (a) and (b) ?  EDIT: I wrote (b) initially as "comments about the work cited". It could be understood as "gathering comments made in the book about the work and reproducing them in the bibliography".  This is not what I meant but this could be something useful for others. PrintWriter and PrintStream never throw IOExceptions Been trying to find graphic novel for decades - at least I think it's a graphic novel