EPH 的程式日記
  • >> 旅遊日記

EPH 的程式日記

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

[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

[Linux] 在 gcc 中使用 rpath/rpath-link 指定 shared library 搜尋路徑

[Linux] 在 gcc 中使用 rpath/rpath-link 指定 shared library 搜尋路徑

2016-03-27 ephrain Comments 2 comments

專案裡用到一個 C 的 shared library,姑且稱它為 T.so 好了, 這個 T.so 用到了 lib7zip 和 p7zip 的 shared l…

Read More Read More

Posts navigation

OLDER POSTS
NEWER POSTS

近期文章

  • [Mac/Linux] 搜尋有哪些檔案 symbolic link 到特定檔案
  • [Mac] 無法 cd 進入 ~/Library/Application Support 目錄?
  • [Chrome] 使用 Tampermonkey 過濾掉 Google 新聞中,不想看到的文章(2025新版)
  • [GitHub] 使用 GitHub CLI 下載 Release 中的 Asset 檔案
  • [Flutter] 使用 fvm 管理不同的 Flutter 版本

近期迴響

  • 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)
  • [健康] 大腸鏡檢查初體驗 (0)
  • [Linux] 使用 diff 指令產生補丁檔,用 patch 指令幫程式上補丁 (0)
  • [生活] 新冠肺炎 Omicron 確診記 (0)
  • [Mac] 用 Wine 執行 PhotoCap 製作大頭貼照片 (0)

彙整

分類

其他操作

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