Troubleshooting java app
What are Java command line options to set to allow JVM to be remotely debugged?
Objects Not Showing in Other Workspace Viewports, Only Default How can I kill the Mirelurk Queen? "Speak to" vs. "Speak with" What are the differences between these two phrasal verbs and what are the best situations to use each? How to pass parameters to function in a bash script? I'd like to write a function that I can call from a script with many different variables. For some reasons I'm having a lot of trouble doing this. Examples I've read always just use a global variable but that wouldn't make my code much more readable as far as I can see.  Intended usage example:  #!/bin/bash #myscript.sh var1=$1 var2=$2 var3=$3 var4=$4  add(){ result=$para1 + $para2 }  add $var1 $var2 add $var3 $var4 # end of the script  ./myscript.sh 1 2 3 4   I tried using $1 and such in the function, but then it just takes the global one the whole script was called from. Basically what I'm looking for is something like $1, $2 and so on but in the local context of a function. Like you know, functions work in any proper language. There was the following paragraph in the article that came under the title, “GOP and the rise of Anti-knowledge” written by  (October 29, 2015):     “English unfortunately doesn’t have a precise word for the German   “Fachidiot,” a narrowly specialized person accomplished in his own   field but a blithering idiot outside it. In any case, a surgeon is   basically a skilled auto mechanic who is not bothered by the sight of   blood and palpitating organs. We need the surgeon’s skills on pain of   agonizing death, and reward him commensurately but that does not make   him a Voltaire.”    In Japanese we have a word, 専門バカ, of which literal translation is “specialist idiot” meaning exactly same as defined the above - a narrowly specialized person accomplished in his own field but a blithering idiot outside it.  I’m really curious about the absence of short descriptions of the specialist who knows nothing more than his specialty area in English like German “Fachidiot,” and Japanese "専門バカ."  Isn’t there really any short word counterpart to “Fachidiot,” specialist’s ignorance, for instance, in English?  P.S.  I found "narrow-minded specialisit" as a German-to-English translation of "fachidiot" in the web site, Interglot translation dictionary. What is aperture, and how does it affect my photographs? Plot $|z - i| + |z + i| = 16$ on the complex plane Plot $|z - i| + |z + i| = 16$ on the complex plane   Conceptually I can see what is going on. I am going to be drawing the set of points who's combine distance between $i$ and $-i = 16$, which will form an ellipse. I was having trouble getting the equation of the ellipse algebraically.  I get to the point:  $x^2 + (y - 1) ^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} + x^2 + (y+ 1)^2 = 256$  $2x^2 + 2y^2 + 2\sqrt{x^2 + (y - 1)^2}\sqrt{x^2 + (y + 1)^2} = 254$  It seems like I'm and doing something the hard way. Zariski Tangent Space and $k[\varepsilon]/\varepsilon^2$ Let $X$ be a scheme over a field $k$, and let $x\in X$ be a rational point, that is, we have $k(x):=\mathcal{O}_x/\mathfrak{m}_x\cong k$.  Let $\alpha:\mathfrak{m}_x/\mathfrak{m}_x^2\rightarrow k$ be an element of $T_x=(\mathfrak{m}_x/\mathfrak{m}_x^2)^*$, the Zariski tangent space to $X$ at $x$.  Using $x$ and $\alpha$, I'd like to define a $k$-morphism of schemes Spec $k[\varepsilon]/\varepsilon^2\rightarrow X$.  In the course of the construction, I need to define a local map of local rings $\mathcal{O}_x\rightarrow k[\varepsilon]/\varepsilon^2$.  Using $\alpha$, what is a natural way to define such a map?  It might be helpful to note that I have an injection $k\hookrightarrow\mathcal{O}_x$ arising from the $k$-scheme structure on $X$.  I think this leads to a decomposition $\mathcal{O}_x/\mathfrak{m}_x^2=k\oplus(\mathfrak{m}_x/\mathfrak{m}_x^2)$ as $k$ vector spaces, from which the desired map would follow, but I can't seem to explicitly see what this decomposition is inside of $\mathcal{O}_x/\mathfrak{m}_x^2$.  This is part of exercise II.2.8 in Hartshorne. "In a while" vs. "for a while" How was Dumbledore able to defeat Grindelwald, since Grindelwald had the Elder Wand? Using OpenSUSE leap 15.1 10.2.29-lp151.2.9.1-x86_64 from vendor OpenSUSE (installed)  CREATE TABLE testtab2(     my_id2 INT AUTO_INCREMENT,     name2 VARCHAR(10),     comment2 VARCHAR(20),     PRIMARY KEY (my_id2) );   testtab.txt:  |Roger |hurray   | |George|today    | |Paul  |yesterday| |John  |last year| |Ringo |tomorrow |   LOAD DATA LOCAL INFILE 'testtab.txt' INTO TABLE testtab FIELDS TERMINATED BY '|';   works fine with linenumbers (my_id) 1-5  INSERT INTO testtab (name,comment) VALUES ('Beatles','band');   this gets linenumber (my_id) 8 - should be 6.  If testtab.txt have 8 records and using INSERT INTO 1 record this gets linenr (my_id) 16. This happens in other tables too - one moved from 199 to 256.  Anyone who can solve the problem? How do you persuade an organization to value UX? UX is such an underrated field in a lot of industries. I wonder how companies consider employing UX designers and even heavily valuing their suggestions. Some big companies happen to see the light and invest in UX, and that keeps them on top of others. However, UX people rarely make it to the top management. In Don Norman's talk (  ), out of so many UX people (I don't know exactly), only two were vice presidents. I assume that there are even less influential UX designers in developing countries, and that's what makes it even harder for people like me. In the same talk, Don Norman suggested that UX designers should approach their executives like marketing people, showing how investing in something will affect profit. Perhaps, it's the best thing to do but it has to be mastered for it to be executed successfully.   I'm a fresh grad and am looking for a job. I think, working for a company with a more conventional job description would be the way to go. When I'm already influential enough, I'll go up to the executives and show them how UX will improve sales (in whatever industry it is. I just want to do UX)  Do you do UX as consultants or are you employed? How do you persuade companies to invest in UX? Are you lucky enough to be employed by people who you didn't have to persuade to value UX? A few months ago I set full disk encryption during installation of Ubuntu 17.10. Now, I've decided to upgrade. The upgrade ran to the end without any problems. However, after reboot I am not able to log into my encrypted disk.  Where can be the problem? I am 100% sure I press the "right keys" on the keyboard, but technically I don't know what I am writing because of "*" characters and maybe after upgrade my keyboard layout changed. I use some characters which might be somewhere else on the keyboard. What language is default after upgrade?   By the way, I've already tried Caps-lock, but still no luck.  Help will be really appreciated. I am not a fan of installing my system and all backups over and over again. This time when I used certbot it created a certificate for "www.$website" instead of $website. This is not what I need.  Here it is:    $ website="my_website123.com"   $ sudo certbot certonly --standalone -d $website -d www.$website --email admin@$website              Saving debug log to /var/log/letsencrypt/letsencrypt.log   Plugins selected: Authenticator standalone, Installer None   Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org   Cert not yet due for renewal    You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.   (ref: /etc/letsencrypt/renewal/www.my_website123.com.conf)    What would you like to do?   -------------------------------------------------------------------------------   1: Keep the existing certificate for now   2: Renew &amp; replace the cert (limit ~5 per 7 days)   -------------------------------------------------------------------------------   Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2   Renewing an existing certificate   Performing the following challenges:   http-01 challenge for my_website123.com   http-01 challenge for www.my_website123.com   Waiting for verification...   Cleaning up challenges    IMPORTANT NOTES:    - Congratulations! Your certificate and chain have been saved at:      /etc/letsencrypt/live/www.my_website123.com/fullchain.pem      Your key file has been saved at:      /etc/letsencrypt/live/www.my_website123.com/privkey.pem      Your cert will expire on 2018-10-18. To obtain a new or tweaked      version of this certificate in the future, simply run certbot      again. To non-interactively renew *all* of your certificates, run      "certbot renew"    - If you like Certbot, please consider supporting our work by:       Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate      Donating to EFF:                    https://eff.org/donate-le   Why did it create one for "www" instead of the bare domain?   On all my own servers this exactly command has always created a cert. without "www" - this is what I need. I even tried yesterday on a different server -- without "wwww".  How can I make it create a cert. without "www"? Is "bared fruit" grammatical? Am I the only one whos athletic career bared fruit?    Is this sentence correct grammatically? What happens with No-Maj-Borns? In the Harry Potter series, lots of Muggle parents are introduced to the wizarding world because of their magical children. This is seen with Hermione's parents visiting Diagon Alley and various other moments.   In the 1920s USA world that has been created, rules about fraternising with No-Majs are very strict. Is there any evidence in any of the Pottermore articles or recently published film tie-ins which explain what happens with magical children born to No-Majs around this time? (Clearly certain events in the film suggest that they may have no procedure and that there can be side-effects of this - but I feel that those events must be rare!) What features differ between the Xbox 360 and PC versions of Minecraft? What differences does the Xbox 360 version of Minecraft have compared to playing on the PC? To clarify - I'm concerned more about the differences exclusive to each platform, not just differences of features that will probably be added in future updates (for example, crafting). Otherwise, I feel this question could be compared to &quot;What is the difference between Minecraft version x and version y&quot;, which isn't what I'm asking. "dev/sda1: clean, ..." This message appears after I startup my laptop, then it won't continue booting dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks   After I turn on my laptop this message appears. The system never boots, the message just stays there. I'm still making my way along in Niven's Intro to Number Theory, and the title problem is giving me a little trouble near the end, and I was hoping someone could help get me through it.  Now $x^8\equiv 16\pmod{2}$ is solvable with $x\equiv 0\pmod{2}$, so I assume $p$ is an odd prime. From a theorem earlier in the text,      If $p$ is a prime and $(a,p)=1$, then the congruence $x^n\equiv a\pmod{p}$ has $(n,p-1)$ solutions or no solution according as $a^{(p-1)/(n,p-1)}\equiv 1\pmod{p}$ or not.   So since $(16,p)=1$, the problem reduces to showing that $16^{(p-1)/(8,p-1)}\equiv 1\pmod{p}$ holds for all $p$. I note that $(8,p-1)$ can only take values $2,4,8$. For $2$, the above equivalence is then $4^{p-1}\equiv 1\pmod{p}$, which is true by Fermat's little Theorem. For $4$, it is then $2^{p-1}\equiv 1\pmod{p}$, which again holds by FlT. However, the case where $(8,p-1)=8$ is throwing me off. At best I see that $16^{(p-1)/8}\equiv 2^{(p-1)/2}\pmod{p}$, but I'm not sure how to show this is congruent to $1$ modulo $p$. Maybe there's a more elegant way to do it without looking at cases. Thanks for any insight. Let $A,B$ be any two sets. I really think that the statement $|A|\leq|B|$ or $|B|\leq|A|$ is true. Formally:     $$\forall A\forall B[\,|A|\leq|B| \lor\ |B|\leq|A|\,]$$   If this statement is true, what is the proof ?