Remove Deplicate Strings from array in java
Removing duplicate strings from an array?
How to find stopping distance of a car? What free/open source image design programs can you recommend? Are there any free/ open source image designing programs that you can recommend? Why is charge of the electron negative? How can I cure lycanthropy? I really want to get rid of it. I've been through the whole companion’s quest line and cured Kodlak's. I killed all 5 witches and have 4 of the heads left in my inventory.  I've been back to that same flame and tried to use it with the head, but nothing going; activating it does nothing. I've heard this is how you cure it; however I have not heard a first-hand account of anyone actually curing it.  If you have, can you explain what you do? Do you go to the same tomb where you fought Kodlak's beast form? Do you do something special with the witch head in your inventory, or just have it in there and activate the harbinger flame or whatever? Too many requests? I went to stackexchange.com and clicked on SO.  After a few minutes I got a message saying "We have detected too many requests from this IP.  If this is an error contact us."  That was the second SE page I tried to visit.  Second only to SE.com  I moved to another machine and it's working now.  The first machine usually works, I don't know if a got assigned a blacklisted IP or what.  Anyone know what's going on?  EDIT: I would really rather not post my IP on the web, but if a diamond or dev asks I'll email it.  EDIT 2: I looked at badp's dupe suggestion and can verify that I have no scripts frequently calling SO. I have two expressions of type Expression&lt;Func&lt;T, bool&gt;&gt; and I want to take to OR, AND or NOT of these and get a new expression of the same type  Expression&lt;Func&lt;T, bool&gt;&gt; expr1; Expression&lt;Func&lt;T, bool&gt;&gt; expr2;  ...  //how to do this (the code below will obviously not work) Expression&lt;Func&lt;T, bool&gt;&gt; andExpression = expr AND expr2 running a bash file states:date: command not found I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a file nameto display correct and create it before I start running the program (I like my debug stuff).  However, here is my bash script:    #!/bin/bash  PATH="/var/log/servers/Game/"  FILENAME="startup"  EXT=".log"  DATE=$(date +%d-%m-%Y)  NEWFILE=${PATH}${FILENAME}_${DATE}${EXT}   I have verified that the file does exist in the PATH directory. However, the issue is with the date command. When I run the script bash -x game.sh this is what is displays.   + PATH=/var/log/servers/Game/  + FILENAME=startup  + EXT=.log  ++ date +%d-%m-%Y  game.sh: line 5: date: command not found  + DATE=  + NEWFILE=/var/log/servers/Game/startup_.log  + echo /var/log/servers/Game/startup_.log   I don't understand why it would say the command doesn't work, when I can go to the main console and run date and get a valid response.  Any help is greatly appreciated! What's a word like "disregard" or "bypass" that means "hides"? Is there a standard naming convention for XML elements? Is there any standard, de facto or otherwise, for XML documents? For example which is the "best" way to write a tag?  &lt;MyTag /&gt; &lt;myTag /&gt; &lt;mytag /&gt; &lt;my-tag /&gt; &lt;my_tag /&gt;   Likewise if I have an enumerated value for an attribute which is better  &lt;myTag attribute="value one"/&gt; &lt;myTag attribute="ValueOne"/&gt; &lt;myTag attribute="value-one"/&gt; Will Area 51 be supported in the app? I want to add a comma in the thousands place for a number.     String.Format()? How can I kill minerd malware on an AWS EC2 instance? (compromised server) I found malware on my ec2 instance which was continuously mining bitcoin and using my instance processing power. I successfully identified the process, but was unable to remove and kill it.  I ran this command  watch "ps aux | sort -nrk 3,3 | head -n 5"  It shows the top five process running on my instance, from which I found there is a process name 'bashd' which was consuming 30% of cpu.  The process is   bashd -a cryptonight -o stratum+tcp://get.bi-chi.com:3333 -u 47EAoaBc5TWDZKVaAYvQ7Y4ZfoJMFathAR882gabJ43wHEfxEp81vfJ3J3j6FQGJxJNQTAwvmJYS2Ei8dbkKcwfPFst8FhG -p x   I killed this process by using the kill -9 process_id command. After 5 seconds, the process started again. I am afraid that listing doesn't support javascript.  \begin{lstlisting}[language=javascript] ... \end{lstlisting}   What am I doing wrong? Finding first and last index of some value in a list in Python Geometric random variables $X_1:G(p_1)$ $X_2:G(p_2)$ $X_3:G(p_3)$ are independent, prove the following : Nginx sslv3 poodle disable I tried setup SSL cert without SSLv3 in my nginx, but SSL Labs say, my server have SSLv3 how to disable it.   My config:      add_header Strict-Transport-Security max-age=31536000;     add_header X-Frame-Options DENY;      ssl_session_cache shared:SSL:10m;     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;     ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:EDH+aRSA+SHA256:EDH+aRSA:EECDH:!aNULL:!eNULL:!MEDIUM:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!RC4:!SEED";     ssl_prefer_server_ciphers on;     add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains'; I am trying to customize the legend for this graph. First of all, I would like the legend width to be equal to the x-axis width. At the moment, I am setting the width of the legend via      /tikz/every even column/.append style={column sep=1.0cm}   and I could manually adjust this value so that length equals the x-axis width, but I guess that there is a more elegant way to set the width of the legend.  Second, I don't really like the little color rectangles in the legend. I only want one rectangle in front of every entry and not two. This rectangle does not need to have a border and should be vertically centred with the text. The alignment seems to be okay for the rectangle closer to the text, but not for one the far left.   Update: Thanks to Christian Feuersänger's comment, there is possibility to change the rectangles via   legend image code/.code={%     \draw[#1, draw=none] (0cm,-0.1cm) rectangle (0.6cm,0.1cm);   or what Gonzalo Medina proposed  legend image code/.code={%     \draw[#1, draw=none, /tikz/.cd, bar width=3pt, yshift=-0.2em, bar shift=0pt] %     plot coordinates {(2*\pgfplotbarwidth,0.6em)};   Third, I would like to the legend entries to start next to the text "Legend:".  I don't really know if with these requirements it still makes sense to use legend or if it would be better to add everything manually via after end axis/.code and \ref{label}.  Graph    MWE  \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{document} \begin{tikzpicture}     \begin{axis}[                 ybar,                 height=6cm,                 title={Some plot},                 width=12cm,                 axis on top,                 y axis line style={opacity=0},                 axis x line*=bottom,                 tick align=inside,                 tick style={draw=none},                 xtick=data,                 ymajorgrids,                 major grid style={draw=white},                 xtick={1,2,3,4},                 legend style={                     at={(0.0,-0.15)},                     anchor=north west,                     legend columns=-1,                     /tikz/every even column/.append style={column sep=1.0cm}                         },             ]                    \addlegendimage{empty legend}             \addlegendentry{\textbf{Legend:}}                                \addplot coordinates {                 (1, 0.2064)                 (2, 0.3961)                 (3, 0.5961)                 (4, 0.7961)}; \addlegendentry[text width=45pt, text depth=]{legend a}             \addplot coordinates {                 (1, 0.3064)                 (2, 0.4961)                 (3, 0.6961)                 (4, 0.8961)}; \addlegendentry[text width=65pt, text depth=]{lengend b}     \end{axis}  \end{tikzpicture} \end{document} There's vs There are For example:     There's two options here   or     There are two options here   I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use "there are"? Flatten an irregular list of lists Why are the energy levels of a simple harmonic oscillator equally spaced? The energy level of a simple harmonic oscillator is $E_n=(n+\frac{1}{2})\hbar\omega$. Is there any physical explanation why these levels are equally spaced ($= \hbar\omega$)?  Maybe this  can be helpful.