HerokuにPhantomJSをセットアップ[Heroku]

$ heroku config:add BUILDPACK_URL= touch .buildpacks$ echo "" >> .buildpacks$ echo "" >> .buildpacks$ git ad ...
heroku loginでcannot open browserが出た場合の対処法[Heroku]

heroku login --interactive
Pythonを3に切り替える[Ubuntu][Python]

$ sudo mv/usr/bin/python/usr/bin/python2$ sudo ln -s/usr/bin/python3/usr/bin/python$ python --version
Python2とPython3が ...
importしたクラスがもつメソッド一覧を確認[Python]

>> import requests>> url = "">> r = requests.get(url)>> __attrs____bool____class____delattr____d ...
Ubuntu root のパスワードを設定した記憶が無いときにすること[Ubuntu]

$ sudo su -# passwdEnter new UNIX password: Retype new UNIX password: passwd: password updated successfully
AWSのサーバーでJupyterを動かす[AWS][Jupyter]

AWSにサーバーを立てて、Jupyterをインストールした時のことをレポート。
まずは、LightsailでAWSにサーバーを立てる。
Lightsailサーバーのインストール自体はすごく簡単で、料金も月3.5 ...
\includegraphicsのエラーを解消するのに3時間かかった[Tex][OverLeaf]

先に解決法
\usepackage{graphics}ではなく\usepackage{graphicx}を使ったら普通にコンパイルできた
以降、経緯をだらだらと書くOverLeafで図を挿入しようとして、以下のようなコマンド ...
dockerコマンドを打つのは時間がかかるのでエイリアスを活用しよう[Docker]

Dockerを使うときにいちいちdocker … と毎回打つのはめんどくさいですよね。
なので、エイリアスを活用してコマンドを短縮しましょう。
そして筆者は以下の4つのエイリアスを追加してみました。 ...
docker: Error response from daemonが出てハマった時の話[Mac][Docker]

Macにdockerをインストールし、docker run --rm hello-world を打ち込むと、
docker: Error response from daemon:Get incorrect username ...Proxy環境下でWebスクレイピング[request][BeautifulSoup]

import urllibfrom bs4 import BeautifulSoupif __name__ == "__main__":proxy = urllib.request.ProxyHandler({'http': '})open ...