Want Your Local MCP on the Go? Turn stdio into HTTP with FastMCP (Using Bear as an Example)

I use Bear for notes and Things for to-dos. Both have MCP servers on the Mac, and asking AI in Claude Desktop to search my notes or tidy up my to-dos works great. But as soon as I’m out and using my phone, or the web version of Claude or ChatGPT, those tools disappear. After some digging, I found the problem is how MCP connects. This post explains why that happens, and how to use FastMCP to turn an MCP that only works locally into one you can use anywhere. ...

October 25, 2026 · 7 min

Deploy an iOS App from Xcode Even When Your iPhone Is Away from Home

In the age of AI, many of us control our home computers remotely and let AI write code while we are out. Web development is easy: connect the computer to Tailscale or WireGuard, and you can open the page and debug from anywhere. Apps are different. App Store review takes days, and even TestFlight takes about half an hour before you can install a build on your phone. No matter how fast AI writes code, you get stuck here. ...

October 20, 2026 · 8 min

How to Ignore Python Warnings

While writing Python, I sometimes run into warnings that either can't be solved or don't matter much. For example, while using OpenPyxl, it kept showing me: warn("Workbook contains no default style, apply openpyxl's default"). This warning tells me that OpenPyxl will automatically apply its default style to the file I load. And how do you fix it? You open the Excel file in Office and save it again. In my case this warning doesn't matter much, because my program uses only the contents of the Excel file, and the style has no effect on it. When I see a warning, my habit is still to check and think about what's causing it. If I confirm it doesn't affect me, I'll ignore it in the code, rather than relying on the developer's memory that "this warning doesn't matter." It's not simply out of sight, out of mind. It's about building the good habit of "dealing with every warning I see." ...

March 12, 2023 · 2 min

How to Print a Progress Bar Effect in Python

A little trick I picked up a while ago while developing the checkout tool for our lab's snack corner. If you want something like a progress bar in the Terminal, that is, "print text in place and remove the old text," you can refer to this article (the same principle applies to other languages). ...

February 18, 2023 · 2 min

Why Python Prints Nothing When Piped to tee

Recently I wrote a Slack bot in Python. Being lazy, I just print the log messages directly and save them to a file with the tee command. That way I can see the bot’s activity in the console and keep the same information in a file. But when I combined Python’s print() with tee, I found that the log file often had no content, or messages that should have appeared showed up much later. After some research, I learned that Python’s print function checks where its output is going. If the output goes to a shell, it is written immediately. If it doesn’t, the output is stored in a buffer and only written out once the buffer is full. So when you use Python with tee, you run into this buffering problem, and the expected output doesn’t show up on the screen or in the file in time. ...

June 16, 2018 · 2 min

BigQuery SQL String Split

Most programmers are familiar with split. It’s one of the ten most commonly used functions in programming. BigQuery has a split function too, but since it’s SQL, the usage is quite different from general-purpose programming languages. On top of that, BigQuery comes in two versions, Standard SQL and Legacy SQL. Both have split, but they are used in completely different ways. ...

September 17, 2017 · 1 min

BigQuery Federated Google Sheets Table Access Denied Error

BigQuery lets you link a table to a Google Sheet stored in Google Drive, so the table updates right away whenever the Google Sheet changes. When you use this kind of federated table, some people run into an Access Denied error. Queries in the WebUI work fine, but when you query the table with the bq command line tool, you get the following error message: Access Denied: BigQuery BigQuery: No OAuth token with Google Drive scope was found...

September 14, 2017 · 2 min

Generating a Datetime Series in Python

In Excel, you can generate a series of consecutive dates with a simple drag. In Python, you can do something similar with the datetime and timedelta modules. Whether you want intervals of one hour, one day, or one month, you can do it. ...

July 30, 2017 · 2 min

BigQuery SQL Get First or Last Day of Month From a Specified Date

In BigQuery, if you want to get the first day from a date (or a timestamp or datetime value), for example turning “2017-05-24” into “2017-05-01”, you can call the UTC_USEC_TO_MONTH function in Legacy SQL, or DATE_TRUNC() in Standard SQL. In fact, BigQuery has a whole series of functions that do these things, getting the first day, hour, week, and so on from a date. ...

July 29, 2017 · 2 min

BigQuery SQL Get Random N Row Sampling

When doing data analysis, randomly picking N rows from a dataset (sampling) is a very common need. You might sample to check whether the data is correct, or sample so a model can be built when there is too much data to process comfortably. Sampling with SQL inside the database is actually very simple. Here I’ll demonstrate with BigQuery Standard SQL, but Legacy SQL works the same way. ...

July 28, 2017 · 1 min