[Serverless] How to use Selenium + Headless Chrome on AWS Lambda Python3.6
tl;dr use –disable-dev-shm-usage option. serverless-chrome(headless-chromium): v1.0.0-55 ChromeDriver: v2.42 Selenium for Python: v3.14.1
Read Moretl;dr use –disable-dev-shm-usage option. serverless-chrome(headless-chromium): v1.0.0-55 ChromeDriver: v2.42 Selenium for Python: v3.14.1
Read Moretl;dr use python -m pip –trusted-host <hostname> $ python -m pip install \ –trusted-host pypi.org \ –trusted-host files.pythonhosted.org \ -r requirements.txt
Read Moretl;dl Use custom docker image.
Read Moretl;dr # qlmanage -t -o <output dir> -s <size> <SVG file> qlmanage -t -o . -s 640 example.svg
Read Moretl;dr # error on install n install 8.2.1 mkdir: /usr/local/n/versions/node: Permission denied mkdir: /usr/local/n/versions/io: Permission denied # create dir before install sudo mkdir /usr/local/n sudo chown -R $(whoami) $_ # then success n install 8.2.1 Ref: GitHub: Permission denied before running with sudo #416
Read MoreIn my case, the underlying type is not struct. // Device contains strings of the device name type Device string // NativeDevice stands for smartphone app(e.g. iOS/Android) type NativeDevice Device // AppleDevice stands for iOS device. type AppleDevice NativeDevice // Error pattern: using `struct type` for AppleDevice. func NewIPhoneDevice() AppleDevice { return AppleDevice{} // => Error: invalid type for composite literal. } // Corrent pattern: using `string type` for AppleDevice. func NewIPhoneDevice() AppleDevice { return “iphone” // use `string` } https://play.golang.org/p/cLSmvB4bZD2
Read Moreちょっと戸惑ったので、一応書き記しておきます。
Read More旅行先でSIMカードトレイを無くしてしまったため、Parts4Repairで代わりのスペアを注文することにしました。 SIMカードトレイが$2.9, 送料が$3.53で、合計$6.43でした。 めちゃくちゃ安くてビビります。
Read More一日目からの続きです。 香港からバリ(デンパサール)へ 朝10時の便で一路バリ島へ。 せっかくのビジネスクラスでしたがほとんど寝ており、 出発前のラウンジのヌードルで大分お腹いっぱいになっていたので全く機内食は食べませんでした。
Read Moreキャセイホリデーのプラン(ビジネス)を使って、香港1日、バリ島3日の旅行をした時のことを書きとめておきます。
Read More