I want to close my question, as it is answered, because I think my question is solved with given answer so which options must I choose from the below to close a question? Which option is suitable?   duplicate of... This question has been asked before and already has an answer. off-topic because… (too old to migrate) This question does not appear to be about Ubuntu within the scope defined in the help center. unclear what you're asking  Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. too broad Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. primarily opinion-based Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.
What does it mean to accept an answer? How do I accept an answer, and what are the rules? Can I accept my own self-answer? What are the reputation benefits? Which answer should I accept? Should I upvote the accepted answer? What should I do if none of the answers are suitable?      For more information, see "" in the .
Two different solutions to integral What's the best way to build a string of delimited items in Java? While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be in advance. The best I could come up with off the top of my head was something like this:  public String appendWithDelimiter( String original, String addition, String delimiter ) {     if ( original.equals( "" ) ) {         return addition;     } else {         return original + delimiter + addition;     } }  String parameterString = ""; if ( condition ) parameterString = appendWithDelimiter( parameterString, "elementName", "," ); if ( anotherCondition ) parameterString = appendWithDelimiter( parameterString, "anotherElementName", "," );   I realize this isn't particularly efficient, since there are strings being created all over the place, but I was going for clarity more than optimization.  In Ruby, I can do something like this instead, which feels much more elegant:  parameterArray = []; parameterArray &lt;&lt; "elementName" if condition; parameterArray &lt;&lt; "anotherElementName" if anotherCondition; parameterString = parameterArray.join(",");   But since Java lacks a join command, I couldn't figure out anything equivalent.  So, what's the best way to do this in Java? How to move files to specific folders based on CSV entries? C++11 does not deduce type when std::function or lambda functions are involved I have not had to mess with mailto links much.  However I now need to add a link in the body of a mailto if it is possible.    Is there a way to add a link or to change the email opened to an html email vs a text email?  Something like:  &lt;a href="mailto:test@test.test?body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.%0A%0ALink goes here"&gt;Link text goes here&lt;/a&gt; Disable key when program is running Two Bibliographies: one for main text and one for appendix I have a manuscript in which has the following structure:  Main Text Bibliography Appendix   However, there are citations which are only cited in the appendix, and they show up in the main bibliography. I would like to split my Bibliography into two different sections, so that the structure of the paper would look like this:  Main Text Bibliography for Main Text Appendix Bibliography for Appendix   I'm currently using bibtex and a single .bib file, and creating the bibliography with  \bibliographystyle {someBibStyleFile} \bibliography {bibFileName}   I'm interested in a method to split my single bibliography into main bibliography and appendix bibliography with minimal changes to the rest of the document.  I'm aware that biblatex is more powerful than bibtex, but I'm not prepared to make the switch before the deadline of this project. There are many related bibliography-with-multiple-sections type of questions, but I didn't see one that covers this case. I'm downloading GTA V. After 20gb / 100gb I paused my download for restarting my pc. Then download restarts from 0%.  Why this could happen? Can I restart my PC during downloads without losing progress? How to escape braces (curly brackets) in a format string in .NET How can brackets be escaped in using string.Format? For example: String val = &quot;1,2,3&quot; String.Format(&quot; foo {{0}}&quot;, val);  This example doesn't throw an exception, but it outputs the string foo {0}. Is there a way to escape the brackets? What plot points are missing in the Harry Potter movies that are in the novels? Proof that in a field $x=0$ is equivalent to $x=-x$ How to install TP-LINK T2UH Wireless adapter Driver (Ralink mt7610u) Remember my "sort by" setting when browsing favorite site feeds Opening the menu and selecting an item from the "Favorite Sites" menu allows us to see a feed for a specific site. In the top right corner of this page is a drop-down which allows us to select the "sort order" for the posts. The default is "Active" with other options like "Newest", "Hot", etc.  The problem is that when I select "Newest" or any other option. This preference is not remembered when I change between a different "Favorite Site".  So I am requesting that the selection is persisted when changing between site feeds. I have no preference whether this is implemented per site (to allow a different default for each site) or just one single preferred default that works on all sites (last option selected). I just want it to remember that I have selected "Newest" when I am flicking though the sites. MySQL Hashing Function Implementation I know that php has md5(), sha1(), and the hash() functions, but I want to create a hash using the MySQL PASSWORD() function.  So far, the only way I can think of is to just query the server, but I want a function (preferably in php or Perl) that will do the same thing without querying MySQL at all.  For example:  MySQL hash -> 464bb2cb3cf18b66  MySQL5 hash -> *01D01F5CA7CA8BA771E03F4AC55EC73C11EFA229  Thanks! A Regex that will never be matched by anything I'd like to estimate the correlation between:  An ordinal variable: subjects are asked to rate their preference for 6 types of fruit on a 1-5 scale (ranging from very disgusting to very tasty) On average subjects use only 3 points of the scale.  A continuous variable: the same subjects are asked to quickly identify these fruits, which results in an mean accuracy for the 6 fruits.   Is Spearman rho the best method to analyze these data and/or are there other good methods I could consider? Viewport pivot point changed from scene objects to around viewport camera origin I am starting to learn using blender, and at some point I managed to do something to the 3D view camera.  Usually the camera orbits around an object, but now the rotation seems to happen (atleast very close to) around the "camera's origin". Neither the input setting in "User Preferences", the pivot point selection nor Ctrl-Alt-Shift-C (as suggested on some forum) do anything to the issue. Can't access global variable inside function No upgrade available for 19.04 from 18.10 I'm pretty new to running linux, but I know that 19.04 was released today and I wanted to upgrade from my current 18.10. However, when I follow the release notes here:  I get the message "The software on this computer is up to date". I made sure that my update settings are set to "any new version" and "normal" in the /etc/update-manager/release-upgrades file.   What am I doing wrong?  Thanks for the help!  Side note: I had to disable this PPA:  because it would cause errors in apt updating. Do I need to re-add it? If so how do I do so without it giving me an error?  Edit: I have followed the procedure recommended in the documentation which is identical to the suggested duplicate, but I am not given the option to upgrade. I have not yet tried the   do-release-upgrade -d    option as I don't want to upgrade to the developer version. How can I make my local repository available for git-pull?