写在2021的最后一天

2021的收获:

1、有了女儿

2、决定了接下来的职业走向:不换工作

3、认识了聊得来的新朋友。

 

上次印象深刻的年末应该是2005年。那时我坐在明亮的大学宿舍里,还几位老师写Email祝新年快乐。也许那样的email持续了两三年。那时我还没有明白一生中与很多人只有很短的交集,短到只有一两个学期,甚至几个月、几天,而那时自己都不明白互相都只是过客。我曾经以为自己永远不可能忘掉中小学老师的名字。第一次租房时,我总是想着要给对门的邻居送点什么,但由于害羞一直没有采取行动。后来我明白了那种意识源于读高中之前的乡村生活。在乡下,房子都是建在宅基地上的,搬家的主要原因是分到了新的宅基地,而邻居则是一辈子的,当然要主动熟络起来。在城里尤其是大城市里,别说租房,即使买房了,邻居也是临时的,大家的生活背景和工作毫无交集,碰巧住得比较近。

这一年打了特别多的Dota2,也许玩游戏就像喝酒让我暂时忘却了其他事情。新的一年我不想再玩Dota2了,我想捡起Switch的健身环,通关MHRD,学习乐理基础,还有把拖欠许久的新概念英语学完。工作上,继续研读C++(经典/C++20)和专业书籍吧。很满意最近买的电纸书,阅读时也可以随时接过需要照顾的宝宝。

 

补记:

十年前,我对现在的愿景是:

有一个平等真诚相待的爱人;
有两个或更多的孩子;
做着一份自己认为其本身是有意义的工作;
仍然热爱生活。
除了孩子没有生那么多,别的都好像实现了。当时没想到自己后来没能完成学业,半途出来找工作了。现在比十年前视野和阅历有一些增长,但都是在生活中被动学习到的,工作上仍然像在校时那样得过且过。从现在往后再过十年,我都快50岁了,希望那时是这样的:
还活着:)
父母虽然身体有恙,仍然健在
全家人身体健康,生活平淡而幸福
自己能够专注地工作和生活,有规划

 

DON’T set aggressive timeout value

I have a 12 TB USB drive connected to the Raspberry Pi 4 running Raspbian. The drive is formatted as btrfs.

The original line for this drive on fstab is

UUID=”8afd87a4-f10e-11ea-9666-bfec6b15c3e4″ /mnt/btrfsdrive btrfs defaults 0 0

The major issue is when USB drive is offline, RPi4 would not boot. A simple google search directs me to the well-known ArchLinux wikipage. This page implies that nofail,x-systemd.device-timeout=1ms works like a charm. I tried it and find it s**ks. When the USB drive is connected, only some directories are seen after booting, and this partition is NOT even shown in /proc/mounts

The root cause is obvious after comparing the booting log in /var/log/messages. timeout=1ms is not acceptable at all. In fact, the default timeout value is 90 seconds.

Not sure whether this issue happens only on RPi 4, or Raspbian, or Linux. Anyway, suggesting user to set such a small timeout value is misleading.

I am not able to correct the mistake on that wiki because the captcha during registration is What is the output of “pacman -V|base32|head -1” and I won’t install ArchLinux to get the answer…

Log of fstab options=default

Sep 7 20:51:33 myhost kernel: [ 23.019520] Btrfs loaded, crc32c=crc32c-generic
Sep 7 20:51:33 myhost kernel: [ 23.021470] BTRFS: device label myelements devid 1 transid 74693 /dev/sda
Sep 7 20:51:33 myhost kernel: [ 23.298985] BTRFS info (device sda): disk space caching is enabled
Sep 7 20:51:33 myhost kernel: [ 23.299003] BTRFS info (device sda): has skinny extents
Sep 7 20:51:33 myhost kernel: [ 27.445768] random: crng init done
Sep 7 20:51:33 myhost kernel: [ 27.445793] random: 7 urandom warning(s) missed due to ratelimiting
Sep 7 20:51:33 myhost rsyslogd: [origin software=”rsyslogd” swVersion=”8.1901.0″ x-pid=”385″ x-info=”https://www.rsyslog.com”] start
Sep 7 20:51:33 myhost kernel: [ 39.738751] uart-pl011 fe201000.serial: no DMA platform data
Sep 7 20:51:33 myhost kernel: [ 39.763978] 8021q: 802.1Q VLAN Support v1.8
Sep 7 20:51:33 myhost udisksd[401]: udisks daemon version 2.8.1 starting


Log of fstab options=nofail,x-systemd.device-timeout=1ms

Sep 7 20:44:44 myhost kernel: [ 22.972058] Btrfs loaded, crc32c=crc32c-generic
Sep 7 20:44:44 myhost kernel: [ 22.974082] BTRFS: device label myelements devid 1 transid 74693 /dev/sda
Sep 7 20:44:45 myhost kernel: [ 23.440453] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:44:45 myhost kernel: [ 24.015551] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:44:46 myhost lightdm[1325]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Sep 7 20:44:46 myhost kernel: [ 24.976452] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:44:47 myhost kernel: [ 25.577489] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:44:47 myhost lightdm[1335]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Sep 7 20:44:48 myhost kernel: [ 26.430257] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:44:48 myhost kernel: [ 27.014250] broken atomic modeset userspace detected, disabling atomic
Sep 7 20:50:53 myhost udisksd[358]: udisks daemon version 2.8.1 exiting


Tips of tmux, rpath, cgdb

  • To make the indicating arrow shown as straight line, not dashed line: manually set TERM to xterm-256color
  • tmux will set TERM to screen-256color, which may fix the size of nested tmux. Solution: manually set TERM to xterm before launching a new tmux in a new machine.
  • Use rpath to include common lib path in ELF, to make it run under CentOS5/6/7…

“吃瓜群众”


不知道瓜是瓜子还是西瓜,反正这个词就这么流行开来了。

前些年还流行过围观改变中国。中国当然被改变了,变得不许围观。于是诞生了吃瓜群众。本质上与鲁迅笔下的看客是一样的,多了些粉饰太平的意味。

吃瓜,听起来很惬意。一般用于描述自身,不是说别人在干什么,而是说自己在干什么。不是说自己在做什么,仅仅是吃瓜,吃的时候并没有看/听/想些什么。绝对安全。

糟糕的是,以后当一个吃瓜群众也不被允许了,毕竟吃瓜是中性的、消极的,不够正能量。

比特币失败的去中心化尝试及其他

经过多年发展,到目前为止(2017年),比特币在以下领域取得了成功:洗钱,反追踪,投机工具。但最重要的初始目标,去中心化尝试,已经彻底失败了。

比特币去中心化的假设是,所有人的计算设备都会拥有类似的算力。但从最初的PC挂机挖矿,到显卡挖矿,再到ASIC矿机,算力越来越被垄断。

比特币的发展历程,与www的发展很类似。www发展之初,每个人都可以建立一个网站,那时上网的人多,内容是稀缺资源。随着www的发展,内容越来越多,稀缺的是关注程度。如今的互联网信息传播方式比以往任何时候都更为中心化。个人主页、论坛、博客、微博、微信、知乎,每一代工具都产生了新的更大的中心。

太公

今天在家谱上看到了爸爸的爷爷,也就是我的太爷爷的信息。名宇崑,字森桂。

当年村里威望最高的人。善卜卦,取名。是村里第一个自愿火葬的人。90多岁时自然死亡。

Set pane title in tmux 2.3

Tmux 2.3 adds a useful option called ‘pane-border-status‘. However I could not find out how to set pane title.  My walk around is as below

cat ~/mylocal/bin/setpane
#!/usr/bin/env csh
printf ‘\033]2;%s\033\\’ $1
tmux set-option -g pane-border-format ‘#{pane_index} “#{pane_title}”‘

This script cannot be called within Tcl. Hope tmux will add a ‘rename-pane’ command in the future.