How to check if a word is present in a sentence using Java?
How to find a whole word in a String in java
What are the system requirements for each flavour of Ubuntu Desktop? How to disable pylint 'Undefined variable' error for a specific variable in a file? Avoiding unused variables warnings when using assert() in a Release build How to start a background process in Python? How to get city name from latitude and longitude coordinates in Google Maps? Why is the asterisk before the variable name, rather than after the type? Why do most C programmers name variables like this:  int *myVariable;   rather than like this:  int* myVariable;   Both are valid. It seems to me that the asterisk is a part of the type, not a part of the variable name. Can anyone explain this logic? I am a Canadian citizen, and I intend to travel to the US for a student clinical elective at a university in Texas for the months of September and October. The university will help me obtain an F-1 status. However, I want to attend a few conferences and educational seminars which are being held in November/December for which I will be using a B1/B2 visa.  Will I have to leave the US and come back in November using a B1/B2 visa, or is there another way to change my visa status, or can I apply for both visas upon entering the US? how to have a custom zsh auto_cd command Instead of the normal cd I've created my own function  function cd {     builtin cd "$@" &amp;&amp; ls -F }   This works great for when I use commands like cd someDir/subDir but not when I change directories via zsh's auto_cd someDir/subDir.  Is there a way to customize what command gets called for auto_cd? Where can you find the quantities of each amino acid of a particular protein or food? Let $Q_8$ be the quaternion group. Show that $G/Z$ can never be isomorphic to $Q_8$, where $Z$ is the center of $G$. Hint: if $G/Z\cong Q_8$, show that $G$ has two abelian subgroups of index $2$.  I'm trying to prove the hint by looking at the canonical homomorphism $\pi:G\rightarrow G/Z$. Well, $Q_8$ has some abelian subgroups of index $2$, such as $H=\{1,-1,i,-i\}$, but that doesn't seem to map to abelian subgroups of index $2$ of $G$. (We know that $\pi(ab)=\pi(a)\pi(b)=\pi(b)\pi(a)=\pi(ba)$ for $a,b$ in $\pi^{-1}(H)$, but that only yields $aba^{-1}b^{-1}\in Z$, not $aba^{-1}b^{-1}=1$.) Quote unquote (or end-quote), unseparated by the actual quotation In spoken English, people often say "quote-unquote" (or "quote-endquote") to indicate that part of what they are saying is a quotation (scare or otherwise). Sometimes the quoted material will go between quote and unquote, and occasionaly it will precede the quote-unquote. Often, though, "quote unquote" introduces the quoted material.  Why does quote unquote precede the quotation?  It would seem that quote opens the quoted text and that unquote closes it, but then why would we close the quotation before actually providing it. It would be the equivalent of writing your quotation marks together, "", rather than around the quoted text.  What are the origins of this construction?  Three years ago ChrisR asked  on whether it is correct to use quote, unquote. The answers did not deal with origins, but one commenter suggested that quote-unquote is a corruption of quote-on-quote, but he provided no evidence, nor any real explanation. Tsunami dampening mechanisms Strip whitespace from jsp output How to add citation for a whole paragraph? If I write a report and a whole paragraph is based on one source but not cited verbally it seems unnecessary to include the reference after every sentence:  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua (source 1). Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat (source 1).  Now I found a Phd thesis that puts the reference after the last dot of the paragraph to indicate that it is based on this very source:  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. (source 1)  Is this a common practice? Is it generally understood? What are other ways to add the reference for a whole paragraph? I'm getting into English recently and I'm a little confused by the way people pronounce a word that starts in a vowel right after a word ending in -ing.  For example:      You have to bring it up now?   I don't know if I should pronounce it as:   bring /ŋit/ brin' /nit/ bring /git/   Another example would be "I'm coming out".  Likewise, what about the ending -ang? For example:      We can just hang out and have a good time.    And to round it all up, what about a combination of the two? For example,      He got sick of hanging around waiting for you and went home.   I've been asking myself these questions for weeks. Legal issues for a "fangame" of a commercial franchise? I've played around in the past of the 2D Flash fan-made version of the popular Valve game Portal.  It has basically the exact same mechanics, but as a 2D side-view flash game.  Lately I've toyed around with creating a simplified flash version of some of my favorite franchises (such as Zelda, Mario, Splinter Cell, etc.).  Of course, nothing is "stopping" me from just using the same mechanics and just changing the name to something not copyrighted.  I have witnessed projects that have tried to directly port a 3D game into a 2D simplified version, with the exact same plot and puzzles (Ocarina of Time in 2D comes to mind), and I have seen them being shut down.  But I am not likely going to exactly duplicate any game...just borrow some of the source material and basic underlying mechanics.  For example, if I were to make a Zelda-influenced fan game, I would have items such as the Hookshot, Boomerang, and all other sorts of ones from the Gameboy Zeldas; just with a custom plot and dungeons.  With likely the same mechanics.  What are the legal issues involved in this?  I used to think it was a "Don't do this ever; it's a bad idea."  But then I've seen the Portal clone, and now I'm curious. context menu parent? What are the use cases of SO_REUSEADDR? I have used SO_REUSEADDR to have my server which got terminated to restart with out complaining that the socket is already is in use. I was wondering if there are other uses of SO_REUSEADDR? Have anyone used the socket option for other than the said purpose? Can I sync or transfer save games and settings from one platform to another? I would like to know if the same Minecraft account used on a computer can be used on a different platform like the Xbox 360? I am not asking about playing on each simultaneously as each platform has been purchased - I am asking if you can cross play on multiple platforms with the same account. Basically I would like to know if all the saved stuff and settings from one platform will carry over to another. When I type uname -a, it gives the following output.  Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux   How can I know from this that the given OS is 32 or 64 bit?  This is useful when writing configure scripts, for example: what architecture am I building for?