MNMasatoshi Nishiguchiinblog.mnishiguchi.com·Nov 29, 2023 · 2 min readBuild Phoenix Docker Compose development environment easilyI wrote a script called phx-docker-compose-new that can be used instead of mix phx.new to generate a new Phoenix application. Building the development environment for a Phoenix application using Docker Compose is convenient because you can set up not...00
MNMasatoshi Nishiguchiinblog.mnishiguchi.com·Apr 23, 2023 · 1 min readRaspberry Pi TensorFlow Liteで物体検出を楽しむこの記事について Raspberry Pi、TensorFlow、Pythonのいずれにも詳しくない筆者が、物体検出をやって楽しんだ成果の記録です。 TensorFlow公式の物体検出のサンプルプログラムを実行します。 動作環境 ボード Raspberry Pi 4 Model B OS Raspberry Pi OS (32-bit または 64-bit) デスクトップ環境 カメラ Raspberry Pi カメラモジュール v2 Python Python ...00
MNMasatoshi Nishiguchiinblog.mnishiguchi.com·Dec 4, 2021 · 3 min readElixir Phoenix 1.6 Esbuild + SCSSOne day I was trying to upgrade one of my Phoenix 1.5 apps to Phoenix 1.6. In that app, I customize Bootstrap styles using SCSS. I want to talk about what I found and stumbled on when setting up SCSS. TIL All explained in Phoenix 1.6 Asset Managemen...00
MNMasatoshi Nishiguchiinblog.mnishiguchi.com·Dec 3, 2021 · 3 min readElixir Circuits.I2C with MoxThis is written in Japanese. I might convert it to English later, maybe. はじめに Elixirのテストでモックを用意するときに利用するElixirパッケージとして、moxが人気です。Elixir作者のJosé Valimさんが作ったからということもありますが、ただモックを用意するだけではなくElixirアプリの構成をより良くするためのアイデアにまで言及されているので、教科書のようなものと思っています。 一言でいうと「その場...00
MNMasatoshi Nishiguchiinblog.mnishiguchi.com·Nov 14, 2021 · 2 min readElixir Access behaviourTIL Access supports keyword lists (Keyword) and maps (Map) out of the box, but not structs. There is a reason why Elixir does not implement Access behaviour for structs. Perfer data.key for accessing predefined atom keys of map or struct. Access be...00