Easily Find Font Information For Any Web Site

Ever go to a site and really like the font but too lazy or not sure how to see what font they are using? Perhaps you are a developer and need to know the exact font size, color, and font family your developer is using so you can make sure everything is pixel perfect. Both of these tasks become quick and painless with the “WhatTheFont!” Chrome extension.

After you have installed it – you will then see a little “f?” icon at the top of your browser. By clicking on this icon – you are then able to click anywhere on a web page and see the font information.

This extension takes all the guesswork out of fonts for technical and non-technical people alike.

Most Preferred Network on Your iPhone

I recently ran into an issue where my iPhone would seem to always try and connect to the one network I did not want to use anytime I left the house/came back. After I had enough manual switching – I finally took a look and learned how Apple orders the networks to join: https://support.apple.com/en-us/HT202831 and then looked at my settings. I noticed that my preferred network had “Auto Join” set to “no” and “Auto Join” set to “yes” for the slow network I had grown to hate.

If you have the same issue – go to your WiFi settings on your iPhone and click on the info icon for that connection. You will then see a screen like this:

From there – if you want your iPhone to prefer/join the network – make sure the Auto Join setting is turned on. If you want to not join it – simply make sure Auto Join is turned off. Makes sense and is super easy and no more manually changing the network every time you leave/come back. Simplify your life and make sure any non-used networks have Auto Join = off.

Disable the Cache in Safari 11

With Safari 11 – we lost the “Disable Cache” in the Safari Developer menu. If you are a developer – you know this comes in handy when debugging any CSS/JS changes.

After spending a few days frustrated – it was time to find a solution so I could disable the cache (permanently). If you are looking for the same solution – look no further.

Using the command line:

rm -rf ~/Library/Caches/com.apple.Safari ; echo > ~/Library/Caches/com.apple.Safari

That will remove the current cache forever and replace it with a file (not used to do any caching).

You are welcome.

Fix for Bold Fonts Looking Bolder in Chrome

If you noticed your fonts in Chrome looking more bold in Chrome than Safari – there is an easy fix. Add this in to your stylesheet (body or specific CSS class/ID):

Example:

h1 {-webkit-font-smoothing: antialiased;}

You can see the difference:

Before:

After:

Mac OS 10.2.2 SSH Keys Passphrase Help

If you are like me and a few days ago – noticed that you were getting prompted for your passphrase when using your SSH keys (instead of using the keychain) – here is how you can make a small change to no longer enter your password each time: http://apple.stackexchange.com/questions/254468/macos-sierra-doesn-t-seem-to-remember-ssh-keys-between-reboots/264974#264974

Add Bootstrap Classes to the Next and Previous Image Buttons

When viewing media (usually the image.php template) within WordPress – there are buttons to browse the next and previous buttons that you might want to customize if you are creating a Bootstrap WordPress them. If this is the case – styling the buttons with Bootstrap is easy. You can simply add the following to your theme’s functions.php file.

/**
 * Add CSS class to image navigation links.
 *
 * @wp-hook previous_image_link
 * @wp-hook next_image_link
 * @param   string $link Complete markup
 * @return  string
 */
add_filter( 'previous_image_link', 'lucidity_img_link_class' );
add_filter( 'next_image_link', 'lucidity_img_link_class' );

function lucidity_img_link_class( $link ) {
    $class = 'next_image_link' === current_filter() ? 'next' : 'prev';
    return str_replace( '<a ', "<a class='btn btn-default $class'", $link );
}

Note – you can change the btn-default class to btn-primary or whatever you need.

Add Bootstrap Button Classes to the WordPress Comment Form

Looking to stylize that WordPress comment button on the WordPress comment form? Adding the correct classes needed to the comment form button are as easy as finding where comment_form() is called in your theme. In my cases – this is within the comments.php file.

Once you find that – you just need to change
comment_form()
to:

$args = array(
'class_submit' => 'btn btn-default',
);
comment_form($args )

There are a number of modifications you can make to the comment form (changing button text, changing labels, adding notes, etc that you can make with the comment_form() function which are worth looking at here: https://codex.wordpress.org/Function_Reference/comment_form

Good Ol’ Siri

Siri Knows Who I Am

I love Siri. She helps me with measurement conversion (especially helpful during these Olympics and all the metric conversions), driving directions, game scores, figuring out what song is on, and making sure I remember who I am 😉

Thanks Siri!

If you have an Apple device with Siri and are not using her – get inspired: What to ask Siri