Web Notes
2015.09.26
HTML 相对路径和绝对路径区别分析
HTML 初学者会经常遇到这样一个问题,如何正确引用一个文件。比如,怎样在一个 HTML 网页中引用另外一个 HTML 网页作为超链接(hyperlink),怎样在一个网页中插入一张图片。如果你在引用文件时(如加入超链接,或者插入图片等),使用了错误的文件路径,就会导致引用失效(无法浏览链接文件,或无法显示插入的图片等)。
IPv6 addresses are lost in my VMs on Oracle Cloud, probability caused by the DHCP issue.
Here’s a quick fix I found that works, just enable dhcp6
in the /etc/netplan/50-cloud-init.yaml
.
For instance:
network:
version: 2
ethernets:
enp0s3:
dhcp4: true
match:
macaddress: 00:00:00:xx:xx:xx
set-name: enp0s3
dhcp6: true
That’s it.
My previous solution seems not working anymore. Just have a record FYI:
For AMD machines
sudo dhclient -6 ens3
For ARM machines
sudo dhclient -6 enp0s3
ens3
orenp0s3
is the network interface set by default. Check the correct interface name with theip addr
command.
Frank Lin
Web Notes
2015.09.26
HTML 初学者会经常遇到这样一个问题,如何正确引用一个文件。比如,怎样在一个 HTML 网页中引用另外一个 HTML 网页作为超链接(hyperlink),怎样在一个网页中插入一张图片。如果你在引用文件时(如加入超链接,或者插入图片等),使用了错误的文件路径,就会导致引用失效(无法浏览链接文件,或无法显示插入的图片等)。
Tutorials
2020.01.09
IKEv2, or Internet Key Exchange v2, is a protocol that allows for direct IPSec tunnelling between networks. It is developed by Microsoft and Cisco (primarily) for mobile users, and introduced as an updated version of IKEv1 in 2005. The IKEv2 MOBIKE (Mobility and Multihoming) protocol allows the client to main secure connection despite network switches, such as when leaving a WiFi area for a mobile data area. IKEv2 works on most platforms, and natively supported on some platforms (OS X 10.11+, iOS 9.1+, and Windows 10) with no additional applications necessary.
Linux Notes
2019.11.26
AdGuard Home supports all modern DNS encryption protocols, which enable us to setup a secure DNS server with custom AdBlock filters.
玉真公主别馆苦雨赠卫尉张卿二首
秋坐金张馆,繁阴昼不开。
空烟迷雨色,萧飒望中来。
翳翳昏垫苦,沉沉忧恨催。
清秋何以慰,白酒盈吾杯。
吟咏思管乐,此人已成灰。
独酌聊自勉,谁贵经纶才。
弹剑谢公子,无鱼良可哀。
苦雨思白日,浮云何由卷。
稷契和天人,阴阳乃骄蹇。
秋霖剧倒井,昏雾横绝巘。
欲往咫尺途,遂成山川限。
潈潈奔溜闻,浩浩惊波转。
泥沙塞中途,牛马不可辨。
饥从漂母食,闲缀羽陵简。
园家逢秋蔬,藜藿不满眼。
蟏蛸结思幽,蟋蟀伤褊浅。
厨灶无青烟,刀机生绿藓。
投箸解鹔鹴,换酒醉北堂。
丹徒布衣者,慷慨未可量。
何时黄金盘,一斛荐槟榔。
功成拂衣去,摇曳沧洲傍。