Archive

Posts

All posts, newest first.

oMLX

oMLX models on an external SSD, backed up with Kopia

Moving oMLX's model library to an external SSD on a Mac mini, then letting Kopia take hourly deduplicated snapshots to a second drive — so 36 GB of local models restore in minutes instead of hours of re-downloading.

5 min read 2026-10-06
Claude Code

Self-hosted memory for Claude Code with mem0

Wiring Claude Code to a fully local memory stack: oMLX serves the LLM and embeddings, pgvector stores the vectors, and the open-source mem0 MCP server glues it together over SSE.

5 min read 2026-10-01
Process

Scaffolding before you ship

A 20-minute primer on getting a static site from blank directory to something worth iterating on.

2 min read 2026-08-05
git

Use git reflog to restore reset commit

1. This assuming your are not yet run "git gc" ( garbage collector), so all the dangling commits are still available. 2. Run the "git reflog" command (reflog starnds for reference log). This will list of series of history commits with short commit messages and…

1 min read 2015-05-31
git

Just another successful Git Branching Model for flexible sprint cycle

1. Workflow description Before going into explanation and definitions of different branches, we want to provide a global description of the work flow first. The workflow involves not only different branches but also different roles of people, different roles of testing servers. I assume that…

11 min read 2014-07-08
Project Management

Use Drupal as a direct project prototype and project management tool

The reason for this is that, I need write many detailed specs including content type definition and taxonomy term definition. And all the these specified need validated by customer. Often times, we need got customer to update or give feedback on certain kinds of questions;…

1 min read 2012-12-08
News, Stories, Opinons and Reviews

My experience with eZ Systems

It turns out it was a totally bad experience. From the very beginning, they hide some facts for me during the negotiation of my job, for example, eZ right now has very high and restrict quarterly financial targets, but they told me for China office,…

7 min read 2012-12-02
News, Stories, Opinons and Reviews

Reinvent

Those who do not understand Unix are condemned to reinvent it, poorly - Henry Spencer

1 min read 2012-09-09
HTML5

HTML 5 the language that one should learn about

It allows the user support with the latest and the best features in multimedia making the interface easy to handle for many of us. It is made very easy so that many of us can develop web applications and web content easily. It is the…

2 min read 2012-09-06
php

Use 127.0.0.1 instead of localhost on Zend Server

When install some system on Zend Server locally, such as Magento, sometimes, you need change the database server name from "localhost" to "127.0.0.1". It is just a note written as a record for future reference.

1 min read 2012-08-27
eZ Publish

Drupal 8 and eZ Publish 5 and Symfony

Core Drupal: Very minimum core, need many many third party modules support for building even basic sites. eZ: Many features out of the boxes, for basic portals or document management need none or few additional extensions support. Drupal: up-to current still not 100% OOP code.…

5 min read 2012-07-20
Redis

Redis Internals

Everything in Redis is ultimately represented as a string. Even collections like lists, sets, sorted sets, and maps are composed of strings. Redis defines a special structure, which it calls simple dynamic string or SDS. This structure consists of three parts, namely: - buff —…

2 min read 2012-07-09
Cloud

NoSql Notes

In NoSQL stores, the create and read operations are more important than the update and delete operations, so much so that sometimes those are the only operations.

1 min read 2012-07-06
javascript

Javascript embarrassment

Nowadays, we all write javascript code using various javascript frameworks, be it Jquery, YUI, prototype or many others. One reason we use this javascript frameworks is that they provide us rich features, easy understanding code, automatic browser compatibility and sometime, langauge extended features. Some of…

2 min read 2012-07-05
News, Stories, Opinons and Reviews

For those who think English is not important

Even on the small scale, when you look at any programming organization, the programmers with the most power and influence are the ones who can write and speak in English clearly, convincingly, and comfortably. Also it helps to be tall, but you can't do anything…

1 min read 2012-01-28
HTML5

A simple markup standard for HTML5

Here is a simple HTML5 coding standard: - Always add a lang attribute on html element, e.g.: <html lang="en-US"> - No self close empty tags anymore, e.g.: wirte <br> instead of <br /> - No style attribute for rel links for css or in the…

1 min read 2011-06-05
Management

Nicknames for types of your TMs

Do you know all what each of the following nickname mean? :) - The Attacker - The Complainer - The Comic - The Descerter - The Limelight Seeker - The Moonlighter - The Not-My-Jobber - The Bleeding Heart

1 min read 2011-05-30
Management

Building team spirit

In order to build a team spirit, the following five factors are essential: 1. Open communication 2. Empowerment 3. Clear roles and responsibilities 4. An effective leader 5. A reward and accountability system for both individual team members and the entire team. For effective leadership,…

1 min read 2011-05-18
News, Stories, Opinons and Reviews

What is the best system to set up and run a web site?

Yesterday, I read a Javalobby News from dzon.com titled "5 reasons you don’t really want a jack-of-all-trades developer" (http://blog.rebeccamurphey.com/2008/08/02/web-developer-hiring-tips/). It made me think about this question again. I asked myself this question many times cause right now there are so many open source CMSes out…

2 min read 2010-03-26
News, Stories, Opinons and Reviews

I think we should trying to get to know more each other's history.

I have read/learned something on America history. And they were very enjoy experiences for me. For example, I liked The Teaching Company's TTC - History of the United States (2nd edition) very much. But, there are few people like me not a college professor would…

1 min read 2010-03-21
google

Google's customer service, what would Google do?

As I stated in this post (http://www.google.com/support/forum/p/Webmasters/thread?fid=4f7547585e75d38d00047c6d63eb05d2&hl=en), the hacker changed my alternative email address and the security question. So, the only way I can do is through the account support form (https://www.google.com/support/accounts/bin/request.py?ara=1&hl=en&contact_type=ara&ctx=ara) or the Adsense Account Recovery (https://www.google.com/adsense/support/bin/request.py?contact=account_recovery). I totally understood that "how can Google…

3 min read 2010-01-10
ezpublish

Get Start a new eZ Publish project - Part II

In the part I (/posts/2009-11-29-get-start-a-new-ez-publish-project-part-i/), we started create the siteaccesses and set all the configuration values for the siteaccesses to work correctly. However, there are still other things to do, such as set up and configure the site design and svn version control tool for…

16 min read 2009-12-01
php

Get Start a new eZ Publish project - Part I

In the past, I wrote a post (/posts/2009-01-30-a-brief-summary-on-starting-an-ez-publish-projects-or-before-starting/) briefly introduced the eZ Publish CMS. In these two series post, I will get into the technical details on how to actually start a new eZ Publish project. We are going to set up a starting point…

13 min read 2009-11-29
News, Stories, Opinons and Reviews

Google Wave, got in

Recently, I received a friend's invitation to Google Wave. This means, I will have the opportunity to invite others too. So, if you are interested, just send me a message, I will put you in my Nomination List ( I have 5 spots left )…

1 min read 2009-11-27
News, Stories, Opinons and Reviews

KPMRS - A new SEO tool, pretty good

Is today’s analytical service becoming more complex with irrelevant data? Here comes the pertinent solution entitled KPMRS.com, which is accomplished with packaged data and allows for the fundamental analysis of the performance of any website. It is a very ideal, rapid and useful keyword monitoring…

1 min read 2009-09-09
Proxy

FreeGate, OpenVPN and Tor

For us in China these days, access internet is a tedious chore given the major web sites are blocked including Facebook, Twitter, Youtube and the popular Online TV network, TVU network. GFW (So called ""Great Fire Wall") and the possible "Green Dam" in the future,…

4 min read 2009-09-06
ideas

Define success, just to refresh your & my mind

Everybody want it, but few people actually get it. Sucess, is a such troublesome word: when it is ambiguous, it makes me frustration, just to image only after a long time of hard work, you suddenly start to doubt that what you were doing isn't…

4 min read 2009-06-07
php

A brief summary on Starting an eZ Publish project or before starting

Introduction Every Object is an instance of a class, and every Object can has different looks on different pages on the website. For example, an "an interesting story" article object of the Article class can display on the Home page, Listinig Page and its own…

10 min read 2009-01-30
Zend Framework

Review, php|architect's Guide to Programming with Zend Framework

The zend.com are initiating a beta certification program on Zend Framework. I received an email informed me that I could get a 50% discount on the exam fee and a free study guide if I schedule and attention the exam before the end of this…

3 min read 2008-07-27
blogging

Use Writer, the online Darkroom version!

As a blogger, you probably already knew Darkroom, a minimalist full-screen text editor( inspired by the WriteRoom a similar processor offer on Mac OS). What's good about Darkroom is that it forces your focus your writing content and nothing else. It has no window caption…

3 min read 2008-05-31
php

Learn to Design Web Themes and Templates with New Wiki

ThemesWiki.org is a new website designed to provide users with comprehensive, free guides for designing Web Themes and Templates. This site intends to ease the web design process by providing tutorials for a large number of systems at a common location. It is often difficult…

2 min read 2008-05-23
News, Stories, Opinons and Reviews

Emergency Aid for Chinese Earthquake: Need 2,6 million Tents right now!

The local province government says there are total 2,6 million Tents needed in all regions affected by the earthquake. Google China Adsense team are calling for all the Adsense publisher to put this Emergency Aid message on their websites. It seems the local government has…

1 min read 2008-05-17
WordPress

WordPress problem: Url encoding on Tag's slug.

When you define or assign tags in WordPress, here is what WordPress does: 1. Every tag must have a name. 2. Every tag must have a slug, the url of the tag. 3. By default, WordPress will automatically generate the tag slug based on the…

3 min read 2008-05-11
php

Curl better than simplexml_load_file when web screen scrapping

As in my previous post, I briefly introduced how you can use SimpleXML object to load various web services' API query urls, if you so choose to mashup a website with data provided by the various websites, such as YouTube and Amazon. Of course, the…

5 min read 2008-05-02
php

How to use SimpleXML parsing XML data with namespace and CDATA

There are many social network websites (e.g. YouTube) and big brand websites(e.g. Amazon, Yahoo) use REST or SOAP or even RSS web services to provide the enormous data for developers. Using these data, we can build a website virtually with no own database at all,…

3 min read 2008-04-19
php

Zend PHP5 certification Exam study review 12: supplementary III

What three special methods can be used to perform special logic in the event a particular accessed method or member variable is not found? \_\_get($name) \_\_set($set, $val) \_\_call($method, $args) \_\_get() and \_\_set() are called when accessing or assigning an undefined object property, while \_\_call() is…

4 min read 2008-01-26
php

Zend PHP5 certification Exam study review 11: supplementary II

You can determine if you can seek an arbitrary stream in PHP with the stream\_get\_meta\_data() function The $params 'notification' context variable allows you to define a callback for the stream that will notify your script of certain events during the course of the transaction. The…

4 min read 2008-01-24
php

Zend PHP5 certification Exam study review 10: Supplementary I

.Single line comments are ended by either the newline character or a closing PHP tag, so a single like comment like: // This tag ? can end PHP code Can have unintended output. Strings: PHP has a large collection of built in functions to handle…

9 min read 2008-01-22
php

Zend PHP5 certification Exam study review 9: OOP Design&Theory

Design Pattern Theory Design Patterns - Some time ago people realized that we were solving the same problems again and again, they then decided to sit down and come up with really good solutions to those problems, they’re called design patterns. The advantages of design…

5 min read 2008-01-20
php

Zend PHP5 certification Exam study review 8: OOP In PHP 5

Prior to PHP5 OOP was a hack on top of the array implementation. PHP5 Changed everything, in a great way. Objects are treated differently from other types of variables. An object is always passed by reference (in reality, it is passed by handle, but for…

11 min read 2008-01-18
php

Zend PHP5 certification Exam study review 7: PHP4 And PHP5

PHP language construct The "exact" definition for "Language Construct". It's kind of like the "core language definition" of things such as: if (...) while (...) and so on In PHP, a handful of common things that many beginners \ THINK\ are functions are actually Language…

4 min read 2008-01-16
php

Zend PHP5 certification Exam study review 6: Security

Defense in Depth .When you plan with defense in depth, you plan for failure. Rather than internal functions assuming the data they receive is already validated or escaped, they will check and confirm. .Applications that demonstrate defense in depth are not only more resistant to…

13 min read 2008-01-14
php

Zend PHP5 certification Exam study review 5: Database and SQL

SQL-92 Although SQL is considered a “standard” language, it is somewhat limited in relation to the realworld needs of almost any application. As a result, practically every database system in existence implements its own “dialect” of SQL, while, for the most part, maintaining full compatibility…

7 min read 2008-01-12
php

Zend PHP5 certification Exam study review 3: XML & Web Service

SimpleXML Parsing XML Documents The only restraint is that the XML document must be well-formed, or SimpleXML will emit warnings and fail to parse it. Also, while the W3C has published a recommended specification for XML1.1, SimpleXML supports only version 1.0 documents. Again, SimpleXML will…

19 min read 2008-01-08
php

Zend PHP5 Certification Exam study review 2: Streams And Network

Magic constants \_\_LINE\_\_ The current line number of the file. \_\_FILE\_\_ The full path and filename of the file. If used inside an include, the name of the included file is returned. Since PHP 4.0.2, \_\_FILE\_\_ always contains an absolute path whereas in older versions…

29 min read 2008-01-06
php

Passing the Zend PHP 5 Certification Exam

Preparing the exam - Reference books and documents: There is one must-have book you need go through(maybe twice) before you take the exam, that is phparchitect's " php|architect's Zend PHP 5 Certification Study Guide (http://www.amazon.com/gp/product/0973862149?ie=UTF8&tag=rethwe-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0973862149)! (http://www.assoc-amazon.com/e/ir?t=rethwe-20&l=as2&o=1&a=0973862149)". I can't say this book is very useful to…

5 min read 2008-01-02
News, Stories, Opinons and Reviews

Google Reader ruined family Christmas Eve dinner.

The article said that Google "orchestrate" its own Facebook-Beacon-esue fiasco(recently, facebook.com has similar user privacy issues which share user's purchasing information in the public (http://www.webpronews.com/insiderreports/2007/11/30/facebook-signals-changes-with-beacon)). There is actually A Google Reader user posted complaint in Google Groups because due to this feature, it actually ruined…

2 min read 2007-12-28
News, Stories, Opinons and Reviews

Contact

If you have any questions regarding to this site, you are welcome to shoot a message to me. I will try my best replying every message I receive. %%wpcontactform%%

1 min read 2007-11-08
News, Stories, Opinons and Reviews

Wikipedia Fundraising: Can we make it accessible in China Manland?

Right now, the Wikimedia foundation is carry out a Fundraising Effort to, according their wish list : - Make Wikipedia available in developing countries through DVDs, books and pamphlets. - Pay for two Wikipedia Academy events in Africa. - Send three students to our annual…

1 min read 2007-11-08
WordPress

Upgrade to WordPress 2.3 with Language Switcher: Lessons learned

Actually, the process of upgrading is very simple. But, as I am running a bilingual WordPress, so there are some other things need be taken care of, besides according the official WordPress upgrade guide. First of all, I want to say, if you are also…

5 min read 2007-10-28
News, Stories, Opinons and Reviews

Strong Community Base of Bittorrent Network

This is the fastest voluntary website donation who achieve its goal I've ever seen. Despite the MPAA and RIAA's extraordinary effort on reducing copyright infringement in this field among past few years, it seems the Bittorrent community not only has not shown any weakening so…

2 min read 2007-09-21
News, Stories, Opinons and Reviews

thepiratebay: Suprnova.org Comes Back!

Anybody who now BitTorrent would acknowledge the name of suprnova; well, at least for those who have a long history of using BitTorrent the name is not strange. On my own opinion, the history of BitTorrent file sharing can be divided into to stage: Suprnova…

1 min read 2007-08-12
Safari 3

Safari 3 on windows: get an eBay warning

It's in Public Beta, meaning anyone can download and test it but it's not 100% stable. Apple claims that Safari is the fastest web browser on any platform. Safari loads pages up to 2 times faster than Internet Explorer 7 and up to 1.6 times…

3 min read 2007-06-22
php

Set up PHPEclipse, SVN and Apache on Windows.

First, you need to know that the current version of PHPEclipse 1.1.8 is not compatible with Eclipse 3.2.X yet, so you need to download and install Eclipse 3.1.X version. Second, you must first set up subversion server with Apache correctly. After I spent a long…

2 min read 2007-06-02
E-commercial

10 items or less, for Google win over Baidu in China

I think Google's sole purpose is to get into every average Chinese people's heart. And to do this, I think there are two vital important facets: the marketing and the idea. I think Google is not preferred in China, at most part, it is because…

9 min read 2007-04-21
News, Stories, Opinons and Reviews

Windows Vista SP1?

I have no actual experience on using this new operating system. But according some reports of others, besides require a wide range of users to upgrade the PCs' hardware to get them "Windows Vista Ready", the actual new experience with Vista is also not as…

3 min read 2007-04-05
News, Stories, Opinons and Reviews

About

It was back to the beginning of the 21th century when I first got touched onto the internet. I remember that when I sent my first E-mail using a webmail client, I forgot press "save" just before I sent it. Then the web page carried…

5 min read 2007-04-04
Bilingual Blog

On Bilingual Weblog I, some thoughts

Ok, I have already hear the voice of yours over the screen whisper, "what? Is that a bilingual weblog just mean a weblog provides two different language to the visitor? What is mystery of this?" Yes, to some extent, you are right, and I agree…

10 min read 2007-04-04
WordPress

On Bilingual Weblog II, how to set up a bilingual blog

But first, I want to give special thanks to the author of the Language Switcher plugin, Jennifer Hodgdon (http://poplarware.com/resume.html "Poplar ProductivityWare lead consultant") , for her patient answering my e-mails and the improvements she made into this great plugin. Actually, this article is based on…

15 min read 2007-04-04