Note for fixing network setup in vm

I normally run several linux vms in VMware Fusion on MacBook Pro 2019. Recently during a trip, the system stuck. I forced a shutdown and reboot. Then I lost network in a Ubuntu 23.04 vm, there is no ethernet interfaces in Network section in Settings(GNOME), and there is no related icon in top-right corner.

I googled a few times, I found one article helped me. Something is wrong in this file:

Anyway, I just followed the steps in the article, it works for me.

Play Qt dev in Flatpak world

XDG Desktop Portal and Flatpak are more and more in used. If you are using Qt, Flatpak KDE runtime is a good place to start, install pre-built Qt binaries in Flatpak world. But it’s normally for the released versions.

If you want to play with the edge of Qt, for example, dev branch, you can try following steps:

And here is an example at io.qt.examples.dropsite.yaml

Thanks bbhtt for the help in matrix.to: Packaging KDE Apps in Flatpaks channel.

Install Vim 9.0 and enable Qml syntax

(Ubuntu 22.04/23.04)

Reference: How to Install Latest Vim 9.0 on Ubuntu Based Linux Distributions

Configure vim to enable Qml syntax

Add the following line:

Configure nvim and nvim-qt

Reference: How to share config between Vim and Neovim

Help to test KDE/Plasma 6 Wayland

KDE developers are working hard on Plasma 6 Wayland. See also KDE Plasma 6 Development Progressing Well, Plasma 6 Beta Possible In A Few Months and KDE Plasma 6 Wayland Session: “It’s Been Working Great!”.

For example, you can install Neon Developer Edition via KDE neon: Live Images. After installation, you can upgrade it to KDE/Plasma 6,


sudo apt update
sudo apt install neon-settings-2
sudo apt full-upgrade

See also Neon Unstable now using Qt 6 Builds of Frameworks and Plasma.

If you find any bug, please help to report to KDE bugtracker. Here is my first ticket recently.

View heart rate for pool swimming with Workout app on Apple Watch

Normally you can see the heart rate information for running/hiking/skiing. But it’s not the case by default for pool swimming with Workout app.

On Apple Watch, Workout, touch the “…” button on Pool Swim(OPEN GOAL) section, click the pencil button on the top-right corner of “Open” section, Workout Views, Edit Views, enable the “Include” of “METRICS 2” for heart rate information and “HEART RATE ZONES” if needed. You can also “Reorder” the views, the button for it at the bottom of the page.

Reference:
* Apple: Use the Workout app on your Apple Watch
* Polar: HOW TO CALCULATE YOUR MAXIMUM HEART RATE
* Polar: HEART RATE ZONES | THE BASICS

今年开始去健身房了

印象中大四上学期选中了健美体育课,每天早上8点到9点半,然后累死了,回宿舍接着躺着的一个学期。但是当时的成绩,是一点儿也没有印象了。

2016年搬到Asker之后,车库只有一个车位,我每次换完轮胎,都是用绳子把轮胎拽上二楼储藏间,每个轮胎大约31KG。过了一两年,我就不行了。一般就是把轮胎包好,放在后院阴暗处了。

今年初,好像是2月,跟着老婆大人去她单位的健身房混了一次。光杆(20KG),深蹲了几组,然后回到家酸痛了大约两个星期。之后大约每星期一次,也在附近的一个自助健身房办了卡。只要超过10天没去,大约回来就会痛两天,现在大约两周三次的频率,每次40分钟左右,希望能坚持下去。

增强力量训练之后,冲个五公里,感觉和以前也不太一样了。偶尔带着老大冲几次百米。

今天高杠深蹲冲击了一下70KG,坚持了五次,大约单次(1RM)可以折算到80KG以上了,也算是超过体重了。我基本上都是一个人,没有保护的情况下,比较保守。

40岁以后,年龄增长过程中的肌肉萎缩已经显而易见,希望能有规律的训练可以暂缓这一过程。

等待冬雪中…

2022暑假汽车旅行

SAS罢工还在继续进行中,但是好像会议还在积极进行中,所以星期三从哥德堡返回家里。直到星期四晚上才确认周五出行无望,旅行社Apollo会退回全款。可是我们的希腊克里特之旅就彻底泡汤了。

还是要出去的,和由同学王同学一家讨论了一下,决定星期五一起出游。走一步看一步,没做作业。流水如下:

Continue reading

老范带着我当了两小时的YouTuber

关注老范讲故事有一段时间了,前几天正好碰到了他的直播,他正好有介绍海外华人在当地的系列节目,然后就参与了一下。非常感谢老范带着我讲了两个小时。

看着在屏幕上讲话的我,好像有些陌生,不只是声音有些不同,可能是对这个头更不熟悉。

老范讲故事:挪威程序员聊北欧生活-1
老范讲故事:挪威程序员聊北欧生活-2

(注:墙内的朋友需要自备工具。)

如果大家对挪威感兴趣,可以在这里留言,或者在老范的Discord服务器的“润”频道聊一聊。

2022西班牙Malaga之旅

居住地点:Holiday World Polynesia(Rotonda de los Elefantes, Av. del Sol, 195, 29630 Benalmádena, Málaga, Spain)
时间:5月15日-19日

COVID以来,第一次正式出挪威度假。

三四月份开始有意向,朋友王同学家提示有便宜机票,早出晚归的机票一个人往返也就700-800的样子。然后一起订了一个度假村,All inclusive,也不用做饭也不用出去找吃的,在酒店躺平。

Continue reading