Java For Each with a getter
How does the Java 'for each' loop work?
SOQL results returning RecordTypeId which is not included in query How to set the close-laptop-lid-action? How to sort lines by float number I've such a file:  name: xxx --- time: 5.4 seconds name: yyy --- time: 3.2 seconds name: zzz --- time: 6.4 seconds ...   Now I want to sort this file by these float numbers to generate a new file as below:  name: yyy --- time: 3.2 seconds name: xxx --- time: 5.4 seconds name: zzz --- time: 6.4 seconds ...   I've tried the command awk '{print $5}' myfile | sort -g but this will show me ONLY the float numbers. 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? How do I get the Glare node to output transparent instead of Black background This is what I have so far:  The rendered image has a transparent background, but the glare filter creates an output with a black background, so after merging the two togheter, the background turns black but I need it to be transparent, what can I do? Workflow for converting LaTeX into Open Office / MS Word Format When did UX start being called UX? When did people start talking about User Experience as a role/domain similar to the way that it's used today?  The earliest reference I can find is the Norman, Miller, Henderson CHI 95 piece on Apple's set up (Donald Norman, Jim Miller, Austin Henderson: What You See, Some of What's in the Future, And How We Go About Doing It: HI at Apple Computer. Proceedings of CHI 1995, Denver, Colorado, USA)  Anything earlier?  [Edit - after @Andrew's nice answer we have 1993 as an earlier date     "I invented the term because I thought Human Interface and usability   were too narrow: I wanted to cover all aspects of the person's   experience with a system, including industrial design, graphics, the   interface, the physical interaction, and the manual." - Don Norman   ]  (I'm writing a talk on communities of practice relating to UX - and want to get my time lines right ;-) Simplest or nicest proof that $1+x \le e^x$ The elementary but very useful inequality that $1+x \le e^x$ for all real $x$ has a number of different proofs, some of which can be found online. But is there a particularly slick, intuitive or canonical proof? I would ideally like a proof which fits into a few lines, is accessible to students with limited calculus experience, and does not involve too much analysis of different cases. How is a second measured? And why is it measured that way? The earth's rotation around itself (one rotation around Earth's own axis) doesn't take exactly 24 hours. It off by some seconds which becomes somewhere around 6 hours per year and 1 day in 4 years(leap year), which brings the question why didn't we modify the measurement of 1 second ever so slightly so as to avoid leap years altogether.   Well how is 1 second measured exactly?  says      the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium 133 atom. []   Well, why is it measured that way? Is there any technical reason like it is easy to measure and can be standardized easily? Or is it really possible to modify the measurement of time? How to construct a pyramid in blender but the edges of the triangles to be equal? How to make a pyramid in blender and all the edges to be equal size? Is there a way to do that in blender? Or if there is no easy way for that, maybe anybody not that lazy can provide me with a math line? Or maybe a link or whatever? What does "apt-get install !!" do and how to make it work? I have seen someone typing  apt-get install !!   He did that a few times and every time, a different program was installed. It seems like it automatically figured out what is needed next.  However, when I tried it on my Ubuntu 14.04.1 LTS virtual machine, it just showed some usage instructions. Googling for apt-get install !! doesn't seem to work very well. Many search results do not contain the double exclamation mark.  What does apt-get install !! do and what could be missing on my machine that it did not work? Heisenberg famously derived his uncertainty principle by considering the disturbance that a measurement would have on a small enough system.  Of course in the mathematical formalism of Quantum Mechanics the relationship is derived from more basic principles.  How does String Theory account for it? Heuristically, and mathematically? Evaluate these infinite products $\prod_{n\geq 2}(1-\frac{1}{n^3})$ and $\prod_{n\geq 1}(1+\frac{1}{n^3})$ What is   $\prod\limits_{n\geq 2}(1-\frac{1}{n^3})=?$ $\prod\limits_{n\geq 1}(1+\frac{1}{n^3})=?$   I am sure about their convergence. But don't know about exact values. Know some bounds as well. For example first one is in interval (2/3,1) and second one is in (2,3). How do I get started playing Dungeons and Dragons 4th edition by myself? I've been wanting to start playing D&amp;D for some time, and I was wondering how I could get started by myself with relative ease. I own the first two player handbooks, and a set of dice. Detect when browser receives file download I've got a domain that I apparently forgot to set a preferred domain for, so I just tried to do it. Webmaster Tools instead popped up a little box:     Part of the process of setting a preferred domain is to verify that you own http://www.example.com/. Please verify http://www.example.com/.   I'm running into some problems following these instructions:   As far as I can tell I already did verify sometime in the past. There's a TXT DNS record with the gibberish Google tells you to set for it that I couldn't have come up with myself. …and nothing is telling me this information is bad. So let's assume the site is somehow not actually verified. All  instructions start with "click the Manage Site button next to the site you want, and then click Verify this site." That button doesn't even exist on my screens. (It presumably goes away when you successfully verify?) Those instructions were all updated pretty recently, and the DNS one in particular just a couple weeks ago so it seems a bit unlikely they're inaccurate.   I am not using Apps, and won't be, so can't try out the verification .   Note that I also have another domain that I have not done any verification for which is showing the same behavior(no such button, being told to verify when it seems impossible etc.) so something appears to just be broken.  I already have a no-www process in place server-side, so we can skip that. I'm just trying to get the box checked off in GWT.  If I don't get any resolution, I'll eventually scrap the TXT record and see if the site gets un-verified(or whatever since it thinks it isn't), and see if I can just restart the process.  It's not urgent so I'm just trying to figure out if I've gone blind to something or what. Did the button move? For a graph $G$, let $W$ be the (random) vertex occupied at the ﬁrst time the random walk has visited every vertex. That is, $W$ is the last new vertex to be visited by the random walk. Prove the following remarkable fact:      For the   random walk on an $n$-cycle, $W$ is uniformly distributed over all vertices different   from the starting vertex. What's the difference between the list methods append() and extend()? How to understand Cauchy's proof of AM-GM inequality(the last step) Conjugate class in the dihedral group List all the conjugate classes in the dihedral group of order $2n$ and verify the class equation.  The dihedral group is generated by two elements $r$ and $s$.   The order of $r$ is two since $r^2=e$ and $s$ is $n$ since $s^n = e$. And I know all elements can be produced as either $s^k$ or $rs^k$. How can I list all the conjugacy class?