oMLXMoving 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 CodeWiring 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
HugoA pragmatic walkthrough: install Hugo, scaffold a site, write three posts, and build a static bundle you can open in any browser.
2 min read
2026-09-01
EngineeringHow a small set of type and spacing tokens can hold up a whole site without ever needing a redesign.
2 min read
2026-08-20
DesignRestraint, proximity, and the case for letting a 1px border do the work of a 24px blur.
2 min read
2026-08-12
ProcessA 20-minute primer on getting a static site from blank directory to something worth iterating on.
2 min read
2026-08-05
git1. 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
git1. 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 ManagementThe 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 ReviewsIt 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 ReviewsThose who do not understand Unix are condemned to reinvent it, poorly - Henry Spencer
1 min read
2012-09-09
HTML5It 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
phpWhen 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 PublishCore 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
RedisEverything 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
CloudIn 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
javascriptNowadays, 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
UX0 min read
2012-05-14
News, Stories, Opinons and ReviewsEven 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
HTML5Here 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
cmsJust read about a new CMS: Concrete5 at www.concrete5.org:-)
1 min read
2011-06-02
ManagementDo 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
ManagementIn 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 ReviewsYesterday, 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 ReviewsI 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
googleAs 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
ezpublishIn 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
phpIn 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 ReviewsRecently, 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 ReviewsIs 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
phpJust found out the if I use PHP5.3 on windows, I can't connect to my Mysql5 server. It says my client is too old. After I switch back to PHP5.2.9, things get normal. So, it means the PHP5.3 for windows used a older version of…
1 min read
2009-09-07
ProxyFor 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
ideasEverybody 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
phpIntroduction 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 FrameworkThe 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
bloggingAs 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
phpThemesWiki.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 ReviewsThe 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
WordPressWhen 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
phpAs 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
phpThere 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
phpWhat 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
phpYou 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.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
phpDesign 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
phpPrior 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
phpPHP 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
phpDefense 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
phpSQL-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
phpForms . GET vs POST . Form Tokens . Default Values . Re-populating data .superglobal array $\_GET $\_POST When You Don’t Know How Data Is Sent $\_REQUEST filled in using data from different sources in an order specified by a setting in your php.ini(usually, EGPCS,…
8 min read
2008-01-10
phpSimpleXML 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
phpMagic 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
phpint strlen ( string $string ) string strtr ( string $str, string $from, string $to ) string strtr ( string $str, array $replace\_pairs ) int strcmp ( string $str1, string $str2 ) int strcasecmp ( string $str1, string $str2 ) Note: PHP first transparently converts…
4 min read
2008-01-04
phpPreparing 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 ReviewsThe 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 ReviewsIf 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 ReviewsRight 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
WordPressI found my tags pages came up an undefined function call error, it caught my attention. It not took me long to spot the causes (in fact, just a few seconds). The problem is that the original TypoXP reloaded theme tag/tags template pages. Since the…
1 min read
2007-11-05
WordPressActually, 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 ReviewsThis 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 ReviewsAnybody 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 3It'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
phpFirst, 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-commercialI 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 ReviewsI 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 ReviewsIt 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 BlogOk, 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
WordPressBut 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