fast question what does this do in c++;  auto asd = (1,2,3,4,5);   note: this does note emit an error  Is this a class? If it is a struct of data or class or array, can you tell me how to get the individual element value;  When i cout &lt;&lt; asd ; It return always the last number, in this case 5  thanks in advance
How does the comma operator work in C++?  For instance, if I do:  a = b, c;     Does a end up equaling b or c?   (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)  Update:  This question has exposed a nuance when using the comma operator.  Just to document this:  a = b, c;    // a is set to the value of b!  a = (b, c);  // a is set to the value of c!   This question was actually inspired by a typo in code.  What was intended to be  a = b; c = d;   Turned into  a = b,    //  &lt;-  Note comma typo! c = d;
Movie with humans battling aliens piloting giant animalistic, water-walking robots or sea warships I have memories of watching it a few years ago (I was a kid then) in the early 2000s probably; before 2010 I think. It was a movie with giant robots, and the enemies were aliens piloting what I remember as giant, more animalistic robots. I remember those animalistic ones running on water. The aliens themselves were a little taller than humans but mostly humanoid. I remember what the aliens look like a bit; most of the movie they were clad in some kind of armor, but the scene I mentioned showed one's face, if I remember well, grey skin, vividly green eyes, a beard made of some kind of quills, bald. I have this one scene that stayed crystal clear in my memories. The heroes had captured an injured alien, and other aliens attack to, in the end, just retrieve the injured one, leaving with this one without attacking further this time. I also remember the aliens going through a city in some machine (I'm actually not sure this one was piloted though) and destroying anything it perceived as a threat, from cars to security cameras. My memories are coming from years ago, so I might be wrong in a bunch of things there, but this one scene, I can assure is correct. This might remind a bit of Pacific Rim, but it isn't. (It's watching Pacific Rim that reminded me of this movie.) It doesn't seem to show up on any giant robot movie list on internet, weirdly, so I hope you can help me. And now I'm starting to wonder if there was really robots on the heroes' side. Maybe it was warships (sea ones, not spaceships). As I said it was some time ago and I was young, so bad memories are likely. In Nginx, how can I rewrite all http requests to https while maintaining sub-domain? Edit:  Of course my real code doesn't look exactly like this. I tried to write semi-pseudo code to make it more clear of whay I wanted to do.  Looks like it just messed things up instead.  So, what I actually would like to do is this:  Method&lt;Interface1&gt;(); Method&lt;Interface2&gt;(); Method&lt;Interface3&gt;(); ...   Well ... I thought that maybe I could turn it into a loop using reflection. So the question is: How how do I do it. I have very shallow knowledge of reflection. So code examples would be great.  The scenario looks like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var i in interfaces)     {         Method&lt;i&gt;(); // Get compile error here!     }       Original post:  Hi!  I'm trying to loop through all interfaces in a namespace and send them as arguments to a generic method like this:  public void Method&lt;T&gt;() where T : class {} public void AnotherMethod() {     Assembly assembly = Assembly.GetExecutingAssembly();      var interfaces = from i in assembly.GetTypes()     where i.Namespace == "MyNamespace.Interface" // only interfaces stored here     select i;      foreach(var interface in interfaces)     {         Method&lt;interface&gt;(); // Get compile error here!     } }   The error I get is "Type name expected, but local variable name found". If I try  ...     foreach(var interface in interfaces)     {         Method&lt;interface.MakeGenericType()&gt;(); // Still get compile error here!     } }   I get "Cannot apply operator '&lt;' to operands of type 'method group' and 'System.Type'" Any idea on how to get around this problem? Can more than one antibody bind the same antigen I'd like to clear something up about antibodies that I'm not sure I've understood in the articles I've read. Looking at concepts such as "affinity maturation", "monovalent antigens" and "polyvalent antigens" it seems as if there are multiple antibodies which can bind to the same antigen. (Although I think I'm right in saying that individual antibodies can only bind to one antigen?) However, when I read sentences like "It has been estimated that humans generate about 10 billion different antibodies, each capable of binding a distinct epitope of an antigen" on the Wikipedia page (for antibody) it does make it sound like it's one antibody per antigen? Is this the case? Or is it one antibody per epitope. Either way, to put this question in a nutshell:  Is it true to say that the same substance could bind with (and, therefore, be recognised by) more than one antibody, or not?  Also, if the answer is no, does that mean that antibodies with different binding affinities are classed as the same antibody or not? How to show $f=g$ almost everywhere  Let two real-valued measurable functions $f$ and $g$ be such that for any measurable set $E$ the integrals $\int_E f\,d\mu$  and  $\int_E g\,d\mu$ coincide.  Could you please help.  It seems obvious. we could define the integrals as charges. can we do sth from here. but I do not know how to approach. When do I use "I" instead of "me?" Can I export Shotwell pictures database saving all the tags? I've imported lots of pictures into Shotwell and spent some time setting tags. Are those tags locked-in in Shotwell or I can export them (and import again or use with other software)? SQL Server Max Memory not limiting use of RAM I would like your input on this. I have a sql server 2008r2 Ent. Ed. 64bit with 16 cores and 64GB RAM. There is one instance of SQL server patched fully as of 20111014.  The max ram is set to 60000MB. Amount of free ram is 0 according to task manager after a few days online.  If I change the max ram to below 53GB it will after a few days to stabilize and have some free ram.   It is the sql process that does allocate the ram according to task manager. How do i come to terms with what the problem really is? It goes without saying that i did alot of testing already but havn't solved this to my liking yet. and ohh we do not get the typical memory starvation lagging when the available ram is down to 0 free.  Update 1:  Inspired by another Q/A related to RAM on this page  . I used these two to see what the RAM is being used for.  SELECT TOP ( 10 )         [type] AS [Memory Clerk Type] ,         SUM(single_pages_kb) AS [SPA Mem, Kb] FROM    sys.dm_os_memory_clerks GROUP BY [type] ORDER BY SUM(single_pages_kb) DESC OPTION  ( RECOMPILE ) ;  SELECT  DB_NAME(database_id) AS [Database Name] ,         COUNT(*) * 8 / 1024.0 AS [Cached Size (MB)] FROM    sys.dm_os_buffer_descriptors --WHERE   database_id &gt; 4 -- system databases --        AND database_id &lt;&gt; 32767 -- ResourceDB GROUP BY DB_NAME(database_id) ORDER BY [Cached Size (MB)] DESC OPTION  ( RECOMPILE ) ;   The amount used shown by these are  first select 7948432    Kb second one 44030,57812  MB that is a total of about 52GB used by sql server... so where did the rest of my RAM go? :-) Task manager show right now cached 363, available 401, free 40 and sqlservr.exe has Memory private set 64 459 656. Max Ram set to 60000MB as before. What is the meaning of the color of the node sockets in the node editor? I have been searching on the web and I can't find this. What is the meaning of the color of the node sockets in the node editor? How to align checkboxes and their labels consistently cross-browsers This is one of the minor CSS problems that plague me constantly. How do folks around Stack Overflow vertically align checkboxes and their labels consistently cross-browser? Whenever I align them correctly in Safari (usually using vertical-align: baseline on the input), they're completely off in Firefox and IE. Fix it in Firefox, and Safari and IE are inevitably messed up. I waste time on this every time I code a form. Here's the standard code that I work with:   &lt;form&gt;     &lt;div&gt;         &lt;label&gt;&lt;input type="checkbox" /&gt; Label text&lt;/label&gt;     &lt;/div&gt; &lt;/form&gt;    I usually use Eric Meyer's reset, so form elements are relatively clean of overrides. Looking forward to any tips or tricks that you have to offer! How does langid field in biblatex differ from language field? Could someone summarise the differences in the use of the langid field from language field in biblatex? Documentation to Gost package for bibtex says that langid is a synonym of language but has priority over it. I am auditing a Linear Algebra class, and today we were taught about the rank of a matrix. The definition was given from the row point of view:      "The rank of a matrix A is the number   of non-zero rows in the reduced   row-echelon form of A".   The lecturer then explained that if the matrix $A$ has size $m  \times n$, then $rank(A) \leq m$ and $rank(A) \leq n$.   The way I had been taught about rank was that it was the smallest of    the number of rows bringing new information the number of columns bringing new information.    I don't see how that would change if we transposed the matrix, so I said in the lecture:  "then the rank of a matrix is the same of its transpose, right?"   And the lecturer said:   "oh, not so fast! Hang on, I have to think about it".   As the class has about 100 students and the lecturer was just substituting for the "normal" lecturer, he was probably a bit nervous, so he just went on with the lecture.  I have tested "my theory" with one matrix and it works, but even if I tried with 100 matrices and it worked, I wouldn't have proven that it always works because there might be a case where it doesn't.  So my question is first whether I am right, that is, whether the rank of a matrix is the same as the rank of its transpose, and second, if that is true, how can I prove it?  Thanks  :) What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy. Does moving leave the object in a usable state? I'm looking for a simple, easy to understand algorithm to alphabetically sort an array of characters in C. I've seen multiple servers where you can connect from any (recent) major version. (Example, 1.9, 1.8 OR 1.7) And they all seem to be able to do it. Alas, a simple google search did not fix the problem. Any ideas? Thanks guys.  (PS: The Minecraft server is running on the latest Spigot for 1.10 as of 6/27/16) How are PCA and classical MDS different? How about MDS versus nonmetric MDS? Is there a time when you would prefer one over the other? How do the interpretations differ? How to prevent Google from finding my admin index page? I posted this question but for some reason I can't get back into my account:    Most things I see with 220V have both hot legs going through the switch or relay, current "returns" through the switch.  Is it against code to wire one leg directly to the equipment and the other leg is switched as opposed to having both legs switched.  It seems useless and a waste of wire to switch both legs.  Basically  vs  (minus the GFCI as I'm not allowed to have that)  As a bonus question.  I assume I need a "motor rated switch" as standard switches can weld due to the high startup current.  Is  one legal\safe? I had a heck of time while editing my  question. But, I guess, I discovered a new weird problem in the editor while formatting hyperlink text next to  tag.  To illustrate this problem better, I would like to give the following examples:  Has problem with one or none white-space in between:  [meta-tag:status-planned] [details page reads:][2] [meta-tag:status-planned][details page reads:][2]     Gives weird output as:   [details page reads:]   [details page reads:]   But, its okay with two white-spaces in between:  [meta-tag:status-planned]  [details page reads:][2]   Gives the correct output as:      Something is strange here. I don't understand why do I have to insert two white-spaces instead of just one? Are the two white-spaces are mandatory when using [meta-tag:some-tag] with hyperlink text adjacent to it? Or, is it one of those  thing?  But wait, it's get even further complicated if I do like:   1. No white-spaces in between:  [meta-tag:status-planned][meta-tag:status-completed][Moderator-only Tags][3]     2. One white-space in between:  [meta-tag:status-planned] [meta-tag:status-completed] [Moderator-only Tags][3]       3. Two white-spaces in between:  [meta-tag:status-planned]  [meta-tag:status-completed]  [Moderator-only Tags][3]         They all seems to work perfectly fine. Now, thats very strange! Why would the two [meta-tag:some-tag] works like a charm with or without requiring to insert any white-spaces? Can anyone explain this in a better way. I don't want to jump on the conclusion by calling this as a bug yet, so I used  tag instead of  tag. Please share your thoughts.