June 2022

God’s New Pasture #3: The Division of Classes

Original link: http://headsalon.org/archives/9007.html God’s New Pasture #3: The Divide of Classes Whig November 19, 2018 Class differences are not just inequalities in economic status and political power (although these two always get the most attention), in a mature hierarchical society, different classes of people live, dress, behave, talk, socialize, There are stark differences in entertainment […]

God’s New Pasture #3: The Division of Classes Read More »

2022.6.24

Original link: https://www.justzht.com/2022-6-24/ I went to LA with a good friend last week, did a lot of things, and took beautiful photos. One of the night scenes with long exposure of starry sky was recommended to the editorial by unsplash. When I came back, I drove Highway 1. Two people Just stop and go, stop

2022.6.24 Read More »

Rethinking Software Development: Strategies for Survival

Original link: https://ourai.ws/posts/survival-in-software-team/ This article is not about the survival strategy of software products, but about the survival of software developers in the team – logically speaking, this is also a “human factor” problem as mentioned in the previous two articles. Team type Regardless of whether it is related to the Internet or not, in

Rethinking Software Development: Strategies for Survival Read More »

How to get directory size with PHP

How to get directory size with PHP function GetDirectorySize($path){ $bytestotal = 0; $path = realpath($path); if($path!==false && $path!=” && file_exists($path)){ foreach(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object){ $bytestotal += $object->getSize(); } } return $bytestotal; } … The post How to Get Directory Size with PHP first appeared on Lenix Blog . This article is reprinted from

How to get directory size with PHP Read More »

js format timestamp

//datetime is the timestamp obtained var date = new Date(datetime);//If the timestamp is 10 digits, *1000 is required, and if the timestamp is 13 digits, it does not need to be multiplied by 1000 var year = date.getFullYear(), month = (“0” + (date.getMonth() + 1)).slice(-2), sdate = (“0” + date.getDate()).slice(-2), hour = (“0” + date.getHours()).slice(-2),

js format timestamp Read More »

Find things in Linux Introduction to locate, whereis, which and find commands

Let’s take a look at these commands: locate whereis which find locate Order_ This command will traverse your entire filesystem and find every occurrence of that keyword, so as you can imagine the results can be overwhelming. locate keyword locate Uses a database that is usually updated daily, so if you’re searching for something recently created, it

Find things in Linux Introduction to locate, whereis, which and find commands Read More »

How to fix WordPress “The optional mod imagick is not installed or has been disabled”

Resolved “The optional mod imagick is not installed or has been disabled ” in the WordPress 5.x Site Health check. Enter the following command to install imagick: pecl install imagick At this point, it will prompt Please provide the prefix of ImageMagick installation [autodetect] enter: <div /usr If php is compiled and installed from its

How to fix WordPress “The optional mod imagick is not installed or has been disabled” Read More »

wordpress reports session_start() function call to generate a PHP session. The session interferes with the REST API and loopback request issues.

Recently, I was doing the optimization of my personal WordPress site. I checked it with the official site inspection tool. The following two errors occurred. The problem prompts are as follows: site health status WordPress Site Health Check shows you critical issues about your WordPress configuration, and items that require your attention. 2 key questions

wordpress reports session_start() function call to generate a PHP session. The session interferes with the REST API and loopback request issues. Read More »