Activating the free Let’s Encrypt SSL certificate for your WordPress site

WPBeginner has a easy to follow tutorial on activating the free Let’s Encrypt SSL certificate for your WordPress site, assuming your web host supports them. The really simple ssl plugin mentioned makes the process painless for existing sites.

If you are on HawkHost, you can view their announcements here on their Let’s Encrypt and 2FA support. In short, you can get the free SSL certificate by:

  1. Logging to cPanel, locate the Security section and click on “Lets Encrypt™ SSL” option to start the process.
  2. You can then select the domain that you would like HawkHost to issue the SSL certificate to.
  3. You will be brought to a confirmation page. On confirmation, HawkHost will generate the SSL certificate for you.
  4. Back in your WordPress admin page, activate the really simple ssl plugin and click on the button “Go ahead, activate SSL!”.
  5. You might be logged out of the admin page. If so, login again and you will discover that your WordPress site is now on SSL.
  6. Refer back to the WPBeginner tutorial for additional details like Google Analytics updates.

Find version of python package installed

Below are 3 methods we can try to find the version of an installed python package. We shall use scipy as an example.

Using pip

Method 1 – For pip 1.3 and above: pip show scipy

Method 2 – Alternative (works with older versions of pip): pip freeze | grep scipy

Using version attribute

Method 3 – Launch python/ipython, then execute the commands below:

import scipy
scipy.__version__

Reference for Method 1 is here. Reference for Method 2 is here.

Definition of Statistical Significance

Note to self: Statistical Significance as defined by Andrew Gelman in his blog post.

Statistical Significance

Definition: A mathematical technique to measure the strength of evidence from a single study. Statistical significance is conventionally declared when the p-value is less than 0.05. The p-value is the probability of seeing a result as strong as observed or greater, under the null hypothesis (which is commonly the hypothesis that there is no effect). Thus, the smaller the p-value, the less consistent are the data with the null hypothesis under this measure.

Getting session information in Python

We’ve gone through how to get session information in R previously, so how do we do the same for Python? It seems that there is no single convenient function available so here’s one approach.

To get the system information, you can utilize the commonly used IPython package:

import IPython
IPython.sys_info()

To find out packages that have been loaded at the time (includes modules loaded by Python itself and by any Python IDE), you can utilize the sys.modules.keys() method. The code below gets the package name rather than the sub-components.

import sys
packages = set()
for name in sys.modules.keys():
    packages.add(name.split('.')[0])

print sorted(packages)

Getting session information in R

When troubleshooting R bugs or asking for assistance in mailing lists and sites like StackOverflow, it is good to review or present information about your system and packages loaded.

I much prefer the session_info() function from the devtools package over the default sessionInfo() function as it’s output is not only more readable, it also provides useful information like timezone and additional packages (non-base) loaded at the time.

Assuming you have the devtools packages already installed, you can invoke the function in one line:

devtools::session_info()

Bedtime reading – What is Code?

In case you are wondering of what all the buzzwords and jargon like algorithms, coding, off-the-shelf mean, the article What is Code by Paul Ford helps you weave all these buzzwords into a single story.

At 38000 words, it makes good bedtime reading, be it for someone who has no inkling on how computers work or someone who is a seasoned veteran. TL;DR? below is a video summary from Bloomberg via Huffington Post.

How long does it take to see results of volunteering?

Context: I was involved in a discussion with some folks on volunteering and educating children (in general) and up came the question of how long do you need to take to see results?

My take: It is definitely not effective if you only teach for a single time or two. You will only see improvements when you accumulate these lessons over a certain period of time. Depending on your learning objectives, it may take a year, 2 years or many more – 十年树木,百年树人 – you are in for the long haul.