Welcome to Shan’s Blog

Welcome to my blog. I’m Shan Xiao, a programmer. Here is my open notes, I write about technology, programming, open source, and anything else that comes to mind. Let’s learn and grow together. If you’re interested, here are some of my side projects : SSM, Kids Story, Resume Manager, Nathaniel Pomodoro

Daily Brainstorming : How to Evaluate Whether a New Project Is Good

I am a software engineer, and sometimes I feel like a man with a hammer seeing everything as a nail. I’ve been in this field for a long time and have often noticed that doing more doesn’t always lead to better results. The question is: how can I evaluate whether a new project is good? there are two axes to consider when selecting an project: feasibility value Feasibility is how easy it is to do the project, and value is how much value the project will deliver to the business....

January 7, 2025

New Year Holiday Reading Book 3 How to Raise a Tech Genius

Recommendation Rating: ★★☆☆☆ The best way to teach someone to learn something is by helping them experience it and solve real-world problems. However, compared to a standard curriculum, this approach requires much more skilled teachers, is harder to standardize, and therefore tends to be more expensive. For me, the good thing is that there’s a purpose in teaching kids information technology, which helps me rethink everything I do to better support my kids in using it....

December 31, 2024

New Year Holiday Reading Book 2 Design and Build Great Web Apis

Recommendation Rating: ★★★☆☆ This book has two key features: Every topic starts with the basic fundamentals(not just from software require, from basic thinking); It provides a comprehensive framework of web API It attempts to establish a system, but it lacks rigor and is quite verbose. When it comes to specific operations, it lacks detail. It can only be considered a collection of organized notes with some highlights, but it falls short of being truly good....

December 26, 2024

New Year Holiday Reading Book 1 : Business Intelligence Analytics Data Science and Ai

Recommendation Rating: ★★★☆☆ This book has a lot of information all in one place, and it’s great to flip through. Here are some things I found interesting. Business Analytics When we talk about analytics, it means we aim to understand the current situation, anticipate what might happen, and determine the actions we can take. Dimension Descriptive Predictive Prescriptive Questions What Happened? What will happen? What should I do? - What is happening?...

December 25, 2024

You Do Not Need Learn Everything in the Code

My philosophy is Learn just enough to solve your current problem and expand your understanding naturally as new challenges arise. I have a wide interest in technology, so my biggest challenge is staying focused. So, focus means choosing a field and specializing in it. Principle Understand which level is best for the current problems(Like TCP/IP, HTTP, or user-defined protocols.) The sequence to solve this problem(like sometimes the question is about the user interface, and other times the problem is about creating a more efficient algorithm) Technology Stack

December 19, 2024

How to Fix Replicate Run Error Readablestream in Nextjs

If you try to use Replicate’s Node.js client follow by model pages, like this : const output = await replicate.run("black-forest-labs/flux-schnell", { input }); console.log(output[0]); you will get result : ReadableStream { locked: false, state: 'readable', supportsBYOB: false }. You need change to : const [output] = await replicate.run(model, { input }); console.log(output.url()); More information check doc.

December 5, 2024

Can We Make a Simple Software

I wrote a system with over 800,000 lines of code, but one day I lost my passion for it. I realized it was becoming increasingly difficult to keep it maintainable. So I start think : Can We Make a Simple Software ? What is complexity Shan’s define : Complexity describes interaction and interconnectedness. When there are too many relationships between elements, it can make things challenging to manage. The most interesting part is comparing complexity and difficulty :...

December 3, 2024

Hello Accounting

My conclusion is : In some places, I mean not in big cities, the accounting business is very stable. In fact, many accounting firms don’t even want more customers because they lack the resources to serve new clients. Accounting firms in Invercargill Top accounting firms in Invercargill, New Zealand: Accounting Firm Name Employees Estimated Annual Revenue (NZD) Estimated Number of Clients Clients per Employee Revenue per Employee (NZD) Locally Owned Website BDO Invercargill 33 $3,300,000 330 10 $100,000 No bdo....

November 25, 2024

The Best Places for Camping in Invercargill

I only have a regular car, not a self-contained camping vehicle. So, there are only 5 areas closed Invercargill where I can camp for free with a tent : 1 Freedom Camping Orepuki (Monkey Island) Please make sure you follow the Government Rules. Some people say This is by far the best beach front freedom campsite in Southland. Tips : This site fills up very fast year round though, so those few spots aren’t always available or can become overcrowded What we can do :...

November 13, 2024

Reading Notes Series 1 Achieving Rapid Response Times

This is my first blog post in the Reading Notes Series. Ten years ago, Jeff Dean presented these insights at the 2014 O’Reilly Velocity Conference in Santa Clara, CA. Now, a decade later, are these tips still relevant? Let’s take a closer look. For more details, you can check out the Video or Slide-PDF. By the way, I initially planned to spend just 2 hours reading these papers and watching the video, but I think I’ll actually need a whole week (about 2 hours a day) to complete the summary....

November 12, 2024