個人メモ用

個人メモ用です。

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

Github dark化

github.com ここのinstalationの指示に従うだけ。

pr初期設定

conda create -n polyrnn-demo-3 python=2.7.18ここではyesnoを聞かれる。 以下コピー conda activate polyrnn-demo-3 mkdir polyrnn-demo-1112 && cd polyrnn-demo-1112 git clone https://github.com/davidjesusacu/polyrnn && cd polyrnn pip install -r …

from pip._internal.pep425tags import get_supported

インストールした.whlファイルが間違っているか、(mac用のファイルをインストールしてるとか) pythonのバージョンがあってない可能性がある。

TypeError: cannot convert the series to <class 'float'>

TypeError: cannot convert the series to <class 'float'> 確かXとYが間違っていて、 空のをconvertしようとするときに出た気がする。</class>

Traceback (most recent call last): File "optuna.py", line 252, in <module> study = optuna.create_study(direction='maximize')#create_study(direction='maximize') AttributeError: module 'optuna' has no attribute 'create_study'

import optuna>>> print(optuna)<module 'optuna' from 'C:\\Users\\kuriy\\Desktop\\Adaco\\#27Comparison_of_opt\\optuna.py'> ファイル名はoptunaとしてしまっていたことにより、参照先のファイルが間違って内部で処理されていた。</module>

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape パスがエスケープシーケンスになってしまっている。

Gradle versionとAndroid Plugin VersionとSDK Build Tools versionの組み合わせに関して

https://qiita.com/riversun/items/78353cb2b3a8c7aa97a5

Error:Cause: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;

https://stackoverflow.com/questions/53702038/android-gradle-5-0-updatecause-org-jetbrains-plugins-gradle-tooling-util

Could not find method android() for arguments

この下のbuild gridleフォルダ?の中のandroid{} の部分をコメントアウト

ubuntuではフォルダの圧縮とふぁいるの圧縮は方法が違う

ubuntuではフォルダの圧縮とふぁいるの圧縮は方法が違う フォルダ(ディレクトリ)の圧縮zip -r 生成するzipファイル名 zip化するディレクトリ名 ファイルの圧縮zip 生成するzipファイル名 zip化するファイル名

apk toolのインストール

https://ibotpeaches.github.io/Apktool/install/

apk toolのインストール

https://ibotpeaches.github.io/Apktool/install/

apkからjavaを復元する方法

https://qiita.com/le_skamba/items/04c0a0cfe420be862122 https://qiita.com/muran001/items/a7a6e35550e361f825d1 https://www.it-swarm.dev/ja/android/apk%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%8B%E3%82%89%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%…

ValueError: setting an array element with a sequence.

配列のサイズが違うもの同士で演算した時に出る。 二次元と三次元で演算した時にも出る。

cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:661: error: (-2:Unspecified error) could not find a writer for the specified extension in function 'cv::imwrite_'

https://qiita.com/isso_w/items/0a99153ed521c4f36dca cv2はパスの中に日本語が入ってると読み込めない

IPアドレスやホスト名からプリンタを追加する方法

プリンタが一覧にない場合、ドライバをインストールする必要がある プリンタが一覧にない場合をクリック TCP/IPアドレスを使ってプリンタを追加する ホスト名や、IPアドレスはプリンタ自体の設定画面から探す。 京セラのこいつを選ぶ 後は画面に従うだけ

Volleyでサイトからコピーしたもののgetができない問題の開放

https://stackoverflow.com/questions/32228877/cannot-resolve-symbol-method

http通信の為のサイト

https://gihyo.jp/dev/serial/01/androidapp/0009 https://developer.android.com/training/basics/network-ops/connecting?hl=ja https://araramistudio.jimdo.com/2018/03/15/android%E3%81%A7http%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%9F%E3%83%8D%E3%83%83…

ssh越しのvimにクリップボードからペーストする方法

https://qiita.com/aosho235/items/2f78a2f2778b251388d6 とか書いてあるけど 単にinsertモードで右クリックすればssh越しでもクリップボードの内容を 貼り付けられる。

サーバーにhttp接続する為の手順

https://qiita.com/arashida/items/629aaed33401b8f2265c からの https://qiita.com/S-nobol/items/7929e2793c039770d73a

サーバーがAmazon Linux 2 AMIの場合はubuntuの場合と接続方法が違う

対象のサーバーを選択してconnectをクリック 接続方法を選択 手順通りにやる。SSH Clientってのはコマンドプロンプト。 YoshimotoKurihara0601_4.pem が存在するディレクトリに移動してから ssh -i "YoshimotoKurihara0601_4.pem" ec2-user@ec2-34-219-32-12…

EC2入門

https://qiita.com/arashida/items/629aaed33401b8f2265c

EC2 Serverへのアクセス方法

https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#Instances:sort=dnsName にアクセス Launchする 好きなサーバー選ぶ 無料のやつ選ぶ launchする キーペアを作る key pairをdownloadする launchする PuTTY Ket Generatorを起動 Load…

新Activityを追加するためにやらないといけないこと

アプリ画面の継続表示

https://monoworks.co.jp/post/android_develop_memo_2015120101/

Androidビルドエラー種類別

https://qiita.com/keeey/items/4625f049385a26cf13da

apply plugin:の場所も大切

https://minpro.net/please-fix-the-version-conflict

Error:(19, 0) Plugin with id 'com.android.application' not found.

26>API1 API26の問題

ここで Min Sdk Version Target Sdk Version を手動で書き換えるのではなく、 API 26: Android 8.0 (O) を右の下▽ を引っ張って選択する。

Error:(10) No resource identifier found for attribute 'layout_constraintBottom_toBottomOf' in package 'com.example.ee4one.a0521'

https://stackoverflow.com/questions/42439241/no-resource-identifier-found-for-attribute-layout-constraintleft-toleftof-in-p