I have my dock preferences to auto-hide. When I plug in my Cinema Display it works as expected: the dock hides when the mouse isn't hovering over it. Is it possible to disable this functionality ONLY on the Cinema Display and keep it happening on the macbook?  For clarification: When my cinema display is plugged in I should be able to see the dock at all times on my cinema display, but it should still auto hide on macbook screen.
When at home I use my 13" MacBook Pro hooked up to an 27" external monitor. When working on my 27" screen I prefer to have a visible dock at all times. I have enough screen real estate to afford this luxury.  When I'm on the road working on my 13" screen I prefer to automatically hide the dock as it really gets in the way when screen real estate is limited.  I now manually switch between enabling and disabling hiding (using ⌥⌘D) but I would prefer this to happen automatically. Can I enable hiding the dock on my MacBook monitor and disable hiding the dock on my external monitor?
I have a brand new 32GB flash drive that was bought from Hong Kong but manufactured in China.  When I plug it in, it's detected, and when I examine the properties of the drive the size is reported to be 31.2 GB.  Windows forces me to format it but I have not manged to actually do that.  I then I browsed the internet and a forum told me to change the letter to L. After I did that I searched many programs that can help me format it, but when I checked it back, it is 4MB now.  Any idea what's happening with my drive? I am traveling from the US to India via London Heathrow on November 6. I will be at LHR on 7th at 6:20 am and departing at 9:25 pm. I'm an Indian national and have a valid US visa.  Do I need a transit visa to stay airside?  I have been scared that British Airways have stopped a few people from boarding flights (no details just rumors).  Do I need a transit visa to stay landside? I want to do some sightseeing. What are the chances of getting past officials using transit without visa concession?  Real stories will help a lot to calm the butterflies in my stomach. How to zoom in & zoom out While using 10.04 and the previous versions I used to put Ctrl+F6 to zoom in and subsequently Ctrl+F7 to zoom out. Now (using 11.10, Unity) I can't even find the options to zoom in and zoom out in the "keyboard shortcuts". I tried "the Magnifier" in the Compiz but really can't understand what is going on right there. There is simple question I would like to ask:   What to do so as to be able to zoom in with Ctrl+F6 and zoom out with Ctrl+F7? What to do when visa admission expires during lockdown? I was admitted to the US as a visitor for a period which expires soon.  Until tonight, I had solid plans to return to Europe soon, prior to the expiration of the visa entry, but that is no longer an option.  I do not wish to overstay or do anything that would cause problems with future admissions or visa applications.  However, I can't go back to Europe because of new travel restrictions put in place by the US government (/resulting flight cancellations).    My passport still has years of validity left.  What is the best course of action? Is there any official guidance on this subject?  I am a little concerned that contacting officials to explain the situation would just lead me to be flagged for prompt enforcement action, but I don't want future problems.    Related:  and .    Update: OP now planning an escape to Canada.  The question still stands, though. Types of circular acceleration? To my knowledge there are three types of acceleration when a body (e.g. a rod) is moving in a circle about an axis. These are:   Angular acceleration : this is the rate of change of angular velocity. Tangential acceleration : this is the linear acceleration of the system in a tangential direction to the circle and equals the radius times the angular acceleration. Radial/centripetal acceleration : this is the linear acceleration of the system that is directed inwards towards the center of the circle.   I also think there are two types of velocity:   Linear velocity: this is its velocity in the tangential direction and is constantly changing Angular velocity or angular frequency: this is the rate of change of angle.   Is the above correct? And have I missed anything? How can I explain to a non-native why the plural of a noun isn't used adjectivally? How can I explain to a non-native speaker that while this is correct:     The felling of trees.    And this is also correct:     tree felling   This is not:     *trees felling   To a non-native it seems very reasonable that since many trees are being felled and given that the felling of trees uses the plural, the inverse form would also use the plural and become trees felling.  To a native speaker such as myself, the latter is very obviously wrong, but I couldn't figure out how to formalize this into a rule that a non-native can understand. When should I use a struct rather than a class in C#? When should you use struct and not class in C#? My conceptual model is that structs are used in times when the item is merely a collection of value types.  A way to logically hold them all together into a cohesive whole.  I came across these rules :   A struct should represent a single value. A struct should have a memory footprint less than 16 bytes. A struct should not be changed after creation.   Do these rules work? What does a struct mean semantically? How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference In how many ways can the letters of the word CHROMATIC be arranged? As the title, I was asked to show that $2^{44}-1$ is divisible by $89$.  My first attempt is to change the expression into $(2^{22}-1)(2^{22}+1)$.  Then further simplified it into $(2^{11}-1)(2^{11}+1)(2^{22}+1)$, I used my calculator and was able to show that $2^{11}-1$ is divisible by $89$ but then I don't know how to show it with modular arithmetic. I do think that it is quite similar to the form where we can use the Fermat's little theorem. $(\sqrt{2})^{88}-1$. (Though I do understand Flt can only be applied to integer.)  Can someone tell me whether I can take square root in modular arithmetic as well? I am still pretty new to the modular arithmetic. Thank you very much. Is there a clever solution to Arnold's "merchant problem"? There is a problem that appears in . The problem is also quoted .  You take a spoon of wine from a barrel of wine, and you put it into your cup of tea. Then you return a spoon of the (nonuniform!) mixture of tea from your cup to the barrel. Now you have some foreign substance (wine) in the cup and some foreign substance (tea) in the barrel. Which is larger: the quantity of wine in the cup or the quantity of tea in the barrel at the end of your manipulations?  Here's my solution: The key is to consider the proportions of wine and tea in the second spoonful (that is, the spoonful of the nonuniform mixture that is transported from the cup to the barrel). Let $s$ be the volume of a spoonful and $c$ be the volume of a cup. The quantity of wine in this second spoonful is $\frac{s}{s+c}\cdot s$ and the quantity of tea in this spoonful is $\frac{c}{s+c}\cdot s$. Then the quantity of wine left in the cup is $$s-\frac{s^2}{s+c}=\frac{sc}{s+c}$$ and the quantity of tea in the barrel now is also $\frac{cs}{s+c}.$ So the quantities that we are asked to compare are the same. However, Arnol'd also says  Children five to six years old like them very much and are able to solve them, but they may be too difficult for university graduates, who are spoiled by formal mathematical training.  Given the simple nature of the solution, I'm going to guess that there is a trick to it. How would a six year old solve this problem? My university education is interfering with my thinking. For some reason my iMac keeps turning off around 5 to 10 minutes into boot.  Also just recently it turns on but has shaded lines going down the screen. I have not installed any weird programs and i have not used it in around 3 months.   Any ideas on what the issue is, i don't have any other information about the issue besides whats happening when i use it.  The image i'm showing you was found on google but this looks exactly like mine does.  The model of my imac is the late 2011 model. I have an input type="image". This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image is paired with, I setup an event handler for the input-image. Then when the user clicks the image, they get a little popup to add some notes to the data.  My problem is that when a user enters a zero into the text box, I need to disable the input-image's event handler. I have tried the following, but to no avail.  $('#myimage').click(function { return false; }); Updated WiFi fix for Yoga 13 and Ubuntu 16.04? I have a Lenovo Yoga 13 and I was running 14.04 on it and I've since upgraded to 16.04. I applied the fix descibed here () with 14.04 and it worked but no longer seems to with 16.04. I know that the way Realtek drivers work was reorganized in Linux kernel 4.4 () however I don't know enough about what was changed to know if that was the problem. Has anyone else experienced this issue or know how to fix it? New to Macbook Pro, need help upgrading I was recently gifted an old Mid 2010 Macbook Pro with the following specs listed here:    I would like to do a few things to it, but I have never owned an apple computer before and I know there are some restrictions on the hardware i can purchase to upgrade it.  These are the things I want to do  1) Upgrade Ram: Currently it has 2x2GB of RAM in it. This model is rated for up to 8GB but I have been reading online and it seems some people have been able to successfully install 16GB of RAM, so i am confused. Does anyone have a definitive statement on whether or not this Macbook Pro will work with 16GB of RAM? If it does accept 16GB total which RAM should i buy for a Macbook Pro like this? If it only accepts 8GB total which RAM should i buy? And I know the clock speed must be 1066Hz for this Macbook Pro, but can i use DDR3, or DDR4 RAM? Does the DDR type matter?  2) Install Secondary Hard Drive: I am not 100% so i need someone to inform me but i believe there is space in this Macbook Pro for a second hard drive. Does the CD Drive need to be removed in order for a second Hard Drive to be put in? Or is there simply space inside it for a second hard drive but not installed by Apple? Either way I would like to install an SSD into it and install the Operating System onto that SSD. Which SSD can i look to buy that is compatible with this  Pro?  3) Fresh install of Mac OSX: As it currently stands my friend who gave this laptop to me didn't erase his data. I am uncomfortable with this and want a fresh start. How do I do a fresh install of Mac OSX Mavericks (or should i wait for Yosemite?). Where can i buy a Disk/USB for it (or make a disk/USB for it) to do a clean install and how do i format a Macbook Pros hard drive and install fresh? Should this be done at an apple store?  4) Higher Screen Resolution: This is my lowest priority and I don't think it is possible to do without major invasive changes to the Macbook Pro but i want to know if it is possible. Currently the Max Resolution on the Device is 1440x900, i would like to know if it is possible to replace the LCD with one that is 1920x1080 for high resolution. probability of $k$ boxes contain exactly $1$ ball There is a shop in the starting area on the island of Koholint, and if you are fast enough to dance around the shopkeeper, you can steal from him. Once you steal from him, though, your title in the game changes to "THIEF".    Is there any way to change your title back to your name without reverting to a different past save or starting over? Why would a partition be in use by the system if it isn't mounted? I've been migrating my system from btrfs to ext4 after running into performance issues with VMs. I have two hard drives in my laptop to work with. I've successfully moved my home partition, but the same steps I used aren't working for root.  Progress so far:  I've dd'd my root partition from /dev/sda3 into /dev/sdb3. I modified /etc/fstab to the following:  $ cat /etc/fstab #  # /etc/fstab: static file system information # # &lt;file system&gt; &lt;dir&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt; # UUID=95f13c34-96ca-49e3-bcb2-ff594df31506 /dev/sdb3               /               btrfs           rw,noatime,ssd,space_cache,discard      0 0  # UUID=0fe04f59-599f-41e2-ac30-2ad0f17a9727 /dev/sda2               /boot           ext2            rw,relatime     0 2  # UUID=44741e0f-924a-4841-80ef-2132bef84182 /dev/sda4               /home           ext4            rw,noatime,discard      0 0   and run sudo mkinitcpio -p linux. It seems to work. I'm able to boot by mounting the partition on the second disk. df shows:  $ df Filesystem      Size  Used Avail Use% Mounted on /dev/sdb3        28G   18G  9.8G  65% /   So, clearly, sdb3 is mounted, not sda3. Here's the problematic step: When I try to format sda3, which is supposedly unused, I get the following:  $ sudo mkfs.ext4 /dev/sda3 [sudo] password for stew:  mke2fs 1.42.11 (09-Jul-2014) /dev/sda3 contains a btrfs file system Proceed anyway? (y,n) y /dev/sda3 is apparently in use by the system; will not make a filesystem here!   sda3 is in use. How and why could it possibly be in use?  As per casey's comment, the output of mount:  mount | grep sd /dev/sdb3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime)   As per Warwick's comment, unmounting:  $ sudo umount /dev/sda3 umount: /dev/sda3: not mounted   Mounting and umounting sda3 elsewhere works successfully, but changes nothing.  Update: More fishy behavior:  $ mount | grep sd /dev/sdb3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime) $ sudo mount /dev/sda3 mnt [sudo] password for stew:  $ mount | grep sd /dev/sda3 on / type btrfs (rw,noatime,ssd,discard,space_cache) /dev/sda4 on /home type ext4 (rw,noatime,discard,data=ordered) /dev/sda2 on /boot type ext2 (rw,relatime) /dev/sda3 on /home/stew/mnt type btrfs (rw,relatime,ssd,discard,space_cache)   After mounting sda3, sdb3 is no longer mounter. Weird, huh?  As per mikeserv:  $ rmmod btrfs rmmod: ERROR: Module btrfs is in use   This is very much expected, since sdb3 is btrfs and supposed to be mounted to root. From my mkinitcpio.conf file:  MODULES="" HOOKS="base udev autodetect modconf block filesystems keyboard fsck" Transformation of Random Variable $Y = X^2$ I'm learning probability, specifically transformations of random variables, and need help to understand the solution to the following exercise:      Consider the continuous random variable $X$ with probability density function $$f(x) = \begin{cases} \frac{1}{3}x^2 \quad  -1 \leq x \leq 2, \\ 0 \quad \quad \text{elsewhere}. \end{cases}$$ Find the cumulative distribution function of the random variable $Y = X^2$.   The author gives the following solution:   For $0 \leq y \leq 1: F_Y(y) = P(Y \leq y) = P(X^2 \leq y) \stackrel{?}{=} P(-\sqrt y \leq X \leq \sqrt y) = \int_{-\sqrt y}^{\sqrt y}\frac{1}{3}x^2\, dx = \frac{2}{9}y\sqrt y.$  For $1 \leq y \leq 4: F_Y(y) = P(Y \leq y) = P(X^2 \leq y) \stackrel{?}{=} P(-1 \leq X \leq \sqrt y) = \int_{-1}^{\sqrt y}\frac{1}{3}x^2\, dx = \frac{1}{9} + \frac{1}{9}y\sqrt y.$  For $y &gt; 4: F_{Y}(y) = 1.$    Previous to this exercise, I've managed to follow the solutions of two similar (obviously simpler) problems for a strictly increasing and strictly decreasing function of $X$, respectively. However in this problem, I don't understand the computations being done, specifically:    How does the three intervals $0 \leq y \leq 1$, $1 \leq y \leq 4$ and $y &gt; 4$ are determined? In the two previous problems I've encountered, we only considered one interval which was identical to the interval where $f(x)$ was non-zero. In the case where $0 \leq y \leq 1$, why does $P(X^2 \leq y) = P(-\sqrt y \leq X \leq \sqrt y)$ and not $P(X \leq \sqrt y)$? I have put question marks above the equalities that I don't understand.   I think I have not understand the theory well enough. I'm looking for an answer that will make me understand the solution to this problem and possibly make the theory clearer. Normal text is invisible when using beamer with notes and XeLaTeX