as a self-study student I want to know the differences between two language features in c# and c++, I want to know by a simple example if someone know that please share it with me.
I mostly use Java and generics are relatively new. I keep reading that Java made the wrong decision or that .NET has better implementations etc. etc.  So, what are the main differences between C++, C#, Java in generics? Pros/cons of each?
No "Login using Google" option in Android app I registered this ID with my Gmail account, and logged in successfully via web browser. However, while I was trying to log in on the Stack Exchange app in my Android Phone, I don't see any option to log in with Google:    I was told that no user was found with my Gmail account. It is amazing that I can log in via web browser, but cannot do so with the same Gmail account via app. How can I do that?  Just to compare, here is a "normal" login screen of another user:    Where did the Google login go and how can I bring it back?  My app version is 1.0.73, phone is Coolpad 8150D with Android version 4.0.3, kernel 3.0.8. Is it possible to do something like this  #ifdef SOMETHING #define foo // #else #define foo MyFunction #endif   The idea is that if SOMETHING is defined, then calls to foo(...) become comments (or something that doesn't get evaluated or compiled), otherwise it becomes a call to MyFunction.  I've seen __noop used, but I don't believe I can use that.  EDIT(s):  I don't think I can really use a macro here, because MyFunction takes a variable number of arguments.  Also, I'd like to make it so the arguments are NOT evaluated!  (So doing something like commenting out the body of MyFunction doesn't really give me what I need, as the arguments will still be evaluated) I'm from Western Pennsylvania. Until I moved away, I never realized that when I omitted the to be from phrases like needs to be cleaned, my usage was different than what most English speakers are accustomed to. Is it wrong? Is it ever bad to use \left and \right? create multilingual node programmatically i'm trying to create a multilingual node using a php script.  I'm doing this:   $node = new stdClass();  $node-&gt;title = "Test ".mktime();  $node-&gt;type = "job";  $node-&gt;language = 'de'; // Or e.g. 'en' if locale is enabled  $node-&gt;uid = $user-&gt;uid;   $node-&gt;status = 1; //(1 or 0): published or not  $node-&gt;promote = 0; //(1 or 0): promoted to front page  $node-&gt;comment = 1; //2 = comments on, 1 = comments off  $node-&gt;path = array('alias' =&gt; 'das-ist-ein-test-'.mktime());  $node-&gt;body[$node-&gt;language][0]['value']   = "Body Body Body";  $node-&gt;body[$node-&gt;language] = text_summary("Body Body Body");  $node-&gt;body[$node-&gt;language]  = 'filtered_html';  node_save($node);   As long as i set $node->language to 'und' everything is working fine. But as soon as I set the language to 'de' or 'en' (both languages are activated in my Drupal installation) the body text doesn't get saved.  So my question is: can anybody provide me with a working example of how to store a multlingual node (de,en) into Drupal using program code.  Thank you I was on the tube and overheard a dad questioning his kids about maths.  The children were probably about 11 or 12 years old.   After several more mundane questions he asked his daughter what $1/0$ evaluated to. She stated that it had no answer. He asked who told her that and she said her teacher. He then stated that her teacher had "taught it wrong" and it was actually $∞$.  I thought the Dad's statement was a little irresponsible.  Does that seem like reasonable attitude? I suppose this question is partly about morality. How to calculate polygon areas and perimeters using QGIS? Text Distortion Effect (like it is written on a page) I want to display a text like it is written on some surface like notebook page or wall via Photoshop CS6. I added two example.   This image seems like image distortion:    And this image looks like text distortion:    I tried this with distort and skew transformation but I'm unable to get this much clear &amp; real effect. Why doesn't the Java SDK installer set JAVA_HOME? I always wondered why I have to manually set the JAVA_HOME environment variable after installing the Java SDK.     JAVA_HOME=c:\Program Files\Java\jdk1.6.0_12   Visual Studio at least provides a batch file to set these kind of environment variables:     call "c:\Program Files\Microsoft Visual   Studio 9.0\VC\vcvarsall.bat"   Does Java have something similar? I'm trying to make a build script that should simply work after installing the Java SDK. I don't want people to mess with environment variables on their PC. Prove that, for every natural n, $\sum_{d|n} \frac{\mu(d)}{d}=\prod_{p|n}(1-\frac{1}{p})$ Do ground seeds contain oil? I was wondering if there was any was I could right click inside any instance of a "Finder" window such that I have an option that says "Open Terminal Here". It would be really helpful. Finding out the area of a triangle if the coordinates of the three vertices are given What is the simplest way to find out the area of a triangle if the coordinates of the three vertices are given in $x$-$y$ plane?   One approach is to find the length of each side from the coordinates given and then apply . Is this the best way possible?   Is it possible to compare the area of triangles with their coordinates provided without actually calculating side lengths? Is there going to be a process around hellbanning? Given , I must say I think the idea (making that user's content visible to only them) is a good one.  However, the people in whose hands that power will be placed terrify me.  Jeff is saying that he doesn't like that bans can degenerate into meta-discussions about the fairness of banning, and in that respect I agree with him. But the meta-discussions do accomplish one thing -- they get more than one person to look at the ban and weigh in on what they think.  This isn't that I don't trust moderators (or, indeed, diamond moderators), but I don't trust any one single human being with an irrevocable and complete banhammer, where there's no potential to dispute things. (And if the user doesn't know they're banned, there's no potential for dispute)  Basically, I'd sleep a lot more soundly at night knowing that if one of these "enhanced bans" are put into place, that at least two people have looked at the "problem child", and only after more than one person has signed off on such a ban, does that go into effect. I don't care exactly what that process is, but I don't want to have to worry about pissing off a moderator and getting banned as a result.  We all get pissed off here -- it's part of any community. But "the nuclear option(s)" need(s) to be decided upon by someone with a cool head, not someone who's pissed off. `--no-install-recommends` only specified packages I want to install xfce4-goodies but I don't want Midori Browser. With --no-install-recommends I don't know how to specify only Midori. I want the rest of packages. How to do that? Thanks! I am currently working on a model which takes two parameters and produces a measurement statistic. Think of it as Z = f(X,Y).   Z is a matrix of my statistics and I am creating a surface plot of it in matlab. Basically, I am looking for a mathematical/analytical way of determining if the surface is smooth, or if it is jagged. Do large values tend to be clustered together or are they dispersed throughout the matrix? - that is my question. Basically, how mixed up are the values of my matrix?  I need to run the model over different parameter sets and I want to be able to analytically determine which one of my surfaces is the smoothest, has the greatest clustering of large values, and ideally, has no negative values.   Any help will be greatly appreciated and please let me know if you need any further information.   Cheers Console flashes on launching, then closes (ms-windows) I installed blender on a windows 7 64 bit system.  I opened it one time then went to the tutorials.  in the meantime I had a power failure and when I tried to start blender again I get a dos window that closes itself then nothing.  I reinstalled Blender and get the same thing.  I am going to try to uninstall then reinstall but in the mean time, any other suggestions are welcome. Is Argothian Elder a Druid? is listed on a lot of websites with the Druid creature type, but the card only lists "Elf".  Is Argothian Elder a Druid too? Evaluate $\int_0^1 \frac{\log \left( 1+x^{2+\sqrt{3}}\right)}{1+x}\mathrm dx$ I am trying to find a closed form for  $$\int_0^1 \frac{\log \left( 1+x^{2+\sqrt{3}}\right)}{1+x}\mathrm dx = 0.094561677526995723016 \cdots$$  It seems that the answer is $$\frac{\pi^2}{12}\left( 1-\sqrt{3}\right)+\log(2) \log \left(1+\sqrt{3} \right)$$  Mathematica is unable to give a closed form for the indefinite integral.  How can we prove this result? Please help me.  EDIT  Apart from this result, the following equalities are also known to exist: $$\begin{align*} \int_0^1 \frac{\log \left( 1+x^{4+\sqrt{15}}\right)}{1+x}\mathrm dx &amp;=\frac{\pi^2}{12} \left( 2-\sqrt{15}\right)+\log \left( \frac{1+\sqrt{5}}{2}\right)\log \left(2+\sqrt{3} \right) \\ &amp;\quad +\log(2)\log\left( \sqrt{3}+\sqrt{5}\right) \\ \int_0^1 \frac{\log \left( 1+x^{6+\sqrt{35}}\right)}{1+x}\mathrm dx &amp;= \frac{\pi^2}{12} \left( 3-\sqrt{35}\right)+\log \left(\frac{1+\sqrt{5}}{2} \right)\log \left(8+3\sqrt{7} \right) \\ &amp;\quad +\log(2) \log \left( \sqrt{5}+\sqrt{7}\right) \end{align*}$$  Please take a look . While I applaud the excellent work of , the question has come up:     How long will be the elected moderator’s “mandate”? Is it for life, or are we going to have “moderator elections” regularly?   Of course, any community moderator who wishes to recuse him or herself can certainly do that at any time.   Should we have term limits that require community moderators be cycled out periodically, so others get a chance to moderate? Should we hold regular (say, yearly) moderator elections? Is it better to have a larger pool of community moderators, and let the normal ebb and flow of turnover get us "natural" variability in moderation?   What are your thoughts on this?