sound test | Leopold FC980M BT Silent Red Switch (White Grey)
Got the keyboard and pretty happy with it, except one thing: capslock/numlock led doesn’t light up in wireless mode, although their functions work fine. In USB mode, the leds light up normally.
Upgrade Fedora 36 to Fedora 37
-
Update Fedora 36:
sudo dnf upgrade --refresh
-
Reboot.
-
Install
dnf-plugin-system-upgrade
if not installed:sudo dnf install dnf-plugin-system-upgrade
-
Download Fedora 37 packages:
sudo dnf system-upgrade download --releasever=37
-
Start upgrading. This will reboot machine:
sudo dnf system-upgrade reboot
-
Wait until upgrading finish.
References
https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/
Create folder with case-insensitive file name on Linux
Install ciopfs
-
Get source code from https://github.com/martanne/ciopfs.
-
Install dependencies.
Fedora:$ sudo dnf install make gcc fuse-devel glib2-devel libattr-devel
Debian:
$ sudo apt install make gcc libfuse-dev libglib2.0-dev libattr1-dev
-
Build and install.
$ make && make install
Install AMDGPU HiP, OpenCL on Fedora 36
-
amdgpu installer can be get from https://www.amd.com/en/support. Just select your right card.
-
Download Radeon™ Software for Linux® installer version … for RHEL/CentOS 9.0.
You will get a rpm file:amdgpu-install-....el9.noarch.rpm
.
Raspberry Pi 4 as Routed Wireless Access Point
+- RPi -------+
+---+ 192.168.1.2 | +- Laptop ----+
| | WLAN AP +-))) (((-+ WLAN Client |
| | 192.168.3.1 | | 192.168.3.2 |
| +-------------+ +-------------+
+- Router ----+ |
| Firewall | | +- PC#1 ------+
(Internet)---WAN-+ DHCP server +-LAN-+---+ 192.168.1.3 |
| 192.168.1.1 | | +-------------+
+-------------+ |
| +- PC#2 ------+
+---+ 192.168.1.4 |
+-------------+
Get actual elapse time in CPP
#include <chrono>
int main() {
std::chrono::time_point <std::chrono::system_clock, std::chrono::duration<double, std::milli>> then = std::chrono::high_resolution_clock::now();;
// ... do something ...
std::chrono::time_point <std::chrono::system_clock, std::chrono::duration<double, std::milli>> now = std::chrono::high_resolution_clock::now();;
double elapseTimeInMS = (now - then).count();
return 0;
}
Shorter:
#include <chrono>
using namespace std;
int main() {
auto then = chrono::high_resolution_clock::now();
// ... do something ...
auto now = chrono::high_resolution_clock::now();
double elapseTimeInMS = chrono::duration<double, milli>(now - then).count();
return 0;
}
Get started with GStreamer - Command line
This is about GStreamer on Linux.
[Read More][Linux] Adding page number to PDF file in terminal
Note: You will lose all the links (hyperlink, internal-link) in PDF with this way
Create latex file numbered.tex:
[Read More]Firefox tabs in multiple rows
- Go to about:config, enable config
toolkit.legacyUserProfileCustomizations.stylesheets
. - Go to about:support >
Profile Directory
>Open Directory
. Firefox profile directory will be openned in new window. - In your profile directory, create folder
chrome
if not exist. - Go to folder
chrome
, create fileuserChrome.css
. - Copy content from multi-row_tabs.css
into
userChrome.css
. - Restart Firefox.