PHP "pretty print" HTML (not Tidy)
How to properly indent PHP/HTML mixed code?
Using a new document class/template with LyX? I tried googling this elsewhere but I'm new to LaTeX and extremely confused about certain things. Basically I downloaded MikteX and I'm using the latest version of Lyx with it. Now all I basically know how to do is make pretty looking mathematics and add contents pages/titles/references/etc.  I'm looking to make a dissertation and my unviersity provides a template,  (available for download at that link).  So, what exactly do I need to do (and please be super specific as I am totally clueless to all the jargon I read).   Basically, I need to download ociamthesis.cls in the first line of that webpage. Does it matter where I save it? What exactly do I do next? I know that $\operatorname{Spec} \mathbb{C}[x]$ can be identified with the set $\mathbb{C}\cup *$, where $*$ is a generic point via the correspondence  $$ \prod_{i}(x-a_i) \leftrightarrow \{a_i\}_i , \ \ \ \ (0)\leftrightarrow *. $$ This correspondence holds for any $\operatorname{Spec} k[x]$ with algebraic closed field $k$.   When $k$ is not algebraic closed, how should one understand $\operatorname{Spec} k[x]$? Overriding the java equals() method - not working? I have a TikZ picture with a node containing a minipage with an itemize environment; each item is a hyperref to other sections of the document.   When scaling the image (for example with \begin{tikzpicture}[scale=.7, transform shape] I've a strange behavior: links in itemize are not in the right place: they present a somewhat vertical offset, as if they don't scale as the rest of image.   Here the MWE:  \documentclass[a4paper]{article} \usepackage{tikz} \usepackage[pdftex]{hyperref} \begin{document}  Here something interesting\label{text:interesting-one} \newpage  Here something interesting, too\label{text:interesting-two} \newpage  and here there are very very interesting stuff\label{text:interesting-three} \newpage  \newpage Now the problem: links rectangles have some offset, making links unusable in case of long itemize  \begin{figure}[htb] \begin{tikzpicture}[scale=.7, transform shape] \node at (0,0) (mynode) { \begin{minipage}{4cm} \begin{itemize} \item \hyperref[text:interesting-one]{First link} \item \hyperref[text:interesting-two]{Second link} \item \hyperref[text:interesting-three]{Third link} \item \hyperref[text:interesting-one]{First link again} \item \hyperref[text:interesting-two]{Second link again} \item \hyperref[text:interesting-three]{Third link again} \end{itemize} \end{minipage} }; \end{tikzpicture} \end{figure} \end{document}   And here a snapshot of the problem    Note: This is evident using the default settings of hyperref package, which draws the red rectangle around links, but it took me some time to found it when only the text is coloured, i.e. when using \usepackage[linkcolor=blue,colorlinks=true]{hyperref} How can I get the page title? I'm reposting  I asked on the  SE, bacause I have been redirected to Super User.  I have successfully set up two Linksys routers running DD-WRTv24 to do WDS. They have the same SSID, but different static local IP addresses. There is no security: it's just for testing; no Internet connection.   When I open my notebook, I see the SSID shared by the routers in the list of WiFi access points, and I can connect to it. Once connected, I can ping both routers' local IP addresses, so I know that the WDS is working. But I can't find a way to find out which of them I have actually connected to.  I wouldn't like to have different SSIDs, because I plan to have the access points hand-off users to one another, and I want it to be transparent for the users. I configured one AP to distribute DHCP IP addresses in one range, and the other in another range, so I can discover which AP I connected to at first, but I want a way to discover which AP I'm connected to now, so that I can find out whether the hand-off actually occurred. Evil thoughts without actions? Get selected element's outer HTML Construct ideals in $\mathbb Z[x]$ with a given least number of generators Is it possible to run Snow Leopard on a LATE 2011 MacBook Pro? Finding out NSArray/NSMutableArray changes' indices How do you get your Google+ profile displayed in the right hand sidebar of the Google search results page? On this site I see hundreds if not a thousand questions being asked about issues with a Wireless LAN adapter not being detected/recognized by Ubuntu. Some mainstream adapters appear to be utterly broken in Linux support, while others just require some simple steps to get it to work.  The options to get it to work appear to be infinitely huge and I have no clue where to get started!  What is considered 'best practice'? What order of things to try is most efficient in terms of time, effort and imposes minimal risk to my Ubuntu installation? Please help me save time and guide me what to do, step by step. Let $f:\mathbb{R}\to\mathbb{R}$ continuous such that $\lim_{x\to\infty}f(x+1)-f(x)=l$.  How can I prove that $\dfrac{f(x)}x$ converges for $x\to+\infty$ ?  I am just trying to prove the convergence, not that it converges to $l$ (that part be deduced immediately by Stolz-Cesaro and the sequential characterization of limits) How to call a SOAP web service on Android I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to "kSoap2" and then some bit about parsing it all manually with . OK, that's fine, but it's 2008, so I figured there should be some good library for calling standard web services.  The web service is just basically one created in . I would like to have IDE support for generating the plumbing classes. I just need the easiest/most-elegant way to contact a  based web service from an Android-based phone. How can one securely generate an asymmetric key pair from a short passphrase? Background info: I am planning on making a filehost with which one can encrypt and upload files. To protect the data against any form of hacking, I'd like not to know the encryption key ($K$) used for a file, so the user will have to asymmetrically encrypt $K$ and send it as well. The reason for this double encryption is that you can still share (individual!) files with other accounts by encrypting $K$ with the public keys of those users, too.  My problem is: How can a user can get a public and private key without the server saving/knowing the private key and without the user having to remember a passphrase of 250 hex characters?  Question: Is there a way to derive a key pair from a password, like PBKDF-2 does for symmetric encryption? Suggestions on rearranging the cryptographic steps in an easier way are welcome, too.  Alternatively: It is also possible to encrypt the private key with a PBKDF-applied password and store it on the server, but I'd like to keep things 'simple'. ;)  Note: At this point I don't care if it requires RSA, ECC or an obscure cryptography scheme. When I have these facts,   French coins were not found in the ruin. German coins were not found in the ruin.   which of these sentences are grammatically correct?  1.     No French and German coins were found in the ruin.   2.     No French or German coins were found in the ruin.   3.     No french nor German coins were found in the ruin.   I think 1 is correct but I'm not sure.  By the way, I can also say     Neither German nor French coins were found in the ruin.   Also, when you have an additional fact   Italian coins were not found in the ruin   which of these statements are grammatically correct?  1.     No French, German and Italian coins were found in the ruin.   2.     No French, German or Italian coins were found in the ruin.   3.     None of French, German and Italian coins were found in the ruin.   4.     None of French, German or Italian coins were found in the ruin.   Thanks, How to resize partitions? What diagnostic plots (and perhaps formal tests) do you find most informative for regressions where the outcome is a count variable?  I'm especially interested in Poisson and negative binomial models, as well as zero-inflated and hurdle counterparts of each. Most of the sources I've found simply plot the residuals vs. fitted values without discussion of what these plots "should" look like.  Wisdom and references greatly appreciated. The back story on why I'm asking this, if it's relevant, is .  Related discussions: Can I override the Javascript Function object to log all function calls?