I had a client contact me with the problem that on his site a jpg will not display in IE8, but is showing up in other browsers. After checking the code and viewing the image in multiple browsers, including IE8 mode (using IE10’s web developer tools), I was convinced it was a problem with the […]
Vim Visual Mode Search for Selection
Sometimes you want to search for a long string in Vim. When using a GUI interface you may be able to get away with CTRL+c, CTRL+v but when you are in a terminal, it is a little trickier to use Vim Visual Mode search for a selection. Here is how to search in Vim using […]
I’m a Buttercup
A little girl says to her father, “Look at me Daddy, I’m a buttercup.” He replies, “Don’t be ranunculus.” And thus ends my segment of jokes for horticulturists. Relevant link (Wikipedia Ranunculus).
Stop Annoying Mac Updates Available
UPDATE: This wonderful ability to ignore updates has been removed in Mavericks ( OS X 10.9 ). https://discussions.apple.com/thread/5509820 Mac Updates Available has been an annoying reoccurring message for me ever since we got a new printer replacing the HP model we had previously. With the old printer gone there is no reason to install updates to […]
French Fries in July
What does a gymnast put on her french fries in July? somersault (summer salt)
searchform.php not working in WordPress 3.6
This problem arises from a difference in how WordPress 3.5.2 and 3.6 handle the case where there is both a searchform.php template AND a filter on the hook get_search_form. In WordPress 3.5.2 in the presence of a searchform.php template, any filters on the hook get_search_form were ignored. With the upgrade to 3.6, filters on get_search_form are now […]
Spice Dealer’s Convertible
Did you hear about the spice dealer whose mother liked his convertible? He lent the cardamom.
Stop Emails WordPress Plugin
Stops outgoing emails. Any outgoing emails will fail silently (i.e. WordPress will operate as if the email was sent successfully but no email will actually be sent). Why I’ve found when doing development work, sometimes I want to work on a site (often locally) but I don’t want it sending out any emails. Now with […]
Contractor Bag Window Shade
It is tough enough to convince a one-year-old to take a nap on vacation, without the added disadvantage of a bright room. This year we took a contractor bag and painter’s tape with us on vacation. It made a perfect blackout shade. I could have developed film in that room. I’ve already added these items […]
VIM fix line-breaks
When your line-breaks are WONKY, try this. :%s/\r//g Definition of “WONKY” Some (or all) of the lines have ^M at the end of them. This is a product of mixed line endings (DOS and UNIX).