<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>リアキテク・ラボ Tech Blog</title><description>リアキテク・ラボの技術ブログです。</description><link>https://tech-blog.re-arc-lab.jp/</link><item><title>Astro でも gatsby-plugin-mdx の excerpt を再現</title><link>https://tech-blog.re-arc-lab.jp/posts/241122_astro-rehype-infer-description-meta/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/241122_astro-rehype-infer-description-meta/</guid><description>はじめに Gatsby から Astro に乗り換えたのですが、 Gatsby では簡単に利用できていた記事本文の抜粋機能が Astro ではちょっと工夫しないと利用できなかったので、 対応内容をまとめてみました。

Gatsby で利用していた gatsby-plugin…</description><pubDate>Thu, 21 Nov 2024 15:00:00 GMT</pubDate></item><item><title>Monorepo で Cloud Functions for Firebase へデプロイ</title><link>https://tech-blog.re-arc-lab.jp/posts/220908_firebase-functions-monorepo/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/220908_firebase-functions-monorepo/</guid><description>はじめに .NET におけるプロジェクト分割に慣れている身としては、Node.js でも積極的にモジュールを分割しつつ、Monorepo な構成で進めがちなわけですが、そんな構成でいざ世の中の便利サービスを使おうとすると詰まることも多いです。今回は、Monorepo で Clou…</description><pubDate>Wed, 07 Sep 2022 15:00:00 GMT</pubDate></item><item><title>expo-in-app-purchases の使い方</title><link>https://tech-blog.re-arc-lab.jp/posts/211015_expo-in-app-purchases/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/211015_expo-in-app-purchases/</guid><description>はじめに 最近の Expo の進化は素晴らしく、EAS Build の登場（正確には prebuild コマンドですかね）により、Bare Workflow のようにネイティブコードを直接管理せずとも、ネイティブコードに…</description><pubDate>Thu, 14 Oct 2021 15:00:00 GMT</pubDate></item><item><title>OpenH264 に対応した FFmpeg をビルド</title><link>https://tech-blog.re-arc-lab.jp/posts/210911_ffmpeg-openh264/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210911_ffmpeg-openh264/</guid><description>はじめに iOS アプリに動画を組み込む場合、コーデック第一の選択肢として、H.264 が挙げられ、それと同時に H.264 ライセンスと向き合うことを余儀なくされるわけですが、そもそも、アプリ組み込み以前に、H.264 動画を用意すること（H.264 エンコード…</description><pubDate>Fri, 10 Sep 2021 15:00:00 GMT</pubDate></item><item><title>Firebase Admin SDK における Cloud Firestore トランザクション挙動</title><link>https://tech-blog.re-arc-lab.jp/posts/210811_firestore-transaction/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210811_firestore-transaction/</guid><description>はじめに 「DB と言えば MySQL」で育ってきた身としては、「Cloud Firestore サーバークライアントライブラリでのデータ競合は悲観的な同時実行制御で解決しているよ。」と言われれば、ああ、あんな感じね。と勝手に想像しがちなわけですが…</description><pubDate>Tue, 10 Aug 2021 15:00:00 GMT</pubDate></item><item><title>Google Apps Script で領収書管理を楽にする</title><link>https://tech-blog.re-arc-lab.jp/posts/210216_gas-mail-drive/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210216_gas-mail-drive/</guid><description>はじめに 確定申告のため、メールに添付された領収書をちまちまと手作業で整理したんですが、なかなかに面倒だったので、Google Apps Script で自動化してみました。

自動化内容
概要
Gmail で受信したメール（検索クエリで抽出）に添付されている pdf ファイルを…</description><pubDate>Mon, 15 Feb 2021 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin） ViewPager2 のメモリリーク回避</title><link>https://tech-blog.re-arc-lab.jp/posts/210204_android-viewpager2-leak/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210204_android-viewpager2-leak/</guid><description>はじめに ビューバインディングを学習した際に、公式ドキュメントに下記の通り記述されているのを確かに読んだのですが、

注: フラグメントはビューよりも持続します。フラグメントの onDestroyView() メソッドでバインディング…</description><pubDate>Wed, 03 Feb 2021 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin） RecyclerView で PopupMenu（データバインディング方式）</title><link>https://tech-blog.re-arc-lab.jp/posts/210202_android-recyclerview-popupmenu/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210202_android-recyclerview-popupmenu/</guid><description>はじめに 各概念毎のサンプルコードはよく見かけても、複数組み合わせた場合のサンプルコードってあまりなかったりしますよね。今回は RecyclerView と PopupMenu とデータバインディングを組み合わせたのですが、多少試行錯誤したので、まとめておきます。

前提

実装する…</description><pubDate>Mon, 01 Feb 2021 15:00:00 GMT</pubDate></item><item><title>Expo でダウンロード進捗処理</title><link>https://tech-blog.re-arc-lab.jp/posts/210125_expo-download-progress/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210125_expo-download-progress/</guid><description>はじめに Kotlin で Android 開発もやっているからこそ、Expo（React Native）ってホント便利だなぁと実感するわけですが、一方で、予想だにしない変な所でハマってしまうことも確かにあるわけです。今回はファイルのダウンロード進捗処理にハマりました。

前提
や…</description><pubDate>Sun, 24 Jan 2021 15:00:00 GMT</pubDate></item><item><title>Cloud Firestore ドキュメント ID でコレクショングループクエリ</title><link>https://tech-blog.re-arc-lab.jp/posts/210105_firestore-collectiongroup-documentid/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/210105_firestore-collectiongroup-documentid/</guid><description>はじめに 「DB と言えば MySQL」で育ってきた身としては、Cloud Firestore におけるサブコレクションにビビってしまうわけですが、コレクショングループクエリもありますし、便利ではあるので、開発には積極的に導入しつつあります。

ただ…</description><pubDate>Mon, 04 Jan 2021 15:00:00 GMT</pubDate></item><item><title>Gatsby に RSS フィードを追加</title><link>https://tech-blog.re-arc-lab.jp/posts/201125_gatsby-rss/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/201125_gatsby-rss/</guid><description>はじめに Gatsby で構築したブログに RSS フィードを追加する場合、公式ドキュメントの通りにやればほぼ問題ないんですが、ちょっとだけ日本特有の追加対応をしたので、そのメモです。

対応内容
前提
pubDate には yyyy-mm-dd 形式の edge.node…</description><pubDate>Tue, 24 Nov 2020 15:00:00 GMT</pubDate></item><item><title>Cloud Firestore のセキュリティルールを Jest でテスト</title><link>https://tech-blog.re-arc-lab.jp/posts/201124_firestore-rules-jest/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/201124_firestore-rules-jest/</guid><description>はじめに プライベートサブネットに DB を配置してネットワーク的にアクセス制御を行うインフラ構成で育ってきた身としては、セキュリティルールが用意されているとは言え、Cloud Firestore のクライアントから直接アクセスできる自由度に不安を感じてしまうわけです。

そんな不…</description><pubDate>Mon, 23 Nov 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin） Fragment にコールバックをセットする無難な方法</title><link>https://tech-blog.re-arc-lab.jp/posts/201113_android-fragment-setcallback/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/201113_android-fragment-setcallback/</guid><description>はじめに 画面回転でタップが効かなくなるバグに遭遇し、Fragment にコールバックをセットする方法を改めて考えさせられました。最初に結論を言ってしまうと、多少面倒でも良く見かける下記方式を実直に実装するのが無難で良いかと考えています。

参照が循環しないようにリスナーインター…</description><pubDate>Thu, 12 Nov 2020 15:00:00 GMT</pubDate></item><item><title>Gatsby と Zendesk でお問い合わせ機能</title><link>https://tech-blog.re-arc-lab.jp/posts/201111_gatsby-zendesk-contact/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/201111_gatsby-zendesk-contact/</guid><description>はじめに Gatsby で構築した Web サイトにお問い合わせ機能を実装したのですが、色々調べて試行錯誤したので備忘録です。

前提
Zendesk の採用について

お問い合わせ機能は大雑把に、下記から構成されると考えられます。

お問い合わせフォーム UI
UI…</description><pubDate>Tue, 10 Nov 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin） DialogFragment 表示時にソフトキーボードも表示</title><link>https://tech-blog.re-arc-lab.jp/posts/200924_android-dialogfragment-softinput/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200924_android-dialogfragment-softinput/</guid><description>はじめに DialogFragment でのソフトキーボード表示処理にハマったので備忘録です。

詳細
やりたいこと

ダイアログ表示直後に、ダイアログ内に存在する入力可能領域にフォーカスし、ソフトキーボードも表示する。

初期実装

まず、ドキュメントを参考に下記の通り実装しましたが…</description><pubDate>Wed, 23 Sep 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin） MaterialDatePicker を日本語化して期間選択</title><link>https://tech-blog.re-arc-lab.jp/posts/200923_android-materialdatepicker-range/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200923_android-materialdatepicker-range/</guid><description>はじめに 過去記事で DatePickerDialog に触れましたが、使いづらく、期間指定にも対応していませんでした。

そんな中、期間指定にも対応した MaterialDatePicker という新パッケージを知ったので試してみます。

実装内容
概要
アクティビティから…</description><pubDate>Tue, 22 Sep 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）で ZonedDateTime を使う</title><link>https://tech-blog.re-arc-lab.jp/posts/200918_android-zoneddatetime/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200918_android-zoneddatetime/</guid><description>はじめに 日時処理をまあまあ記述しなければいけない場合、java.util.Calendar しか使えないのは（使いづらくて）辛いなーと思います。java.time.ZonedDateTime で代替できそうなので試してみます。

実装内容
概要
デフォルトでは使えない java…</description><pubDate>Thu, 17 Sep 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）LiveData でデータバインディング</title><link>https://tech-blog.re-arc-lab.jp/posts/200914_android-databinding-livedata/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200914_android-databinding-livedata/</guid><description>はじめに Android 開発経験を一定積むと、findViewById メソッドを使って要素を取得した上で、（監視付きで）表示用値セット、イベントハンドリング等、処理を記述していくことに疲れてくる訳ですが、そんな時に嬉しいデータバインディングという仕組みがあります。

ただ…</description><pubDate>Sun, 13 Sep 2020 15:00:00 GMT</pubDate></item><item><title>C# Dictionary のキーに列挙型・構造体型を使った場合のボックス化について</title><link>https://tech-blog.re-arc-lab.jp/posts/200909_csharp-dictionary-box/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200909_csharp-dictionary-box/</guid><description>はじめに 「ボックス化したくないなら、Dictionary のキーに列挙型と構造体型を使うな」という話は比較的有名ですが、今回はコードベースで調査してみたいと思います。

調査結果
Dictionary 実装について

Dictionary の多くの操作（値取得、値追加、値削除等…</description><pubDate>Tue, 08 Sep 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）日付・時間選択ダイアログ</title><link>https://tech-blog.re-arc-lab.jp/posts/200903_android-datetimepicker/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200903_android-datetimepicker/</guid><description>はじめに ユーザーに日付、時間を選択させたい場合、DatePickerDialog と TimePickerDialog を利用するのが良いと思います。ただ、ドキュメントにもそれぞれの使い方が記載されてはいるんですが、実際に使えるレベルまで実装するとプラスアルファで色々あったので…</description><pubDate>Wed, 02 Sep 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）Navigation 通知タップで遷移</title><link>https://tech-blog.re-arc-lab.jp/posts/200901_android-navigation-notification/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200901_android-navigation-notification/</guid><description>はじめに 過去の記事で 、Navigation コンポーネントでアプリバーを実装しました。今回は「通知タップで目的のデスティネーションへ遷移」を実装してみます。 （後述する差分は前述記事からの差分になります）。

実装内容
概要

通知タップアクションと遷移を紐付けるには、ドキュメ…</description><pubDate>Mon, 31 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）AlarmManager の壁</title><link>https://tech-blog.re-arc-lab.jp/posts/200831_android-alarmmanager/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200831_android-alarmmanager/</guid><description>はじめに Android で時間指定処理（一定時間経過後のローカル通知等）をやろうと思ったらまず立ち塞がるのが AlarmManager です。API Level 毎の差異が複数あって、取っ付きづらいので、ざっくり調査内容をまとめておきます。

調査
前提

本記事においては、デバイ…</description><pubDate>Sun, 30 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）Navigation アプリバー対応</title><link>https://tech-blog.re-arc-lab.jp/posts/200829_android-navigation-appbar/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200829_android-navigation-appbar/</guid><description>はじめに 前回 、Navigation コンポーネントで画面遷移を実装しました。今回はアプリバーも対応してみます （後述する差分は前回の記事からの差分になります）。

実装内容
概要

対応内容は下記のの通りです。

アプリバー表示
アプリバー内に該当画面名を表示
アプリバー内に戻…</description><pubDate>Fri, 28 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Android（Kotlin）Navigation はじめの一歩</title><link>https://tech-blog.re-arc-lab.jp/posts/200827_android-navigation-first-step/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200827_android-navigation-first-step/</guid><description>はじめに アプリバーを実装したくて色々調べていたら、 Navigation コンポーネントの存在を知りました。 ドキュメントを見る限りは便利そうだったので、導入検討のため、最低限の画面遷移処理を実装してみました。

実装内容
Gradle

Gradle プラグインを追加するので…</description><pubDate>Wed, 26 Aug 2020 15:00:00 GMT</pubDate></item><item><title>No Activity な Android（Kotlin）プロジェクト</title><link>https://tech-blog.re-arc-lab.jp/posts/200826_android-noactivity-project/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200826_android-noactivity-project/</guid><description>はじめに Android プロジェクトを作成する際には、自動生成されたファイルをたいして理解せずに使っていたのですが、ちゃんと理解しようと思い、最小構成であろう Project Template No Activity を深掘りします。

調査内容
プロジェクト作成条件

Andro…</description><pubDate>Tue, 25 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Expo（TypeScript）セットアップ</title><link>https://tech-blog.re-arc-lab.jp/posts/200825_expo-setup/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200825_expo-setup/</guid><description>はじめに Expo を TypeScript で使うことは何度かやっているんですが、手順として整理できていなかったので、整理してみました。Expo プロジェクトを作成し、ESLint を導入します。

セットアップ手順
事前準備

nodenv を使って最新の Node.js…</description><pubDate>Mon, 24 Aug 2020 15:00:00 GMT</pubDate></item><item><title>NativeBase ちょっと複雑な Accordion</title><link>https://tech-blog.re-arc-lab.jp/posts/200821_nativebase-accordion/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200821_nativebase-accordion/</guid><description>TypeScript で NativeBase の Accordion を実装する際のメモです。 基本ケース

dataArray プロパティに渡したデータを表示をしてくれます。 title が見出し表示、content が内容表示（具体的には Text タグによってシンプルに表…</description><pubDate>Thu, 20 Aug 2020 15:00:00 GMT</pubDate></item><item><title>C# struct 引数</title><link>https://tech-blog.re-arc-lab.jp/posts/200819_csharp-struct-arg/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200819_csharp-struct-arg/</guid><description>はじめに C# 言語仕様としても、Unity（ゲームエンジンの方）等の C# を用いた開発環境においても、struct の存在感は増しています。が、class に慣れてしまっていると、癖があって、変なパフォーマンスボトルネックを知らずにつくってしまいがちなのも事実です…</description><pubDate>Tue, 18 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Gatsby ブログにタグ導入</title><link>https://tech-blog.re-arc-lab.jp/posts/200817_gatsby-tag/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200817_gatsby-tag/</guid><description>はじめに タグ機能の追加方法は公式ドキュメントに全て記載されています。

以上。

・・・なんですが、備忘録含めて gatsby-starter-blog スターターに対して適用した場合の実差分を記載しておきます。

実差分

タグ情報を GraphQL で取得し…</description><pubDate>Sun, 16 Aug 2020 15:00:00 GMT</pubDate></item><item><title>Gatsby でブログ</title><link>https://tech-blog.re-arc-lab.jp/posts/200814_gatsby-blog/</link><guid isPermaLink="true">https://tech-blog.re-arc-lab.jp/posts/200814_gatsby-blog/</guid><description>セットアップ 公式ドキュメントの手順をざっと確認すると、スターターと呼ばれる雛形を利用しているようだったので、https://www.gatsbyjs.com/starters/ を見て、スターが多い gatsby-starter-blog を使ってみることにしました。Node…</description><pubDate>Thu, 13 Aug 2020 15:00:00 GMT</pubDate></item></channel></rss>