Skip to content
EPH 的程式日記
  • >> 旅遊日記

EPH 的程式日記

記錄程式設計生活的點點滴滴

[Python] 用 struct 寫出 binary 二進位檔案

[Python] 用 struct 寫出 binary 二進位檔案

2016-04-01 ephrain Comments 0 Comment

今天在寫一個 C++ 的 unit-testing 程式時,需要 pcap 的資料, 平常我們都是用一個叫 dpkt 的 python 模組來處理 pcap, …

Read More Read More

[GDB] 在 gdb 裡顯示指標指向的陣列內容

[GDB] 在 gdb 裡顯示指標指向的陣列內容

2016-04-01 ephrain Comments 0 Comment

今天在用 gdb debug 一個程式問題時,需要看某個陣列的內容~ 當然平常如果陣列就是用類似 int array[] 的方式宣告的話,用 gdb 是可以直接…

Read More Read More

[Linux] 在 CentOS 7 上使用預設的 chrony 套件來設定 NTP 自動對時

[Linux] 在 CentOS 7 上使用預設的 chrony 套件來設定 NTP 自動對時

2016-03-31 ephrain Comments 0 Comment

之前寫過一篇 在 CentOS 7 上設定 NTP 自動對時,那時是自己裝 ntp 套件來對時, 感謝網友們提供了資訊,原來 CentOS 7 預設改…

Read More Read More

[Linux] signal handler 應該要處理哪些 signal 呢?

[Linux] signal handler 應該要處理哪些 signal 呢?

2016-03-31 ephrain Comments 0 Comment

之前曾經在專案的 C++ 程式中,用 signal handler 來對 crash 的狀況作些處理, 不過最近發現,只攔 SIGBUS 和 SIGSEGV 似…

Read More Read More

[Mac/Linux] 用 fgrep 或 grep -F 搜尋(非正規表示法的)固定字串

[Mac/Linux] 用 fgrep 或 grep -F 搜尋(非正規表示法的)固定字串

2016-03-30 ephrain Comments 0 Comment

今天想要從 log 裡面找一個 URL,不過問題是這個 URL 裡面有帶一些特殊符號, 例如 “?” 會被 egrep 辨認為零或一個的…

Read More Read More

[Python] 在 pytest 中,在 fixture 條件滿足時跳過 test case 不執行

[Python] 在 pytest 中,在 fixture 條件滿足時跳過 test case 不執行

2016-03-30 ephrain Comments 0 Comment

今天在用 pytest 寫一個測試程式,用到了一個 fixture 類似像下面這樣: @pytest.fixture(scope=’module’) def c…

Read More Read More

[Linux] 修改 shared library (DLL) 預設搜尋路徑

[Linux] 修改 shared library (DLL) 預設搜尋路徑

2016-03-30 ephrain Comments 0 Comment

今天在跑一個程式時,發現它有一個關聯的 .so,因此跑不起來, 可是奇怪的是同樣的程式在一台 unit-testing 機器上卻可以正常執行… &n…

Read More Read More

文章分頁

Prev 1 ... 157 158 159 ... 343 Next

近期文章

  • [SDKMAN] source ~/.bash_profile 時出現 bad substitution 錯誤
  • [Mac/Linux] 搜尋有哪些檔案 symbolic link 到特定檔案
  • [Mac] 無法 cd 進入 ~/Library/Application Support 目錄?
  • [Chrome] 使用 Tampermonkey 過濾掉 Google 新聞中,不想看到的文章(2025新版)
  • [GitHub] 使用 GitHub CLI 下載 Release 中的 Asset 檔案

近期迴響

  • James Yu
    on [GCP] 刪除已經被附加在虛擬機器上的靜態 IP 位址
    感謝分享,解決初學者的困擾
  • ephrain
    on [Mac] 使用 Bartender 5 解決 Menu icon 因為空間過小顯示不出來的問題
    感謝提醒,目前看來似乎不太能確定情況, ...
  • Jerry
    on [Mac] 使用 Bartender 5 解決 Menu icon 因為空間過小顯示不出來的問題
    Bartender 5 疑似出售不明人士...
  • Trent
    on [Windows] Windows 7 上安裝 .NET Framework 4.8 失敗,因為憑證不被信任?
    謝謝你,解決了我安裝遇到的問題
  • ephrain
    on [GitHub] 使用 GitHub CLI (gh) 觸發還在 PR 中的 GitHub Actions workflow 測試
    不客氣喔~

本週熱門

  • [MOD] 自己安裝與設定中華電信 MOD (2)
  • [Linux] 使用 diff 指令產生補丁檔,用 patch 指令幫程式上補丁 (4)
  • [DNS] 在 Google Domains 註冊自己的網域名稱,並指向 Google Cloud Platform 上的 WordPress 主機 (0)
  • [Android] 用 Automate 設定工作流程,自動觸發事件、執行動作 (0)
  • [Windows] Windows 7 上安裝 .NET Framework 4.8 失敗,因為憑證不被信任? (1)

彙整

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
© 2026 | Proudly Powered by WordPress | Theme: Nisarg