Skip to content

Posts

Fleetお試し

JetBrains Fleet: JetBrains の次世代 IDE、去年の11月末にPreview申し込みしていた。 昨日、使えるようになったとメールが来たので早速インストールしてみた。 ファイルツリーでCtrl+C、Vでファイルがコピーされないし、Ctrl+Wでエディタタブが閉じられない(エディタにフォーカスが当たっていれば閉じられる)。 日本語入 Read more

Goアプリ

結局、フレームワークはgo-chi/chi: lightweight, idiomatic and composable router for building Go HTTP servicesを使うことにした。 理由は、認証で使いそうなパッケージgo-pkgz/auth: Authenticator via oauth2, direct, email and telegramのサンプルが使っていたから。 とりあえず、HTTPリクエストを受けてDB読み書きしてテンプレート加工して返すところまで Read more

Revel入門

ちょっとしたWebアプリを作りたくなったので、GoでRailsみたいなフレームワークないのかなと探した。 revel/revel: A high productivity, full-stack web framework for the Go language. が近そうだったので、試してみた。 $ go install github.com/revel/cmd/revel@latest go: downloading github.com/revel/cmd v1.1.2 go: downloading github.com/agtorre/gocolorize v1.0.0 go: downloading github.com/jessevdk/go-flags v1.4.0 go: downloading github.com/revel/config v1.1.0 go: downloading github.com/revel/log15 v2.11.20+incompatible go: downloading github.com/mattn/go-colorable v0.1.8 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.0.0 go: downloading gopkg.in/stack.v0 v0.0.0-20141108040640-9b43fcefddd0 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/fsnotify/fsnotify v1.4.9 go: downloading github.com/mattn/go-isatty v0.0.14 go: downloading github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac $ revel new -a events_go -r revel: command not found おや?パスが通って Read more

Amazon IVSプライベートチャネル

ストリームの再生にトークンが必要になる。 ほぼこのブログのやり方でできた。 [アップデート] Amazon Interactive Video Service で再生時の認証が行えるようになりました! | DevelopersIO 一点だけ、秘密鍵を Secrets Manager にアップロードのところでエラーになった。 cliのバージョンが変わって、コマンドに--cli-binary-format raw-in-bas Read more

Amazon IVS+Amplify

IVSのサンプルアプリ(React製)をAmplifyにデプロイしてみた。 npm run buildしたbuildディレクトリを丸ごとアップロードで。 jsとcssがHTTPコード301でファイル名の最後に/をつけたアドレスにリダイレクトされてエラーになっていたので、書き換えないようリダイレクト設定をしたら動いた Read more

Amazon IVSのエラー

IVSのチャットルームがエラーで作れない件、試しにもう一つアカウント作ってみたけれど、同じ現象だった。 2年前に作ったアカウントと何が違うのだろう。。

Amazon IVSのサンプル

相変わらずエラーでIVSのチャットルームが作れない Your account is pending verification. Until the verification process is complete, you may not be able to carry out requests with this account. If you have questions, contact AWS Support. 仕方ないので、作れる方のアカウントで動作確認を進めることにした。 前に試したのと同じように、ap-northeast-1 でS3バケット作ってsam deployして、IVSチャットルームはus- Read more

Image Cropper

hnvn/flutter_image_cropper: A Flutter plugin for Android and iOS supports cropping imagesを使うときにエラーが出ていた件、解決。 Flutter Webで使うときはweb/index.htmlにcssとjsを追加するようにREADMEに書かれていた。 ドキュメントはちゃんと読まないと、かえって時間を浪費してしまう例だ。 ただ、スマホのブラウザで表示したときにはみ出してしまうの Read more

FlutterでCORS

crop使うために、–web-rendererをcanvaskitにしたら、Firebase Storageの画像を表示できなくなってしまった。 Displaying images on the web | Flutterにも書かれていて、いくつか回避策が提示されていた。 Firebase Hostingはfirebase.jsonで設定できるらしいが、今回 Read more

Amazon IVSのサンプルを試してみた

aws-samples/amazon-ivs-chat-web-demo: A demo web application that shows how to implement a basic video + chat application using the AWS serverless application model (SAM) and Javascript (React). これを試すにあたり、作ったものをまるごと削除できるようにAWS Organizationsで専用アカウント作成した。 ついでにAWS Single Sign-Onも設定してログインを集中管理できるようにした。 CloudShellで作業する。 $ git clone https://github.com/aws-samples/amazon-ivs-chat-web-demo.git $ cd amazon-ivs-chat-web-demo/serverless/dependencies/nodejs $ npm install $ cd ../../ Read more