Adding a netlify.toml to a Hugo Site

Setting up netlify.toml in a Hugo + Netlify environment

About a year has passed since I moved to a Hugo + Netlify environment, and because nothing in particular had gone wrong I had left it alone, but I finally got around to setting up netlify.toml. The theme used on this site: Beautifulhugo (submodule) netlify.toml The official page has the format for netlify.toml, so create it under hugo with the following content Copy [build] publish = "public" command = "hugo --gc --minify" [context.production.environment] HUGO_VERSION = "0.74.3" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" [context.split1] command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] HUGO_VERSION = "0.74.3" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] HUGO_VERSION = "0.74.3" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] HUGO_VERSION = "0.74.3" [context.next.environment] HUGO_ENABLEGITINFO = "true" When the theme is a submodule You need to specify the theme in the build command, so add --theme=beautifulhugo [Read More]
Categories: Hugo  Tags: netlify 

JpGraph Charts Stop Rendering on PHP 7.3 and Later

JpGraph Error: 25092

At the time of writing (2021.10), the problem below appears to be fixed in the latest version, 4.3.5. It says PHP 7.2 is supported, but the product information says it supports up to 7.4, so which is right?? As long as it works properly I do not really mind. I am leaving the old article below for reference Symptoms Under Apache2.4+PHP7.3+Jpgraph4.3.1, the error JpGraph Error: 25092 meant graphs were no longer output [Read More]
Categories: jpgraph  Tags: php 

Why remi-php Updates Fail with yum on CentOS 7

Repository priority with enablerepo on a yum update

Once again, an error caused by dependencies during a CentOS yum update The situation On CentOS7, php7.x has already been installed from the remi repository The symptom An error during yum update Copy # sudo yum update —enablerepo=remi-php73 エラー: パッケージ: php-pecl-zip-1.18.2-1.el7.remi.5.4.x86_64 (remi) 要求: php(zend-abi) = 20100525-64 インストール: php-common-7.3.0-1.el7.remi.x86_64 (@remi-php73) php(zend-abi) = 20180731-64 利用可能: php-common-5.4.16-48.el7.x86_64 (base) php(zend-abi) = 20100525-64 利用可能: php-common-5.4.45-18.el7.remi.x86_64 (remi) php(zend-abi) = 20100525-64 エラー: パッケージ: php-pecl-zip-1.18.2-1.el7.remi.5.4.x86_64 (remi) 要求: php(api) = 20100412-64 インストール: php-common-7.3.0-1.el7.remi.x86_64 (@remi-php73) php(api) = 20180731-64 利用可能: php-common-5.4.16-48.el7.x86_64 (base) php(api) = 20100412-64 利用可能: php-common-5.4.45-18.el7.remi.x86_64 (remi) php(api) = 20100412-64 問題を回避するために --skip-broken を用いることができます。 Using --skip-broken does not work either [Read More]
Categories: linux  Tags: centos 

Fixing failed to extract shortcode Errors in hugo server

failed to extract shortcode

The situation At the moment I manage the Markdown for this blog on Gitllab and write the posts on a local machine with Git. The flow is: clone from Gitlab to a local Mac or Linux box with Git, write a post, and push after compiling. Hugo has a server mode, and if you start it with hugo server -w you can check a preview of the post you wrote at localhost:1313. [Read More]

A Docker Image That Cannot Be Deleted

conflict: unable to delete

Symptoms I tried to delete an image file in Docker and got an error Copy $ docker rmi d56 Error response from daemon: conflict: unable to delete d562087633bf (cannot be forced) - image has dependent child images Forcing the deletion Copy $ docker rmi d56 -f Error response from daemon: conflict: unable to delete d562087633bf (cannot be forced) - image has dependent child images Cause The error seems to say that child image files depend on it. [Read More]
Categories: docker 

Fixing Guest Network Drops in VMware Fusion on a Mac

The guest OS network in VMware Fusion keeps dropping

Symptoms On VMware Fusion 8.5.4 under macOS High Sierra (10.13.6), the network of the guest OS in VMware Fusion occasionally gets disconnected The guest OS is Windows10, and once the network drops, changing to NAT or bridged does not help restarting the network in Windows does not help disconnecting the network adapter on the VMware side does not help The solution The simplest thing is to restart the Mac, but when the same symptom happens over and over while you are working, restarting every time is a hassle [Read More]
Categories: vmware  Tags: network 

HTML Written Inside Markdown Not Showing Up in Hugo

HTML such as div and iframe is not being displayed

Symptoms I had not written an article in Hugo for a while, and when I posted one after a long break I noticed that the iframes and HTML inside the Markdown were not being displayed. Cause When I looked into it, it turns out that with Goldmark, the Markdown parser newly adopted from Hugo v0.60, HTML tags inside Markdonw are ignored under the default settings Solution Since ignoring (stripping) HTML tags inside Markdonw is the default, it seems all you have to do is explicitly configure it not to ignore them [Read More]
Categories: hugo 

Making Command+Space Input Switching Instant on a Mac

Fixing the slow response of input mode switching with Command+Space

Have you ever been frustrated on a Mac because switching input between Japanese and English with “Command+Space” does not go smoothly due to a delay? For people using the latest Macs this may not be something worth worrying about, but I still use an iMac 2009, so the dialog that appears in the center of the screen tends to take control, and especially when I am working in the terminal or writing an article and switching frequently, sometimes it does not switch the way I want it to. [Read More]
Categories: mac 

What I Thought After Running Growi for a Month

Pros and cons after using Growi for about a month

I started Growi with Docker and used it for about a month, so let me list the pros and cons from my personal point of view These are the facts as of now (v3.7.7), so there is a possibility that they will be addressed in future version upgrades. Pros Markdown editing with real-time preview Several people can edit Change history management Diagram editing with draw.io Easy to set up with docker Open source hackmd integration Fast search with elasticsearch Authentication features such as LDAP, Google and Github Simple presentations with reveal.js built in Cons When a single article contains a lot of images or draw.io diagrams, it previews every one of them, so it becomes slow to respond Depending on the version, the integration with hackmd is unstable There is no restore button in the change history for going back to a past state Exporting and importing data requires the versions to match When you import data, the elasticsearch rebuild fails Articles cannot be exported as Markdown or PDF What about running it in the office?? Since draw.io is built in and you can embed things like flowcharts and UML, I found it quite convenient for writing technical articles. [Read More]
Categories: wiki markdown  Tags: growi 

Forwarding Syslog from VMware ESXi 6.x to a Syslog Server

Steps for configuring syslog forwarding on VMware ESXi 6.x

The logs of a VMware ESXi host are not all that important, but out of curiosity I configured forwarding to a syslog server, and these are my notes Configuration steps This forwarding setup is meant for those who already have a syslog server prepared and can log in to VMware ESXi as root Configuring the syslog host Log in as an administrator in the VMware web interface Click Manage in the left column of the dashboard On the System tab in the right column, click Advanced settings Type syslog into the search box and apply the filter Select “Syslog.global.logHost” and click “Edit option” Specify the forwarding method and the syslog server to forward to as the new value, and save it Copy "udp://192.168.1.1:514" For multiple entries, "udp://192.168.1.1:514,tcp://192.168.1.2:1514" 7. Click Refresh [Read More]
Categories: vmware  Tags: esxi