How will leaving a computer to run overnight affect my CPU,Battery,iGPU,RAM,HDD?
Is it safe to have laptop turned on 24/7?
Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"? The following are two methods of building a link that has the sole purpose of running JavaScript code. Which is better, in terms of functionality, page load speed, validation purposes, etc.?    function myJsFunc() {     alert("myJsFunc"); } &lt;a href="#" onclick="myJsFunc();"&gt;Run JavaScript Code&lt;/a&gt;     or    function myJsFunc() {     alert("myJsFunc"); }  &lt;a href="javascript:void(0)" onclick="myJsFunc();"&gt;Run JavaScript Code&lt;/a&gt; I see you have succussfully answered this question previously but it is not specific to my system.  I have downloaded your file and created the relevant dump file but I don't know how to analyse it. Can I upload it to you for some advice please? I want to have a vector with a superscript:  \vec{o}^t   But this gives very bad results: the t is overlapping with the vector arrow. How do I fix this (and why does this give bad results in the first place) ? I already have the pink and red leather gloves, the armor, the crown, and the monkey's staff (and they're all enchanted). Regardless of how many health potions I use, I always die. Help! How to Prevent the System.QueryException I am getting "Error System.QueryException: List has no rows for assignment to SObject".   Line 1: Account ac = [select id from Account where name='testaccount' limit 1] Line 2: if(ac != null) {           //do something         }   I got the above error in line 2 if there is no record.   Any help? RedirectMatch and Query String Compare these two RedirectMatch's. The first doesn't work: RedirectMatch 302 ^/redirect\.php[?]page=(.+)$ http://somewhereelse.com/$1  Versus this, which will redirect to http://somewhereelse.com/?page=wherever: RedirectMatch 302 ^/redirect\.php([?]page=.+)?$ http://somewhereelse.com/$1  Does RedirectMatch only match the URI and not the query string? Apache's documentation is a bit vague in this area. What I'm trying to do is extract the page query parameter and redirect to another site using it. Is that possible with RedirectMatch or do I have to use RewriteCond + RewriteRule? Server login attempts NOT blocked after configuring fail2ban So, I installed (and configured) fail2ban on three Ubuntu VPS servers. I configured (imo) a maximum of 3 failed login attempts (via Putty as root) within 2 minutes. Then I restarted the fail2ban service (according to ).    But when I look at my auth.log files in /var/log/ I still see 4, 5 or more failed attempts from certain IP's. So obviously I did something wrong as the IP is not blocked after 3 failed attempts.   It might have to do something with iptables, but that's where it gets a bit "foggy" for me..   Not sure how to setup a max-three-failed-login-attempts rule..  Additional: I see that the login attempts mostly have different ports for every attempt. Does that influence the count to max-three?  Because I see a port being "poked" twice and then no more attempts. Then the IP tries a different port (again 2 times). (all bots of course) How do I disable the profiles button in Chrome? Since Chrome version 38, there's a pretty ugly button in the title bar of the Chrome window that allows you to switch profiles quickly.  Since I'm the only one that uses my computer, this is not really useful to me, and I'd rather reclaim the space for more open tabs.  I've looked in the settings but don't see a way to disable it.  How can I get rid of the button? What is the type of string literals in C and C++? call function declared below Is it possible to call a function which is declared below in bash?  Example  if [ "$input" = "yes" ]; then     YES_FUNCTION elif [ "$input" = "no" ]; then     NO_FUNCTION else     exit 0; fi  YES_FUNCTION() {   .....   ..... }  NO_FUNCTION() {   .....   ..... } Evaluating $\int_{0}^{1} dx\frac{\log(1+x)}{1 + x^2}$ Possible Duplicate:          $$\int_{0}^{1} dx\frac{\log(1+x)}{1 + x^2}$$  I am having a hard time deriving the answer, $\frac{\pi}{8} \log(2) $.  I have tried Taylor expansion of both numerator and denominator, both seem too complicated and fruitless. I am monitoring the number of pages indexed by Googlebot for one of my websites .  I noticed that since last week, the number of pages has dropped by about 60 or so. Now to be fair, I have not added that much over the last week. (Actually I don't think I added any new content.) But at the very least, I would have thought that the number of indexed pages would be static (if I was not adding anything new.)  I don't understand why the numbers have dropped.  Does anyone have an official explanation for this?. I have checked the Google Webmaster Tools, and have not come across anything that addresses this issue directly. #!/bin/bash - no such file or directory I've created a bash script but when I try to execute it, I get   #!/bin/bash no such file or directory   I need to run the command: bash script.sh for it to work.  How can I fix this? I am totally new to Linux, servers and websites. I recently set up Apache2, Python, PHP, and MySQL for setting up a LAMP server. I am using Xubuntu 16.04 and PHP 7.0.11. I followed a guide and placed a PHP file named testing.php in it with:  &lt;?php phpinfo(); ?&gt;    It doesn't show anything on localhost/testing.php All it shows is the code itself. What Did Lyanna Stark Say to Ned Stark? In the final episode of season 6 we see that Lyanna Stark is whispering something to Ned. What is she saying? About an Hour ago, I faced a problem and tried different ways to solve it.  At last I was going to post my Question on Stack Overflow, but the last trick which came in my mind worked, and the problem got resolved.    Now, if I want to post that problem on Stack Overflow with the solution which worked for me, for the purpose to help other newbies to get their answer if they face the same problem, what is the proper way of posting such solution to a problem? Nignx - worker_connections are not enough When using Alt+Tab, I can't seem to get back to Skyrim. When clicking its icon or Alt+Tab to get back, I just see an empty window. Windowed mode doesn't allow me to use it in a Windowed (Fullscreen) manner as seen with other games, so that doesn't seem to be an option either. Is there any way to fix this behavior? Deleting Individual SE Accounts Is there a non written rule to which person to use in the PhD thesis, 5 years of using "We" in the papers have brought me to the innate necessity to do it every time I describe something.  Recently, though, one of my lab-mates told me that I should use I, since it is your work, if the thesis were co-written, then it would be a different story.  Is there any standard in your universities, or do you have any preferred practice.