Ben Chuanlong Du's Blog

It is never too late to learn.

Format a Disk on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Locate the right disk to operate on. A few commands might help you. For example, you can use the command ls /dev/sd* to list all hard drives and the command …

Tips on Two Factor Authentication

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Avoid using SMS text message as your 2F authentication for a few reasons.
    • You might lose your phone.
    • Your phone might not work if you travel internationally.
  2. It is suggested that …

Preparing Data for AI

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

General Tips

  1. When you label individual images, it is better to use numerical labels (even though text labels are easier to understand) so that you can avoid mapping between numbers (use …

Get OS and Architecture Information in Shell

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Command Description
uname -a The full info of the machine.
uname The type of OS, e.g., Linux, Darwin, etc.
uname -m The architecture of the machine, e.g., x86_64, etc …