Chromiumベースのブラウザでマウスジェスチャーによる翻訳の切り替えを実現してみた
![Thumbnail of post image 128](https://ryo-fujinone.net/blog/wp-content/uploads/2024/02/chromium-translation-toggler-extension-150x150.jpg)
Chromiumベースのブラウザに実装されていることが多い翻訳機能ですが、どのブラウザでももっと手軽に切り替えられるようにならないものかと考えていました。というのもCatsxpというC ...
Pythonのsubprocessで標準出力をリアルタイムに取得しつつthreading.Timerとpsutilでタイムアウトを実装してみる
![Thumbnail of post image 063](https://ryo-fujinone.net/blog/wp-content/uploads/2022/10/20221019_python-150x150.jpg)
Pythonのsubprocessで何かコマンドを実行する際にタイムアウト処理を実装したいことがあると思います。subprocessはrun()、Popen.communicate() ...
シン・レンタルサーバーにてPython(CGI)でnumpyをimportすると「500 Internal Server Error」
![Thumbnail of post image 121](https://ryo-fujinone.net/blog/wp-content/uploads/2022/10/20221019_python-150x150.jpg)
タイトルにはnumpyと入れていますが、エラー確認時にimportしていたのはpandasです。エラーの原因が依存関係にあるnumpyだったのでタイトルにはnumpyと入れています。
シン・レンタルサーバーでPythonの仮想環境を作成してpipを使う
![Thumbnail of post image 017](https://ryo-fujinone.net/blog/wp-content/uploads/2022/10/20221019_python-150x150.jpg)
当サイトが利用しているシン・レンタルサーバーは2022年10月時点で Python 2.7.5、3.4.10、3.6.8 が使用可能となっていますが、レンタルサーバー故に権限の問題から ...