tanakahdaのプログラマ手帳

プログラミングとかソフトウェア開発とかの備忘録

2023-01-01から1年間の記事一覧

pipで依存関係の問題を出力する@Python

pip check spyder 5.1.5 requires pyqt5, which is not installed. spyder 5.1.5 requires pyqtwebengine, which is not installed. daal4py 2021.3.0 requires daal, which is not installed. conda-repo-cli 1.0.4 requires pathlib, which is not install…

Hello Next.js 13 @Next.js

アプリのテンプレートを作成 tanakahda@MacBook-Air Sample% npx create-next-app@latest Need to install the following packages: create-next-app@13.4.4 Ok to proceed? (y) y ✔ What is your project named? … hello-nextjs ✔ Would you like to use Ty…

Velocity2.3でのループカウンター変数@Java

$velocityCountじゃなくて、$foreach.countや$foreach.indexを使う。 #foreach($object in $ $list) $foreach.count #end 1 2 3 $foreach.indexの場合は、0からカウント

Mouse: not useable (blocked)@SikuliX

MacOS X でSikuliX2.0.5を jar で起動したら下記のエラーが出た。 [error] Mouse: not useable (blocked) See: https://github.com/RaiMan/SikuliX1/wiki/Allow-SikuliX-actions-on-macOS Exception in thread "main" org.sikuli.script.SikuliXception: Mou…

Javaプログラムでjarファイルを生成する@Java

public static void main(String[] args) { ProcessBuilder pb = new ProcessBuilder("jar", "-cvf", "./sample.jar", SOURCES); try { Process proc = pb.start(); int resultCode = proc.waitFor(); System.out.println(resultCode); } catch (IOException…

pandasでgroupby@Python

faq_datas = pd.read_csv('data/kansentaisakufaq20210315.csv', \ encoding = "shift-jis", header=None, skiprows=[0,1,2], names=['no', 'category1', 'category2', 'question', 'answer']) faq_datas faq_datas.groupby('category1').count()