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/

fedora 

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 |
                                         +-------------+
[Read More]

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;
}
cpp 

Firefox tabs in multiple rows

  1. Go to about:config, enable config toolkit.legacyUserProfileCustomizations.stylesheets.
  2. Go to about:support > Profile Directory > Open Directory. Firefox profile directory will be openned in new window.
  3. In your profile directory, create folder chrome if not exist.
  4. Go to folder chrome, create file userChrome.css.
  5. Copy content from multi-row_tabs.css into userChrome.css.
  6. Restart Firefox.
firefox  css 

Active Application Launcher on Latte Dock by Super button

  • Right click on the dock > Layouts > Configure…
  • In Settings window, go to Preferences tab
  • In Actions section > Tick Press ⌘ to activate Application Launcher

Or

  • Open ~/.config/kwinrc, then add:

    ...
    [ModifierOnlyShortcuts]
    Meta=org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu
    ...
    
  • Reload KWin:

    $ qdbus org.kde.KWin /KWin reconfigure
    

    Github QA