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:

Cold Day?

On out way to the zoo yesterday – I saw this sign (note it is from a Science/Math Academy) showing the temperature at -196F. I was warm enough I did not have a jacket on. Perhaps this is some of the “fake news”? (Made me laugh)

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

Fun Recent Finds

Over the last few weeks I have found some really cool things I wanted to share…

  • Architectural Artifacts. If I could – my entire home would be comprised of things from this place. Urban Remains
  • Bracelets. If you know me – you are you know I would only post something about jewelry if I really thought it was something special. For those of you who do not know me – I am not a jewelry person at all – but these might make me one: Spectrum Bracelet Rainbow
  • TV show. If you have HBO and you have not seen this yet – take an hour today and give it a shot: The Night Of
  • Podcast. I first heard Claude VonStroke almost ten years ago and his podcast is still one of my favorite today. Claude VonStroke presents The Birdhouse
  • YouTube channel. I am not sure how – but I get sucked in every time with: Oddly Satisfying Videos

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.