I am Looking for Regex for this result  String = This is Cold Water and this is Hot Water, have some Water.  I want to check whether this String has the word 'Water' which doesn't have these 'Cold' and 'Hot' words before it.  String mydata = "This is Cold Water and this is Hot Water, have some Water"; Pattern pattern = Pattern.compile("[^(Cold|Hot)]\sWater");     Matcher matcher = pattern.matcher(mydata);     if (matcher.matches()) {         String s = matcher.group(1);         System.out.println(s);     }   But it is resulting a no match
I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?
Prove that $\liminf x_n = -\limsup (-x_n)$ Are there any distinct finite simple groups with the same order? In finite group theory, it's often quite easy to show that there are no simple groups of a given order $n$.  My question is different: is there some natural number $n$ such that there are two non-isomorphic simple groups of order $n$?  The two easiest families of finite simple groups - $\mathbb{Z}_p$ for $p$ a prime and $A_n$ for $n\ge5$ - clearly don't yield any examples.    It should be possible to check this using the , but I don't know enough about the fabled 'sixteen infinite families of groups of Lie type' to do the check myself.  Also, if the answer is 'no', I'd be much more interested to see an elementary(ish) proof than I would be to see a proof that relies on over 3,000 pages of non-stop hard group theory. Error while running Quickly Limit $\lim\limits_{x\to0}{\frac{\ln{(e+x)}-e^x}{\cos^2{x} -e^x}}$ How does the Hogwarts Headmaster know whom to invite to school? So all wizards get an invitation to Hogwarts at 11... How do they know whom to invite?  If a wizard is Muggle-born, then nobody would know about their existence.  Or do they register some weird magical stuff being done by them before 11? In a script I'm trying to find the Terminal.app window containing a specific tty device and raise that window to the top. Here's what I have in Applescript so far:  tell application "System Events"   set foundWin to false   if (name of processes) contains "Terminal" then     tell application "Terminal"       set theTabs to first tab of every window where tty is "$(tty)"       repeat with theTab in theTabs         if class of theTab is tab then           set theWin to (first window whose tabs contains theTab)           set selected tab of theWin to theTab           set foundWin to true         end if       end repeat     end tell   end if   if foundWin then     --RAISE THE WINDOW?!   end if end tell   Where I'm getting stuck is the "raising the window" part.  Here are some things that are not quite what I want:  set frontmost of theWin to true -- this brings the window to the front of the group of Terminal.app windows but doesn't raise it above any other windows.  tell application "Terminal" to activate -- this brings every Terminal window to the front in a big stack. I just want the one window.  tell application "System Events"     set theSysWin to first window of process "Terminal" whose name is (name of theWin)     perform action "AXRaise" of theSysWin end tell   This almost does it, but what it does is to raise the terminal window to the #2 position, still underneath the active window (if the active app is something other than Terminal.app.)  click theSysWin at {10,50} -- doesn't seem to do anything.  click first static text of theSysWin -- doesn't seem to do anything.  Is there a way to do this? It doesn't have to be in Applescript.  EDIT I did find this web page (  ) quoting an Obj-C/Cocoa call:  SetFrontProcessWithOptions(&amp;psn, kSetFrontProcessFrontWindowOnly);  I'm not familiar with either ObjC or Cocoa, and this is (ultimately) getting invoked from a shell script, so not sure where to go from there. python multiprocessing on windows, if __name__ == "__main__" I have Ubuntu budgie 17.04 (budgie-desktop 10.2.9). While pressing Alt+Tab to switch between the windows, the windows are switched randomly and I am not able to select which window to shift.  This feature was available in Ubuntu 16.04 but not in Ubuntu-budgie-17.04.    How to resolve this? Converting truth tables to boolean expressions When I installed the latest update of Ubuntu, I was asked for the username but I do not remember what my username is. How do I find out what my username is? Opening PDF in Illustrator breaks up text objects I recently had to convert some PDF files to SVG, and did this by opening the PDF in Illustrator, and saving out to SVG.    The issue was that when Illustrator opened the pdf, many (but not all) text objects would be broken up into different text objects.  For instance, the word "policy" wouldn't be one text object, but rather several text objects, "po", "l", "icy".  There didn't seem to be any rhyme or reason to it.    How can I prevent this from happening? Execute sudo without Password? A generic list of anonymous class In C# 3.0 you can create anonymous class with the following syntax  var o = new { Id = 1, Name = "Foo" };   Is there a way to add these anonymous class to a generic list?  Example:  var o = new { Id = 1, Name = "Foo" }; var o1 = new { Id = 2, Name = "Bar" };  List&lt;var&gt; list = new List&lt;var&gt;(); list.Add(o); list.Add(o1);   Another Example:  List&lt;var&gt; list = new List&lt;var&gt;();  while (....) {     ....     list.Add(new {Id = x, Name = y});     .... } Login SSH with .ppk file on Ubuntu Terminal I have a production server. To login to the server I must use a .ppk file.  How to login with Ubuntu Terminal and .ppk file?  I tried this :  ssh -i location/file.ppk username@server-ip   but it is showing an error message. Can I ignore coefficients for non-significant levels of factors in a linear model? After seeking clarification about linear model coefficients  I have a follow up question concerning non-signficant (high p value) for coefficients of factor levels.  Example: If my linear model includes a factor with 10 levels, and only 3 of those levels have significant p values associated with them, when using the model to predict Y can I choose to not include the coefficient term if the subject falls in one of the non-signficant level?  More drastically, would it be wrong to lump the 7 non-significant levels into one level and re-analyze? Why am I asked for a credit card number to download a free app? I  want to download free app in my iPod touch device and i have the following doubts.  Kindly resolve me doubts.   when i try to download it asks my credit card security number. since i am trying to download free app , why do i need to provide my credit card security code? Will i be debited for downloading the free app from app store?   I cant able to find any information regarding this on apple.  Please provide me some references about this from apple and please resolve my doubts.  Thanks a lot. Windows 10 doesn't shut down properly I have visited tons of websites and watched dozens of Youtube videos, yet I can't find a solution to my problem.  I recently upgraded my laptop to Windows 10, and now it won't shutdown properly.  I have turned off fast startup and sleep mode from power options.  Here is what happens:   Start menu > Power > Shut down It exits windows and apparently turns off (black screen) The power lights are still on and my computer apparently doesn't shutdown. I have an image with a woman, and I need to make an ad (size 260mmx125mm). I want to put the woman to the left side, but then right side becomes empty. So, how I should solve the problem? I have picked the color from image, but it is definitely different than in the actual picture.  Should I use the Clone Stamp Tool in Photoshop, or there is a better way to do this?  By the way, it will be used in print, so I need a good quality. How to change the name of document elements like "Figure", "Contents", "Bibliography", "Appendix", etc.? When no model comparison, should I use REML vs ML? I'm running LMM, and I will make no comparison of models. Could I ask which one should I use between REML and ML?