why does if statement not work in actionlistener
How do I compare strings in Java?
How can I replace Windows with Ubuntu? How to inset a face? I am trying to set up a Minecraft rig mouth that will have more controls and will be rounded, but I am having issues trying to figure out what this guy did here. First, he did what looked like a loop cut and slide, but instead of drawing a line it selected all the edges it passed through. He then cut to a new clip where the mouth was already set up like this.    The video is in 3 times speed but if you download a youtube plugin you can slow it down to 0.25 speed of the video and then if you do the spacebar trick you can slow it down so it shows 1 frame at a time and it is really slow.  if you want or need to see the video.  All I am asking is how can I create those 8 basic segments. I have some files with different extensions such as *.pdf, *.mp3, *.jpg and a few others. All of them are stored in a parent directory.  How can I get a list of all extensions, create some folders based on these  extensions and then move all files into their relevant folders? Cycles not rendering image or movie clip used as background in the viewport First time I've used cycles rendering engine.  I'm using a movie clip as the background in short animation. Selected RBGA under Property Tab, and Transparent under Film Tab.  It looks good and individual frames in OpenGL active viewport render, and looks fine.  When I try to get it to spit out PNG files of the finished animation the objects render out fine, except no movie clip background as Blender Render engine did when using Paper Sky setting.  Operator error, or am I trying to do something Cycles won't do?  Haven't found an answer in my searches so far.  Can anyone point me in the right direction please.   Addition:  I think I found my problem after a couple more hours of research.  Post should read "operator ignorance" instead of operator error.  Too tired to try the solution tonight, everything looks better in the morning. Thanks anyway.  Sorry, I just saw your posts.  Really tired.  Much appreciation. Recent fluid-mechanical experiments by the groups of Couder in Paris and Bush at MIT, mimic a surprisingly wide range of quantum effects. The essential ingredient of these fluid-mechanical systems is a background or pilot-wave that guides the droplets.  Now, surprisingly, a simple analysis of a Bell-type experiment shows that, in the presence of a background field, one of the premises of the Bell inequality, namely measurement independence (MI), is violated. See the paper  (available ). Therefore such classical droplet experiments could violate a Bell inequality. More importantly, if this analysis is correct, background-based hidden-variable theories are admissible, even if they are local (in the sense of ‘involving only (sub)luminal interactions’) and even if they are compatible with free will.   My question: to me the analysis seems fully sound, but maybe there is still an unphysical hypothesis that slipped in ? Why do snap-packages exist - is there a real need? Assumptions  Honestly, I do not know much about  snap-packages - but this is irrelevant for this question - see below. I assume the system is significantly different from the existing one.  Does the change make sense?  Is there an actual need, strong enough? That is - is there a new use case, that is important enough to develop a new format - and the associated infrastructure?  Was it not feasible to change the current method to cover the new use cases too?  Or am I missing the point?  It is possible that what I see is mostly marketing - new names and presentation for minimal technical change, to get a chance that any body assumes it as "new and better" and it may be actually used. Also, it may be that the new packages are so closely based on the existing format that it is mostly a change in presentation to the user. That could be a good solution, of course. In this case, this question would have not much relevance.  Then, I would hope that is still useful enough to answer to side aspects.  Just let me know if the question is not helpful or confusing to new users, I'm happy to delete it.  So, why do they exist?    Background  My first reaction was "That makes no sense!"  This is similar to a situation where, on the physics site, someone asked, unhappy, why nobody discusses his brilliant new ideas in answers. It looked strongly like crackpot ideas; So far from actual physical knowledge that it was hard to find a point to even start. I wrote an answer that did not touch his ideas with a single word, but explained why one would just not discuss assuming crackpot ideas - not the first case of that. The answer was actually hitting the point, I think.    If my assumptions were right, this case is similar.    But then, maybe not - let's see. So a buddy and I were playing a game of Magic that turned out to be a really quick game because he got  out on the battlefield early. He was tapping it without attacking because of its obviously awesome ability but I don't know if you can tap a creature for its Inspired (untap-triggered) ability without attacking for it to then be tapped. Are you allowed to tap a creature whenever you want? A well-supported wireless PCI adapter for Ubuntu 12.04? "Delete this answered question?" when the only answer is deleted Looks like there's a small bug in the UI: I posted a question here on meta.SE which ended up being just something dumb I was doing and no use to anyone in the future. At first I posted an answer saying what the dumb thing was, but then I realized that the whole thing had no value, so I deleted the answer, and then deleted the question — whereupon it asked me:  Delete this answered question? We do not recommend deleting questions with answers because doing so deprives future readers of this knowledge. Repeated deletion of answered questions can result in your account being blocked from asking. Are you sure you wish to delete?  (Screenshot below) Probably shouldn't ask (or add to the tally) if the only answers are deleted ones... Cannot upgrade unsupported version of Skype for Linux (v5) Is a finite group uniquely determined by the orders of its elements? I want to create a standalone python script using QGIS python API (PYQGIS) for education. First I create a model and export that model to python script.  original python script from the export :  ##=name ##raster=raster ##stat=output html outputs_QGISRASTERLAYERSTATISTICS_1=processing.runalg('qgis:rasterlayerstatistics', raster,stat)   Next I read this  and I tried to follow this tutorial to create my script.  Final script :  import sys from qgis.core import QgsApplication from PyQt4.QtGui import QApplication app = QApplication([]) QgsApplication.setPrefixPath("/usr", True) QgsApplication.initQgis()  # Prepare processing framework  sys.path.append('/home/username/.qgis2/python') from processing.core.Processing import Processing dem='aster.tif' slope='slope.tif' aspect='aspect.tif' outputs_SAGASLOPEASPECTCURVATURE_1=processing.runalg('saga:slopeaspectcurvature', dem,6,1,1,slope,aspect,None,None,None,None,None,None,None,None,None,None) Processing.initialize()  # Exit applications QgsApplication.exitQgis() QApplication.exit()   If I run this script it works fine without error but I don't take some export like aspect and slope (these can't be found?). Any idea why I can't take exports ?  I use Ubuntu and python 2.7 and QGIS 2.18.1.    i try to this script :  import sys from qgis.core import QgsApplication sys.path.append('/usr/share/qgis/python/plugins') import processing a=processing.alglist() print a processing.alghelp("saga:slopeaspectcurvature")   and i take that print any idea why ?  Algorithm not found   but if i use this module in QGIS work fine. Store won't open after upgrade Convert NTFS to FAT32 without losing data I understand that you can  without formatting or backing up the data and later restoring - is the same thing possible in the other direction?  I want to convert my NTFS portable hard drive to FAT32 so that my PS3 will recognise it.  If it's not possible from within Windows, are there any free programs which will allow me to do it? Using $\text{n}^{\text{th}}$ root of unity  $$\large\left(e^{\frac{2ki\pi}{n}}\right)^{n} = 1$$  Prove that   $$\prod_{k=1}^{n-1}\sin\frac{k \pi}{n} = \frac{n}{2^{n-1}}$$ Likelihood Ratio Test for Exponential Distribution with a Limited Parameter Space Initial note: Having read , the answers there do not help in this specific situation, as they rely on having lots space to spare - I have very little.  When I started my city, I designed a simple exit from the default highway that I thought was sustainable: I left enough space around it to upgrade the road as I needed to, which has worked up until now. However, I am now stuck with a six-lane one-way exit from the highway that isn't getting used: since cars seem to pick the most efficient lane to get where they want to go, regardless of traffic, the rightmost lane fills up, then spills over onto the highway. This blocks the highway, my bus routes, and more importantly my planned emergency routes.  My setup looks like this:    The red arrows show road direction, and the orange line is the traffic backed up. Note that in this image, I have replaced the six-lane one-way exit with a highway exit, as this is just about as efficient...  This situation is getting to be pretty bad, and is bringing half my city to a standstill. Its effects compound themselves further down the highway:    In this image, the orange line is the traffic directly caused by this exit not working. This traffic jam then blocks two exits/entrances further down, on the red crosses; the yellow line shows the traffic jam caused by these being blocked. In other words, my inefficient exit design is now blocking itself from moving.  So this is a two part problem.   Considering that I'm constructing a residential district in the space above left of the problem exit, and would like to keep the solution inside the power line, how can I redesign this exit to be more efficient? How do I solve the ring of traffic jams? Is it a simple case of just deleting and replacing a bit of road? How to switch between low latency and generic kernels? Question about the proof of Ramsey's Theorem I was reading up on a proof of Ramsey's Theorem and I can't understand this part of the proof:      Pick a vertex $v$ from the graph, and partition the remaining vertices into two sets $M$ and $N$, such that for every vertex $w$, $w$ is in $M$ if $(v, w)$ is blue, and $w$ is in $N$ if $(v, w)$ is red. Because the graph has $R(r - 1, s) + R(r, s - 1) = |M| + |N| + 1$ vertices, it follows that either $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$.   Why is that $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$? I know from the proof of $R(3,3) = 6$ that given a vertex, at least $3$ are guaranteed to be either red or blue, so what is the pigeonhole argument for the general case? What is the structure in "as best you can"? I instinctively translate it "as best as you can", however this makes no sense.  What is the real structure behind this phrase?  I'll include an  to illustrate the historical presence of this phrase:    Whatever the structure is, I'm guessing that it has something to do with 19th century grammar.