Lin's Blog
|
  • Zh-Tw
  • Ja
  • Posts
  • Categories
  • About

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. ...

Programming
#MCP #FastMCP #Bear #Python
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. ...

Programming
#IOS #Xcode #WireGuard
October 20, 2026 · 8 min

Same AI Model, Suddenly Dumber? Provider Differences on OpenRouter

I recently used DeepSeek V4.1 Flash on OpenRouter and ran into a frustrating problem: the same model was sometimes smart and sometimes clearly dumb. When it was dumb, it even got the tool call format wrong, or kept repeating the same step without making progress. The model name never changed, yet it felt like a different model. This made me notice something that is easy to overlook: besides choosing a model, which provider actually runs the model also affects the experience. ...

AI
#OpenRouter #OpenCode
October 19, 2026 · 3 min

OpenSearch Memory Alert Fires, Then Recovers: Is It Really Out of Memory?

I manage close to a hundred OpenSearch clusters. A while ago, the heap alert started firing, but only on a few clusters, not all of them. The alert fires when heap usage goes above 75%. On those few clusters, it would recover by itself a few minutes later, and then fire again. At first I was worried that a node was in trouble, so I checked the cluster for problems: Cluster status: Green, no unassigned shards Writes are healthy: Fluentd’s buffer was not piling up and it was not retrying constantly No OOM kills: the pod restart count did not increase, and Last State was not OOMKilled All three were fine, so I opened the heap metric. Heap usage was a sawtooth: it kept climbing, dropped, then climbed again. The alert fired right when it reached the peak, and recovered a few minutes later when it dropped. My first thought was to raise the 75% threshold. But since not every cluster fired, it did not look like a threshold problem alone. What confused me more: the other clusters had the same sawtooth, but they dropped at around 60%, while this one climbed to 80% before dropping. Was its configuration different? Was it busier and short on memory? To answer these questions, I first had to understand how the JVM reclaims memory, especially Young GC. ...

SRE
#OpenSearch #JVM #Prometheus
October 19, 2026 · 5 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." ...

Programming
#Python
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). ...

Programming
#Python
February 18, 2023 · 2 min

Year 110 (2021) NYCU CS Master's Program, Group D (Practical): Notes on the Recommendation Admission

I'm a new student who joined Group D (Practical) of the NYCU CS master's program this past July. I've been here for three months and I really like it, so I'm writing to recommend it to everyone. But I wasn't sure how to write a proper experience post, so I decided to use a Q&A format for this article. If you have any questions, feel free to leave a comment below, and I'll update the post with my replies. Here is a simple table of contents, which you can search directly: What groups does the NYCU CS master's program have?What is the department computing center? How is it different from the university computing center?The department computing center is mostly students. Does it feel like a club?Are Groups C, D, and E very experimental?What exactly does Group D do?Why did I choose Group D?What's my background? Does Group D really not care about grades?Who is Group D not suitable for?Downsides of joining Group DGroup D admission processContent of the second-stage exam for Group DWhat to note when applying to Group DWhat if I currently have a job?Reference thesis topics for Group DDoes Group D require choosing a professor?What qualifications do you need to get into Group D?I can't remember commands. Is it OK to look up man pages on the spot?Are there basic skill requirements?Do you have to use PHP to join the WWW group?Is there a lot of legacy code?Can I go on exchange?Can I graduate early?How do I prepare for the Group D recommendation admission?Other reference information?DisclaimerConflict of interest disclosure...

Life
#Graduate School #University
September 24, 2021 · 19 min

My Kindle Ebook Management Workflow

Every Kindle user probably has their own routine for managing e-books: buying books, organizing them, sending them to the Kindle reader, and backing them up. Over time, you develop a routine you're used to. At first, like most people, I used Calibre to manage my e-book files. But once I got a second Kindle reader, I started to notice many inconveniences in relying only on Calibre and transferring files to the reader over USB, such as: ...

Hardware
#Kindle #E-Books #Calibre
May 18, 2019 · 5 min

Darling, Did You Know Kindle Can Take Screenshots?

Didn't expect that, right? Kindle actually has a built-in screenshot feature. It has never appeared in any documentation. I stumbled on it by accident while looking for Kindle tips. Just tap the top-left and bottom-right corners of the screen with your finger, and the screen flashes briefly. At that point the screenshot has been taken. The file is saved on the Kindle. Connect a USB cable and you can view the screenshots on your computer. This method works the same on the Kindle, Kindle Paperwhite, and Kindle Oasis. You can take screenshots while reading, or on other screens such as Settings or the home page. ...

Hardware
#Kindle #E-Books
May 17, 2019 · 1 min

How to Turn Off Ads on a Special Offer Kindle Without Hacking It

Every time I recommend a Kindle to a friend, they hesitate on the purchase page for ages. Should they get 8GB or 32GB? Should they get the Special Offer version with ads, or the ad-free version? A $20 difference is not huge, but compared with the $129 price of the Kindle Paperwhite, it's not small either. So here's my advice, no more hesitation: buy the Kindle with ads, the Special Offer version! Why? Because Amazon quietly put an option to turn off ads in the settings page! Even if you buy the Special Offer version with ads, you can turn them off without hacking or flashing the firmware, and easily remove the ad shown on the screen when the device is off. There is also a nice bonus: from then on, pressing the power button no longer requires swiping right to unlock the screen! ...

Hardware
#Kindle #E-Books
May 17, 2019 · 2 min
Next 

Categories

All Programming AI SRE Life Hardware Software Blog Travel Web Apps Games Security
© 2026 Lin's Blog · Powered by Hugo & PaperMod