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

EPH 的程式日記

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

[Node.js] 學習筆記:取得命令列參數、與使用 Numbers() 轉換數字

[Node.js] 學習筆記:取得命令列參數、與使用 Numbers() 轉換數字

2015-04-10 ephrain Comments 0 Comment

Learnyounode 的第二課,主要就是取得參數列的內容, 並將其轉換成數字後,算出總和~   用 process.argv 可以取得所有的參數,…

Read More Read More

[Python] 判斷 XML Element 是否存在不能用 "if element:"

[Python] 判斷 XML Element 是否存在不能用 "if element:"

2015-04-09 ephrain Comments 0 Comment

今天遇到一個詭異的問題…有一個 XML 檔案長像下面這樣: <xml> <data>xxx</data> &lt…

Read More Read More

[Linux/Python] 將一個用戶加入多個 supplementary group 群組中

[Linux/Python] 將一個用戶加入多個 supplementary group 群組中

2015-04-08 ephrain Comments 0 Comment

最近在做 Linux 上的 runas 程式,這才被提醒一個用戶可以是屬於多個群組, 除了 gid 指的是主要群組 (primary group),其他的郡組則…

Read More Read More

[Selenium] 使用 Selenium Server 直接執行 Test Suite

[Selenium] 使用 Selenium Server 直接執行 Test Suite

2015-04-06 ephrain Comments 0 Comment

在做 web automation 時,Selenium IDE 是個很方便的工具, 可是如果想要讓這個 automation 可以被放到類似 cron job…

Read More Read More

[Python] 設定 setuid 讓 python 程式可以用 root 權限執行

[Python] 設定 setuid 讓 python 程式可以用 root 權限執行

2015-04-05 ephrain Comments 0 Comment

最近需要讓一個 python 程式可以在 Mac/Linux 上被普通 (非 root) 的 user 呼叫, 可是它本身又需要 root 的權限來操作一些檔案…

Read More Read More

[Linux/C++] 取得目前執行程式的路徑

[Linux/C++] 取得目前執行程式的路徑

2015-04-03 ephrain Comments 0 Comment

在 Linux 上執行一個 C/C++ 的程式,要如何在程式裡面得知執行的路徑呢? 在 stackoverflow: how to find the …

Read More Read More

[Linux] 使用 XML-RPC for C/C++ 寫簡單的 IPC client

[Linux] 使用 XML-RPC for C/C++ 寫簡單的 IPC client

2015-04-02 ephrain Comments 0 Comment

我們的專案主要是用 python 寫的, 裡面用了 python 的 xmlrpclib 來作 process 間溝通的管道~ 最近有個需求是要用 C…

Read More Read More

文章分頁

Prev 1 ... 200 201 202 ... 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 (3)
  • [Linux] 使用 diff 指令產生補丁檔,用 patch 指令幫程式上補丁 (7)
  • [Android] 用 Automate 設定工作流程,自動觸發事件、執行動作 (2)
  • [DNS] 在 Google Domains 註冊自己的網域名稱,並指向 Google Cloud Platform 上的 WordPress 主機 (0)
  • [生活] 身分證補發、換發的英文? (4)

彙整

分類

其他操作

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