npm: Cannot read property ‘resolve’ of undefined

When developing software for Node.js, I use the n package manager to manage and switch between Node versions. Recently, I needed to update my installed Node version (9.2.1) to something more recent. I ran $ sudo n latest to install 13.1.0. But after the upgrade, npm installations stopped working. Any use of npm i would […]

Posted on: 16 November 2019 | 9:19 am

Where’s “Scheduled Tasks” in Windows 7?

Windows 7 doesn't have a "Scheduled Tasks" folder like Windows XP did, but the same functionality is still there. Here's how to find it.

Posted on: 26 November 2011 | 10:02 am

How to Remove Dates from WordPress Posts

If your content is not time-oriented (such as when using WordPress in non-blog contexts), you may wish to remove the publication date from your posts since this information is not relevant and can give the impression that your older content is outdated. 1. The Manual Method The “proper” way to do this would be to edit your theme and remove the code that displays the post dates. Backup your theme, just in case Go to “Appearance > Editor” and repeat the following steps for each of your theme’s PHP files Look for these function calls in your theme’s code: the_date(), echo get_the_date(), the_modified_date(), and the_time() Surround the function calls with PHP comment markers (/* and */); here are some examples: <?php /*the_date();*/ ?> <?php /*the_date('F j, Y');*/ ?> <?php /*echo get_the_date();*/ ?> <?php /*the_modified_date();*/ ?> <?php /*the_modified_date('', 'Last modified ');*/ ?> <?php /*the_time( get_option('date_format') );*/ ?> You may want to remove other text surrounding the function call. For example, if your theme has this code… <div>Published on <?php the_time( get_option('date_format') ); ?></div> …and you replace it with this… <div>Published on <?php /*the_time( get_option('date_format') );*/ ?></div> …your theme will output “Published on,” but not the date. Deleting “Published on” from your theme file will remove it from your site. Just be aware that you may have to remove text like this from your theme files to get a clean-looking result. Click “Update File” 2. The Automatic Method If you’re looking for a quick fix, just go to “Appearance > Editor” in your WordPress admin and add this code to your theme’s functions.php file. Put it at the top of the file, but after the opening <?php line. function jl_remove_post_dates() { add_filter('the_date', '__return_false'); add_filter('the_time', '__return_false'); add_filter('the_modified_date', '__return_false'); } add_action('loop_start', 'jl_remove_post_dates'); (Note: This method requires WordPress 3.0 or above) Now check your site and verify that the post dates are gone. If they’re not, try replacing the code above with this more “aggressive” version: function jl_remove_post_dates() { add_filter('the_date', '__return_false'); add_filter('the_time', '__return_false'); add_filter('the_modified_date', '__return_false'); add_filter('get_the_date', '__return_false'); add_filter('get_the_time', '__return_false'); add_filter('get_the_modified_date', '__return_false'); } add_action('loop_start', 'jl_remove_post_dates');

Posted on: 1 June 2011 | 12:27 pm

How to Save a Word Doc as a PDF

Need to save your document as a PDF? Just follow these step-by-step instructions for Word 2007 or 2010.

Posted on: 26 May 2011 | 1:58 pm

How to Fix Missing Post Dates in Your WordPress Theme

The problem: When you have multiple posts published on the same day, the post date only shows up for the first one when you view the posts on your site. The fix: Go to “Appearance > Editor” and repeat the following steps for each of your theme files Look for instances of this code: <?php the_date(); ?> Replace that code with this code: <?php echo get_the_date(); ?> Click “Update File” The explanation: Most WordPress template tag functions that start with “the_” will merely output the values returned by their equivalent “get_the_” functions. However, “the_date()” is an exception to this standard because it adds functionality that’s not present in “get_the_date()”, namely, not outputting the same date more than once per page, which can be a feature or an annoyance depending on your desired functionality.

Posted on: 26 May 2011 | 9:41 am

How to Delete an Old Email Address from Outlook Autocomplete

If you update an Outlook contact but the old email address keeps showing up in Outlook's autofill, just follow these 4 steps.

Posted on: 21 May 2011 | 4:56 pm

How to Change a Drive Letter in Windows XP/Vista/7

Just follow these 15 steps to change the drive letter of your hard drive, flash drive, or disc drive. Works on Windows 7, Vista, and XP.

Posted on: 20 May 2011 | 1:57 pm

How to Temporarily Disable Spell Check in Word

Sometimes you want to disable spell check for just the particular document you're working on. Here's how to do it in Microsoft Word 2010/2007/2003.

Posted on: 4 April 2011 | 9:00 am

How to Fix Outlook Font Size Problem

When reading or writing emails in Outlook, is font size 12 looking like size 6 or size 24? Thankfully it's an easy fix.

Posted on: 29 March 2011 | 9:00 am

How to Zoom Emails in Outlook

The "zoom" command can be tricky to find in Outlook. Here's how to zoom when reading or writing email messages in Outlook 2010/2007/2003.

Posted on: 23 March 2011 | 1:53 pm