How to Add Fonts macOS Terminal

While I was trying my new Irregular bucket hat design at home I got a message from one of my macOS clients. It was about installing new fonts for their macOS machines at the office. I knew this was simple, but I wanted to deploy the fonts using the macOS terminal.

It was late and the client wanted to have the fonts ready the next day. I only had terminal access to the macs at his office. After brewing a great cup of specialty coffee from Ecuador I found a way to do this.

Open your terminal and move/copy the new fonts to: (for system wide use)

/Library/Fonts

or: (for use by the current user only)

~/Library/Fonts

Since I wasn’t sure I copied the new macOS fonts to the /Library/Fonts this way anybody using this mac will have access to the fonts.

This is simple, but sometimes we tend to forget simple steps. Hope this is useful. Remember you can always contact me if you have any questions. Also make sure to check out my shop for cool T-Shirts and coffee mugs. I make my own designs. Thanks!

Microsoft Outlook is Trying to use the printer macOS

A macOS client texted me yesterday about Microsoft Outlook trying to use the printer error. The user was trying to print to a personal HP printer connected over the network. He was only getting the printing error for this specific printer, but did not get the error when trying to print to his office’s main Xerox printers in the office.

Microsoft outlook needs permission to print error
Microsoft outlook needs permission to print error

Before taking on this Microsoft Outlook printing issue I had to wear my irregular bucket hat and brew some coffee from Honduras at home.

After researching I found the current user was not part of this “Print Operator”. This group is the _lpadmin group. The user is also a domain user, but this did not make a difference.

I found two ways to resolve this. See below. Both solutions you need to use our friend the Terminal.

Adding the user to the _lpadmin group:

sudo dseditgroup -o edit -a someuser _lpadmin

Adding the staff group(all macOS users belong to this group) to the _lpadmin group:

sudo dseditgroup -o edit -t group -a staff _lpadmin

To quickly check what groups your user is a member run this command:

id <user_name>
id paco

The above will display all groups the user is a member:

uid=501(rgm) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae),701(com.apple.sharepoint.group.1)

Hope this helps somebody. You can contact me if you have any questions. Also, check out my T-Shirt and coffee mugs store. I make my own designs. Thanks!

Photoshop Could not open “.tif” because the TIFF file uses an unsupported color space

After I brewed my favorite coffee variety Caturra at home I got an email from a macOS client regarding issues with their Photoshop not opening .tif files. They just started scanning a butch of images in .tif format for later editing.

Starting Photoshop version 22.5.2 stopped supporting .tif files. According to Adobe this is due to security vulnerabilities.

I advised the macOS client to scan in a different format: .jpg, .png with high DPI to keep the best resolution.

Read Adobe’s security bulletin about this.

Contact me if you have a better solution or if you have suggestions for scanning images for later editing in Photoshop.

Always remember to check out my T-Shirts and Coffee mugs shop. I make my own designs. Thanks!

Filezilla Error loading queue_sqlite3

The other day a Windows 10 user client called reached out to me panic about this error in Filezilla “Error loading queue_sqlite3”

I put my irregular bucket hat before taking on this one. Then I remote to the user’s machine trying to figure out why this is happening. I tried to re-install Fillezilla and still got the above error. Then, I remember that Filezilla keeps this sqlite3 DB file for faster processing. So, when this happens it means the sqlite3 file is corrupted.

The only way to fix this issue is to remove or rename the sqlite3 file. I renamed it just to be safe and rebooted Windows. All worked after this. Filezilla generated a new one.

Hope this brief tutorial helps somebody. You can always contact me if you have any questions. Remember to visit my IT Handyman shop for cool coffee mugs and T-Shirts I designed.

How to get Password Age using Powershell

After brewing my favorite coffee variety at home a client emailed me asking if there’s a way to get password age for the Active Directory users in her small company. This was for about 80 users. To be honest, I have not touched AD in a while. But, I found some clues for getting password Age using Powershell in Windows Server.

I found some magic in getting password Age using Powershell. A very simple command to get all users with their passwordlastset and passwordneverexpires:

Get-ADUser -Filter * -Properties passwordlastset, passwordneverexpires | ft name, passwordlastset, passwordneverexpires

You can also send the results to a CSV file:

Get-ADUser -Filter * -Properties passwordlastset, passwordneverexpires | select name, passwordlastset, passwordneverexpires |Export-CSV -Path c:\users.csv -Encoding utf8

You can also exclude users that password never expires:

Get-ADUser -Filter * -Properties passwordlastset, passwordneverexpires | where {$_.passwordNeverExpires -eq $false } | select name, passwordlastset, passwordneverexpires

But, to really fined tune the Powershell command you can use the below. It will give you a list of all users and the exact password expiration date:

Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $False} -Properties "DisplayName", "msDS-UserPasswordExpiryTimeComputed" | Select-Object -Property "Displayname",@{Name="ExpiryDate";Expression={[datetime]::FromFileTime($_."msDS-UserPasswordExpiryTimeComputed")}}

I hope this brief tutorial can help someone out there. If you have other ideas please share them in the comments section below. Thank you for your support!

Add your Script to your Local Path macOS

The other day I created a script using Imagemagick for efficiently get my image ready for the web. After making a fantastic espresso coffee at home I decided to add my script to my local path. This helps because it will make your script ‘global’. This means you can invoke it from any location while in your Terminal – it will run as any other command such as ping, ssh, rsync and etc..

Adding your Script to your Local Path in macOS is easier than I expected. Just copy your script to this path in your macOS:

/usr/local/bin/

I know you can also do a link to it, but I decided to copy it for now and test.

Now, I can call my script from any directory in my Terminal. For example, when I have a folder full of images waiting to be optimized for the web, I just do:

myimagescript /images_for_the_web

or:

cd /images_for_the_web and then type myimagescript

Hope this brief add your Script to your Local Path macOS tutorial helps. You can always contact me if you have any questions. Also, check out my coffee mugs and T-Shirt designs below. I made them myself. Thanks!

Create a Child Theme in WordPress

Hello! Creating a child theme in WordPress allows you to make changes to an existing theme without modifying its core files. Here’s a step-by-step guide on how to create a child theme:

Create a new folder on your computer or in your host server. Give it a name that represents your child theme (e.g., my-child-theme).

Inside the newly created folder, create a new file called style.css. Open it in a text editor.

In the style.css file, add the following code to define the information about your child theme:

/*
Theme Name: My Beautiful Child Theme
Template: twentytwentytwo
*/

Replace My Beautiful Child Theme with the desired name for your child theme, and twentytwentytwo with the name of the parent theme you want to create a child theme for.

Save your style.css

If you want to override specific template files from the parent theme, create a new folder within your child theme folder called template-parts. You can replicate the directory structure and file names of the templates you want to override. For example, if you want to override the content.php file, create the following structure: my-child-theme/template-parts/content.php.

Next, upload the entire child theme folder (including the style.css file and the template-parts folder if applicable) to the wp-content/themes/ directory on your WordPress site.

Log in to your WordPress admin area and go to Appearance > Themes. You should see your new child theme in the list. Now, select “Activate” button to activate your child theme.

Always refer to the official WordPress documentation for best practices.

Contact me with any questions. Also, check out my IT Handyman shop. I make my own coffee mugs and T-Shirt designs. Thanks!

Remove Powered by WordPress footer from Twenty Twenty-One Theme

To remove this “Powered by WordPress” from the footer is quite easy. For best practice I suggest you create a child theme first. If you don’t you will loose the changes whenever you update your theme. A client called me to make this simple change for his new website about Latin America Coffee.

I put together these simple steps. Let me know what you think. You can always contact me if you have any questions.

To remove the footer from the Twenty Twenty-One theme in WordPress, you can modify the theme files. Here’s how you can do it:

  1. Access your WordPress installation files via FTP, SSH or use a file manager provided by your hosting provider.
  2. Navigate to the directory wp-content/themes/twentytwentyone/.
  3. Locate the footer.php file within the Twenty Twenty-One theme folder.
  4. Open the footer.php file in a text editor.
  5. Find the section of code that represents the footer content. It typically starts with <div class="powered by"> or something similar.
  6. Delete or comment out the code for the footer content that you want to remove. You can remove the entire section of code related to the footer or make any changes you like.
  7. Save the changes to the footer.php file.

After following these steps, the footer content should be removed from your Twenty Twenty-One theme.

Remember, always have a backup of your files just in case. I will keep coding with coffee until I die. Thanks!

ImageMagick Auto Orient

I was having issues converting images for one of my clients the other day. I have been using ImageMagick for some time and it has worked great for me. But, for some reason a couple of images were rotating to a horizontal view when the original photo I took was vertical.

After looking at some cool hat designs I got some inspiration and found a way to keep the orientation of my original photos. It was quite simple this time. You need to add -auto-orient option to the convert command, for example:

convert thisimage.jpg -auto-orient goodimage.jpg

I found that jpg images have a header flag which specifies how the image was taken by your camera in the EXIF data. Give it a try and contact me if you have any questions.

Some of my coffee mugs and T-Shirt designs

Format External HD for macOS and Windows

If you want to use an external hard drive that can be used on both Mac and Windows computers, it’s recommended to use the exFAT file system.

exFAT is a file system that is supported by both Mac and Windows operating systems, as well as by other systems like Linux. This means that you can use the same external hard drive on a Mac and a Windows computer without any issues.

One of the advantages of exFAT is that it allows for large file sizes and partition sizes, which is useful if you want to store or transfer large files like video or music files. exFAT also supports file and folder names in various character sets, which is important if you want to use special characters in your file names.

It’s worth noting that if you plan to use the external hard drive primarily with a Mac, you can also use the Mac OS Extended (Journaled) file system, also known as HFS+, which is the default file system used by Mac computers. However, this file system is not natively supported by Windows, so you would need to install third-party software to read and write to the drive on a Windows computer. Using exFAT would eliminate the need for third-party software on Windows.

In summary, if you want to use an external hard drive on both Mac and Windows computers, it’s recommended to use the exFAT file system, as it is supported by both operating systems and allows for large file sizes and folder names in various character sets.