1. Configuring openssh 3.9 or higher (FC3 or higher) to allow X11 forwarding.
The default configuration doesnot allow forwarding, so remote graphical programs fail to start. The ForwardX11 and/or ForwardX11Trusted must be changed to yes in either the system wide file or in ~/.ssh/config file. See also http://fedora.redhat.com/docs/release-notes/fc3/x86/.
2. Debugging memory problems without recompiling.
When MALLOC_CHECK_ is set, a special (less efficient) implementation is used which is designed to be tolerant against simple errors, such as double calls of free with the same argument, or overruns of a single byte (off-by-one bugs). Not all such errors can be protected against, however, and memory leaks can result. If MALLOC_CHECK_ is set to 0, any detected heap corruption is silently ignored; if set to 1, a diagnostic is printed on stderr; if set to 2, abort is called immediately. This can be useful because otherwise a crash may happen much later, and the true cause for the problem is then very hard to track down.
3. Coverting a color pdf document into grayscale.
In Acrobat 7 Pro, go to TOOLS--Print Production--Convert Colors...
I used a destination Profile of "Gray Gamma 2.2" and clicked on "Preserve black objects"
4. How to use a strikeout/strikethrough font with LaTeX
%
% include the "ulem" package in the header
%
\usepackage{ulem}
%
% use the "sout" tag to "strike through" text
%
\sout{Bill Clinton} G.W. Bush is the pres.
5. MFC projects with CMake
What you do is to start the skeleton of your app using the
VisualStudio IDE, then create a CMakeList.txt file that uses
the files generated by VisualStudio. Then, from there, you
generate the Visual Studio project using CMake.
6. MFC (f****) again and CLR in VS.
Project Properies - Configuration Properties - General - Common Language Runtime Support
7. MFC (cant find a lib corresponding to dll)
Check if you are exporting symbols using _declspec(dllexport). In all shared libraries for microshit, this
should be set for all classes and functions that need to be exported (lots of exceptions apply!)
8. If X doesnt start on linux.
Check the font server. Add fontpath to the XF86 config file.
9. Side-By-Side Figures and Tables in LaTeX.
\begin{figure}[htb]
\centering
\begin{minipage}[c]{0.38\textwidth}
\centering
\input{benchmarks/sor-v.tab}
\end{minipage}
\begin{minipage}[c]{0.58\textwidth}
\includegraphics[width=\textwidth]{benchmarks/sor-v}
\end{minipage}
\figcaption{SOR;\@\vnus{} version, compiled by \rotan{}.}\label{fig:sor-v}
\end{figure}
10. Unix is great. Long liver unix.
fmt -- simple text formatter. reads in a file and outputs file that has fixed width.