I have two MacBooks (an old one mid 2009 with a 150 GB drive (128 GB used) and a newer from 2011 with a 300 GB drive (30 GB used)) and a 1 TB Hard Disk.   What is the easiest way to move the content of the 2009 MacBook to the 2011 model and the content of the 2011 model to the 2009 model (so that basically the content of the the two MacBooks is swapped afterwards)?
I have a Macbook and an iMac, generally I work on my Macbook, but sometimes I need that information on my iMac. My OS is Mac OSX Snow Leopard.
How to calculate the integer part of the value of the following equation?  $$y=1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+\frac{1}{\sqrt{4}}+\ldots+\frac{1}{\sqrt{1000000}}$$  It should be calculated in a special way, after all the equation is so long. Bounties broken network-wide How to get first N elements of a list in C#? I would like to use Linq to query a bus schedule in my project, so that at any time I can get the next 5 bus arrival times. How can I limit my query to the first 5 results?  More generally, how can I take a slice of a list in C#? (In Python I would use mylist[:5] to get the first 5 elements.) There is an UI issue for the ranking div when a user crossed 200 reputation When a user just crossed 200, or 200+ reputation, the ranked div (i.e., top 10% overall) is trying to display. But rank calculation can be done on end of the UTC day. So instead of the ranking div, there is a blue colored hyphen is visible to users, it may be the initial loader for the ranking div.  I saw this UI issue previously too for the same scenario. Can this be fixed? I was going through the topic "formation of comparative and superlative".       The rule says     When two objects are compared with each other, the latter term of comparison must exclude the former, as in "Iron is more useful than any other metal". If we say "Iron is more useful than any metal", that is the same thing as saying    "Iron is more useful than iron", since iron is itself a metal.   I am finding difficulty to relate the rule with example. What does % do to strings in Python? Ubuntu boots on terminal only, how do I recover the GUI desktop? made me think about the movie versions of the 7th book.  In Deathly Hallows Part II      Voldemort has Nagini attack Snape because Voldy thinks that Snape has the Elder Wand's allegiance. We know that Snape didn't actually have the allegiance, Draco did (and by then Harry did) and his plan had failed.   But if Voldy's plan had succeeded with Snape, would he have gotten allegiance?      Since voldemort didn't kill Snape, Nagini did... How to allow page break inside a float environment? I'm using new float enviroment to show some examples in my document. This  enviroment contains tcolorbox which provides a gray background. The main text in the enviroment is a mixture of plain text and code blocks (in lstlisting env). Each float should have it's own caption and label.  In style file:  \usepackage{newfloat} \DeclareFloatingEnvironment[name={Example}]{suppfigure}   In the main document:  \begin{suppfigure}[!h] \caption{Some code example}\label{suppfigure1} \begin{tcolorbox}[arc=0mm, left=1pt, right = 1pt, boxrule=0mm,colback = {shadow-gray}]   Text  \begin{lstlisting}  int i = 0;  \end{lstlisting}  Some more text  \begin{lstlisting}  String.Format("{0,10:0.0}", -123.4567);   \end{lstlisting}  \end{tcolorbox}  \end{suppfigure}   How can I allow page break inside the suppfigure to extend my example to multiple pages? What are Multi-Zone/Matrix metering, Center-Weighted metering, and Spot metering? What about Partial?  Is there a good rule of thumb, or a few pointers, on when best to use each exposure metering mode? Disk space full but logical space available in database We have a fairly big MS SQL 2008R2 database that resides on a SSD drive. The drive itself only has ~110Gb of space, and the database files are the only files on the drive.  The database is in "Simple" recovery mode, and only has two files, .MDF and .LDF.   The disk is now nearly full: the MDF is currently 109Gb in size. However, SSMS tells me there's nearly 18Gb of "Space Available" (in the 'General' properties page), and if I go through the motions of Shrinking the file it also tells me there's 18Gb of space free. SSMS also tells me the database size is around 132Gb, which surprises me - that wouldn't fit on the drive!  From what I've read, shrink is a really bad idea. However, I'm starting to see replication errors (could not allocate space for object). We've previously tried shrinking the database, but within a few hours the file was back to it's original size.  How should we proceed - given there's apparently 18Gb of free space, should SQL automatically use that free space? Or is it as simple as: we really need more disk space? File.Copy is giving exception Using media queries in Lightning component Adding an error on a dynamic referenced field Is there a way to add an error on a dynamically referenced field? Let's take this simple example:  opp.get('Name').addError('Invalid name');   This is not working, I'm looking for a similar minded way.  Thanks Proof by Induction: For any integer $n > 0$, $3|(5^{2n} − 1)$. Is there any difference in proving "for any integer $n &gt; 0$, $3|(5^{2n}-1)$" and proving "for any integer $n \ge 0$, $3|(5^{2n} -1)$"? Or are they the same? Using Either a Comma or a Semicolon My teacher was explaining how sometimes a comma isn't enough to make a sentence correct, and that sometimes you have to use a semicolon. I am having trouble figuring out when you should use which.   Can someone please explain? Reading text file with NSString:stringWithContentsOfFile? Integral $\int^{ \pi /2}_{0} \ln (\sin x)\ dx$ $$\int^{ \pi /2}_{0} \ln (\sin x)\  dx$$  The answer is $- \frac{\pi}{2} \ln 2$.  I have changed it into $$\frac{1}{2} \int^{1}_{0} t d \ln t^{2}$$  But I didn't get the answer with it. Using Rule of Three to obtain confidence interval for a binomial population I have a large population of data instances (say, 1000 instances) that are either of class1 or of class2. I would like to obtain a confidence interval for how many instances are of class1 without exhaustively checking all instances. I have randomly sampled 50 instances, and all 50 were of class1. I used the  to determine that a 95% confidence interval for the percentage that an instance is of class1 is  [0.94, 1].  From my sampling, I know that at least 50 instances are of class1. For the remaining 1000 – 50 = 950 instances whose classes are unknown, I assume I can apply the [0.94, 1] confidence interval found above. Therefore, can I conclude that, with a 95% confidence, there are at least 50 + (1000 – 50)(0.94) = 943 instances from the population of 1000 that are of class1?  If this conclusion isn’t statistically sound, how can I obtain a confidence interval for class1? Can I be automatically notified of prolonged blocking in SQL server? About once a week I have to resolve a blocking chain on a SQL Server 2005 database, caused by a long-lived read lock from an Access 2003 front-end. The lock is taken out whenever a user opens a certain form and is released once the user has finished scrolling through the form or closes it. Since many of our users open this form as reference, these locks stay around for a while. Any update to the table causes the blocking, and suddenly nobody can select from this table since they're all waiting on the first lock. This is quite a problem for us, since lots of apps rely on this data. I understand that this locking behavior is part of how Access works with linked tables.  I've been solving the problem from Activity Monitor,  whenever I find out about it. This is a problem not only because it takes me time to do it manually, but also because it's reactive. By the time I hear about it, it's already been a problem for a lot of people.  I'd like to know if there is an automatic way to check for these long-lasting blocking chains, and either be emailed or have the problem resolved automatically. The logic seems straightforward enough ("if any process matching this SELECT query has been blocking for longer than a minute, notify me/kill it") but I don't know how to implement this with SQL Server.  For what it's worth, I think the proper solution is to fix or rewrite the app. However, due to departmental politics, this is not an option for the next few months, so I'm looking for a stopgap.