How does Java parse an int from a long if long too big?
How does long to int cast work in Java?
Notify on retagging A question here on meta for instance may stick around for quite a while. A feature-request  maybe even for months. Then the status (tags) gets changed to  or  or whatever and the OP does not get notified.  On a normal post-edit we get a notification but retagging does not count for that. Please add retagging to the edit notifications. Firefox 37.0.2 not opening (removing firefox did not help) runing ubuntu 14.04 LTS Was there any reason why Dr Soong chose for Data's eyes to be yellow?  I can understand that he wasn't going for a completely human-looking android based on his skin color, but why yellow eyes? How do I efficiently filter computed values within a Python list comprehension? The Python list comprehension syntax makes it easy to filter values within a comprehension.  For example:  result = [x**2 for x in mylist if type(x) is int]   Will return a list of the squares of integers in mylist.  However, what if the test involves some (costly) computation and you want to filter on the result?  One option is:  result = [expensive(x) for x in mylist if expensive(x)]   This will result in a list of non-"false" expensive(x) values, however expensive() is called twice for each x.  Is there a comprehension syntax that allows you to do this test while only calling expensive once per x? Get it? vs Got it? What the heck are you doing? Stop that nonsense. Get it?     What the heck are you doing? Stop that nonsense. Got it?    Which one of the above is correct? Is it okay to use just "Get it?" or "Got it?" instead of "Did you get it?" or "Have you got it?" in informal spoken English? I use the babel package in order to write in greek with font "kerkis".  I want to add code in english ("courier new" font) to my latex document but I get some difficulties.  Can anybody help me, please. Thank you in advance.  \documentclass[12pt]{article} \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{fancybox} \usepackage{verbatim} \usepackage{courier} \usepackage{kerkis} \usepackage{float} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{tocloft} \usepackage{hyperref} \usepackage{afterpage} \usepackage{color}    \usepackage{listings}  \renewcommand{\lstlistingname}{Κώδικας}  \lstset{  %matlab   backgroundcolor=\color{white},     basicstyle=\normalsize,    % COURIER NEW?        commentstyle=\color{green},    % comment style   escapeinside={\%*}{*)},           extendedchars=true,               frame=single,                              keywordstyle=\color{blue},       % keyword style   numbers=left,                     numbersep=5pt,                     numberstyle=\normalsize\color{black},    rulecolor=\color{black},           stepnumber=1,                      stringstyle=\color{magenta},     % string style }   \begin{document}  \selectlanguage{greek} Ελληνικά: \textlatin{this word means greek}  \selectlanguage{english} Now I write in english  \selectlanguage{greek} Ελληνικά  %\selectlanguage{english}???  \begin{lstlisting}[caption = \textlatin{example1.m}] { % Entropy E = 0; for i = 1:J     if p(i) ~= 0         E = E + p(i)*log2(1/p(i));     end end } \end{lstlisting}  \end{document} The shrine indicator (shrine detector? GPShrine?) has both visual and audio cues, so when I'm near a shrine, it beeps constantly. Unfortunately, I occasionally play the game near other humans who are engaged in their own activities, and my wife is decidedly unimpressed with this feature.   When I got the shrine indicator, I could have sworn that the dialogue said I could press [Y] to disable it... but pressing Y pulls out my weapon.   Ideally, I'd like to just make it stop beeping, but stay on for visual cues. But I'll settle for being able to turn it off entirely at times. How to capture all std outputs Nautilus doesn't launch on Ubuntu All of a sudden, without any change in the index.html, our site is showing up in Google search results (on multiple browsers and devices) with Google Preview text that, instead of giving a summary of our site, now says:     Your browser does not currently recognize any of the video formats available. Click here to visit our frequently asked questions about HTML5 video.     We have a YouTube embed on our homepage that does include an html5 parameter in the media URL link in the embed, but there are no issues playing the video with any browser and device we can find.  What would suddenly cause this text to appear in Google search results?   We are using the  tags as the metatags in the &lt;head&gt; of our webpage and do indeed have title and description tags.    To mimic the behavior of Googlebot, I installed Windows on a VM and got Chromium 41 running. I get the same Google Preview text with the html5 video message when the site comes up in Google search results using this browser.    When I view the site in Chromium 41, I see the YouTube embed and it renders on the page and plays with no issue, just as with all other browser and devices we've tested on. The only time we see this message is in the Google search results, not on our actual site. Suppose you have a history containing the three commits A, B and C:  A-B-C   I would like to combine the two commits A and B to one commit AB:  AB-C   I tried  git rebase -i A   which opens up my editor with the following contents:  pick e97a17b B pick asd314f C   I change this to  squash e97a17b B pick asd314f C   Then Git 1.6.0.4 says:  Cannot 'squash' without a previous commit   Is there a way or is this just impossible? On average, how many times must I roll a dice until I get a $6$?  I got this question from a book called Fifty Challenging Problems in Probability.   The answer is $6$, and I understand the solution the book has given me. However, I want to know why the following logic does not work: The chance that we do not get a $6$ is $5/6$. In order to find the number of dice rolls needed, I want the probability of there being a $6$ in $n$ rolls being $1/2$ in order to find the average. So I solve the equation $(5/6)^n=1/2$, which gives me $n=3.8$-ish. That number makes sense to me intuitively, where the number $6$ does not make sense intuitively. I feel like on average, I would need to roll about $3$-$4$ times to get a $6$. Sometimes, I will have to roll less than $3$-$4$ times, and sometimes I will have to roll more than $3$-$4$ times.  Please note that I am not asking how to solve this question, but what is wrong with my logic above.  Thank you! Ocean modifier and foam data export? It is there any way to export the foam data generated from ocean modifier to use it in other render engine, like LuxRender? The manual says that the foam data is stored as vertex color data, but there isn't a way to access the vertexColor data. I know that can be accessed from Cycles from attribute's node. LuxRender supports vertex color and I tried to bake the texture to vertexColor and an image but only get a plain black texture. What is the earliest work considered to be Science Fiction? There is a shop in the starting area on the island of Koholint, and if you are fast enough to dance around the shopkeeper, you can steal from him. Once you steal from him, though, your title in the game changes to "THIEF".    Is there any way to change your title back to your name without reverting to a different past save or starting over? Explain reflection laws at the atomic level Why GCP Kubernetes Node host location for europe-north1 seems to be in US? How can $\pi$ be irrational if it can be calculated using an infinite series of rational numbers? What's the significance of conditional and absolute convergence? I know how to find if a series is conditional or absolute convergence by taking the absolute value and seeing if that absolute sum converges (then the original sum is absolute). If the absolute diverges but the original converges, then that's conditional.   But my question is: is there a significance? Is absolute convergence series bigger than absolute? Does a series being absolute or conditional affect rate of convergence, or radius? Does it affect symmetry?   Looking at Google, I only found tests on how to find if it's absolute or conditional. But I want to find meaning or significance. Or at least more mathematical properties. Problems with partial derivatives.