Sheng-Wen Wang

@fwfly

Joined on Feb 25, 2019

  • Most of them are Mandarin, but they all have example code or experiement results. I'd like to discuss more about what I've done. Linux kernel learnings: 2021 File system: Simplefs Linux related docs loadavg and HZ SCSI
     Like  Bookmark
  • Records-2023 2/9: Create a user account on IAM. 2/16: S.34 Skip IAM, Jump into EC2 directly. 2/17: S.43 Enalbe a EC2 with userdata, the implement is similiar as openstack.
     Like  Bookmark
  • Install qemu-img and virsh sudo apt install cpu-checker -y # kvm-ok sudo apt install qemu-kvm virt-manager virtinst libvirt-clients bridge-utils libvirt-daemon-system -y apt-get install libosinfo-bin # osinfo-query 在 terminal 下從 iso 建立 virtual machine 建立一個 20G 的虛擬硬碟空間 sudo qemu-img create -f qcow2 ~/linux_test.qcow2 20G 用 virsh-install 安裝 linux
     Like  Bookmark
  • Powerdns < 4.2.0 Powerdns API limitation : 一次傳輸大量的 records, powerdns 會回傳 status=500, text=Internal Server Error. 422 code removed 4.2 版之前可以用 422 去判斷 zone 是否已經存在. 但在 4.2 版之後 422 全部改成 404,所以會造成 octodns 出現 error 然後中斷.
     Like  Bookmark
  • 2023-6-17 下午參加了兩場 auction 13/108 Reserve Road, Artarmon 底價是 850k 當追價追到 935k (10%+) 可以明顯看到 agent 速度有放慢下來等 ,有種工作已經結束了,剩下就是 bonus 的感覺. 後來買家以 1k 的速度往上追加,加到最後以 967k 買出 4/83 Helen Street, Lane Cove 底價 750k ,由於底價低的關係,這個 auction 有相當多人(20+)參加.一開始的速度很快馬上就追到 830k (10%) 然後到超過 85% 時只剩下兩組人馬在競爭.
     Like  Bookmark
  • Docker generate 2 items when a conatiner is generated. logger copier 1. Logger: Monitoring the size of logs based on config Rotate log file if config stores data into local files. Provide target to copier Provide log() to copier
     Like  Bookmark
  • 雞肉: Chicken Giblets雞胗,很便宜,可以做涼拌雞胗 Coles RSPCA Approved Chicken Giblets 牛肉: brisket :可以拿來做燉牛肉或者牛肉麵,因為油質很多,頓很久會變得很軟嫩 肉舖比較買得到,超市似乎只有很大一塊的肉塊 Beef Brisket Slow Cook
     Like  Bookmark
  • 氣炸鍋 當烤箱用就對了.不要奢望會跟油炸的內容一樣.如果看到網路上說雞塊多酥多脆,基本上都是先買炸好的雞塊或炸雞. 氣炸鍋真正的問題在清潔上面的加熱管(俗稱蚊香) (可能有其他廠牌不是這樣做的?),網路上都會說用去多好清理,使用完多無油.但是絕對不會跟你說文香爆幹難清理.一旦麵粉亂飛,油亂濺,弄到上面的文香,基本上送給別人洗,或者自己拆開來洗.不然真的會洗到崩潰 任天堂 Switch 真正問題不在本機,在 手把那個蘑菇頭飄移.我是一年後開始飄移.真的很難想像買 lite 的人如果飄移要怎麼辦.如果要買 lite 請把蘑菇頭飄移考慮進去 B&O A1
     Like  Bookmark
  • Linux Troubleshooting user cannot login issue: Invesitgation from : sssd, pam, nofile (limitation setup), ldap HDD broken service broken network connection Troubleshooting DNS issues:
     Like  Bookmark
  • 找不到美食/旅遊 blogger 推薦的食物跟景點,一切都靠 google map 不像台灣一樣,每間餐廳跟景點都一定找個到推薦的 blogger + 廣告味重的文章. 取而代之是 google map 上面的評價.不過澳洲評價普遍樂觀 XD 以前可能是上網找片 blogger 看完文章然後才出發. 現在則是在 google map 上面找關鍵字,看評價/照片,大概 4 星左右就可以出發了 工作出包這件事情(因公司不同而異) 在台灣會比較傾向抓戰犯,所以某種程度在台灣很怕出錯.錯了就會自責 不過在澳洲比較像找出為什麼出錯 + 怎麼避免錯誤再次發生 ,當事人是不是出包的人就不是這麼重要. 這樣的好處是大家勇於認錯(比較不會掩蓋缺陷),然後勇於犯錯也讓人比較有勇氣做嘗試.
     Like  Bookmark
  • 目標 解說程式中的每個程式碼 解兩隻 bugs ls -a 的 . 跟 .. Directory will be full if more than 128 files 補充背景知識 linux source code 本身有提供關於 vfs 的文件
     Like 2 Bookmark
  • 2021 年「資訊科技產業專案設計」課程第 3 次作業 輝瑞-BNT Good Parts interviewer 有提到時間複雜度問題 有提供 example 說明 Interviewee
     Like  Bookmark
  • 2021 年「資訊科技產業專案設計」課程第 1,2 次作業: 貢獻者: 布惠寫, koala 影片 布惠寫: Homework1 (漢) Koala: Homework1 (英) 布惠寫: Homework2 (漢) Koala: Homework2 (英)
     Like  Bookmark
  • The common question in curl is why my browser, dig and wget work except curl. the error message looks like this $ curl https://github.com curl: (6) Could not resolve host: github.com Possilbe file and function curl_resolver_getaddrinfo
     Like  Bookmark
  • sssd and login nsswitch.conf - group Summery If a user needs both local group and remote group, nsswitch group field could be configured as below group: files sss # /etc/groups + groups from sssd or group: files [SUCCESS=merge] sss # Specifiy an action
     Like  Bookmark
  • 可以根據這篇文章來安裝 qemu https://gist.github.com/toricls/d3dd0bec7d4c6ddbcf2d25f211e8cd7b 但是可能會碰到以下 error qemu-system-aarch64: invalid accelerator hvf 如果用 qemu-system-aarch64 去驗證會發現 hvf 並沒有 enable # hvf 應該要在下面的 list
     Like  Bookmark
  • Before testing read/write on a HDD, check below items first: Any dev sd[x] error in dmesg or jounalctl loadavg and atop/htop and D status process Because if the HDD is completely broken, the touch/cat and any read/write cmd might be blocked by kernel which is watiing for HDD response ( which is impossible ) Related docs atop
     Like  Bookmark
  • contributed by < fwfly > hp 測試設計 建立 n 個 thread 去對一個 list 做 insert key 然後 n 個 thread 去同一個 list 做 delete key 這樣會同時對一個 list 做新增,刪除跟搜尋(find)而導致 race condition 的問題 最後再用 hp 的方式達到 lock-free 的解法 Elements 的設計
     Like  Bookmark
  • contributed by <fwfly> 程式編譯後會出現 kallsyms_lookup_name undefine error 2021_summer_q1$ make make -C /lib/modules/`uname -r`/build M=/home/fwfly/project/2021_summer_q1 modules make[1]: Entering directory '/usr/src/linux-headers-5.8.0-59-generic' CC [M] main.o LD [M] hideproc.o MODPOST Module.symvers
     Like  Bookmark
  • 題目描述 作答 github 測驗 $\alpha$ 透過 gcc 展開 macro 會得到以下結果 static inline uint8_t rotl8(const uint8_t v, int c) { const int mask = (8) - (1); c &= mask; return (v << c) | LLL;
     Like  Bookmark