[Work Notes] Patch vs. Embedded Systems Development Notes

Recently I was assigned to work on a streaming server. Working from the original development platform, we applied patches via shell scripts to transform source files — using patches on the original source code to generate modified files, then compiling those into the required libraries or executables. At first I didn’t think much about why this approach was used, but I’ve recently started to appreciate its advantages. The original source files we need are open-source packages downloadable from the internet. To track our modifications, we use the diff command to create patch files. When we combine multiple application components together, we end up with a collection of tarballs and patch files. We then manage them with shell scripts organized into three types: ...

September 19, 2007 · 2 min · 223 words · ChenFu Kuo

Practical Daemon Implementation in Embedded Linux

For anyone working with Linux, the concept of a “Daemon” (or service) is fundamental. Daemons are background processes that operate independently of any active user session. I recently deep-dived into this topic via Devin Watson’s Linux Daemon Writing HOWTO, which provides a fantastic primer and a clear template. Building on that foundation, I refactored several processes in my current project to run as persistent background services. Below is a code snippet demonstrating the core structural requirements for a Linux daemon: ...

September 19, 2007 · 2 min · 282 words · ChenFu Kuo

Reflections on Patch Files and Embedded Systems Development

Recently, I was assigned to work on a streaming server project. On our development platform, we utilize a combination of patch files and shell scripts to manage source code. We start with the upstream source, apply modifications via patch commands, and then compile the results into the necessary shared libraries or executables. Initially, I didn’t give much thought to why we adopted this specific workflow, but lately, I’ve begun to appreciate the profound advantages of this approach. ...

September 19, 2007 · 2 min · 254 words · ChenFu Kuo

[Personal Reflections] Chang Carey

Carey was a dog that my fiancée used to own. She passed away shortly after Dragon Boat Festival… The first time I met her, she bit me! In my entire life, I’ve been bitten by two dogs. The first was named Lucky — I forget if it was middle school or elementary school — but it wasn’t particularly lucky for me. I just wanted to pet her, and she bit me. With Carey, I also just wanted to pet her, and she bit me too… though not as badly as the first time. ...

September 16, 2007 · 2 min · 288 words · ChenFu Kuo

[Financial Perspective] My Thoughts on BusinessWeek

Since high school, I used to buy computing magazines like PC DIY or gaming magazines — always chasing the latest trends: building a PC, playing games. Then, in my fourth year of university, a younger student was reading BusinessWeek, and I curiously asked why. He said he’d been reading it since high school, just out of interest, and that it offered many diverse perspectives. After that, I started buying a copy here and there — partly still following trends, I suppose. ...

September 15, 2007 · 2 min · 396 words · ChenFu Kuo

[Personal Reflections] Tension

I haven’t felt this way in a long time… I want to go home. Hide away at home… And be a willful, rebellious child again…

September 15, 2007 · 1 min · 25 words · ChenFu Kuo

[Reprinted] Our Work and Responsibility in This World

I happened to come across this article and wanted to share it with everyone. Source: http://www.drbataipei.org/wisdom/213/wisdom213_4.htm What is a person’s responsibility? It is to contribute and be of service to the entire world — to benefit all people everywhere. This is our true responsibility as human beings. Today we come together to discuss: “What does a person truly need?” and “Why do we come into this world? Is it merely to eat, dress, sleep, and enjoy ourselves?” ...

September 15, 2007 · 3 min · 595 words · ChenFu Kuo

[Work Notes] Patch Files in Linux

Creating a Patch File diff -Naur old-dir-or-file new-dir-or-file > patchfile.patch How to Apply a Patch There are two common ways to apply a patch: # Method 1 cat new-patch | patch -p0 # Method 2 patch -p0 < new-patch Understanding the -p (strip) Parameter The -p parameter specifies how many leading directory components to strip from paths in the patch file. For example, if a patch file begins with: ...

September 14, 2007 · 1 min · 205 words · ChenFu Kuo

[Work Notes] Registering ActiveX Components on Windows

Registering an ActiveX Component regsvr32 mcscal.ocx Unregistering an ActiveX Component regsvr32 /u mcscal.ocx

September 13, 2007 · 1 min · 13 words · ChenFu Kuo

[Personal Reflections] The Odd One Out

When I see that phrase, I think of the department backpack and T-shirt from university… “Wings”… Sometimes I wonder if I’m the odd one out — Not in a remarkable way, but in a quietly peculiar way… In my long search for certain answers about life, I’ve slowly drawn a few conclusions. The outline is still blurry, But a direction is taking shape. Since leaving the military, Coming to Taipei to work and to love, life is no longer as carefree as school days. On the surface, I seem composed, But beneath my behavior there’s a quiet uncertainty about the future — an unease I can’t quite name. ...

September 12, 2007 · 1 min · 188 words · ChenFu Kuo