How do you exclude any &amp; all traffic that isn't from USA &amp; Canada in Google Analytics?
I have a site which is only for US/Canada/UK visitors. I don't want to make it visible to other visitors.  I tried to put IP ranges in .htaccess (Deny IP) but it does not work for me. May be I have inaccurate IP lists or I am doing something wrong.
Live USB for installation does not boot, black error screen followed by visual artifacts on a purple screen In Bash, two integers can be compared using conditional expression     arg1 OP arg2      OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These   arithmetic binary operators return true if arg1 is equal to, not equal   to, less than, less than or equal to, greater than, or greater than or   equal to arg2, respectively. Arg1 and arg2 may be positive or negative   integers.   or arithmetic expression:     &lt;= &gt;= &lt; &gt; comparison      == != equality and inequality   Why do we have two different ways for comparing two integers? When to use which?  For example, [[ 3 -lt 2 ]] uses conditional expression, and (( 3 &lt; 2 )) uses arithmetic expression. Both returns 0 when the comparison is true  When comparing two integers, can these two methods always be used interchangeably? If yes, why does Bash have two methods rather than one? Suppressing addition of blank page before figure when wrapping long JPEG image I have the following LaTeX file, whose sole purpose is to wrap a JPEG file. This file does not convert well to PDF, so I'm using this unorthodox technique to convert it.  \documentclass{article} \usepackage[pdftex]{graphicx} \pagenumbering{gobble} \begin{document}  \centering\includegraphics[height=650pt]{foo.jpg} \end{document}   This produces a PDF file including the document, but it first includes a blank page, and thus produces a 2 page document, rather than a 1 page document. How do I get rid of this blank page? Using \textheight instead of 650pt as an argument to \includegraphicsmakes the  problem go away, but I'd prefer the larger size I get from using 650pt.  Here is the relevant information from the log file.  &lt;foo.jpg, id=1, 162.6075pt x 1165.35374pt&gt; File: foo.jpg Graphic file (type jpg)  &lt;use foo.jpg&gt; Package pdftex.def Info: foo.jpg used on input line 14. (pdftex.def)             Requested size: 90.6998pt x 650.0pt.  [1  ] Overfull \vbox (100.0pt too high) has occurred while \output is active []   [2 &lt;./foo.jpg&gt;] (./foo.aux) )    I'd prefer to not make the actual document public. Therefore the code above is not a MWE. However, if anyone has tips on how to create a dummy JPEG of the same size, let me know. Prior to the spell cast on Mjolnir, did Thor control lightning on his own? Parsing DD MM YY HH MM SS columns from TXT file using Python's pandas After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement.     ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐  │                                                                           │   │ TrueType core fonts for the Web EULA                                          │                                                                               │ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE                             │                                                                               │ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement           │ ("EULA") is a legal agreement between you (either an individual or a          │ single entity) and Microsoft Corporation for the Microsoft software           │ accompanying this EULA, which includes computer software and may include      │ associated media, printed materials, and "on-line" or electronic              │ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your          │ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be        │ bound by the terms of this EULA. If you do not agree to the terms of          │ this EULA, you may not use the SOFTWARE PRODUCT.                              │                                                                               │                                  &lt;Ok&gt;                                         │                                                                           │   └───────────────────────────────────────────────────────────────────────────┘    Screenshot:   For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong hotkey...  I've tried every letter on the keyboard and Enter among others...  I'm sure there is a very simple and obvious solution to this.  I've also just tried to remove the package completely however the terminal states that due to the package not being correctly installed, I should reinstall the package before removing it.  Very frustrating!  Essentially, because I cannot successfully install this package, I can't really ever upgrade my system because I always have to end up terminating the terminal with the license agreement (thus the upgrade fails). What is the value of $i^{i^{i^\ldots}}$? What is the value of $i^{i^{i^\ldots}}$?   My effort is the following: If $z, \alpha \in \mathbb{C}$ with $z \neq 0$ then we can write $z^{\alpha}=e^{\alpha \log z} = e^{\alpha [ \log |z|+i \text{ Arg z} + 2 \pi i m]}$ where $ m=0, \pm 1, \pm 2, \ldots$  and Arg z is the principle argument of the complex number $z$. But in above expression we don't have the finite no of exponents, so I am not sure how should I use this formula to the solve above problem. Thanks and Regards! Is there a Windows standard way to do things such as "start fan", "decrease speed" or the like, from C/C++?  I have a suspicion it might be ACPI, but I am a frail mortal and cannot read that kind of documentation.  Edit: e.g. Windows 7 lets you select in your power plan options such as "passive cooling" (only when things get hot?) vs. "active cooling" (keep the CPU proactively cool?). It seems the OS does have a way to control the fan generically. Triangular Factorials I came across a statement online and have been looking for a proof :  It states that 1, 6 and 120 are the only numbers which are both triangular and factorials.  Is there any way I can prove this? This claim looks too 'big' and I've tried to prove it but  I couldn't. Can anyone help me to prove this? Prove a graph Containing $2k$ odd vertices contains $k$ distinct trails Wireless antenna does not appear despite its driver being installed How to permanently switch Caps Lock and Esc How can I permanently switch the Caps Lock and Esc key functions in Saucy? I can use this command to do it temporarily (until reboot):  /usr/bin/setxkbmap -option "caps:swapescape"   I tried adding that command as a Startup Application, but it doesn't seem to do anything. 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. Effect on Google rankings if my site is down? Is there a pattern to which Star Trek ships get the definite article? Some ships in Star Trek are referred to with definite articles. "The Enterprise", "The Defiant". Other ships are referred to without them. "Voyager", "Enterprise". Is there a pattern to or explanation for this behavior? Difference between confidence intervals and prediction intervals For a prediction interval in linear regression you still use $\hat{E}[Y|x] = \hat{\beta_0}+\hat{\beta}_{1}x$ to generate the interval. You also use this to generate a confidence interval of $E[Y|x_0]$. What's the difference between the two? Is it possible to upgrade the graphics card in modern laptops? As there's no definitive answer to this, and I would prefer not to be too specific about particular models, what are the things that determine whether this is possible or not?   What expansion slots would the laptop require to do this? How can you find out if a motherboard/chipset supports upgrades?  Is heat an issue? Could it void the warranty? How is battery life affected? Images instead of radio buttons or dropdown list? How are large amounts of money expected to be made during the early parts of the Waterdeep: Dragon Heist adventure? Can it happen that the image of a functor is not a category? On Hilton and Stammbach's homological algebra book, end of chap. 2, they wrote in general $F(\mathfrak{C})$ is not a category at all in general. But I don't quite get it. I checked the axioms of a category for the image, and I think they are all satisfied. Am I missing something? Thanks.