RSSAmplifier

Blog

Li Zhao's Homepage

blog.lizhao.netRSS feed ↗25 posts

Latest posts

Development with Linux Terminal on Pixel Tablet

Android is transforming to a cross tablet and desktop OS. Google is officially supporting Linux installation on Android 15/16 beta versions! This Linux distribution uses Android's AVF framework, making it feel like native Linux on your device. While there were still some bugs as of February 2025, it's become quite usable, especially on Google Pixel Tablets. For me, it's perfect for light…

Is Wayland matured on Ubuntu

On Ubuntu 22.04, for the sake of Waydroid, I gave Wayland a try. Without knowledge of the root causes of the following issues, I'd just hold on for a while before switching. Chrome/VS Code fonts are blurry, once display scaling is enabled. Chrome and Prospect Mail blink often during rendering. Laggy mouse/windows dragging sometimes. Is it caused by Nvidia GPU compatibility?

Ubuntu tools to use outlook

1. Evolution needs ews plugin installed to use outlook.com emails for enterprises 2. https://github.com/abraunegg/onedrive, deb installed from Suse build repo works great.

Ubuntu and Bluetooth Call

Here is a note for Ubuntu install. Bluetooth A2DP and HDP modes were always messed up by default, i.e., I can't really use Bluetooth microphone to make teams/zoom call. Seems replacing PulseAudio with Pipewire/wireplumber solve the problem smoothly. Refer to here.

Ludashi scores

Didn't know Huawei Mate30 is so powerful, almost same with Lenovo AMD 5600G Desktop.

Slow Ubuntu Bootup Troubleshooting

To analyze the reasons slowing down Ubuntu bootup, please use systemd-analyze cmd. systemd-analyze time Startup finished in 5.027s (kernel) + 11.220s (userspace) = 16.247s graphical.target reached after 11.194s in userspace To sort modules by time taken during boot, use systemd-analyze blame We can see snap modules took quite long to load. But snap are loading in parallel and doesn't block others.…

docker compose to remote host

# setup ssh -nNT -L /tmp/socket.remote:/var/run/docker.sock user@remote.example.com & export TUNNEL_PID=$! export DOCKER_HOST=unix:///tmp/socket.remote # use docker, docker-compose here docker-compose… # shutdown and cleanup of the socket kill $TUNNEL_PID rm -f /tmp/socket.remote

CLI tool to manage Ubuntu network

Seems Ubuntu@WSL2 has problem on DNS. I need to use nmtui to manual configure DNS server time to time.

Run snap in WSL2

To use snap in WSL2, we need systemd enabled, following instruction at https://github.com/diddledan/ubuntu-wsl2-systemd-script/. However after enabling systemd using the script, visual studio code can't open terminal anymore. There will be a fix. Before you receive the fix, there is a workaround, to change the last several lines of to: else exec /usr/bin/nsenter -t "$SYSTEMD_PID" -a /bin/login -p…

New Xiaomi Moann Inkpad X

Inkpad X was released it's new e-ink reader Inkpad X at July, 2020. The specs listed is: It costs me RMB 1699 (340 SGD) to buy from Taobao on 7, Aug. Due to Covid-19, air shipment is unavailable to ship to Singapore and sea shipment took three weeks with higher costs (due to GST tax). Inkpad X features a large 10 inch e-ink screen with 1600x1200, which is not unpar with Kindle technically. But be…

AMD emulator on Hyper-V

AMD CPU based Android emulator is working according to the blog . However, when I tried it with Android Studio 3.4, it kept crashing with error messages like: Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor Luckily, after my Windows was upgraded to insider preview version 18890.1000, the emulator is working now. And it's a surprise…

Visual Studio Xaramin debug with Bluestacks

Got a AMD Lenovo A485 with Windows 10 Home, which does not have Hyper-V. To use it for Visual Studio Xamarin experiments, I want a native Android emulator. Although it can install AMD native Android emulator, with hypervisor windows platform enabled, it does not allow other VMs to be installed, e.g., using Virtualbox. Luckily, Android VMs on Virtualbox or VMWare with TCP/IP based remote ADB…

BPMN and Activiti

A quick guide: http://www.nurkiewicz.com/2011/01/activiti-processes-and-executions.html BPMN is easy to be transformed to petri net for formal analysis.

Fix HDMI audio for ubuntu/NUC

My NUC is hooked to Philips 221E via HDMI cable. The audio is fine if the monitor is never turned off. Once the monitor reboots, the distorted audio really make it unusable. To solve the problem at ubuntu, append 'tsched=0' to 'load-module module-udev-detect' at /etc/pulse/default.pa

How to add extra dir to CLASSPATH at spring-boot

Spring-boot has three built-in launchers as real main classes, JarLauncher, WarLauncher and PropertiesLauncher, which could be used to call executable. These launchers set the path to load resources and classes. Only PropertiesLauncher could be use dir outside the jar file. To add an extra dir 'EXTRA' to classpath: 1. for maven, add the following fragment <plugin>…

Lost 3 years

I forgot to migrate my wordpress DB from an expired hosting plan, and the posts from 2001-2004 are lost. But, well, one word could cover most of the life: babysitter.

Lens dropped

Visited universal studio yesterday, a wonderful place. But, unlucky, my wife lost the lens cap; 1 hour later, the 17-55 lens got dropped, and UV glass is broken, the UV ring is dented. By quicky googling, I found guys spent hours to DIY remove the dented UV. So, I gave up the chance to do it myself, instead, it's sent to canon service centre today. They helped me to remove the dented UV in 15mins,…

update from redhat RHEL4 to CentOS5.5

I have a virtual machine running RHEL4 on our cluster server. But IT does not support it anymore. So, I tried to update it to CentOS to enjoy update. The problem is I have no physical access to the VM, so need to update online. Neither Redhat nor CentOS suggest to do online update between major releases, but no choice. I did in 2 steps: migrate from RHEL4 to CentOS4 update from CentOS4 to CentOS5…

learning to crawl

Tiantian's 5mth+12days already.

Drunk son

Huh, he just finished a whole bottle of milk.

HOWTO: when you lost DPP CD

I cannot find my canon DPP install CD, and Canon website provides DPP updater only. DPP updater runs only on PC with DPP installed. If you have the following contents at registry table, then it thinks you have DPP installed. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Canon\DPP] [HKEY_LOCAL_MACHINE\SOFTWARE\Canon\ZoomBrowser EX\] [HKEY_LOCAL_MACHINE\SOFTWARE\Canon\EOS…

Google wave invitation to send

Who want to try the wave? I have couples of invitations, please leave your email, if you want one. Leave anonymous comments, then, your email won't be displayed.

B超对照表

copied from http://blog.sina.com.cn/s/blog_4ae0fa1d0100b3ex.html~type=v5_one&label=rela_nextarticle http://blog.sina.com.cn/s/blog_4ae0fa1d0100b3f5.html~type=v5_one&label=rela_nextarticle 怀孕: Pregnancy 预产期: Date of delivery; Due date 害喜: Morning sickness 胎儿心音: Fetal Heart Sounds 破水: Membrane Rupture / Water broken 阵痛: Labor Pain 早期破水: Premature Rupture 腿抽筋: Leg Cramp 胎儿: Fetus 胎动: Fetal Movement;…

Develop Browser Plugin based on Windows Mobile

NPAPI is supported by various Web browser engines, such as WebKit and Gecko. Iris browser is a WebKit based Web browser that can run on Windows Mobile. So, we could extend Iris with NPAPI plugin. I am not sure whether Iris provide develop environment for plugin. We might need to find another way to build plugin. What I tried first is to build minimo, and study whether can build plugins based on…

PdfEdit -- the strongest open source PDF editor.

There is no budget for me to study into Acrobat's pdf editor in detail, so, I do not know whether PdfEdit is weaker or stronger than it. But based on my experience, I just recommend PdfEdit as your pdf editor, especially if you do not bother do a little script programming. Here, I give an example of how could you change all pages' size with PdfEdit. Step1: goto 1st page, and decide the desire page…