Proving ownership of a Bitcoin (BTC) address is a crucial aspect in various scenarios. The post Proof of Ownership for BTC Addresses introduced the proof for non-multisig addresses. This guide explores how to prove ownership for different multisig BTC address types, including algorithm specifications and step-by-step methods. What is a Multisig Address? A Bitcoin multisig
Read more
Tag: How to
Mapping Left Alt to Ctrl for Windows Keyboard to Be Similar to macOS
Posted onAs a dedicated macOS user, I often find myself missing the convenience of having a Command key located near my thumb for common shortcuts when using Windows. In the standard Windows keyboard layout, the key that occupies the same position as the Command key on macOS is the Alt key. However, the equivalent key on
Read more
Disabling the Emoji Hotkey in Linux Using GSettings
Posted onIf you often find yourself accidentally triggering the emoji picker in Linux by CTRL + Period (CTRL + .), you may want to disable the hotkey that brings it up. In this post, we will show you how to disable the emoji hotkey using the gsettings command. The emoji picker in Linux is typically activated
Read more
Splitting a String by Another String in C++: A Flexible Utility Function
Posted onIn this post, we will explore a flexible utility function for splitting a string based on a given delimiter using C++ and the standard library. This allows us to break down complex strings into smaller parts that are easier to process and manipulate. The C++ Utility Function to Split a String by Another String Background:
Read more
Installing Zlib in Ubuntu 22.04
Posted onZlib is a popular open-source compression library used by many software applications to compress and decompress data. It provides fast and efficient compression and decompression algorithms that can be used to reduce the size of data, which can improve performance and reduce storage requirements. In this post, we will discuss how to install zlib in
Read more
Generating ECDSA K1 and R1 keys using OpenSSL in Linux
Posted onECDSA keys are commonly used in various areas like blockchains. OpenSSL is a commonly used tools in Linux for handling signature/encryption/decryption. This post introduces how to generate ECDSA keys using OpenSSL in Linux. Generate keys for K1 secp256k1 elliptic curve We start with K1 (secp256k1) as the example. To generae ECDSA keys using other curves,
Read more
Sorting Two Lists Together According to The Order of One List in Python
Posted onWe may use two lists to store the values of two properties of a list of elements in Python. Under such data structure arrangement, when we need to sort the properties from one list, we may want to also make sure the other list will be also re-ordered following the same order as the first
Read more
Configuring Fonts for Thunderbird snap to Display Fonts Nicely
Posted onsnap is a software app bundle with dependencies included so that it can works in different Linux distributions. However, as most other software, snap has compatiblity issues. An app in the snap format is not 100% the same and compatible with the native version. One of the problem I find is that Thunderbird from snap
Read more
Starting Page Number from the Second Page in MS Word
Posted onFor document, we may use the first page as the title page. Then the page number 1 should start from the second page. In this post, we will look at how to make MS Word count the page number from the second page. That is, making word treat the second page as page number 1.
Read more
Reading JSON from URL in R
Posted onR is good at analyzing data. Many data are provided as JSON from RESTful APIs with an URL. R natively support many data format. For JSON, we can use some libraries. For reading JSON from URL, we can use the “jsonlite” package. In this example, we use an example of fetching BTC prices of last
Read more
Reading Excel xls/xlsx Files in R
Posted onMany useful data are stored in Excel xls or xlsx format files. R is good at doing analysis on top of data. We would then need to import the data to R by reading the xls/xlsx files to be R data frames. In this post, we check how to import data from Excel files to
Read more
3 Ways of .odt to .txt File Conversion in Command Line in Linux
Posted onThe Open Document .odt files can contain rich formats for the content. However, some times a plain text file is more handy. We may convert .odt files to plain text files for such needs. In this post, we discuss 3 ways of how to convert .odt files to .text files in command line in Linux.
Read more
Configuring Eclipse to Show Git Revision Information Similar to Git Blame in Editor
Posted onEclipse can work well with Git. We discussed Configuring Eclipse to Highlight Changed Lines Compared to Git Commit before. Eclipse can also show the revision information for lines of code (from git blame) which is useful to understand why some lines are added in the context of previous revisions including the lines of code. Eclipse
Read more
2 Ways of Modifying macOS Keyboard’s Right Option to Control for Mac Pro
Posted onFor heavy Terminal/Shell/command line users, the Control key is a very frequently used key. However, in Mac Pro keyboard, there is only a single left Control key for some models. This cause quite some inconvenience. In this post, we will go through how to configure/remap the keys to “create” a right Control key. Remap keys
Read more
Converting Hex to ASCII Using xxd
Posted onStrings are commonly encoded as hexadecimal (hex) strings for various purposes. Hence, it is also common to convert hex strings to its original strings such as an ASCII string. Hex to ASCII string conversion can be done programmatically in many languages. In command line, we can use xxd to convert hex to ASCII string. This
Read more
Release Notes For Linux v2.0
Posted onThis is the release notes for linux release v2.0 (source code: linux-2.0.tar.gz) with format adjusted by removing/replacing tabs/spaces/new lines/formatting marks. This notes document can give us an understanding of the early development of the Linux kernel. The original ASCII formatted version is at the end of this post. Intro This document contains a list of
Read more
Configuring Eclipse to Highlight Changed Lines Compared to Git Commit
Posted onEclipse is one of the good IDEs for C/C++ projects with its great source code indexer. It is common the source code version is controlled by some tools like Git for software projects. It is convenient if the IDE can show the current changes compared to the committed code version. In this post, we will
Read more
Generating RSA Private and Public Key Pair in Go Lang?
Posted onHow to generate a pair of RSA private and public key in Go lang? Go lang has a rich set of standard libraries. Using Go’s standard libraries, we can generate RSA private and Public keys. The Crypto standard libraries in Go lang Go lang standard libraries has a rich set of cryptography functions. Here are
Read more
Printing Google Doc with Comments in Page Margins
Posted onGoogle Doc documents support comments which is useful for collaborative editing of files with comments to each others. But when we print the document from Google Doc, the comments are not included. How to print the document with comments in page margins? In this post, we will introduce a method using the opensource and free
Read more
Printing Comments in Page Margins in LibreOffice
Posted on“Comments” and “tracking changes” are nice features of the opensource LibreOffice software (and other Office software) to add comments and track changes in documents. OpenDocument ODT and MS Word DOCX/DOC file formats all support comments and change trackings. When we print the documents, how to print the comments in the page margins too in LibreOffice?
Read more