Sekai 🌐 🗺

Sekai (世界) is the kanji for “the world”. That’s a great word because of the scale that it designates.

Configure UFW for Hugo

Simple Linux firewall settings for home computers

Easy Linux tips project recommends users to enable their firewall. However, this blocks all incoming traffic by default. If one wants to test the site on mobile devices, one will need to add a few rules to UFW.

$ sudo ufw allow ssh
$ sudo ufw allow http
$ sudo ufw allow https
$ sudo ufw allow 80/tcp
$ sudo ufw allow 1313/tcp comment "hugo server"

I learnt the last line from 竹内電設.

[Read More]
Hugo  Linux  UFW 

Xubuntu Dualboot on Fujitsu LH532

Convert Ubuntu to Legacy Mode with Boot-Repair

You may skip to the acutal setup.

Background

After using Win 7 & 10 for six years on my Fujitsu LH532 , Windows 10 often falls into blue screen. Sometimes, it won’t even start up.

Give Xubuntu a try

Hoping to give a second life to my old , I’ve decided to try this popular lightweight distro.

Initial partition setup

I followed the instructions from Danatela’s question, including the optional setup of separate /var and /tmp partition.

[Read More]

Agencer

v. arranger, organiser

La cuisine est bien agencée.

My First Post

Introduction

Hello World! This is my new GitLab page powered by Hugo. I’m setting up this blog to practise my math, foreign languages and IT skills.

Why Hugo?

My original goal is to set up a personal blog for posting math.

I used to work with Octopress, but resolving the dependencies and other technical issues had actually took much more time and effort than expected. As a result, I digressed a lot from my studies to look into those problems.

[Read More]

Math Sample

Using KaTeX

This is a sample created by the developer of Beautiful Hugo.

KaTeX can be used to generate complex math formulas server-side.

$$ \phi = \frac{(1+\sqrt{5})}{2} = 1.6180339887\cdots $$

Additional details can be found on GitHub or on the Wiki.

[Read More]

Code Sample

Using Hugo or Pygments

This is a sample created by the developer of Beautiful Hugo.

The following are two code samples using syntax highlighting.

[Read More]

j— title: “Import Once in Julia” date: 2021-08-23T16:24:40+02:00 categories:

  • technical support tags:
  • julia draft: false

Background

I’m reading Think Julia to repick the language again.

  • To import a package/module, we using Foo.
  • To run a script within the REPL, we include("foo.jl").

This is useful for user-defined functions, which are usually multi-line.

Problem

How to avoid importing a module/including a file twice?

Solution

Here’s a modified code from the book to give an example.

[Read More]