How To Disable WordPress wpautop for Shortcodes

Author: , Posted on Friday, June 15th, 2018 at 1:35:54pm

remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'smart_autop' );
function smart_autop($content) {
$post = get_post();
if($post->post_type != 'post') return $content; // if not a post, leave $content untouched
return wpautop($content);

Trademark Symbol

Author: , Posted on Friday, June 15th, 2018 at 9:53:58am

™ ™

How To Select Rows in MySQL with No Matching Entry in Another Table

Author: , Posted on Wednesday, May 16th, 2018 at 6:08:36pm

FROM tableOne t1
LEFT JOIN tableTwo t2 ON =

The “WHERE IS NULL clause” restricts the results to only those rows where the id returned from tableTwo is null. will be NULL for all records from tableOne where the id is not found in tableTwo.

How To Move Around in Linux CLI Mail

Author: , Posted on Monday, May 7th, 2018 at 4:48:44pm

h Shows you a screenful of message headers (a “header” being the number, sender, date, size and subject).
h with no message number shows the current screenful of messages (the number that make up a screenful is set with the screen variable, described below).

h$ shows you the last screenful of messages — which is usually what you’re interested in (this is usually the first thing I type when I start mail).

h1 or h^ shows you the first screenful of messages.

z or z- If there is more than a screenful of messages, then z will show the next screenful, and z- will show the previous screenful.

d Mark message(s) for deletion.

d with no number marks the current message for deletion.

d with a number (or +, -, $, etc.) will mark the specified message(s) for deletion. To delete messages 1 to 3, you could do d 1-3, or d 1 2 3 or d *

I means ‘mark for deletion’ instead of ‘delete’ because the changes you make are only saved when you type q.

R.I.P. James R. Boyd Sr. (1934 – 2018)

Author: , Posted on Tuesday, May 1st, 2018 at 8:39:14am

James R. Boyd Sr. (1934 - 2018)

James R. Boyd Sr. (1934 – 2018)

NORTH RUPERT – James R. Boyd Sr., age 84 passed away peacefully on Monday, April 23, 2018, after an extended hospitalization.
Jim was born in Albany, NY, on March 26, 1934, the only child of David and Elizabeth (Adams) Boyd. He grew up in Colonie, NY, and served honorably in the U.S. Army 82nd Airborne Division in the 1950s.
Jim was the proprietor of Valley Woodworking in North Rupert, specializing in custom cabinetry work for the past 28 years.
He loved seeing friends and neighbors from the Pawlet community each day and was a regular at Mach’s Market and Sheldon’s Store in Pawlet for morning coffee. Always quick with a smile, he loved to laugh, share a good joke and opine on national and world events. It was especially pleasing to him when neighbors stopped into his shop for conversation.
Jim loved the outdoors and hunted and fished his entire life from the Adirondacks of New York to Narragansett Bay in Rhode Island. Oftentimes on summer evenings, he would be found fly fishing in his favorite spots along the nearby Mettowee River.
Jim is survived by his loving wife of 28 years, Linda (Stetson) Boyd. He was the beloved father of James R. Boyd Jr. and his wife, Emily Harrison, of Rumford, RI; his daughter, Cheryl Curcio and her husband, Steven, of Smithfield, RI; his daughter, Kerry Fleming and partner Al Wood, of Coventry, RI. He is also survived by a stepson, Robert Stetson, of Warwick, RI; and was predeceased by his stepdaughter, Melissa Stetson.
Additionally, he is survived by his six cherished grandchildren Tyler Curcio, Jordan Curcio, Andrew Fleming, Ryan Fleming, Jennifer Fleming, U.S. Navy PO3; and Rocque Dutil. He is also survived by his first wife, Arlene (Hunt Boyd) Papa.
Friends are invited to join family members for a graveside service with military honors to be held on Saturday, May 5, at 9 a.m. in the North Rupert Cemetery, VT Route 30.
A celebration of life gathering will immediately follow at The Barn Restaurant, 5581 VT Route 30, Pawlet.
Donations in Jim’s memory may be sent to the Wounded Warriors Project at:
To send personal condolences, please visit

April 30th and Snow is Falling

Author: , Posted on Monday, April 30th, 2018 at 8:00:23am


How To Locate Attached Disk Devices in Linux

Author: , Posted on Tuesday, April 24th, 2018 at 11:11:40am
# lsblk -a

nvme1n1       259:0    0  100G  0 disk /volumes/data
nvme0n1       259:1    0   20G  0 disk 
├─nvme0n1p1   259:2    0   20G  0 part /
└─nvme0n1p128 259:3    0    1M  0 part 
nvme1n1       259:0    0  100G  0 disk /volumes/data
nvme0n1       259:1    0   20G  0 disk 
├─nvme0n1p1   259:2    0   20G  0 part /
└─nvme0n1p128 259:3    0    1M  0 part 

April 19th and Snow is Falling

Author: , Posted on Thursday, April 19th, 2018 at 8:49:11am


April 17th and Snow is Falling

Author: , Posted on Tuesday, April 17th, 2018 at 8:08:03am


How To Move in vim Using the Keyboard

Author: , Posted on Wednesday, March 21st, 2018 at 12:55:29pm

h move one character left
j move one row down
k move one row up
l move one character right
w move to beginning of next word
b move to previous beginning of word
e move to end of word
W move to beginning of next word after a whitespace
B move to beginning of previous word before a whitespace
E move to end of word before a whitespace
All the above movements can be preceded by a count; e.g. 4j moves down 4 lines.

0 move to beginning of line
$ move to end of line
_ move to first non-blank character of the line
g_ move to last non-blank character of the line

gg move to first line
G move to last line
ngg move to n'th line of file (n is a number; 12gg moves to line 12)
nG move to n'th line of file (n is a number; 12G moves to line 12)
H move to top of screen
M move to middle of screen
L move to bottom of screen

zz scroll the line with the cursor to the center of the screen
zt scroll the line with the cursor to the top
zb scroll the line with the cursor to the bottom

Ctrl-D move half-page down
Ctrl-U move half-page up
Ctrl-B page up
Ctrl-F page down
Ctrl-O jump to last (older) cursor position
Ctrl-I jump to next cursor position (after Ctrl-O)
Ctrl-Y move view pane up
Ctrl-E move view pane down

n next matching search pattern
N previous matching search pattern
* next whole word under cursor
# previous whole word under cursor
g* next matching search (not whole word) pattern under cursor
g# previous matching search (not whole word) pattern under cursor
gd go to definition/first occurrence of the word under cursor
% jump to matching bracket { } [ ] ( )

fX to next 'X' after cursor, in the same line (X is any character)
FX to previous 'X' before cursor (f and F put the cursor on X)
tX til next 'X' (similar to above, but cursor is before X)
TX til previous 'X'
; repeat above, in same direction
, repeat above, in reverse direction