Windows版 AWS CLIで(‘Connection aborted.’, error(10060,…がでたときの対処法[AWS]
![Thumbnail of post image 160](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/samantha-gades-BlIhVfXbi9s-unsplash.jpg?resize=150%2C150&ssl=1)
エラー発生
Windows PowerShellでaws s3 lsを打つと以下のエラーが出た.
> aws s3 ls('Connection aborted.', error(10060, ...#長いので省略対処法# ...Linux起動時にunexpected inconsistency run fsck manuallyが出た時の対処法[Linux]
![Thumbnail of post image 146](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
fsck -t ext3/dev/sda1
上のコマンドを打って,y(yes)を連打し,再起動すると意外とシンプルに解決した.
/dev/sda1の部分は,修復の必要があるディレクトリを示している.各自の環境に合わせて替えて ...
Pythonでhtmlのファイルを読み込む方法[Python][Beautifulsoup]
![Thumbnail of post image 114](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/erik-dungan-MQyCrJVFG8U-unsplash.jpg?resize=150%2C150&ssl=1)
from bs4 import BeautifulSoupimport relinks = []html_path = "./hoge.html"with open(html_path) as f:html = f.read()soup = ...
Pythonでテキストファイルから1行づつ読み込んで処理を行う[Python]
![Thumbnail of post image 173](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/xps-4TBSG2Oqu0Q-unsplash.jpg?resize=150%2C150&ssl=1)
fname = "url.txt"with open(fname) as f:for line in f:contents = requests.get(line)time.sleep(1.5)
Pythonで範囲を指定して乱数を生成[Python][Numpy]
![Thumbnail of post image 121](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
time.sleep(*) の変数をランダムに変えたかったときに使った方法を記す。
import numpy as npnp.random.randint(10, 20)>> 14ちなみに記法としては以下のよう ...
Neo4jでグラフを一括削除する便利なコマンド[Neo4j]
![Thumbnail of post image 116](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/debby-hudson-hWVVtG0d8jM-unsplash.jpg?resize=150%2C150&ssl=1)
ノードとエッジを全て削除するときは下のコマンドを打つ。
MATCH (n) OPTIONAL MATCH (n)--() DELETE n,rちなみにノードとエッジを出現させるときには下のコマンド。
MATCH (n ...MobaXtermでEC2インスタンス上のDockerコンテナとポートフォワーディング[MobaXterm][EC2][AWS]
![Thumbnail of post image 168](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/samantha-gades-BlIhVfXbi9s-unsplash.jpg?resize=150%2C150&ssl=1)
本記事は,前回の記事の続きです.
vastee.hatenablog.com
前回の記事では,EC2のインスタンスにjupyterを介してアクセスする為に,MobaXtermのポートフォワーディング機能を使った ...
MobaXtermでEC2インスタンスとポートフォワーディング[MobaXterm][EC2][AWS]
![Thumbnail of post image 112](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/piotr-wilk-Kc-OBw1fMJg-unsplash.jpg?resize=150%2C150&ssl=1)
EC2のインスタンスにjupyterを介してアクセスしたかったので,MobaXtermのポートフォワーディング機能を使った.
設定が非常に簡単なのでぜひ試してほしい.
MobaXtermでの設定お手持ちのノート ...
JuliaでStringをIntにキャスト[Julia]
![Thumbnail of post image 046](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-HlNcigvUi4Q-unsplash.jpg?resize=150%2C150&ssl=1)
parse(Int64, "64")>> 64
Juliaでリスト内にある特定の要素があるかどうかを判定する[Julia]
![Thumbnail of post image 106](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/lex-sirikiat-nV19ucDBbs8-unsplash.jpg?resize=150%2C150&ssl=1)
l=in("a", l)>> true
inという関数を使うだけ.
ちなみにpythonでは,
と書く.