How to set default font and font size in CKEditor 4

 https://stackoverflow.com/questions/50887220/how-to-set-default-font-and-font-size-in-ckeditor-4

CKEDITOR.addCss(".cke_editable{cursor:text; font-size: 14px; font-family: Arial, sans-serif;}");

Git refusing to merge unrelated histories

 https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories-on-rebase

In my case, the error was just fatal: refusing to merge unrelated histories on every try, especially the first pull request after remotely adding a Git repository.

Using the --allow-unrelated-histories flag worked with a pull request in this way:

git pull origin branchname --allow-unrelated-histories

As per 2.9.0 release notes - git pull has been taught to pass the --allow-unrelated-histories option to underlying git merge


Host Is Not Allowed to Connect to This MySQL Server

 

This error occurs due to the default configuration the MySQL database is currently using. This configuration allows connections only from the ‘root’ user when coming from ‘localhost’ and not other IP address ranges.

Resolution

Create a new administrator user or modify the root user to allow connections from ‘vScopeServerIP’.

To create a new administrator user, run the following queries in a mysql prompt:

> CREATE USER 'vScopeUserName'@'localhost' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON *.* TO 'vScopeUserName'@'localhost' WITH GRANT OPTION;
> CREATE USER 'vScopeUserName'@'vScopeServerIP' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON *.* TO 'vScopeUserName'@'vScopeServerIP' WITH GRANT OPTION;
> FLUSH PRIVILEGES;

To modify the root user (not recommended), run the following queries in a mysql prompt:

> GRANT ALL ON *.* to root@'vScopeServerIP' IDENTIFIED BY 'password';
> FLUSH PRIVILEGES;

StaticImage

  import React , { useEffect , useRef } from "react" import { StaticImage } from "gatsby-plugin-image" impor...