Update SQL Table using CASE and WHEN

Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice ver ... ...

React SSR with Isomorphic-css-loader

Index.js: import App from './app'; import React from 'react'; import ReactDOM from 'react-dom'; import { renderToString } from "react-dom/server& ... ...

React Ref

Ref is just a way to manipulate the DOM just in a similar manner as jQuery. Simple example: import React from "react"; import ReactDOM from ... ...

React Context API

Simple example: import React from "react"; import ReactDOM from "react-dom"; const MyContext = React.createContext(); const MyProv ... ...

A dump yet clever way to debug wp-cron

A new way: //Get log from cron jobs: $output = json_encode($YOUR_OBEJCT); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://www.369usa.com/msg/ ... ...

Some Notes about Docker + PHPUnit

This is kinda a confusing subject to learn for me, especially when I am not very familiar with docker yet, nor with PHPUnit. Here is my note as I go a ... ...

Docker + WordPress Setup

All the instruction will be found at the link underneath: https://davidyeiser.com/tutorial/docker-wordpress-theme-setup When I was installing this, I ... ...