Skip to main content

8 posts tagged with "how-to"

View All Tags

Mounting ISO image file on macOS and Linux

· 2 min read
Frank Chen
Backend & Applied ML Engineer

For viewing the content of the ISO image file like *.iso, we can mount it to filesystem and loop up its contained files.

Mounting the ISO image file in linux is much easier than doing in macOS. Because ISO use ISO9660 file system while the hdiutil in macOS does not support it originally. That will require more steps to implement in comparison with one command like mount in Linux.

How to mount iso image in Linux

osx - Can a Mac mount a Debian install CD? - Unix & Linux Stack Exchange

Exploring cross compilation: ARM on x86_64

· 3 min read
frank

Cross Compilation Anatomy

Cross-Compilation ecosystem involves the following components:

  • host system
    • cross-Compilation toolchain
      • cross compiler
      • cross linker
      • cross debugger
      • sysroot
        • target system library files
        • target system header files
        • target system other files
  • target system

Playing with unicode in deep

· 6 min read
Frank Chen
Backend & Applied ML Engineer

The smallest unit of all texts we see on the screen is one character. But you may wonder about:

  1. How one character is displayed on the screen?
  2. How one character is kept in memory or disk in binary format(0 or 1)?

Let's dive into the Unicode to solve these questions.

In Unicode, a character maps to something called code point which is a magic number written as hex like: U+20AC and is still just a abstract layer.

LayerRepresentation
screenglyph
abstractionunicode character
abstractionunicode code point
diskvariable-length bytes(1 to 4 bytes)

How that code point is represented in memory or on disk?

UTF-8, UTF-16, and UTF-32 help translate unicode code point into binary data in 8-bit bytes which can be saved in disk or be transported in network.

UTF-8 is character-to-bytes(1 to 4 bytes) encoding standard across almost all system and application.

Discovering QEMU

· 4 min read
Frank Chen
Backend & Applied ML Engineer

Learning and using the QEMU help me understand how the linux operating system works including fields:

  1. Linux boot process.
  2. Cross compile for target system(such as arm64) on host system(such as x86_64), and test the binary.

Configuring WiFi AutoSwitch in Windows

· One min read
Frank Chen
Backend & Applied ML Engineer

If autoSwitch is turned on, it allows Windows to continue looking for other auto-connected wireless networks while connected to the current wireless network. If a higher priority auto-connected wireless network than the currently connected wireless network comes in range, Windows will automatically connect to it instead.

It also needs to work along with priority setting.