TikZ - Is it possible to draw a line over the whole page
Positioning relative to page in TikZ
I compile my project with VIsual Studio 2005 Express Edition, and get this linking error. Can anyone suggest how to solve that? I want to write an application that detects when a page is loaded in the browser, then I should be able to insert content on top of the loaded web page? Anybody with an idea on how to do that?  Please note that I should be able to do this in any browser (Firefox/IE).  What language should I use to help me do this?  How do I detect this from an external application?  How should I integrate this with the browser? Is there a way to programmatically change the screen resolution or enable/disable multiple monitors in Windows XP?  For example to change from 1024x768 with one monitor to 1280x104 on two monitors?  I would be most interested in a win32 function to do this but anything that can be tied to a windows shortcut would suffice. The ideal generated by $2$ and $ x$ in $\mathbb{Z}[x]$ How can I backup my photos while travelling? I'm going travelling around the world for a year in September and am already panicking about how best to send my photos home while in various countries.  Requirements:   I only need to backup JPEG files (I don't shoot RAW but that's another thread ;) ) I need to be able to upload in a web-based manner (I will be using Internet cafes and so can't assume I can use FTP etc) I need plenty of space, preferably unlimited (I racked up about 200GB last year) I need to store the full image (no lossy compression is acceptable!)   Options I can think of:   Burning and posting DVDs (can I trust these in the post and not to get corrupt? It may be better than waiting for upload speed though...) Flickr (I have a pro account but not sure how hard it'll be to get the photos back down again. Will I even be able to get the original snaps?) Setting up a server at a friend's house and hosting some kind of file server with a web-app front end   What have other people done? Or does anyone else have a better idea? How prove this $\prod_{1\le i<j\le n}\frac{a_{j}-a_{i}}{j-i}$ is integer let $a_{i},i=1,2,\cdots,n$ be postive integer ,show that $$1^{n-1}2^{n-2}\cdots (n-2)^2(n-1)|\prod_{1\le i&lt;j\le n}(a_{i}-a_{j})$$  I know this $\prod_{1\le i&lt;j\le n}(a_{i}-a_{j})$ is  Vandermonde  determinants,and I found $$1^{n-1}2^{n-2}\cdots (n-2)^2\cdot (n-1)=1!2!3!\cdots (n-1)!=\prod_{1\le i&lt;j\le n}(j-i)$$ we only prove $$\prod_{1\le i&lt;j\le n}\dfrac{a_{j}-a_{i}}{j-i}$$ is integer  maybe consider Vandermonde determinants ? But I can't prove this Conditionally Rendering Visualforce element based on user profile I have a controller extension and want to use the Tabbed view to get rid of the Chatter caused endless scrolling.      public class UserProfileGetter {     public UserProfileGetter(ApexPages.StandardController controller) {      String userProfileName = [select u.Profile.Name, id, UserType from User u where u.id = :Userinfo.getUserId()].Profile.Name;      system.debug('Profile===================='+userProfileName);      }    }   When I run the debug it shows my Profile as 'System Administrator' correctly.  My VF page code:  &lt;apex:page standardController="Account" extensions="UserProfileGetter" showHeader="true" tabStyle="account" &gt;   &lt;apex:tab label="Opportunities" name="Opportunities" id="tabOpp" rendered="{userProfileName!='Chatter Content'}"&gt;          &lt;apex:relatedList subject="{!account}" list="opportunities" /&gt;       &lt;/apex:tab&gt;        &lt;/apex:tabPanel&gt; &lt;/apex:page&gt;   So the logic for render I want is - if the user profile name isn't Chatter Content, render. But if I have this logic in the page it won't render for anyone, including me. Ideas? Thanks  Amending - to query other variable on the user, a checkbox called "Admin Team" to display the tab for Account Teams related list, I query for both like this:  public class UserProfileGetter {     public String userProfileName {         get {             return [                     select Profile.Name                     from User                     where Id = :Userinfo.getUserId()                     ].Profile.Name;         }     }     public boolean userAdminTeam {         get {             return [                     select Admin_Team__c                     from User                     where Id = :Userinfo.getUserId()                     ].Admin_Team__c;         }     }      public UserProfileGetter(ApexPages.StandardController unused) {     }   }   And then I use like this:   &lt;apex:tab label="Account Team" name="Account Team" id="Act" rendered="{!userAdminTeam}"&gt;   Thanks all. The limit of a convergent Gaussian random variable sequence is still a Gaussian random variable I'm trying to prove this conclusion but have some problems with one of the steps.  Assume $X_1,\ldots,X_n,\ldots$ is a sequence of Gaussian random variables, converging almost surely to $X$, prove that $X$ is Gaussian.  We use characteristics function here. Since $|\phi_{X_n}(t)|\leq 1$, by dominated convergent theorem, we have for any $t$  $$ \lim_{n\rightarrow\infty}e^{it\mu_n-t^2\sigma_n^2/2}=\lim_{n\rightarrow \infty}\phi_{X_n}(t) = \lim_{n\rightarrow \infty}\mathbb{E}\left[e^{itX_n}\right] = \mathbb{E}\left[e^{itX}\right] = \phi_X(t) $$  this is the step that I cannot figure out: $e^{it\mu_n-t^2\sigma_n^2/2}$ converges for any $t$ if and only if $\mu_n$ and $\sigma_n$ converges.   Let $\mu=\lim_n \mu_n$, and $\sigma=\lim_n\sigma_n$, then $\phi_X(t)=e^{it\mu-t^2\sigma^2/2}$, which proves that $X$ is a Gaussian random variable.  Why can we get that $\mu_n$ and $\sigma_n$ converge? This looks intuitive for me, but I cannot make a rigorous prove. Uniform vs discrete Gaussian sampling in Ring learning with errors The Wikipedia article on  mentions two methods of sampling "small" polynomials namely uniform sampling and discrete Gaussian sampling. Uniform sampling is clearly the simplest, involving simply uniformly selecting the coefficients from the set of small coefficients, thereby guaranteeing they will be small. However, the articles mention that security proofs rely on discrete Gaussian sampling.  However, I have a bit of difficulty wrapping my head around    Why discrete Gaussian sampling would be better than uniform, security-wise?   I mean, usually uniform is preferable - it maximizes the entropy/information in each sample, making the outcome more unpredictable. I could understand it if the Gaussian sampling technique would somehow serve to avoid (at least with high probability) "weak" parts of the space of outcomes but I have found no information/justification that this is the case.  Another reason I can see why discrete Gaussian might be better is that there is, after all, a chance (albeit a small one) one would select a non-small coefficient, so the space of outcomes is actually larger. However, given that this probability of hitting this extra space is (by design) quite small but also that one would likely immediately reject such a sample (because the algorithm calls for a small polynomial), this seems to be irrelevant.  It is not because I am against discrete Gaussian sampling I just want to understand why it is more secure. Also, I want to understand if it really IS more secure or it is simply easier to prove security in that model. I would actually consider that very interesting if it is the case because it raises the question of why is it easier to prove the security under conditions that are intuitively worse (i.e. discrete Gaussian vs the intuitively better uniform case)? If it is so intuitively clear that uniform sampling is better, surely it must be possible to transform that intuition into a security proof of RWE also under uniform sampling. Otherwise, I would fear the intuition must with high likelihood be wrong or at least dubious. How does a Windows 10 'digital license' activate the OS? Shouldn't this be a pretty straightforward operation? However, I see there's neither a size() nor length() method. An infinite Penney's game. Context: I need to solve one variation of the . Problem: Two players ($A$ and $B$) throw a coin until one of the victory sequences appears. For player $A$ the victory sequence is $HTT$, for player $B$ the victory sequence is $TTH$. What is the probability that $A$ wins and what is the expected number of throws given that $A$ won? My attempt: Intuitively, it seems that player $B$ is more likely to win. Basically, I reliase that we can use the Markov-Chains, but my idea is only draw a binary tree and consider the sequences on the n-th step. My another idea was to calculate the expected number of throws to get, say, $HH$ that would be equal to $r_{HH}$: $$r_{HH} =  \frac{1}{4}E(number|HH) + \frac{1}{4}E(number|HH)+ \frac{1}{4}E(number|TT)+ \frac{1}{4}E(number|TH) = \frac{1}{4}(9 + \frac{5}{2} r_{HH})$$  And get $r_{HH}$. My issues: I don't really understand how to join these ideas to get a proper solution. Why can't I copy a 7 GB file to an external USB HD with 120 GB free? File list command line (hidden and subfolders) I need to get a text list of all the files (hidden and visible) off a hard drive, subfolders included. Ideally the list would have the filename, path, size, and creation (or last modified) date if possible. Can someone please tell me what command I need? Also, is it possible to have this created as a .csv file or something similar for use in Excel?  I am not super proficient with Ubuntu so an explanation of each command item would also be greatly appreciated. What can i put into \setmathfont{&lt;...&gt;.otf} for the unicode-math package to make it all work (with XeLaTeX or LuaLaTeX)?  There are several suggestions on the  of unicode-math, but the first option is commercial, and the second and the third do not work with the following example:  % !TEX TS-program = xelatex  \documentclass{article} \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} % \setmathfont{texgyrepagella-math.otf} % \setmathfont{xits-math.otf}  \begin{document} $X\setminus Y$ \end{document}   I do not get the \setminus character in the output.  The \setminus character is also missing if i do not set a math font at all (i do not know which font is used in this case).  It works with xits-math, but i do not like it.  Is it expected by the way that the \setminus character is left blank without giving any warning? When I change the stroke width of a rectangle the width and and height change also. How can I  prevent this from happening? XIV pages in page counts? Is it possible to make biblatex output page counts for both the regular pages and the roman-numbered pages, for example:     Cook, Theodore Andrea. The Curves of Life : Being an Account of Spiral Formations and Their Application to Growth in Nature, to Science and to Art; with Special Reference to the Manuscripts of Leonardo da Vinci. — London : Constable and Company, 1914. — xxx + 479 p.   Here there are "30 pages + 478 pages" in total. Thanks! How do I create an .exe for a Java program? Tikzcd conflict with babel and cd I have this problem: when I try to compile a diagram I get the following message:     I think the culprit is a tikzcd arrow in ell 1-1   But I have not problem when, in the tikzlibrary, I just use cd, matrix and backgrounds. The problem is when using babel and cd at the same time.  \documentclass{article} \usepackage{amsfonts,amssymb,amsmath,tikz} \usepackage[spanish]{babel} \usepackage[latin1]{inputenc} \usepackage[mathcal]{euscript}  \usetikzlibrary{babel,cd,matrix,backgrounds}  \begin{document} \begin{center}   \begin{tikzcd}     X\rar[mapsto]{T}&amp;Y   \end{tikzcd} \end{center}  \end{document} Use of pizza stone in gas oven I have a new gas kitchen stove.  The oven seems to burn so easily. I have a thermometer in there and it is registering the temp that I have the oven set on.  I have seen where people have used a pizza stone to even out the heat.  I want to know if you place a rectangle pizza stone directly on the bottom of the oven or should it be placed on a rack on the lowest setting?  I would appreciate replies from anyone who has used this and if it had helped the problem