Tooth be told

I’ve never had a tooth out before.

In fact, it’s been over 25 years since I’ve even been to the dentist!

Not because my teeth are great or anything. Truth be told, they’re quite in need of some work. But after a couple of weeks of intense facial pain that has caused endless sleepless nights, I went and had the tooth taken out.

I’ve jumped out of aeroplanes, and broken my leg… but nothing prepares you for the fear and adrenaline of a dental visit

I saw the dentist last week and was given the option: root canal over 2-3 visits totalling ~$1500 plus a required crown at some point (about the same price again), or pull the bugger out in one visit for a couple of hundred.

Not that finances play a big part in the decision (although it does help), the decision was almost made for me. The torture of 3+ dental visits vs 1 and the jobs done.

It’s a no brainer.

I’ve just got home. I still can’t talk properly. My mouth, jaw and gum feel like they’re as big as a tennis ball. I feel like I’m drooling all over the place and keep wiping non existent blood and saliva from my bottom lip while at the same time try and wet my teeth because my mouth feels so dry. It’s a flurry of mixed emotions.

I’ve jumped out of aeroplanes, I’ve broken my leg jumping off mountains, I’ve even been in some pretty life threatening situations, but nothing prepares you for the fear and adrenaline of a dental visit.

As he’s inserting the needle I realised my head is pushed back into the headrest with so much force that my neck was tensing up. My hands were clenched on my stomach squeezing my phone so hard that I felt Apple phones may not be as strong as we think they are.

And that needle! Oh My GOD! How far in does that go?

It never seemed to stop. Any further and I’m sure it was going to come out the other side.

It was funny to watch someone grab a huge set of pliers (ok, he called them forceps) and start pulling at the tooth. Wiggling it this way and that, around and round in large circular motions, I’m just waiting for the inevitable THWANG (my effort to literally relate the sound of an electric pulse/shock zapping down my body).

He paused and went back for round 2 but after another minute or two he came to the conclusion that it was going to have to be split. If I could have spoken I would have asked, “c’mon doc, give it one more go!” But I just bit down and started doing mental back-flips as he wound up that drill and the sound paralysed me.

Even now an hour later I’m still visibly shaken. My pulse is racing and I feel a headache coming on that I know isn’t real, it’s just that I’d built myself up to expect so much pain, to have come out unscathed is such a relief. (Yes, the anaesthetic hasn’t worn off yet. I’m not looking forward to this)…

✧ ✧ ✧ ✧ ✧

And now three hours later the pain has kicked in. It’s more of an uncomfortableness, that exacerbated by paper-cuts of the mouth. What feels oddly more sore than the gap in the gums are the locations where the needle broke the surface of the gum and how he did the dance around the nerve area.

I’m continually salivating and feeling more and more queezy at the thought of all that blood and saliva congealing around the gause. I’ve changed it out numerous times. Bigger ones, smaller ones. I’ve determined smaller is better (they hold less saliva).

Time for some pain killers.

php file upload limit in virtualmin

virtualmin settins for php

upload_max_filesize exceeded in php.ini

I can never find this setting. Everytime I create a wordpress development server I end up having trouble finding it.

There use to be a setting in WordPress itself, and if that is there, you’ll have to update that.

I use Apache and PHP on a linux server which I usually administer via virtualmin/webmin (highly recommended). But it can often take me a moment or two to find exactly where I need to be for some features.

Maximum file upload size is one of those and the setting lies as follows:

Go to virtualmin and select the virtual server you wish to edit.

Scroll down to Services abd select PHP Configuration and then Resource Limits and change as appropriate.

Save and you’re done! There is no need to reload anything.

WordPress SSL

This is probably going to have a few additions to it, but let’s just start with making the site admin area force https://.

To do that, open wp-config.php and this towards the end of the file:

define(‘FORCE_SSL_ADMIN’, true);
 No need restart anything, just save and reload your admin page

Remove the WordPress logo from the admin bar

no wordpress icon

Want to make your WordPress site more “white label” to users who are logged in?

Originally I was just going to remove the icon, but there is a whole wordpress menu under there. Let’s just remove the whole lot!

If you have a child theme in use, you can add the following code snippet to the functions.php file. Otherwise use a plugin like Code Snippets (not affiliated in anyway, it’s just a plugin I use), and create a new snippet. Make sure to “Save and Activate” the snippet.

add_action( 'admin_bar_menu', 'remove_wp_logo', 999 );

function remove_wp_logo( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'wp-logo' );
}

from the WordPress Codex: https://codex.wordpress.org/Function_Reference/remove_node

Incorrect wifi password in iOS

wifi under magnifying glass

My kids are always playing in areas of the iPad or iPhone that they really shouldn’t be. Unfortunately Apple have never allowed us to have a truly restrictive setup for kids in this way.

Every now and then they muck up the wifi and have tried connecting to someone else’s wifi and then they can’t reconnect to our own as it prompts for a password (or it simply doesn’t connect). Entering the correct password greets us with the annoying “incorrect password” dialog.

You know it’s the right password, it hasn’t changed in years (that’s probably the first thing we’re doing wrong right there, but that’s a whole other bag of problems).

If you have tried entering in the password, and you’re confident the password is correct there are three things you can try, the last of which will almost always work, but I like to start with the softer options:

  1. Forget the wifi network and then try to reconnect. This one will generally work if it wasn’t prompting for a password to begin with and just not connecting.
  2. You could change the wifi password in your wifi router and try connecting to that. It IS a good idea to change it once in a while anyway. If the device then connects, you could then change it back and try connecting again.
  3. Go to:
    settings >> General >> Reset >> Reset network settings
    and clear the network settings. You’ll need to confirm this with your pin but you will lose no data. DO NOT do a factory reset, in that case YOU WILL lose data. Make sure you are only resetting the network settings and continue.  After the device restarts you should be able to login without any issues.

Good luck and I hope this has helped solve your issue

LS Colours in OSX

I don’t like the default black on white in OSX Terminal (in fact, I’ve just remembered, I don’t like OSX Terminal, I’ll make another post about that). And the only dark background that’s close to anything good is homebrew, but ls doesn’t have colour.

A quick search pulls up a stack post on Ask Different that details the appropriate exports:

export CLICOLOR=1
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"

I didn’t really like the bold directory and found another in the comments:

export LSCOLORS="gxBxhxDxfxhxhxhxhxcxcx"

yeah, but I didn’t really like that either. Then *further* in the comments I found a link to: https://geoff.greer.fm/lscolors/ where you can customise the colour scheme to your hearts content. :)

I fumbled around for a bit, but in the end I settled with: gxfxcxdxbxegedabagacad

Windows Update in Virtual Machines


virtualbox
I use virtual box to run a number of virtual machines. Tonight when trying to update a recent install of windows I found the update stalled and kept searching aimlessly doing nothing.

It turns out you need to enable “promiscuous mode (always allow)” on the network adaptor of the virtual device for the update to go through. Enabling a second network adaptor in that mode for the purpose of the update worked. Reverting to the previous setting once updates (and reboots) were complete.

I did make the mistake of turning the initial adaptor back on before doing a reboot and it was in a constant state of “rebooting” but sitting there looking stupid at me. Going back to the virtual machine manager and unplugging the network card allowed the reboot and completion of the update process to continue (obviously Microsoft are still accessing the internet at that stage and without internet direct access this step would not continue).

Here’s Where Google Hid Chrome’s SSL Certificate Information

Tonight I wanted to know where a particular site had their SSL certificate issued. Upon clicking the green padlock in Chrome, I found that there were no certificate details to be found anywhere. After a good minute or two of not being able to find it, I did what any other reasonable person would do.

I googled it.

Surprisingly, it’s been moved. Why? I don’t know. But it’s certainly not intuitive.

“Google Chrome users have been contacting me wondering why they no longer could access the detailed status of Chrome https: connections, or view the organization and other data associated with SSL certificates for those connections,” writes Slashdot reader Lauren Weinstein, adding “Google took a simple click in an intuitive place and replaced it with a bunch of clicks scattered around.”

Up to now for the stable version of Chrome, you simply clicked the little green padlock icon on an https: connection, clicked on the “Details” link that appeared, and a panel then opened that gave you that status, along with an obvious button to click for viewing the actual certificate data such as Organization, issuance and expiration dates, etc. Suddenly, that “Details” link no longer is present

The full certificate data is available from the “Developers tools” panel under the “Security” label. In fact, that’s where this info has been for quite some time, but since the now missing “Details” link took you directly to that panel, most users probably didn’t even realize that they were deep in the Developers tools section of the browser.
On some systems you can just press F12, but the alternate route is to click on the three vertical dots in the upper right, then select “More Tools”, and then “Developer Tools”. (And if you don’t then see “Security”, click on the ” >>”.)

 

reference: https://tech.slashdot.org/story/17/01/29/1820232/heres-where-google-hid-chromes-ssl-certificate-information

reference: https://lauren.vortex.com/2017/01/28/heres-where-google-hid-the-ssl-certificate-information-you-may-need