VDI to Hard Drive
Migrate from a virtual machine (VM) to a physical system
SQL Server replication subscriptions marked as inactive Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive? Analyzing limits problem Calculus (tell me where I'm wrong). I came accross: $$\lim_{x \to\ 0}\frac{x\cos x - \log (1 + x)}{x^{2}}$$  I tried the following please tell me where I 'm wrong:  $$\lim_{x \to\ 0}\frac{x\cos x - \log (1 + x)}{x^{2}} $$  $$\text{(Dividing by }x)$$   $$=\displaystyle\lim_{x \to\ 0}\dfrac{ \cos x - \dfrac{\log (1 + x)}{x}}{x} $$  $$=\lim_{x \to\ 0}\frac{\cos x - 1}{x} $$  $$=\lim_{x \to\ 0}\frac{-2\sin^{2} \dfrac{x}{2}}{x} $$  $$=\lim_{x \to\ 0}\frac{-2x\sin^{2}\dfrac{x}{2}}{(\dfrac{x}{2})^{2}\times 4} $$ $$\lim_{x \to\ 0}\dfrac{-x}{2}=0$$ But Answer given is $\dfrac{1}{2}$  Please Help. What is an example of a transformation on a posterior distribution such that the MAP estimate will be non-invariant? Suppose that we have a posterior distribution $p(\theta\mid y)$ and we wish to define a transformation on $\theta$ such that $\phi = f(\theta)$. I know that generally such transformations will not affect the MLE as it is on the data space, but will result in non-invariance on the Maximum A Posteriori (MAP) estimate as it is a function of the parameter space. I am wondering if there is an example to illustrate this? Thanks. ASP.NET "special" tags What is the official name for the "special" ASP.NET tags like this:  &lt;%# %&gt; &lt;%= %&gt; &lt;%@ %&gt; &lt;%$ %&gt;   I can't seem to figure out the conceptual or well known name for these, so I'm having trouble searching for more info.  As a bonus, can anyone give me a quick rundown of all of the possible "special tags" and what each one of them does (or point me to a resource)? How to unmap TAB and do not make Ctrl-I invalid in VIM Unable to format internal drive as APFS on 2018 MacBook Pro I’ve recently ran a semi-routine clean install on my 2018 MacBook Pro. This involves the following steps (in the given order):   Creating a USB installer with the latest macOS Mojave 10.14.2. Booting into the USB (Pressing Option key on boot). Using the Disk Utility, erasing the Disk and formatting it as APFS with a GPT Partition scheme. Using the Terminal, unmounting the disk diskutil unmountDisk disk0, where disk0 is the internal NVME drive. Using the Terminal, running gpt destroy disk0 where disk0. Using the Terminal, running diskutil zeroDisk disk0. Once that process is complete, I use the Disk Utility application to reformat as APFS, and install macOS.   Nothing super crazy, maybe a little redundant in steps, maybe a little overkill, maybe a little unnecessary.  Recently, however, on the final step where I format it as a APFS drive, it fails in creating the APFS container and says Internal State Error. It appears to first format as Mac OS Extended (Journaled) then create an APFS container, then add a APFS Volume. It fails when adding a Volume with An internal error occurred.  I have tried many things, including:   Securely erasing the drive diskutil secureErase 0 disk0. Simply zeroing the disk again diskutil zeroDisk disk0 (I’m not sure what the actual difference between these two are). Reformatting the drive as other things, such as ExFAT / FAT / MacOS Journaled, then trying to format as APFS. Reformatting the drive through the command line instead: diskutil eraseDisk JHFS+ NAME disk0 → diskutil apfs createContainer /dev/disk0s2 → diskutil apfs addVolume disk0s2 APFS NAME (It fails here with Error starting APFS Container creation: The given disk is not an APFS Container Reference (-69630), even though I just made a container there. Also, trying to add a volume to where it actually made the container (i don't know what it does this) diskutil apfs addVolume disk24 APFS NAME also fails with Error: -69624: Unable to add a new APFS Volume to an APFS Container Reformatting the drive using this: diskutil eraseDisk APFS NAME disk0 Restarting and trying these again. Using a different installer than the USB (The one from Command + R, Command + Shift + R, and whatever the other combo is), and trying these again.   All end up at the same thing - the final step fails. I would expect especially after a secure wipe that the drive would be removed from whatever state it was put in, or that if it was a bug with the 10.14.2 installer, that it still wouldn’t happen again in the High Sierra installer. In Disk Utility, I’m left with the following structure:  - APPLE SSD AP(...) // “Container disk24” takes up all space      - Container disk24 // or some other number. “Used” is 207.2MB and “Free” is 1TB.   Please note even though I can format as JHFS+, it won’t let me install the OS to such a formatted volume. The installer tells me this computer forces me to only install on APFS formatted volumes.  Any direction is greatly appreciated. I have never had such a silly problem before. Also, note that I have no Time Machine backup. Compare two dates with JavaScript Rotation and Scale have suddenly stopped working? I was working quickly, (making mistakes), and suddenly rotation and scale transforms stopped working. I think I hit some shortcut or button by accident. Translate still works though. I checked that the transforms weren't locked and such, to no avail. What could be the cause? How do I install Ubuntu alongside a pre-installed Windows with UEFI? I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu? What is the Killing form of $\mathfrak{gl}_{m}$? Consider the Killing form of the Lie algebra $\mathfrak{gl}_{m}$. Then $\{e_{ij}\}$ is a basis for this Lie algebra where $e_{ij}$ is a matrix with 1 in the $i$th row, $j$th column and 0 everywhere else. Then every $A = (a_{ij}) \in \mathfrak{gl}_{m}$ can be written as $A = \sum_{i, j = 1}^{m}a_{ij}e_{ij}$. Since $[e_{ij}, e_{kl}] = \delta_{jk}e_{il}-\delta_{li}e_{kj}$, we have $ad(a)e_{ij} = \sum_{kl}(a_{ki}\delta_{lj} -a_{jl}\delta_{ki})e_{kl}$. From this we have $$ad(a)ad(b)e_{ij} = \sum_{k, r, s}(a_{rk}b_{ki}\delta_{sj} + a_{ks}b_{jk}\delta_{ri} - a_{ri}b_{jk}\delta_{sk} - a_{js}b_{ki}\delta_{rk})e_{rs}.$$ From this how can I see that the Killing form is $2m tr(ab) - 2tr(a)tr(b)$. I know that the Killing form is just the trace of the above centered equation, but I seem to be getting confused with all the indices. How can I capture text from a specific terminal and redirect it to a log file while simultaneously working? A fiber bundle over Euclidean space is trivial. How do I report a bug? Show that $2730\mid n^{13}-n,\;\;\forall n\in\mathbb{N}$   I tried, $2730=13\cdot5\cdot7\cdot3\cdot2$  We have $13\mid n^{13}-n$, by Fermat's Little Theorem.  We have $2\mid n^{13}-n$, by if $n$ even then $n^{13}-n$ too is even; if $n$ is odd $n^{13}-n$ is odd.  And the numbers $5$ and $7$, how to proceed? Bibliography with Metadata: I am constructing a bibliography of as much of the prior research in a field I am working in. I would like to use BibTeX to print the citation in the pdf, and then I would like to add the details of the paper after the citation. Only then would I like to print the next citation. For example:  [1] Jahan M. Dawlaty and Yunquing Chen. Measurement of the optical absorption of graphene in the terahertz. Applied Physics Letters, 2008. Research Group: Cornell Pump Wavelength: 500 nm. Probe Wavelenth: 7 microns. Relaxation Time: 50 fs. [2] Paul George and Dmitry Vekslar, Measurement of Ultrafast Carrier Dynamics in Graphene. Applied Physics Letters, 2009.  . . . and so on. Does anyone know how this could be done? Singular information matrix error in lrm.fit in R I am running an ordinal logistic regression in R and running into trouble when I include dummy variables.  My model works great with my first set of predictors.  Next I want to add dummy variables for each of the years represented in my dataset.    I created the dummy variables with car:recode in this manner (one statement like this for each of the 11 years)  fsd$admityear2000 &lt;- recode(fsd$ApplicationYear ,"2000=1;else=0")   The lrm model is specified as follows  library(Design) ddist&lt;- datadist(fsd) options(datadist='ddist') m4 &lt;- lrm(Outcome ~ relGPA + mcAvgGPA + Interview_Z + WorkHistory_years + GMAT + UGI_Gourman + admityear1999 + admityear2000 + admityear2001 + admityear2002 + admityear2003 + admityear2004 + admityear2005 + admityear2006 + admityear2007 + admityear2008 + admityear2009, data=fsd)   (sorry for all of the other random variables, but I don't want to introduce confusion by changing my code)  I get the error  singular information matrix in lrm.fit (rank= 22 ).  Offending variable(s): admityear2009 admityear2000 admityear1999  Error in lrm(Outcome ~ relGPA + mcAvgGPA + Interview_Z + WorkHistory_years +  :    Unable to fit model using “lrm.fit”   I understand that including all options of a dummy variable over-defines the model, but I get the error whether I include all 11 years or just 10.  I found a suggestion  to set the penalty parameter of lrm to a small positive value.  Setting it to 1 or 5 changes the error such that it only names one of the variables as offending.  The error doesn't go away even with penalty=100.  I'm pretty new to R, but loving the freedom so far.  Thanks for any help!  Responses and Lessons   Factors are awesome and I can't believe I didn't notice them earlier. Man that cleans up my code a lot.  Thanks! My DV, 'Outcome' is indeed ordinal and after making it a factor(), I also made it ordered(). The str() command is also awesome and this is what my data now looks like (with some of the non-relevant variables omitted)   output:  str(fsd)      Outcome      : Ord.factor w/ 3 levels "0"&lt;"1"&lt;"2" relGPA       : num   mcAvgGPA     : num  admitschool  : Factor w/ 4 levels "1","2","3","4" appyear      : Factor w/ 11 levels "1999","2000",..    both lrm() and polr() now run successfully, and they both deal with appyear by dropping some values of the factor.  lrm() drops 1999, 2000, and 2001 while polr() just drops 1999 and 2000.  lrm() gives no warnings while polr() says "design appears to be rank-deficient, so dropping some coefs."  This is an improvement, but I still don't understand why more than one value needs to be dropped. xtabs shows that there isn't full seperation right?   output:  xtabs(~fsd$appyear + fsd$Outcome)            fsd$Outcome fsd$appyear    0    1    2        1999 1207  123  418        2000 1833  246  510        2001 1805  294  553        2002 1167  177  598        2003 4070  158 1076        2004 2803  106 1138        2005 3749  513 2141        2006 4429  519 2028        2007 6134  670 1947        2008 7446  662 1994        2009 4411   86 1118 When I try to print a Unicode string in a Windows console, I get an error . UnicodeEncodeError: 'charmap' codec can't encode character .... I assume this is because the Windows console does not accept Unicode-only characters. What's the best way around this? Is there any way I can make Python automatically print a ? instead of failing in this situation? Edit:  I'm using Python 2.5.  Note: @LasseV.Karlsen answer with the checkmark is sort of outdated (from 2008). Please use the solutions/answers/suggestions below with care!!  is more relevant as of today (6 Jan 2016). I've encountered different usages of preposition + Home and I want to learn which of them are correct.  Some examples:     Back home   Back at home   Back to home Retrieving Current Location and Zip using Geolocation Button If random variables are drawn from an identical distribution, why doesn't this guarantee they are independent?