Simplify several boolean conditions java
Test if a string contains any of the strings from an array
How to both display a command line's output on console and save the output into a text file? How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ? Differential Equations: solve the system Solve the following system:   $$dx/dt=-.2(y-2)$$ $$dy/dt=.8(x-2)$$  This is what I have so far, but I got stuck.. $$\begin{eqnarray} dx/dt&amp;=&amp;-.2y-.4\\ x'&amp;=&amp;-.2y-.4\\ x'+.4&amp;=&amp;-.2y\\ y&amp;=&amp;-x/2'-2\\ y&amp;=&amp;-x''/2-2\\ \\ dy/dt&amp;=&amp;.8(x-2)\\ dy/dt&amp;=&amp;.8x-1.6\\ y'&amp;=&amp;.8x-1.6\\ -x''-2&amp;=&amp;.8x-1.6\\ -x''&amp;=&amp;.8x+.4\\ x''+16x+.8&amp;=&amp;0 \end{eqnarray}$$  when I used the quadratic formula I got stuck. Is this correct so far? Can someone finish it off for me? I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily? How do I concatenate const/literal strings in C? I'm using Bash on both client and server. When running a command over SSH:   ssh &lt;host&gt; 'declare' gives a list of shell variables. ssh &lt;host&gt; 'mount' gives a list of mountpoints.   However, declare is a Bash builtin, while mount is an external command. How does SSH know which to run if there is a shell builtin and an external command with the same name on the server? Using "you" and "your" as a representation for yourself and everyone in general Example sentence:     I love when your dog just lets you sit there to pet them. You don’t necessarily know if they are enjoying it, but they love you enough to just sit there with you for a bit.   Is this correct? We assume the words "you" and "your" refer to the speaker of the sentence, and not to the listener, as second-person usually does. But it also refers to dog owners in general. I have always been curious about this. Why is the Star Trek 2009 reboot called a reboot? This is in Windows, but answers for other operating systems can be handy to others.  Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad".  This works fine for decimal codes (like 65 for 'A'), but not for  codes (like  for 'A').  Some applicatons provide other facilities that will allow hexadecimal Unicode character codes to be typed and then transformed.  Word allows you to type the code (such as 200f) and then convert it to Unicode by typing Alt-X.  I'm looking for a general method of doing this that will work with the standard input. Can a concentration spell be cast without actually concentrating on it for an "instant" effect? The book says:     Concentration. Some spells require you to maintain concentration in order to keep   their magic active. If you lose concentration, such a spell ends.   So what happens if, for example, you are already concentrating on a spell, and cast Witch Bolt without concentrating. Would you get the initial arc of blue energy, or would it not even go off?  I am asking if you can cast a spell that says concentration without concentrating for an immediate effect. This would be useful to avoid interrupting your existing concentration. In essence, if you are concentrating on thing A (doesn't have to be a spell since other things need concentration), can you cast a concentration spell getting an immediate effect without losing concentration on thing A?  Since the definition of concentration is to keep the spell active (meaning it is already active) I would think that you would get the initial effect (if it had one) without the need to concentrate on it. How would I import/export Blender's preferences? I constantly stay up to date with each new release of Blender, but this means my preferences are wiped clean each time. How do I export/import these preferences to avoid loosing my carefully crafted set up each time? I have 14" 16:9 notebook and would like my Windows 10 taskbar have on the (left) side. Unfortunately, although I set it to small icons the bar is pretty wide. Do not you know how to make it thinner?  This is how I would like to have it: how to represent geography or zip code in machine learning model or recommender system? I am building a model and I think that geographic location is likely to be very good at predicting my target variable.  I have the zip code of each of my users. I am not entirely sure about the best way to include zip code as a predictor feature in my model though.  Although zip code is a number, it doesn't mean anything if the number goes up or down.   I could binarize all 30,000 zip codes and then include them as features or new columns (e.g., {user_1: {61822: 1, 62118: 0, 62444: 0, etc.}}.  However, this seems like it would add a ton of features to my model.   Any thoughts on the best way to handle this situation? I'm setting up an Nginx web server and and want to perform load balancing using the round robin method.  This is what I have found thus far:  upstream backend  {    server backend1.example.com;    server backend2.example.com;    server backend3.example.com; }   According to the page they says i need to add the above lines to my nginx.conf file and upload it to server to load balance.  I do not understand what it means by server backend3.example.com;.  How do I setup a backend instance? Can one construct a non-measurable set without Axiom of choice? Is axiom of choice required to show the existence of non-measurable sets? Is there a Lebesgue non-measurable set that can be constructed without axiom of choice?  Related question on MO says it is consistent: Units and Nilpotents Set up a scheduled job? File l3backend-pdfmode.def not found when loading expl3 I updated my TeXlive distribution a couple times in the past week, and now I get this error when I include package expl3 (or any other package that includes it, such as fontspec). Before the updates it was working fine. Am I missing any package that should be installed? I tried searching for l3backend-pdfmode.def, but I found no results.  \documentclass{article} \usepackage{expl3} \begin{document} Hi \end{document}   λ lualatex a This is LuaTeX, Version 1.10.0 (TeX Live 2019)   restricted system commands enabled. (./a.tex LaTeX2e &lt;2018-12-01&gt;  luaotfload | main : initialization completed in 0.042 seconds (/opt/texlive/2019/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/opt/texlive/2019/texmf-dist/tex/latex/base/size10.clo)) (/opt/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty (/opt/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex)  ! LaTeX Error: File `l3backend-pdfmode.def' not found.  Type X to quit or &lt;RETURN&gt; to proceed, or enter new name. (Default extension: def)  Enter file name:  ! Emergency stop. &lt;read *&gt;   l.282   }   379 words of node memory still in use:    2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 4 attribute, 48 glue_spec, 4 attrib ute_list, 1 write nodes    avail lists: 2:9,3:3,4:1,5:2,7:2,9:2 !  ==&gt; Fatal error occurred, no output PDF file produced! Transcript written on a.log. What if I accidentally run command "chmod -R" on system directories (/, /etc, ...) I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back? How do they express the time, in American and British English? Reference Text that develops Linear Algebra with Knowledge of Abstract Algebra Background: Due to some unfortunate sequencing, I have developed my abstract algebra skills before most of my linear algebra skills. I've worked through Topics in Algebra by Herstein and generally liked his approach to vector spaces and modules. Besides a very elementary course in linear algebra (where most of the time went towards matrix multiplication), I have not developed any other linear algebra skills.  But it seems that it is now necessary for me to do so. Most of the topics that I am looking at now require some background of linear algebra and I still lack understanding of ideas like: bilinear forms, invariant subspaces, eigenvalues, requirements for diagonalization of a matrix and so forth.  This brings me to my question (provided there are any)     Question: What are some good texts that develop the theory of linear algebra from a perspective of general algebra?   Are there any texts that develop the key (elementary) ideas of linear algebra in an abstract setting? Thank you for the help!