I am using the following macro definition in my C program, however, after compilation, it is giving me error that macro names should be identifier. Can anybody tell me what mistake I am doing while defining macro?  #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt;  #define a0 0 #define x1 1 #define a1 2 #define x0 3 #define x0a1 4 #define b0 5 #define b1 6 #define y0 7 #define y1 8 #define y0b1 9 #define c0 10 #define z1 11 #define c1 12 #define b1 13 #define z0 14  #define 1R0 0 #define 1B0 1 #define 1W0 2  #define 2R0 3 #define 2B0 4 #define 2W0 5  #define 3R0 6 #define 3B0 7 #define 3W0 8  #define Running 0 #define Blocked 1 #define Waiting 2
Are C-style macro names subject to the same naming rules as identifiers?  After a compiler upgrade, it is now emitting this warning for a legacy application:  warning #3649-D: white space is required between the macro name "CHAR_" and its replacement text   #define         CHAR_&amp;        38   This line of code is defining an ASCII value constant for an ampersand.  #define   DOL_SN        36 #define   PERCENT       37 #define   CHAR_&amp;        38 #define   RT_SING       39 #define   LF_PAR        40   I assume that this definition (not actually referenced by any code, as far as I can tell) is buggy and should be changed to something like "CHAR_AMPERSAND"?
Calculate mean of ordinal variable I've read in a number of places that calculating the mean of an ordinal variable is inappropriate. I'm trying to get an intuition for why it might be inappropriate. I think it is because, in general, an ordinal variable is not normally distributed and so calculating the mean will give an inaccurate representation. Could somebody give more detailed reasoning for why calculating the mean of an ordinal variable might be inappropriate? Stuck in a loop at login prompt after changing shell to zsh Error "WIF10201: No valid key mapping found" when trying to create claims from SAML For some reason I can't unhide my objects anymore in this file. Is it a bug? What package should I use to typeset units? I know there are a few packages related to typesetting units:   unitsdef units, which can be seen as a "base package" used by unitsdef SIunits siunitx, which is the successor to SIunits maybe others? like cjwunits and hepunits   What is the difference between them? Do they also work inside Math mode? And, more importantly, which one should I use?  Suggestion for people trying to answer this question: show some examples of how to typeset both simple and complex units. For instance, try typesetting these items:   100 Celsius 3 x 10^5 km/s gravitational constant is measured in N m^2/kg^2 10 kHz = 1 s^{-4} sin(x) meters   I think these examples cover most needs when writing scientific texts: simple measurements (value + simple unit), values written in scientific notation, simple fractional units, complex fractional and squared units, units without any value accompanying them, units with arbitrary exponents, and arbitrary math code instead of a simple value. How can I tell how long (more or less) it will take me to complete a game? Possible Duplicate:          I often want to know how long a game is so that I can decide whether or not to buy it, or even to decide if I've got enough free time available in the near-future to make it worth trying to play and complete over a weekend. Sometimes I even want to know just because I'm getting a little tired of the game and I want to have a sense of whether or not I'm nearing the end, so I can decide whether to tough it out or pack it in.  What are some good ways of determining how long a given game takes to complete, on average? This query works for me when I tried in PG admin query tool:    UPDATE bankdetails SET bank_details = 'mysore' ,"PAN"= 123,bank_acc = 456,                        "UAN"=789,tax = 'myy' WHERE  user_id = 79; INSERT INTO bankdetails (user_id,bank_details,"PAN",bank_acc,"UAN",tax)        SELECT 79,'mysore',123,456,789,'myy'        WHERE NOT EXISTS (SELECT 1 FROM bankdetails WHERE user_id=79);   Later I implemented in my code like this:  db.query('UPDATE bankdetails SET bank_details = $2 ,"PAN"= $3,bank_acc = $4,"UAN"=$5,tax = $6 WHERE user_id = $1; INSERT INTO bankdetails (user_id,bank_details,"PAN",bank_acc,"UAN",tax) SELECT $1,$2,$3,$4,$5,$6 WHERE NOT EXISTS (SELECT 1 FROM bankdetails WHERE user_id = $1);', [companyuser.rows[0]._id, data.bankDetails.bank_details, data.bankDetails.PAN, data.bankDetails.bank_acc, data.bankDetails.UAN, data.bankDetails.tax],function(err,bank) {                  if (err) return callback(new Error('error')); })   it says:     cannot insert multiple commands into a prepared statement   Can some one guide me here? I made up an idiom that I think describes what I want to say quite nicely:     "If one shoots enough arrows at the target, one is sure to hit the bull's eye."   An actual English idiom I know of that is close in meaning is:     "Throw enough mud at the wall and some of it will stick"   However, the conceptual image is not as matching, and according to  it has a second meaning:     If enough (perhaps false or reckless) accusations are made against someone, his reputation will suffer, whether or not this is deserved.   But I want the idiom to paint a positive image. For example, I would say the idiom when I help someone remember something by giving it a shot in the dark and getting it right miraculously after some guesses.  What is the English idiom I'm looking for? With the following circuits as examples :    and    How will the current I know how much to flow? Would any other wave travel first in the circuit and then come back and say so much current should flow? Isomorphism of a product $C_n \times C_m$ of cyclic groups with the cyclic group $C_{mn}$ Given that $C_n$ is a cyclic group of order $n$, what conditions must integers $n$ and $m$ satisfy such that the group $C_n \times C_m$ is isomorphic to C$_{mn}$?   So I attempted to investigate a few lower-order cyclic groups to find a pattern. In particular, I looked at $C_2 \times C_3$ and compared it to $C_6$. Here are a couple of diagrams:  $C_2 \times C_3$ -   $C_6$ -   They Cayley tables look pretty different (identity elements are all over the place for $C_2 \times C_3$) so I concluded that they are not isomorphic.  I did the same for $C_2 \times C_4$ and $C_8$:  $C_2 \times C_4$ -   $C_8$ -   Again, I arrived at the conclusion that the 2 groups are not isomorphic due to their Cayley table structure.  It seems I'm stuck now. Are my conclusions wrong for the examples I examined? If so, how do I find the conditions for the general case of comparing $C_m \times C_n$ with $C_{mn}$? Modelling a spiral around a sphere I'm trying to figure out the best way to model the sphere-spiral here:    Is it possible to make this shape directly? Or do you have to make it as a cylinder and wrap it to a sphere? Data from multiple lists using single REST API call Gendry was born in the Crownlands and should therefore be referred to as Gendry Waters. However, he refers to himself as Gendry Rivers.   Did showrunners forget or is Gendry ignorant of the customs? "Requires 50 reputation" to comment on deleted posts So I recently saw add comment (requires 50 reputation) on a deleted answer. After looking around a bit, it seems to be on all deleted posts now (only deleted posts, normal posts still say just add comment).  I'm sure it wasn't there before (I think it just said add comment (unclickable) or possible nothing).  It is also on , presumably the root cause is the same.  And yes, I do have more than 50 reputation (in case anyone was wondering).  Just to clarify, requires 50 reputation obviously shouldn't be there for users with 50 or more reputation. Choices:   Display nothing Unclickable add comment - probably not ideal Unclickable add comment (disabled for deleted posts) or something along those lines   FYI - You may be somewhat confused right about now if you can't  yet. Using apt-get how to check have installed latest version ? Hello im just new for Linux   I know that  sudo apt-get   is for installing application   but how I would know that I have installed the latest version of the application   for example apt-get install sun-java6-jdk   is there an option to upgrade or see the latest version   or its ok to install an old version the application and Linux will upgrade it for me ? A student prepares for an exam by studying a list of 12 problems. She can solve 9 of them. For the exam, the instructor selects 7 problems at random from the 12 on the list given to the students. What is the probability that the student can solve 5 of the 7 problems on the exam?  I am really confused by this problem. My first initial thought was to do:  (5 chose 7)(7 chose 0)/ (12 chose 7)  I am not 100% sure about this though. What is the maximum number of pucture repairs an inner tube can take? What is the difference between logistic regression and Fractional response regression? Column and row padding in tables How do you guys go about controlling column padding in tables?   Update  To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the following code snippet, I could pad the columns and make them look a bit less... ugly. :P   \begin{tabular}{|l|l|}     \hline     column 1 &amp; column 2 \\      \hline     I really would like this less &amp; crammed\\     \hline \end{tabular}   I tried this by using the command \vspace but it leaves gaps in the vertical lines. Einstein's big revelation was that time and space are inseparable components of the same fabric. Physical observation tells us that distant galaxies are moving away from us at an accelerated rate, and because of the difficulty (impossibility?) of defining a coordinate system where things have well defined coordinates while also moving away from each other without changing the metric on the space, we interpret this to mean that space itself is expanding.   Because space and time are so directly intertwined is it possible that time too is expanding? Or perhaps it could be contracting?