I upgraded to Ubuntu 14.10 from 14.04 LTS about a month ago. I have my computer encrypted already, so I have to put a password in when starting up my computer. But I also have to login each and every time. This seems redundant to me. How can I make my computer auto login?
I've tried to setup an autologin, but that isn't possible, because my home is encrypted. What are the reasons for this?  PS. Here I have described my problem: .
Extremizing sum and difference of lengths using triangle inequality We have three points $P=(2,3)$, $Q=(4,-2)$ and $R=(\alpha,0)$. We need to find the value of $\alpha$ such that:    Part 1: $|PR+QR|$ is maximized.  Part 2: $|PR-QR|$ is minimized.  I have  the solution for both. I have understood the solution for case 1 but not for case 2.  Case 1's solution :    Case 2's Solution:   I have understood case 1 completely but in case 2 why was there a need to take the image of point Q? I fail to understand this. 3 Statements of axiom of choice are equivalent This winter I started to study much harder the set theory and especially the axiom of choice. Unfortunately, I have problems with solving the next exercise:  Prove that the 3 statements of the axiom of choice are equivalent :  1) For any non-empty collection $X$ of pairwise disjoint non-empty sets, there exists a choice set.  2) For any non-empty collection $X$ there is a choice function.  3) For any non-empty set $X$, there exists a function $f:P(X)\setminus\{\varnothing\}\to X$ so that for any non-empty set $A\subseteq X$, $f(A) \in A$. How do I find out which version and derivative of Ubuntu is right for my hardware in terms of minimal system requirements? For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements? How to filter features in a layer? I am trying to display certain features in a shapefile-based layer using QGIS. I have found the subset function in the properties panel, which does exactly what i want, but is too tedious given that I have to manually sift through a large number of features. Is there a quicker way to do this?  I am using both shapefiles and postGIS best,  dietmar Chapterwise page range in the TOC Can you give me some advice for how to obtain the following format of the TOC?        Chapter’s heading 1-7   Chapter’s heading 9-10   Chapter’s heading 11-15 Additive group contains exactly three elements of the set $\{p,p+q,pq,p^q,q^p\}$ Let $p$ and $q$ be distinct primes. There is a proper subgroup $J$ of the additive group of integers which contains exactly three elements of the set $\{p,p+q,pq,p^q,q^p\}$. Which three elements are in $J$?  I know the solution is $\{p,pq,p^q\}$. However I do not understand why. I thought $J$ can not even be a finite group. Maybe there is serious misunderstanding of the problem. Can anyone give me a hand? Thanks. Installing Ubuntu after Windows 10 How can I install Ubuntu on Windows 10 as dual boot? I have a DVD with Ubuntu and when I tried to install Ubuntu I had a warning that the hard disk will be erased. How can I install Ubuntu and keep my Windows 10? Thanks Clearing NSUserDefaults I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to delete these values permanently instead of just setting them to a default value? What is the difference between "owing to" and "due to"? "Due to" seems more common than "owing to" in modern English. Is "owing to" simply an old-fashioned way of saying the same thing, or is there a rule to using it? Way to go from recursion to iteration I've used recursion quite a lot on my many years of programming to solve simple problems, but I'm fully aware that sometimes you need iteration due to memory/speed problems.  So, sometime in the very far past I went to try and find if there existed any "pattern" or text-book way of transforming a common recursion approach to iteration and found nothing. Or at least nothing that I can remember it would help.   Are there general rules? Is there a "pattern"? I think the title says it all. I can't see any reason employers have to incentivize employees to contribute to their 401(k) evenly throughout the year. Instead couldn't they use a relatively simple formula that is based on how much of their income the employee has contributed to their 401(k) thus far for the year? If that or their current contribution is over the threshold, they get the match this pay period, even if they didn't contribute anything.  EDIT: To clarify, my employer matches 100% of the first 3% of my contribution and 50% of the next 2%. The match is added every pay period along with my contribution. I am pretty sure there is no "true-up" feature, so if I were to hit the $17.5K limit early, and not be able to contribute at least 5% of my salary, I would not get the full match. So I have to be careful to make my contributions evenly throughout the year to get the maximum match. Just trying to figure out my employer's motivation for requiring this. VirtualBox 5.0.40 crashes the whole host since update to kernel 4.13.0-26-generic I received the updates through normal Software Updater, 10-Jan-2018. After this VirtualBox would not start any VM, complaining about dkms and asking to make modprobe vboxdrv. Following the advice I reinstalled virtualbox-dkms with:  sudo apt-get --reinstall install virtualbox-dkms   After this and a reboot I tried to start a VM which freezed the whole machine and a hard reboot was necessary.  Is there a way to make VirtualBox work with the latest kernels?  EDIT:  As suggested by N0rbert, the command:  apt-cache policy `dpkg -S VirtualBox | head -n1 | sed -e 's/://g' | awk '{print $1}'`  gives:   virtualbox-qt:   Installed: 5.0.40-dfsg-0ubuntu1.16.04.2   Candidate: 5.0.40-dfsg-0ubuntu1.16.04.2   Version table:  *** 5.0.40-dfsg-0ubuntu1.16.04.2 500         500 http://fr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages         100 /var/lib/dpkg/status      5.0.18-dfsg-2build1 500         500 http://fr.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages   EDIT (on 29-Mar-2018): Issue is resolved for me, with the Ubuntu Ubdate from today. I have seen that it had some virtualbox-updates, therefore I tried to boot with the most recent kernel again. Then I had to run  sudo apt-get --reinstall install virtualbox-dkms  And after this my virtual machines in VirtualBox started working without crashing the whole computer. Finally! What's the difference between the snap folder in /home/&lt;UserName&gt; and the snap folder in root (/)?  I'm trying to get a grasp on where programs and their files are stored when you install them.  The first and only program I have installed on my machine is Spotify.    I noticed that there were two spotify folders within two separate snap folders.  One in the home directory and one in the root directory.    Questions   Why are there two snap folders? Why are there two spotify folders? Are they different in any way (the snap and spotify folders)?     NOTE: I installed Spotify via the Ubuntu Software application, not via the Terminal. How am I supposed to install El Capitan on a new SSD without recovery partition? "'Hello', says he. 'Hello', says I" — is this correct? I'm reading a novel in which once in a while a character says something like "I are", "He do", and similar stuff. I understand the author is just reproducing the way people talk on the streets.  However I've found a piece of text of which I'm not sure if it's proper English. One of the characters, who almost always speaks proper English, is reproducing a conversation that happened many years ago using the present tense in the following manner:     I was with this guy and "Hi", says he, "how are you", says I...   and so on.  My question is if the "says I" is proper English (a special case in which "I" is treated as a third person because we are relating in present tense something that happened in the past) or it's just kind of slang.  I was also a bit surprised by how the usual order is switched ("says he" instead of "he says") but to me it's secondary to the "says I" issue. I have a Lenovo T570 with Xubuntu 18.04 LTS. My current issue is that my cpu speed stepping is kind of going nuts and does what ever it thinks its best.  Sample: when I run my IDE and cpu load increases during build time, the governor changes automatically. I caught the moment during compiling my project with the following call:  martin@martin-ThinkPad-T570:~$ while cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor; do sleep 1; done powersave powersave performance performance   cpufreq-info tells me this:  martin@martin-ThinkPad-T570:~$ cpufreq-info  cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0:   driver: intel_pstate   CPUs which run at the same hardware frequency: 0   CPUs which need to have their frequency coordinated by software: 0   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.25 GHz. analyzing CPU 1:   driver: intel_pstate   CPUs which run at the same hardware frequency: 1   CPUs which need to have their frequency coordinated by software: 1   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.36 GHz. analyzing CPU 2:   driver: intel_pstate   CPUs which run at the same hardware frequency: 2   CPUs which need to have their frequency coordinated by software: 2   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.26 GHz. analyzing CPU 3:   driver: intel_pstate   CPUs which run at the same hardware frequency: 3   CPUs which need to have their frequency coordinated by software: 3   maximum transition latency: 4294.55 ms.   hardware limits: 400 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 3.50 GHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 3.36 GHz.   Please take a look at     current policy: frequency should be within 3.50 GHz and 3.50 GHz.       The governor "performance" may decide which speed to use   Afterwards to go back to powersave I use my little script:  martin@martin-ThinkPad-T570:~$ cat cpu_freq_save.sh  #!/bin/bash sudo cpufreq-set -g powersave -c 0 --min 400MHz sudo cpufreq-set -g powersave -c 1 --min 400MHz sudo cpufreq-set -g powersave -c 2 --min 400MHz sudo cpufreq-set -g powersave -c 3 --min 400MHz   Which resets the min frequency and the governor but as soon as I compile again with my IDE every time the governor and the min frequency changes again.  Any idea how I can disable that automatic change?  PS: If you need more details, just tell me where to find them and I will provide them Use template_include with custom post types I want to check for an appropriate template in the theme folder before falling back to the file in my plugin directory. Here’s my code:  add_filter('template_include', 'sermon_template_include'); function sermon_template_include($template) {     if(get_query_var('post_type') == 'wpfc_sermon') {         if ( is_archive() || is_search() ) :            if(file_exists(TEMPLATEDIR . '/archive-wpfc_sermon.php'))               return TEMPLATEDIR . '/archive-wpfc_sermon.php';            return dirname(__FILE__) . '/views/archive-wpfc_sermon.php';         else :            if(file_exists(TEMPLATEDIR . '/single-wpfc_sermon.php'))               return TEMPLATEDIR . '/single-wpfc_sermon.php';            return dirname(__FILE__) . '/views/single-wpfc_sermon.php';         endif;     }     return $template; }   Problem is, it doesn’t work! :-) It always picks the file in my plugin folder. Any idea what to do? I’ve tried alot of variations but I can’t seem to get anything to work! Thanks in advance! Jack  EDIT  I'm expecting the archive-wpfc_sermon.php to be returned from the theme folder if it exists. However, the file from my plugin always gets returned. Thanks for your help! This is from my Sermon Manager plugin available in the repository. How can I get Google to stop thinking I'm a Bot? So, I'm getting the occasional CAPTCHA message, which is irritating but fine, but occasionally Google just blocks my network wholesale. I've submitted automated requests to unblock it, but I have no idea who I can email directly to clarify the issue.  I've run all manner of anti-virus, parsed my router's logs, combed through Fiddler to see if any errant packets were slipping by. Nothing. The only Google searches that happen are made by me through the web-browser.  Who or what do I have to do to get Google to stop falsely flagging my network as a spam-bot? PHP: Split string into array, like explode with no delimiter How to capture ordered STDOUT/STDERR and add timestamp/prefixes?