Entries from 2025-04-01 to 1 month
This is a memo on how to measure the number of lines in a source code repository. Introduction How to Count Lines of Source Code Count Lines with a Command Count Lines with Tools Conclusion References Introduction While reading source code…
It indicates in-place operations. Introduction Underscore "_" Suffix in PyTorch Function Names Meaning Example Conclusion References Introduction When working with PyTorch, you'll often see functions with a trailing underscore _ in their n…
This is a quick note on how to change the log output level in Terraform. Introduction Outputting DEBUG-Level Logs in Terraform Setting Log Levels Separately for Terraform and Providers Appendix: Reading Terraform's Source Code Conclusion R…
You can easily do this with awk: awk '!seen[$0]++' Introduction Remove Duplicate Lines with One Command Command Breakdown Example Conclusion Reference Introduction This is a quick note on how to remove duplicate lines and show each line on…
A quick overview of the Functional Options Pattern in Go. Introduction Functional Options Pattern in Go Conclusion References Introduction While using a Go-based library, I came across the Functional Options Pattern. Here's a brief note on…
This is a memo on how to implement an MCP server using Golang. Introduction Prerequisite: Is there an official Go MCP SDK? Implementing an MCP Server in Go The Target MCP Server Implementing the MCP server in Go Implementing the Tool Imple…
This is a quick memo on how to use the Rust-based Python package & project manager, "uv". Introduction How to Use uv Installing uv Listing uv Commands Creating a Python Project Creating a Virtual Environment Adding a Python Package Checkin…
This guide summarizes how to use the MCP CLI. Introduction How to Use MCP CLI Installing MCP CLI List of MCP CLI Commands How to Use mcp run How to Use mcp dev How to Use mcp install Conclusion References Introduction MCP CLI is a tool inc…
This is a quick guide on how to use "MCP Inspector," a browser-based test tool for MCP servers. Introduction How to Use MCP Inspector Preparation: Set Up a Minimal MCP Server Launching MCP Inspector Using MCP Inspector Conclusion Reference…
Use MCP to let an LLM play Minesweeper. Introduction Playing Minesweeper via MCP Overview Starting the Minesweeper Server Building the MCP Server Connecting Claude Desktop with MCP Server Letting Claude Play Minesweeper Conclusion Referenc…
This is a quick note to connect Claude Desktop to an MCP (Model Context Protocol) server. Introduction How to Connect Claude Desktop to an MCP Server 1. Add MCP Server Information to the Config File 2. Restart Claude Desktop Conclusion Ref…