Blogs

Concatenate PDFs on the Command Line

Concatenate PDF’s on the Command Line

I used to use pdfchain to concatenate PDF files. It’s a GUI based program that gets the job done and can do a few other things as well.

But for simple concatenating jobs, it’s just easier, and quicker, to use the command line.

There’s a couple of programs that I routinely use: gs (ghostscript) and pdftk.

Continue reading

bash error redirection

Clarifying bash redirection for stdout and stderr

I sometimes forget some of the simplier things that I actually use quite frequently in the bash shell. Error redirection involving stdout and stderr seems to be one of them. Below are a few examples that explain things better than I can put in words. But first, note the following givens and assumptions:

  • stdout == standard output == file descriptor 1
  • stderr == standard error == file descriptor 2
  • & indicates that what follows is a file descriptor and not a file name
  • /not is a non-existent directory
  • /tmp is an existing directory

Continue reading

Looking To Next Year

“There are years that ask questions and years that answer.”

From Their Eyes Were Watching God by Zora Neale Hurston

I read Their Eyes Were Watching God this year, which is an amazing book with many important messages that still resonate today even though it was first published in 1937. The above quote, however, caught my attention and made me reflect on the recent presidential election.

Continue reading

bootstrap overriding

How do I override bootstrap.css so that I remove the style for an anchor/class? For example, if I want to remove some or all the styling rules for legend: legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } Would you use !important like this: legend { display: inherit !important; width: 100%; padding: 0; margin-bottom: inherit !

Continue reading