Return primitive data type from a catch block in java
Why does changing the returned variable in a finally block not change the return value?
What is the ideal way to handle data pins D+ and D- on a USB power adapter to be compatible with fast charging on devices? Sort Array Elements (string with numbers), natural sort Seems like a stupid question, but I'm after a nice solid answer if possible.  I joined SO a while ago to ask the odd question, but recently I'm starting to use it more often.  I've been reviewing the 40 max items (20 first posts/20 late answers) per day, and editing anything I see wrong with them (lots of +2's)... flagging them... etc.  I've also been  per day.  But other than commenting where I can and answering the odd question, I'm only  (1k at the moment).  I might just be overeager, but I was hoping some high-rep users might be able to write a little something on how they earned their stripes?  I've , and to be honest I was hoping I'd get a hit, because it sounds like a stupid question... anyways, here you go!  Also, I'm not referring to how to gain rep on Meta, since it's a bit of a fluke I've earned the rep I have on here. I'm asking about main SO. Is there a program to mount all of my drives automatically? taller than any student or taller than any other student Which of the following sentences is correct?     a)   1. John is taller than any student in his class.   2. John is taller than any other student in his class.        b)   1. No student is taller than John in his class.   2. No other student is taller than John in his class. Where do AirDrop files go when I transfer them between an iPad, iPhone and iPod? I AirDropped some Google Docs from my iPad to my iPhone but nothing happened; where did my files go? The file was a list of tools. Evaluate Current User for Flow - 15 - 18 digit User ID I need to evaluate the current user running a flow. Someone suggested I use the Global Variable {!User.Id}, but it's returning a 15 digit Id. I need to compare the current user with the Account owner. The Account Owner field is returning an 18 digit id. Is there another way to evaluate the current user in my flow and compare it to an Account owner?   The above resolution doesn't really work for my purposes for evaluating a user if I can't compare the user to the Account Owner ID. In the above example, the Account Owner will never = the current user as it is comparing a 15 digit id to a 18 digit id.  Is there a way turn the User ID from the Global Variables into 18 digits? Or vice versa, make the Account Owner ID return as 15 digits? Thanks so much! My online friend is asking for money in order to visit my home country. Is this a legit request or a scam? On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money? Nignx - worker_connections are not enough I don't know what is going on. I double value for worker connections but it still return error.  server { server_name xxx.com;  root /var/www/web; index index.html index.htm index.php; error_log /var/log/nginx/error.log; location / { proxy_http_version 1.1; proxy_set_header   Host $http_host; proxy_set_header   X-Real-IP $remote_addr; proxy_set_header   Upgrade $http_upgrade; proxy_set_header   Connection "upgrade"; proxy_cache_bypass $http_upgrade; proxy_pass         http://127.0.0.1:7777; }        listen 443 ssl; # managed by Certbot     ssl_certificate /etc/letsencrypt/live/xxx.com/fullchain.pem; # managed by Certbot     ssl_certificate_key /etc/letsencrypt/live/xxx.com/privkey.pem; # managed by Certbot     include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot     ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot  } server {     listen 80;     server_name xxx.com;     return 301 https://$host$request_uri; # managed by Certbot  }   Everything is okej with this code?  ERROR:  Firstly was:  worker_connections are not enough worker_connections are not enough   Now is  27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files) 27513#0: accept4() failed (24: Too many open files) Drawing a triangle from medians Can "cattle" be singular? I've grown up on a farm, and my dad and his dad, apparently, always used "cattle" to refer to both the singular and plural forms of the domestic bovine. I've always assumed it's how the word "deer" is.  However, I've heard people say that this is incorrect and the singular is just "cow", but this has always offended us as a cow is a mother cattle, and is incorrect if you're referring to a steer, a bull, or a heifer.  So, is cattle singular as well as plural? If not, is there some general, non-gender-specific word that should be used instead? How to interpret the coefficients from a beta regression? I have some data that is bounded between 0 and 1. I have used the betareg package in R to fit a regression model with the bounded data as the dependent variable. My question is: how do I interpret the coefficients from the regression? Is it ok to put old papers on the arXiv? In my field (I am a condensed-matter theoretical physicist) it is such a normal thing to put papers on the arXiv, that people sometimes look at other people's arXiv list of papers instead of their publication record to get to know what they do, etc.  It just so happens that a few years ago I did a PhD with a supervisor that does not like the arXiv that much (he apparently had some conflict with some authors of a paper that was very similar to one of his papers, but one was already published while the other was just an arXiv preprint -or something like that). As a result, from my list of less than 20 publications, there are four of them from my PhD that are missing on the arXiv.  I was thinking of submitting the latest versions I have of them as arXiv preprints now, four years after their publication. For this I already have the agreement of all co-authors (including my supervisor), and all the journals involved seem to allow to put preprints of the material they publish. Do you see any problem with this? I fear that some people might take it as a way to advertise as new something that was already published a long time ago (though I would of course give the full reference to the published version). There may be other issues I am not aware of. The reason why I would like to do this is that I am applying for fellowships, positions, etc. and I am afraid some of my (best) publications may go unnoticed if somebody looks me up on the arXiv.  Thank you, Stephen ConcurrentModificationException Woes I have the following reference:  @MISC{EX2012,   author = {{S}ingle {A}uthor {O}rganization},   year = {2012},   title = {Example} }   A citation for this is breaking after "Author", but extending beyond the margin, as shown in the following example layout in the PDF:  Demo text demo text demo to margin Demo text which cites it (Single Author Organization, 2012) and flows over the margin.   How can I solve this? I am using natbib and citing with \citep{EX2012}. When learning a new subject, I would frequently use lecture notes found somewhere in the Internet. When writing a paper (or a master thesis, as in my case, but the rules should be similar, I believe) one should give some reference for used results which are not common knowledge, if I understand correctly. This make me wonder: what do I do if I want to reference a result I found in some notes?  The natural thing to do would be to just add these notes to bibliography. What format would be preferable for this? Note that there will generally not be much publishing information, perhaps not even a definite year and place. (A BibTeX template would be .)  Secondly, is it OK to cite such materials as a reference? which app triggers the "Windows features" dialog? I keep getting this window titles "Windows Features" It then says that:     An app on your PC needs the following Windows feature:      .NET Framework 3.5 (Includes .NET 2.0 and 3.0)   and I can choose to install or skip (being warned that my apps might not work correctly).  There is also a "telll me more about this feature" link but it explains about the .NET framework.  I want to know if there is a way for me to know which application is it that asks for this feature as the window just keeps popping out of the context of activating a new app...  This all started just a few days ago after some unattended update on my windows 10. The warlock's Thirsting Blade eldritch invocation cannot be normally used with the (non-warlock) class feature Extra Attack, since both feature explicitly say you attack twice instead of once. But it seems to me that you could use both features (if you have them) when using Two-Weapon Fighting.  Assume your character is wielding two light weapons, one of which is your pact weapon. You take the Attack action on your turn to attack twice with your non-pact weapon using your  class feature.  Then, given the Two-Weapon Fighting rules, you use your bonus action to attack once using your pact weapon this time.  The  rules (PHB p. 195) state:     When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand.   But since your have the Thirsting Blade invocation, and you used the Attack action, you get to attack twice with your pact weapon.  The Thirsting Blade  (PHB p. 111) says:     You can attack with your pact weapon twice, instead of once, whenever you take the Attack action on your turn.   Does this combo work within the rules, or is there any interaction I'm not aware of? How to automatically add &raquo; (») to  elements using CSS? How do I center the text horizontally and vertically in a TextView, so that it appears exactly in the middle of the TextView in Android?