鍾博丞

@otischung

Joined on Nov 16, 2020

  • contributed by <otischung> Environment ❯ uname -a Linux scream-Ubuntu-24 6.11.0-21-generic #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux ❯ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
     Like  Bookmark
  • contributed by <otischung> 開發環境 ❯ uname -a Linux scream-Ubuntu-24 6.11.0-17-generic #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux ❯ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
     Like  Bookmark
  • contributed by < otischung > Quiz 1 測驗 1-1 補完之程式碼如下所示 typedef struct list_item { int value; struct list_item *next; } list_item_t;
     Like  Bookmark
  • This note shows you how to enable and use the WOL. BIOS Preparation Take the ASUS Motherboard for example, go to "Advanced" -> "APM comfiguration", enable "Power On By PCI-E". Ubuntu Configuration Get the MAC address of your Ethernet network interface controller.​​​ip a https://ivonblog.com/posts/linux-enable-wake-on-lan/
     Like 1 Bookmark
  • contributed by < otischung >
     Like  Bookmark
  • This is my personal note for the Linux system configuration for Ubuntu. Change Root from Live USB First of all, mount your root partition and the EFI partition. sudo mount /dev/<root_part> /mnt sudo mount /dev/<EFI_part> /mnt/boot/efi Then, you have to mount all devices mentioned by the stackexchange. Here is the following command: for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do
     Like  Bookmark
  • Plugin Manager - vim-plug https://github.com/junegunn/vim-plug Type the following command: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim For Windows, type the following command: iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ni $HOME/vimfiles/autoload/plug.vim -Force Add/Create a vim-plug section to your ~/.vimrc.
     Like  Bookmark
  • First of all, welcome to be an Archer :) Then, let's start. Installation Medium Download the .iso file from the following link: https://archlinux.org/download/ Prepare an Installation Medium
     Like 1 Bookmark
  • Ref: Arch Linux ARM, theramiyer Make Bootable SD card Connect your SD card into your computer. You have to login as root to do the following step, not via sudo. sudo su Partition Start cfdisk to partition the SD card.
     Like  Bookmark
  • Change attribute to let a file or directory cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. sudo chattr +i <file>
     Like  Bookmark
  • 後端理論 (以 Django 為例) MVC architecture MVC 是由三個字組成,分別為 Model View Controller 在後端裡面
     Like  Bookmark
  • 關閉 SELinux sudo vim /etc/sysconfig/selinux SELINUX=enforcing -> disabled 增加 EPEL 套件來源 keyword: yum epel (oracle linux) sudo vim /etc/yum.repos.d/oracle-epel-ol8.repo
     Like  Bookmark
  • 本次購買 UMS4*1 + 足量 QC3.0 快充頭 本人將本次購買體驗與產品測試不足之處列舉如下 這個所謂的「足量」QC3.0 快充頭,型號為 GA-QC810,只有經過一個不知名的 CCC save 檢驗,沒有其他如 CE, RoHS, BSMI 的安全檢驗或製程標準。 根據我的測試,不論是對於 UMS4,或是對於我的行動電源,在 12V 模式下,皆無法超過 0.8A,但是只要換上我擁有的 SONY 原廠手機 QC3.0 充電器,就可以輕鬆到達 1.4A 以上。對於 UMS4,我對 2 顆 26650 電池充電,充電模式皆設定為單槽 2A 的電流,所以總共會需要 4.2V * 2A * 2顆 = 16.8W,屬於 QC3.0 的範圍,使用加購的 GA-QC810 充電,不論是在輸入端測量,還是在 UMS4 看到的實際充電電流,都是無法到達設定值 2A 的,但是只要換上我擁有的 SONY 原廠手機 QC3.0 充電器,就可以輕鬆達到。 對此,賣家回應:「出貨前都用誘騙器測試過都可達18W」。試問,哪個正常使用充電器的人會去買誘騙器強迫充電器提供 12V 的電壓?正常的 QC 溝通協議是利用 D+ D- 升壓後斷路的電壓,HVDCP (high voltoge dedicated charging port) 讀取電壓值後才決定輸出電壓;誘騙器則是省略這一步驟,不偵測電壓,依照使用者所調整的電壓,直接發送訊號給充電器,達到誘騙效果。而且,就如同我前面所述,就算它可以到 12V,電流就是無法超過 0.8A。再次重申,只要換上我的 SONY 原廠手機 QC3.0 充電器,就沒有問題。 對此,賣家回應:「包含頭選項方式是為了讓沒有充電頭的消費者不用額外再購買,若買家覺得不符合需求,但要購買ums4 可以退回充電頭部分退差額給您的唷,謝謝您的意見,我們會將您的建議反饋回原廠端」。
     Like  Bookmark