I have photoshop CS6 installed and working on Wine1.7. It's actually surprisingly smooth. The only issue I have now is that the fonts are a bit limited, and I'm not sure if it's an issue with wine or with the photoshop installation. I tried copying some fonts to the ~/.wine/drive_c/windows/Fonts/ directory but they are not appearing in photoshop.  What should I do?
Is there a way to install fonts on wine?   I'm looking to install fonts so i can use them to render text differently on various apps. Specifically myriad.
Is there a LaTeX trick to prevent a PDF viewer from copying the line number? A PDF output is obtained by compiling the following code. \documentclass{article} \usepackage{xcolor} \usepackage{listings}  \lstset {     language={[LaTeX]TeX},         numbers=left,         numbersep=1em,         numberstyle=\tiny,     frame=single,     framesep=\fboxsep,     framerule=\fboxrule,     rulecolor=\color{red},     xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,     xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,     breaklines=true,     basicstyle=\small\tt,     keywordstyle=\color{blue},     commentstyle=\color[rgb]{0.13,0.54,0.13},     backgroundcolor=\color{yellow!10},     tabsize=2,     columns=flexible,     morekeywords={maketitle}, }  \begin{document}  \begin{lstlisting} \documentclass{article} \usepackage{listings} \title{Sample Document} \author{John Smith} \date{\today} \begin{document} \maketitle Hello World! % This is a comment. \end{document} \end{lstlisting}  \end{document}  I attempted to copy the code only inside Acrobat Reader. Unfortunately, the line numbers also got copied as shown on the following screen shot.  The line numbers are useful, but readers want not to copy them. Is there a LaTeX trick to prevent a PDF viewer from copying the line number? Analyzing a sentence Do my analyze is correct? If don't then correct it.  Sentence: The tsunami and the undersea earthquake which triggered it, the largest ever recorded in the region, killed nearly 20,000 people, destroyed over 100,000 homes and threw the lives of tens of millions into turmoil.  Subject: The tsunami and the undersea earthquake Principal verb: triggered Adjective clause of subject:the largest ever recorded in the region, killed nearly 20,000 people, destroyed over 100,000 homes Use of parallelism:threw the lives of tens of millions into turmoil. How is the derivative of $\textrm{Trace}\left\{ X^T A X B\right\}$ with respect to $X$ equal to $AXB + A^TXB^T$? Copy specific file type keeping the folder structure The difficulty is that it should be cross platform. Windows 2000, XP, Vista, OSX, Linux, other unix variants. I am looking for a snippet of code that can accomplish this for all platforms, and a way to detect the platform.  Now, you should be aware of  that user.home does not work correctly, so please do not provide me of textbook answers, I can find these myself in the manuals. Why is the complex number $z=a+bi$ equivalent to the matrix form $\left(\begin{smallmatrix}a &-b\\b&a\end{smallmatrix}\right)$ Possible Duplicate:          On Wikipedia, it says that:     Matrix representation of complex numbers   Complex numbers $z=a+ib$ can also be represented by $2\times2$ matrices that have the following form: $$\pmatrix{a&amp;-b\\b&amp;a}$$   I don't understand why they can be represented by these matrices or where these matrices come from. Badges with long names overflow on the profile page in a mountain climbing expeditions 5 men and 7 women are to walk in a mountain climbing expeditions 5 men and 7 women are to walk single file so that no 2 men are adjacent. How many ways are possible? Best way to go from T1 to T2 in Mumbai How can I "grep" patterns across multiple lines? It seems I am misusing grep/egrep.   I was trying to search for strings in multiple line and could not find a match while I know that what I'm looking for should match. Originally I thought that my regexes were wrong but I eventually read that these tools operate per line (also my regexes were so trivial it could not be the issue).  So which tool would one use to search patterns across multiple lines? Obtaining remote host name in bash script Sorry my knowledge of Linux bash commands is pretty basic, I've been searching for a while but I'm not 100% sure what I need to search for.  I was wondering if there's a way to grab the current logged in users remote host name in a Linux bash script? I have a script in which I need to log each time a user runs it. I'm obtaining the date like so:  cdat=`/bin/date +%a' '%d' '%h' '%Y', '%H':'%M`;   I now need to add the users remote host (not the username they logged in with). I'm not 100% sure I'm using the right terminology here either, just to clarify; by 'remote host name' I mean the same output that prints on the screen on most servers I've logged into over ssh, for example:  Last login: Mon Jul 22 16:35:09 2013 from win7-i7-stuart.my.domain.com   I'm looking for the win7-i7-stuart.my.domain.com bit. My Custom Skin won't Change How to use AT commands in Android by 'root' the phone We have various Android devices from Spike, Samsung, Micromax, etc. How can we issue AT commands from Android to the modem? We searched in Google Play but did not find any app related to this.   suggests:     [F]irst you have to root the phone...`    How can we do this? Why KL divergence is non-negative? Why is KL divergence non-negative?  From the perspective of information theory, I have such an intuitive understanding:  Say there are two ensembles $A$ and $B$ which are composed of the same set of elements labeled by $x$. $p(x)$ and $q(x)$ are different probability distributions over ensemble $A$ and $B$ respectively.   From the perspective of information theory, $\log_{2}(P(x))$ is the least amount of bits that required for recording an element $x$ for ensemble $A$. So that the expectation $$\sum_{x \in  ensemble}-p(x)\ln(p(x))$$ can be interpreted as at least how many bits that we need for recording an element in $A$ on average.   Since this formula puts a lower bound on the bits that we need on average, so that for a different ensemble $B$ which brings about a different probability distribution $q(x)$, the bound that it gives for each element $x$ will surely not bit that is given by $p(x)$, which means taking the expectation, $$\sum_{x\in ensemble}-p(x)\ln(q(x))$$ this average length will surely be greater than the former one, which leads to $$\sum_{x\in ensemble }p(x)\frac{\ln(p(x))}{\ln(q(x))} &gt; 0$$  I don't put $\ge$ here since $p(x)$ and $q(x)$ are different.  This is my intuitive understanding, is there a purely mathematical way of proving KL divergence is non-negative? The problem can be stated as:  Given $p(x)$ and $q(x)$ are both positive over real line, and $\int_{-\infty}^{+\infty}p(x)dx = 1$, $\int_{-\infty}^{+\infty}q(x)dx = 1$.  Prove $$\int_{-\infty}^{+\infty}p(x)\ln\frac{p(x)}{q(x)}$$ is non-negative.  How can this be proved? Or can this be proved without extra conditions? PHP variable variables I want to store courseworks marks of n courseworks into n variables, such as cw1 and cw2 etc. Using variable variables how can I come with cw1, cw2 etc.   How can I dynamically create variables? Grandi's Series; tends to $1/2$, but why is this considered a valid sum? Aligning table within latex editor In the , if I select any site in the site switcher it will be set as Stack Overflow or some random site in the drop down list's selected site name.  For the Stack Overflow, Super User, Server Fault and Meta Stack Exchange, the site switcher is set to the selected site name, but the remaining do not retain the selected site name. For English Language and Usage, it changes to Physical Fitness for some reason. All the others I've tried  switch to Stack Overflow.  It can be replicated in Chrome and Firefox.  GIF for the same: Calling Python in PHP I have a Python script I recently wrote that I call using the command line with some options. I now want a very thin web interface to call this script locally on my Mac.  I don't want to go through the minor trouble of installing mod_python or mod_wsgi on my Mac, so I was just going to do a system() or popen() from PHP to call the Python script.  Any better ideas? Thanks in advance! let $n\gt1$  be a fixed natural number, $S:=${$A $: $M_n (\mathbb{R})$ be all real matrix,define this meter for all $A=[a_{ij}]$ $B=[b_{ij}]$   $d(A,B)$:=max{|$a_{ij}-b_{ij}$|:i,j=1,2,2...,n} and $GL(n,\mathbb R)$ is set of all $n\times n$ non singular matrix how to prove that $GL(n,\mathbb R)$ is  not connected and open subset of $S$ ?  thanks in advance