Another quote

Thanks to D. Woo’s face book page

“In the end, these things matter most: How well did you love? How fully did you live? How deeply did you let go?” ~ Siddhartha Gautama (Buddha)

Quote of the day

From Daniel D. Woo’s face book page:

The greatest happiness of life is the conviction that we are loved – loved for ourselves, or rather, loved in spite of ourselves.” ~ Victor Hugo

Adding TServerSocket to RAD2007

See http://edn.embarcadero.com/article/29768

Quote of the day

That which we obtain too easily, we esteem too lightly. It is dearness only which gives everything its value. Heaven knows how to put a proper price on its goods.

–Thomas Paine

latex and figures

Including graphics in a LaTeX document

There are two ways to incorporate images into your LaTeX document, and both use the graphicx package by means of putting the command \usepackage{graphicx} near the top of the LaTeX file, just after the documentclass command.
The two methods are

include only PostScript images (esp. “Encapsulated PostScript”) if your goal is a PostScript document using dvips
include only PDF, PNG, JPEG and GIF images if your goal is a PDF document using pdflatex, TeXShop, or other PDF-oriented compiler.
In all cases, each image must be in an individual 1-image file; no animation files or multipage documents.
Only PostScript images

Most mathematical/scientific graphics software allows you to save graphics (figures, diagrams, graphs) in PostScript form; this includes Mathematica, Maple, Matlab, IDL, and xfig (a marvelous X figure-drawing program). Even bitmap images like JPEG and PNG files can be converted to PostScript form with programs like “xv” or “convert”.
Where you want a PostScript image to appear, use the \includegraphics command, possibly with scaling or rotation options, e.g.,

\includegraphics{myfig.eps}
\includegraphics[width=60mm]{myfig.eps}
\includegraphics[height=60mm]{myfig.eps}
\includegraphics[scale=0.75]{myfig.eps}
\includegraphics[angle=45,width=52mm]{myfig.eps}
Of course, any of these can be inserted into a figure environment, and/or a centering environment or a framebox.
Then you must compile the document with latex followed by dvips -Ppdf, which produces a PostScript document with embedded PostScript images. You can convert the PostScript document to PDF using “ps2pdf” or “dvipdf”.

Two characteristics which the component (Encapsulated) PostScript image files must have are

no file contains more than one page
each has a valid BoundingBox line
If the PostScript file does not include a bounding box line, you can insert it using the text editor of your choice.
Only non-PostScript images

The compiler pdflatex (Unix) and TeXShop (Macintosh) convert LaTeX source directly to PDF, and do not accept PostScript images. Instead, they take PDF images, as well as bitmap pictures in PNG or JPEG or GIF format. So to use pdflatex, you must convert any PostScript images to one of these other forms. For photos, JPEG is best. For other bitmap images, PNG is best. For non-bitmap images (e.g., graphs, drawings, stuff with text and symbols) it is best to convert to PDF, using the command epstopdf (in the usual TeX bin directory, e.g., /usr/local/tex/bin/epstopdf). The command
unix> epstopdf myfig.eps
produces the file myfig.pdf, which can then be used in the command \includegraphics{myfig.pdf}. for compilation with pdflatex or TeXShop.
The possible \includegraphics options with PDF/PNG/JPEG images are much the same as with PostScript, e.g.,

\includegraphics{myfig.pdf}
\includegraphics[width=60mm]{myfig.png}
\includegraphics[height=60mm]{myfig.jpg}
\includegraphics[scale=0.75]{myfig.pdf}
\includegraphics[angle=45,width=52mm]{myfig.jpg}
With PNG or JPEG you should specify an explicit width or height rather than “scale”, since bitmap images have no intrinsic size, nothing corresponding to Bounding Box information, although graphicx seems to use 72 pixels per inch as a default size for bitmap images.

Windows 7 tip pages

http://blogs.msdn.com/tims/archive/2009/01/12/the-bumper-list-of-windows-7-secrets.aspx

Remove SSL certificate passphrase

The Situation
You’ve got an SSL certificate for using https on your server. The certificate has a passphrase that only you know.

The Problem
If your server ever needs to be rebooted you will be the only person who can start Apache. This is not a problem normally, but if your server or the host server it resides on requires an unscheduled reboot, it can leave your site out of commision until you can get to the server to restart Apache.

The Fix
Removing the passphrase from your SSL certificate is easy and highly recommended. On your server, go to the directory where your SSL certificate is stored. Update the commands below for the name of your server key.

cp server.key server.key.bak
openssl rsa -in server.key.bak -out server.key

Originally taken from https://support.railsmachine.com/index.php?pg=kb.page&id=144

Create ssh keys

ssh-keygen -t rsa

and set the permissions:
server$ chmod go-w ~/
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys

Creating SSL CSR for GoDaddy

Check out this great link
http://www.wallpaperama.com/forums/installing-ssl-certificate-in-a-godaddy-dedicated-server-with-ispconfig-t7300.html

Make Beyond Compare work with tortoise

1. Select Settings from Explorer’s TortoiseSVN submenu.
2. Switch to the Diff Viewer tab.
3. Change the radio buttons from TortoiseMerge to External.
4. In the path edits, enter:
“C:\Program Files\Beyond Compare 3\BComp.exe” %base %mine /title1=%bname /title2=%yname /leftreadonly

To use Beyond Compare for image comparisons either replace the file C:\Program Files\TortoiseSVN\bin\TortoiseIDiff.exe with a copy of BComp.exe, or click the Advanced button on the Diff Viewer tab and add each image type’s extension with the same command line as above.
see for more info