<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>bayashi.net</title>
<link>https://bayashi.net/</link>
<description>Perl,Linux,Git,MySQL,海外旅行,France,Spain,Hawaii</description>
<language>ja</language>
<copyright>Copyright (c) bayashi.net</copyright>
<image>
<url>https://img.bayashi.net/bayashi.jpg</url>
<link>https://bayashi.net/</link>
<title>bayashi.net</title> 
</image>
<item>
<title>2026/04/06: The most awesome AI web-prompt bookmarklet</title>
<description>

{{tag: ai, bookmarklet, claude}}

I made a prompt bookmarklet for AI web UI and it's kind of insane, I believe.

Never accidentally send an unfinished message again. AI did the heavy lifting.

The screenshot pretty much shows you everything it c...</description>
<link>https://bayashi.net/diary/2026/0406</link>
<guid>https://bayashi.net/diary/2026/0406</guid>
<category>diary</category>
<pubDate>2026-04-06T09:00:00Z</pubDate>
</item>
<item>
<title>2026/03/23: JSONCに足りないもの</title>
<description>

{{tag: json, jsonc}}

JSON

JSON のデータは以下のようなものだ。

{
    "foo": 123,
    "bar": [
        "str1",
        "str2"
    ],
    "baz": {
        "hoge": 4567
    }
}


JSONデータ自体は様々な場面で利用される。
とりわけ、人力で読み書きするには YAML の方に利がありそうではあるが、インデントに依存した記述が嫌われているのか、...</description>
<link>https://bayashi.net/diary/2026/0323</link>
<guid>https://bayashi.net/diary/2026/0323</guid>
<category>diary</category>
<pubDate>2026-03-23T09:00:00Z</pubDate>
</item>
<item>
<title>2026/03/07: Amazon::CreatorsAPI モジュールを書いた</title>
<description>

{{tag: amazon,cpan,perl,module}}

ひさびさのCPANモジュール

Amazon Product Advertising API(PA-API) 5.0 から、Amazon Creators API に移行するよって言われたので、 Amazon Creators API に対応した Perl module をこしらえました。CPANにもあげてあります。

[[https://metacpan.org/dist/Amazon-CreatorsAPI Ama...</description>
<link>https://bayashi.net/diary/2026/0307</link>
<guid>https://bayashi.net/diary/2026/0307</guid>
<category>diary</category>
<pubDate>2026-03-07T09:00:00Z</pubDate>
</item>
<item>
<title>2026/02/12: AIにコード書いてもらっているとき欲しいもの</title>
<description>

{{tag: vibecoding}}

今日と明日は有給もらって5連休です。最近は土日がマンキンで忙しいのでちょっとリラックスするのと、生活のメンテです。

そういうわけでもう2月も中旬という頃合いですが今年初のブログになりました。あけましておめでとうございます。

AIに書いてもらっているもの

さて、お仕事でも趣味でも AIにコードを書いてもらっていいますが、私の今のステータスはこんな感じです。


お仕事のプロダクションコードはまだ大半を手で書いている

テストコードは 99%...</description>
<link>https://bayashi.net/diary/2026/0212</link>
<guid>https://bayashi.net/diary/2026/0212</guid>
<category>diary</category>
<pubDate>2026-02-12T09:00:00Z</pubDate>
</item>
<item>
<title>2025/12/22: またmclocksを魔改造した。今度はWeb Server機能つけたｗ</title>
<description>

{{tag: mclocks, tauri, rust}}

mclocks

[[https://github.com/bayashi/mclocks mclocks]] は、複数タイムゾーンの日時をコンパクトに表示するデスクトップアプリです。Tauri でできていて Windows, Mac, Linux で使えます。

シンプルなタイマー機能とか Epoch time 表示したりだとか、時刻文字列貼り付けて変換したりする機能とか、エンジニア向けの日時まわりの雑事を解決することがで...</description>
<link>https://bayashi.net/diary/2025/1222</link>
<guid>https://bayashi.net/diary/2025/1222</guid>
<category>diary</category>
<pubDate>2025-12-22T09:00:00Z</pubDate>
</item>
<item>
<title>2025/10/06: actually の FailNow をガードで書けるようにした</title>
<description>

{{tag: golang, actually, testing}}

テスト関数の構成

なんらかのテストを書くとき、おおむね以下のような構造になっていると思います。

func TestSome(t *testing.T) {
    // prepare to test action
    db, err := database.instance("user")
    require.NoError(t, err)
    db.insert(model.User{id: 1...</description>
<link>https://bayashi.net/diary/2025/1006</link>
<guid>https://bayashi.net/diary/2025/1006</guid>
<category>diary</category>
<pubDate>2025-10-06T09:00:00Z</pubDate>
</item>
<item>
<title>2025/08/15: 日本から US への振り込みは Wise 一択</title>
<description>

{{tag: usd, jpy, bank, transfer}}

US口座だけでは意味ない

USD を USD のまま振り込みしたいがため、つまり為替手数料を払いたくないがために US の銀行口座を赴任から帰国して5年余り維持してきたけど、結果として US の電話番号が無いために振り込みできず役に立たなかった。5年前ならそうでもなかったかもしれないが、いまは日本もそうだけど送金まわりの条件が厳しく、例えば U.S. Bank だと US国内の電話番号がないと振り込みができない(風...</description>
<link>https://bayashi.net/diary/2025/0815</link>
<guid>https://bayashi.net/diary/2025/0815</guid>
<category>diary</category>
<pubDate>2025-08-15T09:00:00Z</pubDate>
</item>
<item>
<title>2025/06/21: ドコモのキッズケータイで +メッセージが開けなくなった</title>
<description>

{{tag: docomo}}

ドコモのキッズケータイ、具体的には京セラの KY-41C で +メッセージアプリが開けなくなったときの対処法。

症状

キッズケータイ KY-41C で +メッセージを開こうとすると「ストレージ容量が不足していて開けない」と言われて+メッセージが起動できなくなる。

原因

エラーメッセージの通り、端末のストレージ容量がいっぱいになっている。

以下のようにメニューをたどると、ストレージの利用状況が見れる。

保護者メニュー ＞ その他の設定 ＞ 端...</description>
<link>https://bayashi.net/diary/2025/0621</link>
<guid>https://bayashi.net/diary/2025/0621</guid>
<category>diary</category>
<pubDate>2025-06-21T09:00:00Z</pubDate>
</item>
<item>
<title>2025/05/05: mclocksを魔改造した</title>
<description>

{{tag: mclocks, tauri, rust}}

複数のタイムゾーンの日時をコンパクトに表示するデスクトップアプリの mclocks ですが、先日 Electron から Tauri v2 にマイグレーションして、ある日付までのカウントダウンを表示する機能を追加してみたりしました。

https://github.com/bayashi/mclocks

macOS にも対応して、やることやったからあとは放置ゲーだと思っていたのですが、GWの天気が釣りに行くにはいまいちとい...</description>
<link>https://bayashi.net/diary/2025/0505</link>
<guid>https://bayashi.net/diary/2025/0505</guid>
<category>diary</category>
<pubDate>2025-05-05T09:00:00Z</pubDate>
</item>
<item>
<title>2025/04/19: Tauriアプリ開発 Day 2</title>
<description>

{{tag: mclocks, tauri, rust}}

mclocks というミニマリスト向け複数タイムゾーンの日時表示アプリを開発している。

https://github.com/bayashi/mclocks

先日、[[https://bayashi.net/diary/2025/0331 Electron から Tauri v2 に移行した]]。

その後、少し機能を足したりしてみたので、そのメモを書く。

window-state plugin

Tauri v2 に...</description>
<link>https://bayashi.net/diary/2025/0419</link>
<guid>https://bayashi.net/diary/2025/0419</guid>
<category>diary</category>
<pubDate>2025-04-19T09:00:00Z</pubDate>
</item>
<item>
<title>2025/04/06: イヤーカフ型Bluetoothイヤフォン</title>
<description>

{{tag: life, bluetooth}}

ひさびさに Bluetoothイヤフォンを買った。良かったのであさましくご紹介。

SOUNDPEATS PearlClip Pro

耳をふさがないイヤーカフ型だ。

[[https://amzn.to/3XHt1V2 SOUNDPEATS CC イヤーカフ イヤホン PearlClip Pro]]

イヤーカフ型というのは耳たぶの外側にひっかけて装着する。完全分離型イヤフォンが普及して安価になり、その派生として最近よく目にするよう...</description>
<link>https://bayashi.net/diary/2025/0406</link>
<guid>https://bayashi.net/diary/2025/0406</guid>
<category>diary</category>
<pubDate>2025-04-06T09:00:00Z</pubDate>
</item>
<item>
<title>2025/04/05: 通勤パフォーマンスチューニング</title>
<description>

{{tag: life}}

出社回帰

最近ちょっと出社する機会が増えている。

家から徒歩5分のバス停からバスに乗り、最寄り駅は急行が停まらないので1駅乗って急行に乗り換える。急行に1時間半近くゆられてさらに乗り換えて次は地下鉄に5駅程度乗る。最後に徒歩10分くらいで会社につく。全行程およそ2時間くらいかかる。往復すると4時間。出社すると、起きている時間の25%を通勤時間に費やす。やれやれ。

片道2時間の通勤時間を短縮するには、引っ越しをするという選択肢になるが、子どもが転校する...</description>
<link>https://bayashi.net/diary/2025/0405</link>
<guid>https://bayashi.net/diary/2025/0405</guid>
<category>diary</category>
<pubDate>2025-04-05T09:00:00Z</pubDate>
</item>
<item>
<title>2025/03/31: mclocks を Electron から Tauri に切り替えた</title>
<description>

{{tag: mclocks, electron, tauri, javascript, rust}}

mclocks

https://github.com/bayashi/mclocks

[[https://github.com/bayashi/mclocks mclocks]] はデスクトップに複数の日時を表示するアプリケーションです。Windows と Mac 向けのバイナリをビルドして配布しています。5年前に Electron を使って書きました。近年は細々セキュリティア...</description>
<link>https://bayashi.net/diary/2025/0331</link>
<guid>https://bayashi.net/diary/2025/0331</guid>
<category>diary</category>
<pubDate>2025-03-31T09:00:00Z</pubDate>
</item>
<item>
<title>2025/03/22: 2025年に買って良かったもの BUFFALO Link Station LS710D</title>
<description>

{{tag: life}}

去年の5月から10ヶ月ブログ書いてなかったらしい。もうこの記事が今年最後かもしれない。そういうわけで、今年最初で最後かもしれないのであさましいやつ置いておきます。

BUFFALO Link Station LS710Dが便利すぎる

[[https://amzn.to/4hzoWJF BUFFALO Link Station LS710D]] が超便利だった。これは QOL があがる。

[[https://amzn.to/4hzoWJF BUFFALO...</description>
<link>https://bayashi.net/diary/2025/0322</link>
<guid>https://bayashi.net/diary/2025/0322</guid>
<category>diary</category>
<pubDate>2025-03-22T09:00:00Z</pubDate>
</item>
<item>
<title>2024/05/03: WSL2 のターミナルからWindowsの Firefox を起動する</title>
<description>

{{tag: wsl2, wsl, firefox}}

タイトルの通り、WSL2 のターミナルからWindowsの Firefox を起動する方法。ポイントは /mnt/c/

(pprof) web


とかしたときに便利なやつ。

まず、ブラウザを起動するための sh ファイルを用意しておく。

[openff.sh]

#!/bin/bash
/mnt/c/Program\ Files/Mozilla\ Firefox/firefox.exe $(wslpath -w ${1}...</description>
<link>https://bayashi.net/diary/2024/0503</link>
<guid>https://bayashi.net/diary/2024/0503</guid>
<category>diary</category>
<pubDate>2024-05-03T09:00:00Z</pubDate>
</item>
<item>
<title>2024/03/30: 俺のセマンティックバージョニング</title>
<description>

{{tag: version}}


 v1.3.5
  | | |
  | | +--- 俺しか使ってない
  | |
  | +----- 俺以外も使ってる
  |
  +------- みんなが使ってる

</description>
<link>https://bayashi.net/diary/2024/0330</link>
<guid>https://bayashi.net/diary/2024/0330</guid>
<category>diary</category>
<pubDate>2024-03-30T09:00:00Z</pubDate>
</item>
<item>
<title>2024/03/25: カレントディレクトリパスの中のgitレポジトリに色を付けると便利</title>
<description>

{{tag: bash, ps1, git}}

PS1 があるじゃろ？

PS1="\u \w \$(__git_ps1 \": %s\")\n$ "


bayashi ユーザのホームディレクトリならこんな表示じゃ

bayashi ~
$ 


なんの変哲もないプロンプトじゃな

PS1 の中身を書き下すとこうじゃ


\u ログインユーザ
\w カレントディレクトリ
$(__git_ps1 ": %s") gitディレクトリの場合、ブランチ名

__git_ps1 は git-...</description>
<link>https://bayashi.net/diary/2024/0325</link>
<guid>https://bayashi.net/diary/2024/0325</guid>
<category>diary</category>
<pubDate>2024-03-25T09:00:00Z</pubDate>
</item>
<item>
<title>2024/03/23: bash PS1 プロンプトにgitリポジトリ情報を表示する</title>
<description>

{{tag: bash, ps1, git}}

わけあって自分は使わなくなってしまったのだけど、bash の プロンプトに git リポジトリの情報を出すやつ。

main : bayashi/actually
$ 


上記のように ブランチ名(main) と リポジトリの情報(bayashi/actually)を出す。

PS1 に以下のようにすればよい。

PS1="\$(__git_ps1 \"%s\")\$(git remote -v 2&gt;/dev/null | he...</description>
<link>https://bayashi.net/diary/2024/0323</link>
<guid>https://bayashi.net/diary/2024/0323</guid>
<category>diary</category>
<pubDate>2024-03-23T09:00:00Z</pubDate>
</item>
<item>
<title>2024/02/26: actually その後</title>
<description>

{{tag: go, test, testing, actually }}

actually は Go の testing ライブラリです。明示的なインターフェースと一貫性の高いメソッド群、そしてメンテナンスやリファクタリングの際に力を発揮するフェイルレポートを備えています。

[[https://github.com/bayashi/actually actuallyのリポジトリはこちらです。]]

今回は、この actually について、最近のアップデート内容について簡単にまと...</description>
<link>https://bayashi.net/diary/2024/0226</link>
<guid>https://bayashi.net/diary/2024/0226</guid>
<category>diary</category>
<pubDate>2024-02-26T09:00:00Z</pubDate>
</item>
<item>
<title>2024/02/10: WSL2 に Ubuntu22 セットアップ</title>
<description>

{{tag: wsl2, ubuntu, ubuntu22}}

Ubuntu18 で glibc が古くてどうにもならなくなったので重い腰をあげてアップグレードする。すでに WSL2 に Ubuntu18 が動いている状態からスタート。

WSL2 アップデート

管理者権限のPowerShell

管理者権限のシェルを起動する(PowerShellで以下を実行すると、別ウィンドウで管理者権限のシェルが立ち上がる)

$ Start-Process PowerShell.exe -V...</description>
<link>https://bayashi.net/diary/2024/0210</link>
<guid>https://bayashi.net/diary/2024/0210</guid>
<category>diary</category>
<pubDate>2024-02-10T09:00:00Z</pubDate>
</item>
<item>
<title>2024/01/21: 2023年に買って良かったもの3選</title>
<description>

{{tag: amazon, bluetooth}}

年内に書こうと思っていたけど、年も明けてもうだいぶ時間がたってしまった。去年買って良かったもの3選です。ご査収ください。

USB TYPE-C マグネットアダプタ

これは同僚に便利ですよと教えてもらって導入したもの。USB-C の口をマグネットで接続できるようにするもの。

[[https://amzn.to/3u01BxQ USB TYPE-C マグネットアダプタ]]

自分はプライベートPCとお仕事用のMacを朝晩切り替え...</description>
<link>https://bayashi.net/diary/2024/0121</link>
<guid>https://bayashi.net/diary/2024/0121</guid>
<category>diary</category>
<pubDate>2024-01-21T09:00:00Z</pubDate>
</item>
<item>
<title>2023/12/16: Web::Scraper の実装がカッコいいぞという話</title>
<description>

{{tag: perl}}

この記事は、&quot;[[https://qiita.com/advent-calendar/2023/perl Perl Advent Calendar 2023]]&quot; 16日目の記事です。



{{cpan: Web::Scraper}} というPerlモジュールがあります。名前の通り、Webページをスクレイピングするためのモジュールです。2007年にリリースされたモジュールです。このモジュールで育った人も多いのではないかと思います。

...</description>
<link>https://bayashi.net/diary/2023/1216</link>
<guid>https://bayashi.net/diary/2023/1216</guid>
<category>diary</category>
<pubDate>2023-12-16T09:00:00Z</pubDate>
</item>
<item>
<title>2023/12/09: Module::Setupをgo moduleのセットアップにも使っている話</title>
<description>

{{tag: perl, cpan, golang}}

この記事は、&quot;[[https://qiita.com/advent-calendar/2023/perl Perl Advent Calendar 2023]]&quot; 9日目の記事です。



{{cpan: Module::Setup}} という Perl モジュールのボイラープレートを作成するモジュールがあります。module-setup というコマンドでモジュールをテンプレートから作成することができます。
...</description>
<link>https://bayashi.net/diary/2023/1209</link>
<guid>https://bayashi.net/diary/2023/1209</guid>
<category>diary</category>
<pubDate>2023-12-09T09:00:00Z</pubDate>
</item>
<item>
<title>2023/12/05: 今夜あなたは目撃者！テストノ治安ヲ再生セヨ！</title>
<description>

{{tag: golang, testing, witness}}

この記事は、&quot;[[https://qiita.com/advent-calendar/2023/go Go 言語Advent Calendar 2023 シリーズ 2]]&quot; 5日目になります。



こんばんは！はじめて Go のアドベントカレンダーにエントリーしました。{{tw: bayashi}} と申します。はじめてなのでタイトルにインパクトが欲しくて気合い入れたんですが、特にアイデアが浮か...</description>
<link>https://bayashi.net/diary/2023/1205</link>
<guid>https://bayashi.net/diary/2023/1205</guid>
<category>diary</category>
<pubDate>2023-12-05T09:00:00Z</pubDate>
</item>
<item>
<title>2023/12/02: HTTP::Message に10年越しの PR がマージされた話</title>
<description>

{{tag: perl, cpan}}

この記事は、&quot;[[https://qiita.com/advent-calendar/2023/perl Perl Advent Calendar 2023]]&quot; 2日目の記事です。



むかしむかしあるところ

いまとなっては記憶が定かではないのですが、10年前の当時、私は Plack::Middleware をよく書いている時期があり、なんらかの実装をしているときに HTTPステータスが欲しくなり、ハードコードするのも...</description>
<link>https://bayashi.net/diary/2023/1202</link>
<guid>https://bayashi.net/diary/2023/1202</guid>
<category>diary</category>
<pubDate>2023-12-02T09:00:00Z</pubDate>
</item>
</channel>
</rss>
