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

EPH 的程式日記

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

[Python] Python 輸出到 stdout 之後遇到 Broken pipe 錯誤?

[Python] Python 輸出到 stdout 之後遇到 Broken pipe 錯誤?

2016-03-10 ephrain Comments 0 Comment

今天專案的程式遇到一個奇怪的問題, 一個 python 程式執行之後,要輸出一些訊息到 stdout, 但是卻遇到了 Broken pipe 的 IOError…

Read More Read More

[Linux] 在 Makefile 裡的 shell command 使用 shell 變數

[Linux] 在 Makefile 裡的 shell command 使用 shell 變數

2016-03-09 ephrain Comments 0 Comment

今天想在 Makefile 裡執行一行 shell 指令,不過發現平常用 ${FILE} 這種方式讀 shell 變數, 在 Makefile 裡是行不通的,s…

Read More Read More

[Linux] 使用 getopt 在 shell script 中解析命令列參數

[Linux] 使用 getopt 在 shell script 中解析命令列參數

2016-03-07 ephrain Comments 0 Comment

最近學到在 Linux 上可以用 getopt 來輔助解析命令列參數 (command line parameters)~ getopt 是一個 command…

Read More Read More

[PostgreSQL] 用 setval() 設定 sequence 的下一個值

[PostgreSQL] 用 setval() 設定 sequence 的下一個值

2016-03-07 ephrain Comments 0 Comment

平常 database table 的欄位型態如果是設成 SERIAL 的話, 代表的是從 1 開始,依序遞增~ 不過今天我想要作個測試,比較兩種程式邏輯的影響…

Read More Read More

[C++] 在 unit-testing 中測試 class 的 protected/private 函式

[C++] 在 unit-testing 中測試 class 的 protected/private 函式

2016-03-05 ephrain Comments 0 Comment

最近在用 Google Test 寫 C++ 的 unit-testing 程式, 想當然爾會遇到一些要測試 protected/private functio…

Read More Read More

[GDB] 在程式碼中使用 signal() 插入中斷點,讓 GDB 暫停程式做 debugging

[GDB] 在程式碼中使用 signal() 插入中斷點,讓 GDB 暫停程式做 debugging

2016-03-05 ephrain Comments 0 Comment

今天想要用 gdb debug 一個程式,看看某個變數的值, 平常可能可以用 gdb 的中斷點,但有時候想要在某些情況下,才讓 gdb 停在特定地方~ gdb …

Read More Read More

[C++] 在 GoogleTest 裡面使用全域的 SetUp/TearDown 函式

[C++] 在 GoogleTest 裡面使用全域的 SetUp/TearDown 函式

2016-03-02 ephrain Comments 0 Comment

今天在用 GoogleTest 寫 unit-testing 時, 因為有個初始化的動作很耗時,想說每次跑 unit-testing 時最好只跑一次, 而不是每…

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 指令幫程式上補丁 (1)
  • [生活] 新冠肺炎 Omicron 確診記 (0)
  • [Mac] 使用 Macro Recorder 錄製滑鼠鍵盤動作,再重覆播放 (1)

彙整

分類

其他操作

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