RSSAmplifier

Blog

Rick Cogley

Tech, business, Japan. Building things on Cloudflare.

cogley.jpRSS feed ↗50 posts

Latest posts

This morning at about 5:30 I drove Maru to the bi…

This morning at about 5:30 I drove Maru to the big park he likes for his walk. FM Yokohama had a fishing report on, which went into great detail about what fish people are catching on what vessel, how large the catch is, what bait or lures are working and so on. It was fascinating, and had some jokey moments too - caught 20 mackerel? Great but the problem is now you gotta clean 'em! I never…

I’m sitting in the barber shop and, what, angine…

I’m sitting in the barber shop and, what, angine de poitrine is on the normal-ass radio.

Updated my [Japan Shoes](https://cogley.jp/articl…

Updated my Japan Shoes article to include a photo of my new weatherproof shoes from Moonstar, which were great during the long 'tsuyu' rainy season this year. Check it out if you like Japanese-made shoes.

I updated my [Migrate to Svelte](https://svelte.c…

I updated my Migrate to Svelte app to show the latest and greatest. If you're using or thinking about switching to Svelte and Sveltekit, check it out!

**How to Automatically Power On a PC After a Powe…

How to Automatically Power On a PC After a Power Outage:Dell BIOS Setting Guide Learn how to configure Dell Optiplex BIOS settings so that your PC automatically powers on after power loss or updates. Includes a real-world case ... https://blog.esolia.pro/en/posts/20260630-automatically-power-on-a-pc-en/ (Japanese version also available on the blog.)

**IT Terms You Think You Know: What Is a Server?*…

IT Terms You Think You Know: What Is a Server? we’ll give a gentle and beginner-friendly explanation of the term “server,” which you might know the sound of, but not fully understand. https://blog.esolia.pro/en/posts/20260623-what-is-a-server-en/ (Japanese version also available on the blog.)

So I read in the Japan Times that APA hotels are…

So I read in the Japan Times that APA hotels are going to expand internationally starting with North America. Will the rooms still be furnished with the revisionist, nationalist and racist literature?

**Is it safe to remove that USB device?** Is “Sa…

Is it safe to remove that USB device? Is “Safely Remove Hardware and Eject Media” still necessary? https://blog.esolia.pro/en/posts/20260526-remove-usb-device-en/ (Japanese version also available on the blog.)

**Reflecting on the True Value of IT Professional…

Reflecting on the True Value of IT Professionals at the Heart of Tokyo Station What is the true value of IT project managers? Using Tokyo Station as a metaphor, this article explores how IT professionals coordinate, decide, an... https://blog.esolia.pro/en/posts/20260514-it-professionals-en/ (Japanese version also available on the blog.)

Starz “Amadeus” starring Will Sharpe and Paul Bet…

Starz “Amadeus” starring Will Sharpe and Paul Bettany was well done, and satisfyingly operatic.

Just a STUNNING London Marathon result, with two…

Just a STUNNING London Marathon result, with two sub-2-hour finishes. Imagine Kejelcha's feeling now: breaking the sub-2-hour barrier with a 1:59:41, only to get second behind Sawe with a 1:59:30. Congratulations to both of these incredible runners!

The Soul of Japanese Shoes: Kurume, Asakusa, and a Dutch Word

There is a white canvas shoe sitting in the shoe-rack grid at the entrance of almost every Japanese primary school — a wall of small cubbies, roughly 25 cm on a side, one slot per child. The kid arrives, takes off their street shoes, slides them into their named cubby, pulls on the canvas pair that was waiting there, and walks upstairs to class. At the end of the day they swap back, and the canvas…

日本の靴のたましい:久留米の釜、浅草の錐、そしてオランダ語の物語

日本の小学校の下足箱(入口の壁に並ぶ、児童ひとりに一枠ずつ割り当てられた約25cm四方のマス目)には、ほぼ必ず白いキャンバスの靴が並んでいる。生徒は朝登校すると、街で履いてきた靴を脱いで自分のマスに入れ、そこに入っていたキャンバスの靴に履き替え、教室に向かう。下校時には履き替えて、キャンバスの靴を同じマスに戻す。この靴は 上履き と呼ばれ、素材そのものには ズック というカタカナの名前がついている。カタカナで書かれているということは、外来語であることを示している。 そのとおり、外来語だ。遠い海路を経て、オランダ語の doek (ドーク、意味は「布」)に由来している。17世紀、オランダ商人が出島経由で織物を持ち込み、その同じ単語は2世紀後、英語に渡ってダック( duck )キャンバスの語源にもなった。 綿、キャンバス、ひとつのオランダ語…

Cloudflare Workers HTML to Markdown: Free-Plan Edition

AI crawlers — Gemini, GPT, Claude, Perplexity — are reading your site constantly, and they'd rather parse markdown than HTML. Markdown means cleaner context, fewer tokens, cheaper inference for them, which translates (via the economics of who pays for those tokens) into more efficient use of everyone's budget. If an agent is going to summarize your page anyway, giving it markdown directly means it…

Cloudflare Workers無料プランでHTML→Markdown変換

AIクローラー(Gemini、GPT、Claude、Perplexityなど)は絶えずサイトを読みにきており、HTMLよりMarkdownのほうを好む。Markdownのほうが文脈がクリーンで、トークン数が少なく、推論コストも安い。エージェントがどうせあなたのページを要約するなら、DOMを歩くことに割くトークン予算を、実際のコンテンツに回したほうが合理的だ。 エージェントにMarkdownを届ける方法は二つある。コンテンツが すでにMarkdown の場合(CMS、Gitリポジトリ、データベースにある場合)、 Accept: text/markdown ヘッダでフォーマットを交渉するだけで済む。筆者の姉妹記事「 SvelteKit + Cloudflare WorkersでAIエージェント向けMarkdownを配信する 」が、そのケースを詳しく扱っている。 コンテンツが HTML…

SECURITY ACTION: Japan's Free SME Security Credential

I run an IT services firm in Tokyo. We're currently working through ISO/IEC 27001 certification — the international ISMS standard, adopted in Japan as JIS Q 27001 (the two documents are substantively identical; Japanese government materials cite the JIS flavor) — and somewhere in the middle of that process I stumbled onto something called SECURITY ACTION . It's run by the IPA…

SECURITY ACTION:中小企業の無料セキュリティ制度

東京で小さなITサービス会社を運営している。現在 ISO/IEC 27001 (国際ISMS規格・日本では JIS Q 27001 として同内容で採択されており、日本政府資料では多くの場合JIS表記が使われる)の取得作業を進めていて、その途中で SECURITY ACTION(セキュリティアクション) という制度にたどり着いた。 IPA(情報処理推進機構) が運営していて、料金はかからず、宣言作業そのものは半日で終わる。日本で中小企業を経営していて、セキュリティに少しでも関心があるなら、この制度の存在くらいは知っておいていい。 この記事は、この制度の存在を知らない中小企業経営者(特に、日本の制度に疎い外国人経営者)に向けて書いている。何かを売りたいわけではない。私が学んだことを共有しているだけだ。2026年4月のgBizID…

I have been successfully using Anthropic Claude a…

I have been successfully using Anthropic Claude and I like how it works. I was doing some due diligence yesterday testing alternatives, and I have to say I was not impressed with the Copilot included in M365 E5, especially because of the lack of integration with Sharepoint. Seems dumb that version of Copilot cannot save a file to a file library in Sharepoint.

**Let’s share your data using OneDrive!** This a…

Let’s share your data using OneDrive! This article clearly explains how to securely and easily share files using Microsoft 365 OneDrive. https://blog.esolia.pro/en/posts/2026406-using-onedrive-en/ (Japanese version also available on the blog.)

Sendai was great, very relaxing. We rented a Kei,…

Sendai was great, very relaxing. We rented a Kei, expecting a beater, but getting a new Delica Mini . Wow, what a great little car! Drove 4 hours, cost 400 Yen to fill ‘er up.

Heading to Sendai tomorrow for an onsen soak with…

Heading to Sendai tomorrow for an onsen soak with A.

エンジニアリング・バックプレッシャー:AIが生成するコードの品質を10のSvelteKitリポジトリで守る

SvelteKitのリポジトリを10ほど管理していて、開発にはAnthropicのClaude Codeを活用している。AIコーディングアシスタントは、特にプログラミング経験者にとっては高速かつ有能だが、速いからこそ厄介な問題がある。気をつけないと、見つけにくい形で一貫して間違えるのだ。 「コードが実行しない」という問題ではない。それより .safeParse() ではなく .parse() を使う。D1のSQLに .bind() ではなくテンプレートリテラルで値を埋め込む。データベースの書き込み結果を確認しない。load関数に4段階のネストされた非同期ロジックを詰め込む。コードは動くしTypeScriptも通る。PRのdiffでも問題ないように見える。 問題は、 CLAUDE.md (やその他のコーディングエージェント向けガイドファイル)に「常に safeParse()…

Engineering Backpressure for AI-Generated Code

I manage about ten SvelteKit repositories deployed on Cloudflare Workers, and leveraged Anthropic's Claude Code to do it. Generally speaking, AI coding assistance can be fast and capable, especially if you already know how to code, but precisely because they are so fast, they can be — if you're not careful — consistently wrong in ways that are hard to spot. Not wrong as in "the code doesn't work."…

AIに頼る前にまず自分の手でコードを書け:新卒エンジニアへ

4月。新しいスーツ、新しいIDカード、新しいデスク。そしておそらく、すでにChatGPTやCopilotを使いこなしている自分。大学のレポートでもコーディング課題でも、AIは頼れる味方だったはずだ。 会社の研修でもAIツールの活用を推奨されるかもしれない。それ自体は悪いことではない。ただ、 今この時期に「自分で考える」工程を飛ばすと、そのツケは何年も尾を引く 。 ガベージ・イン、ガベージ・アウト コンピューティングで最も古い原則のひとつに、GIGO(Garbage In, Garbage Out)がある。ゴミを入れればゴミが出る。この原則は、AI時代の開発にそのまま当てはまる。 AIにコードを書かせるとき、あなたはプロンプトを渡している。そのプロンプトの質は、 あなた自身が何を理解しているか にかかっている。 REST…

Learn to Code the Hard Way First

Welcome to your first job. You've probably already used ChatGPT or Copilot to get through assignments, and your new company might even encourage AI tools from day one. I'm not here to tell you to avoid them forever. But if you skip the struggle now, you'll pay for it for years . Garbage In, Garbage Out GIGO is one of the oldest principles in computing, and it applies perfectly to AI-assisted…

Svelte 5の34パターンをJSON Feedで配信、SvelteKitコードベースをAIで監査する

Migrate to Svelte 5 は、React・Vue・AngularからSvelte 5への移行リファレンスサイトです。フレームワーク間の概念対応表が約300件、構文・アーキテクチャ・エコシステムをカバーしています。 人間がサイトを読んで調べる分にはそれで十分です。ただ、SvelteKitのコードベースでClaude Codeを使いながら「Svelteの最新機能を確認して、このリポジトリに適用できるものを見つけて」と頼みたい場面が増えてきました。AIエージェントが得意とする素早い横断分析です。データはサイトにあるのに、機械が問い合わせる手段がなかった。 そこで 構造化パターンフィード と フィルタ可能なパターンページ を追加しました。背景と実装を記録します。 静的な移行ガイドの限界…

Audit Your SvelteKit Codebase with a JSON Feed of 34 Svelte 5 Patterns

My Migrate to Svelte 5 site started as a side-by-side reference for developers wanting to convert to Svelte 5, from React, Vue, or Angular. It maps concepts across frameworks: "your useState is Svelte's $state ," "your useEffect is $effect ," and so on — about 300 entries covering syntax, architecture, and ecosystem. That's useful, for a human reading the site. But I kept running into a different…

Cloudflare Dynamic Workers:エッジでのサンドボックス化されたコード実行

データベースに保存したJavaScriptテンプレートを実行する必要があった。RSSフィードのアイテムをSNS投稿にフォーマットするコードだ。テンプレートは何でもあり得る:手書き、AI生成、ブログからのコピペ。D1データベースやR2バケットにアクセスできる本番Worker内で任意のコード文字列を実行するわけにはいかない。 2026年3月にリリースされたCloudflareの Dynamic Workers がこれを解決した。親Workerが実行時にコード文字列から新しいWorkerを生成し、それぞれが独自のV8アイソレートで動作する。アクセス権限は親が明示的に制御する。自分のパブリッシングスタックに半日で組み込めた。 Dynamic Workers以前の問題 データベースにJavaScript関数を保存し、Cloudflare…

Cloudflare Dynamic Workers: Sandboxed Code Execution at the Edge

I needed to run user-defined JavaScript templates from a database — code that formats RSS feed items into social media posts. The templates could be anything: hand-written, AI-generated, pasted from a blog. Running arbitrary code strings inside my production Worker, with access to D1 databases and R2 buckets, wasn't an option. Cloudflare's Dynamic Workers , released in March 2026, solved this.…

**Introducing Acrobat Standard features for use i…

Introducing Acrobat Standard features for use in administrative departments From differences with Acrobat Reader to useful features and comparison with Acrobat Pro https://blog.esolia.pro/en/posts/20260323-acrobat-standard-en/ (Japanese version also available on the blog.)

**How Should You Manage Your Passwords?** We’ll…

How Should You Manage Your Passwords? We’ll look at how to manage passwords safely, and how to create stronger, harder-to-guess passwords — even for beginners. https://blog.esolia.pro/en/posts/20260302-manage-your-passwords-en/ (Japanese version also available on the blog.)

**Telework Offensive!** It's not just a welfare…

Telework Offensive! It's not just a welfare matter; moving toward a practical telework offensive https://blog.esolia.pro/en/posts/20180416-telework-offensive_en/ (Japanese version also available on the blog.)

設定はどこへ消えた? ベンダードキュメント変更検知の自動化

スペンサー・ジョンソンの『チーズはどこへ消えた?』は、周囲の変化にどう適応するかという話でした。クラウドセキュリティコンプライアンスの世界では、チーズ(設定画面)が常に動いています。Microsoftがメニュー名を変えた。Googleがトグルを別の管理パネルに移動した。丁寧に書いた実装ガイドが、もう存在しない画面を指している。お客様が古い手順に従って行き詰まる。 この問題を解決するため、ベンダードキュメントを毎週自動クロールし、自社ガイドとの差分を検出するパイプラインを構築しました。Cloudflare WorkersのDurable Workflowで稼働し、Claudeによるセマンティック分析でUIパス変更・機能廃止・設定移動を検知します。120ソース規模でも週あたり約50セントで運用可能です。 ドキュメントドリフトとは…

Who Moved My Settings? Automating Vendor Doc Drift Detection

Spencer Johnson's Who Moved My Cheese? is about adapting when things change around you. In cloud security compliance, the cheese moves constantly. Microsoft renames a menu. Google moves a toggle to a different admin panel. Your carefully written implementation guide now points to a screen that no longer exists. Your client follows the old steps and hits a dead end. We built an automated pipeline…

SvelteKit + Cloudflare WorkersでAIエージェント向けMarkdownを配信する

AIによるクロール・要約の波が押し寄せています。GoogleのGemini、OpenAIのGPT、AnthropicのClaude、Perplexityなど、あらゆるエージェントがあなたのサイトにアクセスしています。HTMLを返せば、 <div> の山をパースするためにトークンを浪費します。Markdownを返せば、クリーンなコンテキストが即座に得られます。 Cloudflareは AIエージェント向けMarkdown配信ガイド を公開し、Transform RulesとAIゲートウェイを使う方法を紹介しました。その後Michael Wolsonが、Transform Rulesでヘッダを設定しエッジでコンテンツネゴシエーションを行う 無料プラン向けの応用記事 を書いています。 私はSvelteKitをCloudflare…

SvelteKitサイト8個をVite 8に1日で移行した記録

Vite 8は2026年3月12日にリリースされた。その2日後、筆者は8つのSvelteKitプロジェクトを移行し終えた。モノレポとスタンドアロンの混在構成で、すべてCloudflare Workersにデプロイしている。移行はほぼ機械的な作業で、ビルドも速くなった。いくつかの教訓を共有する。 Vite 8で何が変わるのか Vite 8は、従来の「分裂型」バンドラアーキテクチャを置き換えるものだ。Vite 7では、開発時のトランスフォームと依存関係の最適化にesbuildを使い、本番ビルドではRollupに切り替えていた。2つの異なるツールが重複する仕事をし、それぞれの環境で微妙に異なる挙動を示していた。 Vite…

Cloudflare PagesからWorkersへの移行ガイド(2026年版)

CloudflareはPagesをWorkersに統合しつつある。Pagesが明日なくなるわけではないが、新機能はすべてWorkers側にのみ追加されている。筆者は2026年初頭に全PagesプロジェクトをWorkersへ移行し、その過程でつまずいたポイントをまとめた。 Cloudflare Pagesは廃止されるのか? 正確にはそうではない。RedditやHacker Newsでは「Pagesは非推奨」という声が多いが、実態は少し違う。Workersテックリードの Kenton Varda 氏は「Pages固有の機能をすべて汎用的なWorkers機能に変えていく」と述べている。つまり、製品が廃止されるのではなく、吸収されるのだ。 しかしシグナルは明確だ。新機能はWorkersが先行(もしくはWorkers限定)で提供される。Secrets…

SvelteKit移行リファレンスにWebMCPツールを実装する

AIエージェントが「Svelte 5での useEffect 相当は?」と質問するとします。現状では2つの方法があります。ページのHTMLをスクレイピングしてパースするか、 api/data.json を取得して100以上の項目からコンテキスト内でフィルタリングするか。どちらも動作しますが、トークンの無駄遣いです。 WebMCP を使えば、AIエージェントに第3の選択肢が生まれます。 get_svelte_equivalent({ framework: 'react', concept: 'Side Effects' }) を呼び出すだけで、構造化された回答が直接返ってきます。データは同じ。インターフェースがエージェント向けに最適化されています。 WebMCPとは WebMCPは W3Cコミュニティグループのドラフト で、ブラウザに navigator.modelContext…

Svelte 5への移行:インタラクティブリファレンスガイド

同じ気持ちの方はいませんか? React(またはVue、Angular)で何年もプロダクションコードを書き、依存配列と格闘し、バニラJSライブラリをフレームワーク固有のアダプターでラップし、 node_modules がアプリ本体より重いことに疑問を感じている。そんなとき、Svelte 5のrunes — $state 、 $derived 、 $effect — を知って、何かがピンとくる。試してみたいけど、移行の道筋が見えない。 そのギャップを埋めるために作ったのが svelte.cogley.jp です。 svelte.cogley.jp とは React、Vue、AngularからSvelte…

Learners of Japanese: I revamped my '[goroawase](…

Learners of Japanese: I revamped my ' goroawase ' Japanese word play page to make it interactive. Check it out!

Cloudflare Pages vs Workers 2026: Updates, Pricing, Free Plan

Cloudflare is folding Pages into Workers. Pages isn't getting killed tomorrow, but all the new stuff lands on Workers only. I migrated all my Pages projects earlier this year and wrote down what tripped me up along the way. Is Cloudflare sunsetting Pages? Not exactly. On Reddit and Hacker News, people keep saying "Pages is deprecated" but that's not quite right. Kenton Varda (Workers tech lead)…

I wrote a long-form article about [data sovereign…

I wrote a long-form article about data sovereignty on my company site, after seeing some sales pitches trying to get companies to invest in 'private cloud' which means, buying servers and software. Such a setup might be needed for key infrastructure providers in Japan like TEPCO etc, but not for most mid-market companies.

Migrating 8 SvelteKit Sites to Vite 8 in a day: What We Learned

TL;DR: Vite 8's breaking changes for SvelteKit + Cloudflare Workers are small: bump @sveltejs/vite-plugin-svelte across its major (6→7), rename a few config keys ( rollupOptions → rolldownOptions , esbuild → oxc ), drop the manualChunks object form, and make sure vitest is on 4.x. Our 8-site migration took a day, builds got 10-15% faster, and nothing shipped broken. Vite 8 dropped on March 12,…

Updated 10 SvelteKit apps to [use vite 8](https:/…

Updated 10 SvelteKit apps to use vite 8 . Very quick to build, uses rolldown and lightning, can write local dev errors to console std out. Very useful and kudos to that team.

Updated [migrate to svelte](https://svelte.cogley…

Updated migrate to svelte with several improvements, including a section on Svelte Superpowers, various content updates, and links to official Svelte blog posts and other news.

Got some premium mint balm from J. Love the scent…

Got some premium mint balm from J. Love the scent and feel of it. Thanks!

Bing Webmaster Tools is just awful. You do all th…

Bing Webmaster Tools is just awful. You do all the recommendations, use IndexNow to submit, manually submit the sitemap, make sure robots.txt is not blocking, and nothing, it simply won't index you. You cannot even make a support ticket because it just loops and loops with no end. Someone needs to lay off the agentic coding crack pipe and fix it properly.

Watched a TV show with A about a guy who shelters…

Watched a TV show with A about a guy who shelters bitey dangerous dogs that people can’t take care of. Half were Shiba!

Got some made-in-Japan [Shoes Like Pottery](https…

Got some made-in-Japan Shoes Like Pottery shoes, which are super comfy. They are flat, with a grippy tread-less sole, and already feel like I have had them for a while. Great!

J brought Matterhorn choco and K brought homemade…

J brought Matterhorn choco and K brought homemade cookies and bread, we're blessed!