resolution of image for t-shirt design
T-Shirt print resolution
Why doesn't my ~/.bash_profile work? I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash.  After I start my graphical desktop environment and run a terminal emulator from it, I can see that .bash_profile is not sourced (environment vars that are exported in it are unset). But if I log in from a text console (ctrl+alt+F1) or manually run bash -l from the terminal emulator, .bash_profile works fine.  Am I wrong when I think that .bash_profile should be sourced when X starts and all export'ed vars should be available in the terminal, running from X?  P.S. Placing everything in .bashrc and sourcing it from .bash_profile is not good idea (): environment stuff should be sourced only once. I want to add a feature class within a Geodatabase to a map in ArcGIS Pro (1.4.1) using arcpy. I am converting some python code from ArcGIS Desktop to ArcGIS Pro.   This issue is very similar to:    and      However, instead of adding a feature class (or layer) to a map using the Python Window I am doing this from a  Script within a Toolbox. I have included a code snippet below.  lyrTest = r"C:\data\test.gdb\Layer1"  aprx = arcpy.mp.ArcGISProject("CURRENT") aprxMap = aprx.listMaps("MainMap")[0]  lyrFile = arcpy.mp.LayerFile(lyrTest) aprxMap.addLayer(lyrFile)   I get the following error message:  Traceback (most recent call last): File "C:\data\AddLayers.py", line 5, in &lt;module&gt;     aprxMap.addLayer(lyrTest) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 1048, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: C:\data\test.gdb\Layer1 Failed to execute (AddLayers). When do I need to invoke \phantomsection? The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice. I'm running Fedora 25 and I need to take a few particular screen captures so I've read that shutter is a great tool for that. Sadly I am unable to use it for some reason. Whenever I try to take a screenshot this is the result: prove $\sum_{i=1}^{n}(x_i-\bar{x})^2\lt\sum_{i=1}^{n}(x_i-a)^2$ How do we prove that $$ \sum_{i=1}^{n}(x_i-\bar{x})^2\lt\sum_{i=1}^{n}(x_i-a)^2 $$  where $a$ is any value other than $\bar{x}$, the arithmetic mean.  My Attempt: $$ \sum_{i=1}^{n}(x_i^2-2x_i\bar{x}+\bar{x}^2)\lt\sum_{i=1}^{n}(x_i^2-2x_ia+a^2)\\\sum_{i=1}^{n}x_i^2-2\bar{x}\sum_{i=1}^{n}x_i+\sum_{i=1}^{n}\bar{x}^2\lt\sum_{i=1}^{n}x_i^2-2a\sum_{i=1}^{n}x_i+\sum_{i=1}^{n}a^2\\-2\bar{x}.n\bar{x}+n.\bar{x}^2\lt-2a.n\bar{x}+n.a^2\\-2\bar{x}^2+\bar{x}^2\lt-2a\bar{x}+a^2\\-\bar{x}^2\lt-2a\bar{x}+a^2 $$ But how do I proceed further or is there any better way ? Is it possible to find the origin of a virus? Is there any method with which you can determine the origin for a given piece of malware in Windows?  One of my PCs was recently infected with the  password stealing trojan. Is there any way to tell from what source this virus was downloaded from? How do I get the local machine name? When i put the code $(f_{\mathcal{X}},f_{\mathcal{X}}^{\partial})$ I get the following:  But I want the subscripts to be aligned. How can I do this? Performing Point Distance analysis using Basic level license of ArcGIS Desktop? I am using ArcView (ArcGIS Desktop Basic) 10.1 and I need to perform a point distance analysis.   What are the steps to determine the distance from A to B-Z, B to A-Z, C to A-Z, etc? The Winter Bash is back and the hats are listed below.  As always, there are only two answers: one for the secret hats, and one for the regular hats. The secret hat list will be updated as we learn them.  Only edit the secret hat answer with definitive and correct triggers. This is not the place to post guesses.    If you'd like to discuss Winter Bash, hats or just have a question about the WB please come over to the .  Please keep the comments here clean. As always comments are not meant for discussion, conversation, "I just got hat X", etc use the  for that (the remaining meta mods will periodically clean the comments). I know you are excited you just got a secret hat, but please instead of posting a comment come over to the  and tell us all there.  Provided that "It's important to know your history... in more ways than one"  again this year, here are the hats from prior years: I would like to replace the search submit button with a Font Awesome character like the Magnifier (Search Icon) character, and put Search the site inside the search box.  How can I achieve something like this? For each of the following, give an example of a sequence of functions $f_n$ that converges to f  A. uniformly but not in the mean square sense.  B. in the mean square sense but pointwise nowhere.  I know that for part A the domain of the function cannot be bounded but other then that I'm not sure how to go about the problem What is a nicer, less immature saying?  I love using 'A Freudian slip', but that is only applicable in certain situations. How to open a PDF file from terminal? I used to work on the Mac terminal before and I used:   open file2open.pdf   and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I get this error message:   Couldn't get a file descriptor referring to the console I'm just going to throw this out there, but Google indexes Stack Overflow really quickly For example, I  after using Google to try to find an answer. I then turned back to Google and did a search for  and it was already the first result! Similar searches also put my question on the first page, usually in the top 5!  This is insanity. Did I get lucky and post just before an indexing? Is the popularity of SO leading to Google indexing extremely frequently? Or is Jeff using some kind of crazy SEO? My final goal is to generate Impulse Response Functions in R.  I have variables that are non stationary when I set k = 5 in a Unit Root test, and they are cointegrated which to my understanding prompts the use of the VECM, from which the Vec2Var argument is used to then generate IRFs. However, my response functions from this methodology do not decay over time and mostly do not revert to the zero line.  Furthermore, I noticed that when I input first differenced variables into the VECM as opposed to level data above, response function do revert to the zero line. Therefore my first question is: 1) is it appropriate to use differenced variables in a VECM model?  Secondly, as an alternative I am considering restricting the number of lags used in the Unit Root tests so that the variables are not all non-stationary; in this case 2) would the use of VECM be void and the VAR with first differences be a more appropriate model? Again, using differenced data is giving me better response functions that revert to zero in the long run. However, 3) is it ok to use the VAR for stationary/non-stationary data in levels where these variables are still cointegrated?  Also, I am using growth rate variables, 4) should I still long transform all variables and use logs in all tests?  Thank you for the help! According with Mumford the answer is yes, but there are some obscure points in the proof.  We know that there exists a very ample line bundle on $A$ since every abelian variety is projective. Hence, via some corollaries of the Theorem of the Cube, we get an ample line bundle whose restriction to the kernel of $n_A$ is both the trivial bundle and very ample. This should imply that the dimension of $\ker n_A$ is $0$.  Furthermore, Mumford says that the fact that the dimension of the kernel is $0$ implies the surjectivity of $n_A$.  Is anybody able to clarify these two points to me?  Thanks in advance! What are some useful, undocumented Mathematica functions? Let $S$ be a finite collection of real numbers (not necessarily distinct). If any element of $S$ is removed then the remaining real numbers can be divided into two collections with same size and same sum ; then is it true that all elements of $S$ are equal ?  (I know the result is true if the &quot;reals&quot; are replaced by &quot;integers&quot;.)