Category Archives: 技术

How to run ARM64(aarch64) Qt auto tests on x86_64

Assume you have a host(x86_64) build of qtbase, like following:

Some extra work to setup system:

Continue reading

Build Qt dev/5.15/5.12/4.8 on Ubuntu 23.10

Install Ubuntu 23.10, for me, it’s an VM via VMware Fusion 13.5.0 on MacBook Pro 2019.

Install some needed packages,

Default gcc/g++ is 13.2.0.

Add following in env:

Continue reading

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

Sway on VMware Fusion

With Manjaro(Arch based, Xfce edition), installed as a vm in VMware Fusion on macOS. You can install sway or sway-git.

sudo pacman -S sway

or

git clone https://aur.archlinux.org/wlroots-git.git
cd wlroots-git
makepkg -si
git clone https://aur.archlinux.org/swaybg-git.git
cd swaybg-git
makepkg -si
git clone https://aur.archlinux.org/sway-git.git
cd sway-git
makepkg -si

If you want to use gnome-terminal,

sudo pacman -S gnome-terminal

Modify /etc/sway/config , the line

set $term foot

to

set $term gnome-terminal

Modify /usr/share/wayland-sessions/sway.desktop , the line

Exec=sway

to

Exec=env WLR_NO_HARDWARE_CURSORS=1 /usr/bin/sway

If you want to restart display manager to login again,

sudo systemctl restart lightdm

Reference

域名续费出了点问题

qihome.org这个域名今年7月6日又到期了,新网域名,我之前是在淘宝的一个代理那里买的,并且续费过几次。这一次,大约是提前三天左右收到续费通知,然后才发现代理的网站都不能正常工作了,QQ和旺旺也联系不到了。当时急着出去休假,就没有继续处理。

两周假休完回来,试着联系新网,客服提供了一个文档,自己之前在新网建过账号,试着要求域名转入。然后域名拥有者信箱收到邮件,同意转入,然后5天内代理没有处理的情况下,域名就可以转入了。然后续费。

特此记录一下。

Phishing is more common in Norway nowadays

My wife’s mobile bill on Nov. got a 50 NOK extra item about “Video”. And she called ICE service and got reply said “You need to contact strex.no yourselves.”

We tried to open https://strex.no/ , and it obviously mentioned that the mobile number was not registered yet. Then we registered and found two transactions details, 50NOK and 1NOK, from “Varvelia Technologies LTD(4054) Video” . Looks like it got charged from mobile payment directly, which has not been enabled by us.

My wife recalled that she got a video link from her ex-colleagues and she clicked it.

Looks like a common Phishing… , but it looks like so easy to be cheated.

After logged into https://strex.no/ , Forside->Endre betalingsmåte, the default is Mobilregning, not sure for now whether it is enough just to change it to “Kort – Betalingene belastes det kortet du til enhver tid har valgt.”

https://strex.no/ofte-stilte-sporsmal

Jeg har ikke bestilt dette og har ikke godtatt betaling via mobil – hvem kan jeg kontakte?
Klager og generelle henvendelser angående en tjeneste eller vare, skal rettes til leverandøren av varen/tjenesten. Du kan logge deg inn på Min Side for å se alle detaljer om dine betalinger. Klikk deg inn på hver enkelt transaksjon for å se ytterligere detaljer og kontaktinformasjon til tjenesteleverandøren.

Contact tjenesteleverandøren myself? Is it a joke?

https://strex.no/ , on the bottom, Strex eid av Telenor/Telia/ICE…

Some results from google:
https://i-cyprus.com/company/493119 VARVELIA TECHNOLOGIES LTD