squeeze

LaTeX Beamer: Using \againframe with squeeze option

When I write: \begin{frame}[label=foo,squeeze] ... \end{frame} and later use \againframe{foo} to repeat the frame, the content on the repeated frame is not "squeezed" (and in my case too long to fit on the slide). How do I combine \againframe with the squeeze option? ...

is_file or file_exists not working in apache but in CLI

Hi, I have a very strange behavior with is_file() or file_exists() function. <?php $nfsFile = '/mnt/nfsdir/file.txt'; var_dump(is_file($nfsFile)); ?> this code returns FALSE all the time, but: $#php -r 'var_dump(is_file('/mnt/nfsdir/file.txt'));' returns TRUE, which is correct. I'm running Debian Squeeze, Apache 2.2.15...

Ruby or regex to strip excess line breaks

How would you turn this: Dear Fred How are you? Regards John Into this: Dear Fred How are you? Regards John Note: Single and double breaks are allowed, but no more than that. For example, we want to go from: "Dear Fred\n\n\n\nHow are you?\n\n\n\n\n\n\nRegards\nJohn" to "Dear Fred\n\nHow are you?\n\nRegards\nJohn" But...