I have a hp pavillion 15 n203tx with preinstalled Windows 8.1.   I installed Ubuntu 14.04 in it, and then it used to show a GRUB menu every time I turned on the machine. The menu said something like:  1. Ubuntu  2. Advanced options for Ubuntu  3. Windows Boot Manager(on /dev/sda2)  4. System Setup   Everything was working well. If I wanted to run Ubuntu I chose the Ubuntu option and if I wanted to boot Windows then I chose the third option of Windows Boot Manager.  Out of curiosity once I tried that last option-system setup, and a new menu loaded up, a startup menu showing the following options-   1. f1 system information  2. f2 system diagnostics  3. f9 boot device options  4. f10 bios setup  5. f11 system recovery  enter- continue setup   then I pressed enter and Windows started booting. Since then, my system is booting directly to Windows without showing the GRUB menu.   If I want to see that grub menu, I have to press the esc key on starting my system. Then the startup menu appears (which I have mentioned above) and I have to press f9. Then I am presented with a boot menu options screen with the following options:  1. OS boot manager 2. Ubuntu 3. Boot from EFI file   I have to select the second option to get to the GRUB menu.   I want my system to work as it did earlier.
I installed Ubuntu alongside Windows but I did not disable secure boot as someone told me it could cause problems with boot loader. So when installation finished and I rebooted, the system went straight into Windows. I went to Ubuntu IRC Support and they told me to turn off the secure boot and reinstall Ubuntu. I did that but my system still boot into windows.  This is a picture of partitions on my system:    This is my first Ubuntu install on my new laptop. I followed everdaylinux guide to install it and I used something else option.
Output the common lines (similarities) of two text files (the opposite of diff)? Diff is a great tool to display the changes between two files. But how to display the similarities of two text files (while ignoring the differences)?  I.e. sample input:  a: Foo Bar X Hello World 42  b: Foo Baz Hello World 23   Pseudo output (something like this):  @@ 2,3 =Hello World   Just sorting both files and using comm is not enough, because in that case the line information is lost. Should I vote to close a duplicate question, even though it's much newer, and has more up to date answers? How to use `ybar interval` without skipping the last value What may happen after a stack of spells resolves? Within the same phase, once a stack of spells has resolved in its entirety, is priority once again given to a player so that more spells may be cast?  For example:  I attack with a creature. Opponent opts not to block. Now, I want to buff (e.g. +3/+3) my creature multiple times, but I'm afraid of my opponent responding with a burn (e.g. Deal 3 damage) spell at the top of the stack. Can I buff once, ask if opponent wants to respond, then allow the stack to resolve. Then, in the same phase, cast more buff? I installed the latest Ubuntu today, 15.04. Spotify has stopped working. How can it be made to work again?  The Unity bar flashes green 4 or 5 times and then stops flashing. There are no error messages. It was installed successfully and played well on 14.10 till the upgrade a few hours ago. It just does not appear on the screen. What is the proof that the total number of subsets of a set is $2^n$? PHP: running scheduled jobs (cron jobs) I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend?  What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or not.  This is just a quick example of what I was thinking about:  if ($alreadyDone == 0 &amp;&amp; time() &gt; $timeToRunMaintainance) {    runTask();    $timeToRunMaintainance = time() + $interval; }    Anything else I should take into consideration or is there a better method than this? Correct way of mounting a Windows share I mounted a Windows share to my Ubuntu 11.10 system via adding the following line to the /etc/fstab:  //serveraddr/sharedfolder /mnt/foldername/ smbfs credentials=/home/myname/.smbpasswd 0 0  using the .  But there's a problem with the permissions. The owner of the mount folder is root. I can not create any folders or files in the mounted point is I don't become the root. Even I can not change the ownership to my default user via   sudo chown -R myname .  I googled and saw that it might stem from the fact that Windows file formats (fat32/ntfs) can not save ownership. But when I connect to the same location via samba as   smb://serveraddr/sharedfolder  by providing my credentials, I have the privileges to write without being the root.  How can I make it to let me write to the mounted folder? Given $E[Y]=1$ , $E[Y^2]=2$ and $E[Y^3]=5$, Y non negative integer random variable, find min of $P[Y=0]$ Sometimes I want to underline some text, and it extends past the end of a line.  Why does \underline{} not automatically wrap my text for me ?    Also, how can I underline text so that it will still wrap ? I can join the server and sometimes the map would load for the server but i would just fall through the map and it would dissconect me and say timed out, any solutions? I'd like a couple of Atmega328s to run the same program, but they're going to interface with each other and need unique IDs. Is there any such ID or serial number hard-coded on the chip? How to install Canon LBP2900b drivers? Join CSV file to shapefile I wanted to join a CSV file to a shapefile.  When I identified a field to facilitate the join, e.g.,   map &lt;- spChFIDs(map, as.character(map$ID))   it returned     Error in spChFIDs(SP, x) : lengths differ   Can anyone advise? How to add modifiers using python script and set parameters? I've found some code that could add a modifier but none can set parameters like Octree. Grep: The asterisk (*) doesn't always work If I grep a document that contains the following:  ThisExampleString  ...for the expression This*String or *String, nothing is returned. However, This* returns the above line as expected.  Whether the expression is enclosed in quotes makes no difference.  I thought the asterisk indicated any number of unknown characters? Why does it only work if it's at the start of the expression? If this is intended behavior, what do I use instead of the expressions This*String and *String? When does a locational distinction change its suffix and capitialization in a proper name? Is the harmonic oscillator potential unique in having equally spaced discrete energy levels? Change Recycling Bin Location I have a SSD as a primary hard drive, and one HDD for storage. I want the recycling bin to be on the HDD. I want is so that even if I delete files from the SSD the end up on the HDD's recycling bin. What is the proper way of going about this? Suppose $ T \subset \mathbb{C} $. Show that the corresponding set $ S \subset \Sigma $ is  a. a circle if $ T $ is a circle. b. a circle minus (0, 0, 1) if $ T $ is a line.  Here we are defining $ \Sigma $ to be the Riemann sphere, given by the set: $$ \Sigma = \left \{(\xi, \eta, \zeta) : \xi^{2} + \eta^{2} + (\zeta - \frac{1}{2})^{2} = \frac{1}{4} \right \} $$  To take a point from $ \mathbb{C} $ to $ \Sigma $ we can use the following:  $$ \xi = \frac{x}{x^{2} + y^{2} + 1}; \eta = \frac{y}{x^{2} + y^{2} + 1}; \zeta = \frac{x^{2} + y^{2}}{x^{2} + y^{2} + 1} $$  We define a circle on $ \Sigma $ to be the intersection of a plane of the form $ A\xi + B\eta + C\zeta = D $ with $ \Sigma $. We also know the converse of this problem is true, that the intersection above yeilds a set in $ \mathbb{C} $ with the following property:  $ (C - D)(x^{2} + y^{2}) + Ax + By = D $. As you can see, when C = D, then an equation for a line is yeilded, otherwise it is a circle.   I really am at a  loss about how to solve this problem. The only thing I can think to do is to pick 3 points on a circle or radius $ r $ with center $ z_{0} $, use these points to find two vectors in $ \Sigma $, take their cross product to get a normal vector, use this normal vector to get a plane. Once I have the plane in form $ A\xi + B\eta + C\zeta = D $ then I could prove that the circle I had chosen corresponds exactly with $ (C - D)(x^{2} + y^{2}) + Ax + By = D $. Is there not an easier, less computation way to do this?