Stack 的運用 逆序:後進先出 (Last In First Out) Leetcode # 445. Add Two Numbers II Depth-First Search Eval|語法分析 Parsing 括號 Parentheses 前後元素的配對 Leetcode # 735. Asteroid Collision 在 Python 中實作 Stack 使用 list appen ...
AWS的Bitnami的WordPress變得緩慢 常常出現timeout 查了一下 是硬碟空間滿了 而佔用了最多空間的資料夾是/usr/src/ 執行了sudo apt-get autoremove後解決了問題 (如果硬碟空間滿到連暫存空間都沒有 可能需要備份後刪除以騰出)
安裝Bitnami HTTPS Configuration Tool wget -O bncert-linux-x64.run https://downloads.bitnami.com/files/bncert/latest/bncert-linux-x64.run sudo mkdir /opt/bitnami/bncert sudo mv bncert-linux-x64.run /opt/ ...
起因:使用Google Cloud Platform的OAuth會發生400 Error 到https://myaccount.google.com/security開啟兩步驟驗證 兩步驟驗證下的「應用程式密碼」→選取應用程式→其他(自訂名稱) WP Mail SMTP設定→啟動設定精靈→Other SMTP SMTP 伺服器:smtp.gmail.com 加密方式:SSL SMTP通訊埠:465 ...
lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 55.5M 1 loop /snap/core18/2074 loop1 7:1 0 25M 1 loop /snap/amazon-ssm-agent/4046 loop2 7:2 0 99.4M 1 loop /snap/core/11420 loop3 7:3 0 55.5M ...
Project→Options→Configuration Properties→C/C++→Language: C++ Language Standard選擇ISO C++ 17 Standard (/std:c++17) #include <filesystem> path folder_path = "..." for(const auto& entry : direct ...
關於記憶體配置: 使用JNI呼叫由其他Native Language撰寫的Applications/Libraries時 仍要遵循該Native Language的編程規則及記憶體管理模式 例:呼叫C所寫成的Libraries時呼叫了melloc()的話, 使用完畢後亦應呼叫free()加以解放
mkdir tmp_del && sudo rsync --delete-before -d --progress --stats tmp_del/ {欲刪除之資料夾路徑} && sudo rmdir tmp_del && sudo rmdir {欲刪除之資料夾路徑}
安裝Samba sudo apt install samba 查看Samba是否運行及其運行中的連接埠 sudo netstat -tulnp | grep -e '[sn]mbd' 如果沒有 netstat 指令: sudo apt update sudo apt install net-tools 在/etc/samba/smb.conf加上 (原本就有[homes],但被註解起來) [hom ...
Source: SudachiPy $ pip install -e git+https://github.com/WorksApplications/SudachiPy@develop#egg=SudachiPy (git://をhttps://に変更した) https://github.com/WorksApplications/SudachiDictから sudachi-dictionary ...