Après le changement de l’ordi portable, il me faut l’installation du
pacquetage “texlive-lang-french” sur la nouvelle version d’Ubuntu. Sinon, une
erreur du pacquetage Babel se surviendra.
! Package babel Error: Unknown option `frenchb'. Either you misspelled it
(babel) or the language definition file frenchb.ldf was not foun
d.
See the babel package documentation for explanation.
Type H <return> for immediate help.
l.445 \ProcessOptions*
?
A ce stade, Xe$\LaTeX$ parviendra à compiler le fichier $\TeX$ avec une remarque
à propos de l’obsolescence de l’option frenchb pour le pacquetage Babel.
Posted on December 23, 2018
(Last modified on December 24, 2018)
| 1 min
| Vincent Tam
|
0 comment
While editing files on GitHub/Gitlab, missing an empty line at the bottom of a
file in the buffer will result in no newline at the end of file. In the case of
regular text files, this isn’t consistent with the POSIX standards.
for file in `git ls-files`;do grep -Iq . $file&&if ! newline_at_eof $file;then;elseecho$file;fidone
Posted on December 23, 2018
(Last modified on April 25, 2019)
| 1 min
| Vincent Tam
|
0 comment
Background
Three years ago, I wrote Used More Bash Utilities for batch renaming
files. One of my Facebook friends has pointed out that it fails for file names containing whitespace.
Problem
Recently, I would like to remove the extension name .sh of all shell scripts
in ~/bin, so that which {script} will work without.sh.
Method
A for loop over $(ls) is a basic solution, but find is more correct since it’s possible that a file name contains a space character.
Posted on December 19, 2018
(Last modified on April 28, 2019)
| 1 min
| Vincent Tam
|
1 comment
Due to limitations on the number of characters imposed by the site owner, URL
shorteners are useful for shortening comments containing URL(s). Nonetheless,
while commenting on my recent PR for Introduction, I found that
GitHub’s URL shortener had lengthened the URL for GitHub’s home
page.
Output of "https://github.com" by GitHub's URL Shortener
Posted on December 19, 2018
(Last modified on April 13, 2023)
| 1 min
| Vincent Tam
|
2 comments
Background
While porting Minimal Mistakes and Beautiful Hugo’s Staticman support
to Introduction, I searched for “SCSS to SASS” on DuckDuckGo.
The search engine returned results on “CSS to SASS/SCSS” or vice versa. The
first theme has Staticman code in SCSS. That would fit into the
third theme’s directory structure, which puts SASS files under
assets/sass. However, SASS doesn’t have curly braces {}. I feared that
after hours of tedious manual replacement, the code would fail to run. As a
consequence, I conducted such Internet search.
The compiled binaries often contain install scripts which put files to shared
folders under /usr. Consequently, they have to be run as sudo privileges.
That drove me to start this lengthy Julia compilation.
Installation
Without sudo privileges, I’ve chosen to compile Julia from source.
I was too lazy to get the dependencies fixed. I just compiled it
withoutGFortran and pkg-config under the ~/src folder.
Posted on September 20, 2018
(Last modified on September 21, 2018)
| 5 min
| Vincent Tam
|
0 comment
Introduction
This article records my errors and difficulties encountered on the first day I
came across Red Hat Enterprise Linux 7 in my school’s laboratory, as a
normal user without sudo privileges.
The login screen was gdm, and the desktop environment was GNOME. IBus was used
as the input engine.
Packages installed
The principal goal is to install tools that I usually use on RHEL without sudo
permissions. To do so, I’ve downloaded the executable binaries or source code
of these packages. As I wanted to focus on my studies, I prefer downloading
executable binaries.