Last updated on April 6, 2025Vial is a GUI program that can configure QMK input devices in real time. In Linux, the default configuration usually stops Vial from accessing the input devices. The official document suggests configuring udev rules. For someone who doesn't frequently configure via Vial, this seems to be overkilling and a bit […] The post Use Vial in Linux Without Configuring udev (and…
Last updated on December 29, 2024Mu4e defaults loading messages in HTML with shr. While this works well most of the time, sometimes a plain text version is more readable. Therefore, it is desirable to create a key binding to switch between these two versions. I have the following in my Emacs configuration: ;; Quickly switching […] The post Quickly Switch Between HTML and Plain Text in…
Last updated on October 18, 2024To losslessly convert a PNG image to a WebP image on GNU/Linux, run the following command: cwebp -z 9 input.png -o output.webp 9 indicates the best effort to compress the image, resulting in the smallest image size. You can replace 9 with a smaller number if you prefer a less […] The post Convert PNG Images To WebP Images Losslessly Using <code>cweb</code> in…
Last updated on December 27, 2023With GnuTLS, we can view the certificate details of a website with the following commands (replace "example.com" with the website of your interest): gnutls-cli --print-cert example.com The post View the TLS Certificate Details of a Website on the Command Line Using GnuTLS appeared first on Top Bug Net .
Last updated on December 20, 2020When testing Python programs, coverage.py is often used in measuring code coverage, and enforcing 100% code coverage is regarded as a good practice: # .coveragerc [coverage:report] # Enforce 100% coverage test fail_under = 100 show_missing = True However, if there are some lines of code that are platform dependent (i.e., […] The post Platform Dependent Python…
Last updated on October 29, 2020Mobile apps have emerged as a competitive alternative to websites. Although websites are still irreplaceable parts of digital presence for business brands, mobile apps have been forcing them to change. The emergence of Progressive Web Apps (PWA) showcases this shift. In spite of this overwhelming popularity of mobile apps, many […] The post 5 Misconceptions Web…
Last updated on October 3, 2020In Python, FileNotFoundError is an exception that is raised when a requested file does not exist. Many people assume that when their programs fail to open a file in read-only mode or delete a file, FileNotFoundError must be raised and they should only need to process that. For example, some […] The post Catching <code>FileNotFoundError</code>? Watch Out! appeared…
Last updated on October 1, 2020For any business, while building a mobile app it is the priority to create apps for reaching their target audience with ease and optimize the app for this specific audience. But among the millions of apps that populate the Play Store and iOS App Store, perhaps only a few thousand […] The post What Is Mobile App Architecture? — Key Considerations to Build Great…
Last updated on August 25, 2020One of the most renowned programming languages at present is Java. Furthermore, Java application development continues to be a lucrative source of income for many people who are into the tech industry. The language is used to create web platforms and web apps, designed for flexibility, which enables developers to […] The post Learning Casting in Java appeared first…
Last updated on October 28, 2019tl;dr: Save the following file as Makefile and change the source files to the ones that you intend. # Makefile template for a shared library in C # https://www.topbug.net/blog/2019/10/28/makefile-template-for-a-shared-library-in-c-with-explanations/ CC = gcc # C compiler CFLAGS = -fPIC -Wall -Wextra -O2 -g # C flags LDFLAGS = -shared # linking […] The post Makefile…