Blogs

vim background cheatsheet

I wanted a quick and convenient cheatsheet to use with Vim. Additionally, it needed to be dynamic such that it only included the things I was trying to learn. And once those things were ingrained in my fingertips, there should be a way to remove the tips (the cheatsheet tips, not my fingertips) from my cheatsheet. And ideally, adding and deleting tips from my cheatsheet should be quick and relatively effortless. That’s when I came upon the idea of having my screen background become my cheatsheet.

Continue reading

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