can´t compare String values correctly
How do I compare strings in Java?
Screen (not Lock Screen) Timeout Stuck at 1 Minute I recently got a new laptop (Lenovo T440p with Windows 8.1 Pro) and was having the following issue: the screen would lock (screen would go black and require a password to get back in) after 1 minute. I would prefer something more like 10 or 15 minutes. So, I tried the obvious changes (check the screensaver settings, power management settings for sleep, turning off the screen, etc.), with no success. I did, however, notice a rather odd behavior: if I changed the screensaver timeout from 1 minute to anything else (say, 15 mins), clicked OK, and re-opened the screensaver settings window, it would be back to 1 minute. Odd.  At that point, I turned to Google. I found posts ( in particular was helpful) suggesting all sorts of causes and resolutions:   If you have Cisco AnyConnect VPN client (which I did), try uninstalling it. I uninstalled, rebooted, no change. Open the User Accounts control panel and, on the left side of the screen, click Reset Security Policies. My User Accounts control panel, however, has no such link. Reboot into a repair console and run "sfc /scannow". It did indeed find and repair some issues, but didn't fix the screen timeout problem. Edit the Group Policy to force a particular timeout time; the setting showed up correctly (15 mins) in screensaver settings, power management settings, etc., but the screen would still go black and lock after 1 minute. In the registry, manually change the screensaver timeout and the "turn off the screen" timeout. No luck. Is it possible to do The Pitt without a slave outfit? Here is the problem setup  \begin{equation} \begin{array}{c} \text{min} \hspace{4mm}  \mathbf{b}^{T}_{}\mathbf{A}^{}_{}\mathbf{b}^{}_{} \\ s.t \hspace{5mm} \mathbf{b} \in \mathbb{R}^{N} \\ \hspace{9mm}b_0=1\\ \hspace{62mm}b_i=b_{i-2}b_{i-1} \hspace{5mm} \forall \hspace{5mm} 2&lt;i\leq N-1 \end{array} \end{equation}  where $\mathbf{A}$ is a $N\times N$ positive semi-definite matrix  To handle $b_0=1$ constrain, I know I can introduce Lagrange multiplier in objective function  \begin{equation} \begin{array}{c} \text{min} \hspace{4mm}  \mathbf{b}^{T}_{}\mathbf{A}^{}_{}\mathbf{b}^{}_{} + \lambda(\mathbf{b}^{T}_{}\mathbf{u}^{}_{}-1) \end{array} \end{equation}  where $\mathbf{u}_{}^{}$ is a $N\times 1$ column vector and $u_0=1$ and $u_i=0 \forall 1&lt;i\leq N-1$.  But I dont know how to handle second set of constraints?   EDIT: Example  Let $N=4$. Therefore I am looking for $\mathbf{b}=[b_0 \quad b_1 \quad b_2 \quad b_3]^T = [1 \quad b_1 \quad b_2 \quad b_1b_2]^T$. How do I include $b_3=b_1b_2$ constraint in objective function I'd like to find an analogue of  or any other fps counter on Ubuntu 12.10.  After some googling I found 2 solutions:   To use  (I found it from ). This solution didn't work for me because after launching the game:  mumble-overlay game   I got this error:  game: symbol lookup error: /usr/lib/mumble/libmumble.so.1: undefined symbol: glPopClientAttrib   And I didn't find any fix of this error in the WEB. To use WINEDEBUG=fps with osd_cat. It works only with  (only Windows games). Found from reading  and . It shows FPS during play but the output is definitely wrong - 0.15-0.18 fps. And it doesn't matter if game really runs slow or fast - the result is always the same.   Does anyone know how to fix these errors? Or are there any other solutions? Thanks for the help. \selectcolormodel{gray} doesn't work for the duck hair, but it works for the other parts of the ducks, why?  \documentclass{ltugboat}  \usepackage{microtype}  \usepackage{graphicx}  \usepackage{ifthen} \newboolean{grayscale}    \setboolean{grayscale}{true}% for the black &amp; white version    %\setboolean{grayscale}{false}% for the colored version     \usepackage{tikzducks} \usetikzlibrary{positioning}  \newenvironment{mytikz}{%     \begin{tikzpicture}     \ifthenelse{\boolean{grayscale}}{\selectcolormodel{gray}}{}      }     {\end{tikzpicture}}  \usepackage{ifpdf}  \ifpdf  \usepackage[breaklinks,hidelinks]{hyperref}  \else \usepackage{url} \fi   \begin{document}      Why \textbackslash\texttt{selectcolormodel\string{gray\string}} does not work for the duck hair?      Black and white version:          \begin{mytikz}         \begin{scope}[xscale=-1]             \duck[longhair=pink]         \end{scope}         \begin{scope}[xshift=10pt]             \duck[crazyhair=orange]         \end{scope}     \end{mytikz}      Colored version:     \setboolean{grayscale}{false}      \begin{mytikz}         \begin{scope}[xscale=-1]             \duck[longhair=pink]         \end{scope}         \begin{scope}[xshift=10pt]             \duck[crazyhair=orange]         \end{scope}     \end{mytikz} \end{document} I recently upgraded to Windows 8 from Win 7 64 bit and have started to encounter a strange issue. When I have any program running which plays sound, such as a game or spotify, after a random interval (usually around 5-10 minutes) the program sound will set itself really low.    If I Alt-Tab to the desktop and check the Mixer I can see that the Application volume has automatically set itself really low - the other volume levels (i.e. the Device speakers) stay the same.  I'm able to just set the application volume back to a reasonable level and it stays that way for another 5 - 10 minutes then goes quiet again.  My sound is Realtek High Definition Audio and my machine is an Acer Aspire 5738G if that helps in any way.  Any help much appreciated! 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) Unexpected voltage with switch turned off How many sequences of $n$ tosses of a coin that do not contain two consecutive heads have tails as the first toss? If you toss a coin $n$ times, there are $2^n$ possible sequences of heads and tails. Let $E_n$ be the set of sequences which do NOT contain two consecutive heads and $e_n$, the number of sequences in $E_n$.  Thus $E_3$ $=$ $\{$ $TTT$, $TTH$, $THT$, $HTT$, $HTH$ $\}$ and $e_3$ $=$ $3$.  How many elements of $E_n$ have $T$ as the first toss?  Please can anyone help me out here? Can you lose an ability if your reputation falls below a threshold? show that a distance function is continuous Restore All Databases Script I am migrating SQL Server DBs to a new instance.  I have been told that it is possible to dynamically build a RESTORE script from available backups in the system catalog.  Does anyone know of a sample script to do this?  Thanks! High Memory Usage on Linux Server Does editing still bump a question? Many times in the past I've edited a somewhat recent answer—say, from 30 minutes ago—and noticed that the concomitant question didn't bump to the top.  I just confirmed it with ; the question is currently sorted in the JavaScript page based on when it was asked, not my edit.  I've never made edits just to bump a question to whore rep—my original answer was wrong which was why I fixed it—but my understanding is that the CW self-edit trigger exists to prevent  edit-then-bump-then-score-rep—profit! activity.    If non-ancient edits no longer bump a question, should the self-edit CW trigger be brought inline with this?  Should an answer be made CW if you make 10 edits that actually bump the question?  and to avoid any implication of impropriety, I'm already capped on SO, so I'm not looking for any sort of "meta effect" on my answer Can we interchange the sentences " What's the date today?" and "what day is it today?"  In grammar is it correct to use these sentences interchangeably?  For example "What's the day today?" and "what date is it today?" $f$ differentiable except in $1$ point Assume we have a function $f : \mathbb{R} \rightarrow \mathbb{R}$ such that  $f$ is differentiable for all non-zero $x$, $f$ is continuous at $0$ and  $$\lim_{x \uparrow 0} f'(x) = \lim_{x \downarrow 0} f'(x) &lt; \infty. $$  Is it then true that $f$ is also differentiable at $0$?  If we drop the hypothesis that $f$ is continuous, this is not true since the signums function is a simple counterexample. But what if $f$ is continuous? I don't think this is true but I can't find a counterexample... Why can't we use double pointer to represent two dimensional arrays? How do I check if an object has a specific property in JavaScript? How do I check if an object has a specific property in JavaScript?  Consider:  x = {'key': 1}; if ( x.hasOwnProperty('key') ) {     //Do this }   Is that the best way to do it? "...would have trouble imagining...": Is this present participle or gerund? I would like to associate the last installed version of my Mac OS X application with a certain type of file. A little experimentation shows that the info.plist file seems to be read and interpreted by the operating system when launching the application, not when dragging the application bundle to the disk.  does not say much on that topic.  Is there any way, using a simple .dmg image as installation medium, to make sure the system associates that particular file type with my newly installed app without having to launch it first?  I should clarify that I want this to be done automatically during the installation (I don't want my users to have to do it themselves).