升級wordpress 3.3

12/12 的 wordpress 3.3 公佈了, 到今天才來進行升級, 介面上在上面的 toolbar 有做調整, 更方便順手.

另外在媒體庫的部分也支援的 drag-drop 的拖拉方式進行檔案上傳新增. 很不錯!

使用備份來做起始化Replication-MS SQL

交易式複寫從備份初始化,而非快照集 – http://byronhu.wordpress.com/2009/09/01/%E4%BA%A4%E6%98%93%E5%BC%8F%E8%A4%87%E5%AF%AB%E5%BE%9E%E5%82%99%E4%BB%BD%E5%88%9D%E5%A7%8B%E5%8C%96%EF%BC%8C%E8%80%8C%E9%9D%9E%E5%BF%AB%E7%85%A7%E9%9B%86/

How to: Initialize a Transactional Subscriber from a Backup (Replication Transact-SQL Programming) – http://msdn.microsoft.com/en-us/library/ms147834%28v=SQL.90%29.aspx

使用AWS S3服務在wordpress中-Amazon S3 plugin for WordPress

在 wordpress 中若要 scale-out, 可以利用 aws (amazon web service)中的 s3來存放在 wordpress 的 media (媒體庫), 這個有個方便的 plugin 用來將 wordpress 的 media 存放上去(當然啦, 前提是要先申請一個 aws 的帳號), 可以在付少少的錢的狀況下, 使用這個有很大彈性的系統, 同時能兼顧存放及存取兩種應用需求.

請參考: http://tantannoodles.com/toolkit/wordpress-s3/

自訂欄位使用-客座作者設定顯示名稱

這篇文章介紹如何使用自訂欄位用來顯示客座作者的顯示名稱, http://wptw.org/guest-authors-name-with-custom-fields/

利用自訂欄位配合佈景主題(theme)的程式, 來取出自訂欄位內容, 並顯示在介面上, 方便客座作者沒有帳號時的應用.

當然, 自訂欄位也可以用在其他方面, 讓 wordpress 更有彈性, 更多方便性, 原理其實就和這篇介紹的方式一樣, 在不改動 wordpress 架構下, 可以方便地應用自訂欄位來將原來沒有的功能及使用方式加入, 十分好用!

 

 

升級wordpress3.2完成

日前於美國國慶公佈的 wordpress 3.2 因為需要 php 5.2.4 以上版本, 所以花了一些時間升級了主機, 並且也更新到 wordpress 3.2 了.

這個很棒的 wordpress 持續更新的狀況, 看起來還是比我更新網誌的進度還要快上許多呢!

相關 wordpress 3.2 更新的資料可以參考:

http://bbs.v8d8.com/zzzj/?p=892

http://osfree.tv/?p=466

http://fan.renren.it/a/bianchengyuyan/PHP/20110425/84007.html

更新php到5.2.6

為能配合這次的 wordpress 3.2 的升級, 把用很久的 php4.4.4 更新上來到 php5.2.6

wordpress 3.2  php 的最低需求是 5.2.4, 所以先升到這個版本, 花了一些時間整理掉許多不用的站台及資料庫, 並一併升級 mysql 版本. 一樣是使用 appserv 在 windows 上的環境執行, 並安裝的 eAccelerator, 用來加速 php 的執行效率.

SQL Server的Replication中的Article必須要有Primary Key

這個是朋友請我查的資料, 其實邏輯上還蠻容易的, 因為 SQL Server的Transactional Replication是參考table的primary key來進行新增刪除修改的, 若是該table沒有primary key的話, 是沒有辦法加入到publication的article裡的.

資料可以參考這裡:

http://msdn.microsoft.com/en-US/library/ms152559%28v=SQL.90%29.aspx

其中的:

Limitations on Publishing Objects

  • The maximum number of articles and columns that can be published differs by publication type. For more information, see the “Replication Objects” section of Maximum Capacity Specifications for SQL Server 2005.
  • Stored procedures, views, triggers, and user-defined functions that are defined as WITH ENCRYPTION cannot be published as part of SQL Server replication.
  • XML schema collections can be replicated but changes are not replicated after the initial snapshot.
  • Tables published for transactional replication must have a primary key. If a table is in a transactional replication publication, you cannot disable any indexes that are associated with primary key columns. These indexes are required by replication. To disable an index, you must first drop the table from the publication.
  • Bound defaults created with sp_bindefault (Transact-SQL) are not replicated (bound defaults are deprecated in favor of defaults created with the DEFAULT keyword of ALTER TABLE or CREATE TABLE).

 

上面紅字部分就是說明這個限制.