官方升级方法如下:
Movable Type 4.0 has introduced tons of new features including a completely re-envisioned templating and archiving system to make blog publishing faster in addition to making site wide design changes easier.
This document will give users an overview of some the enhancements made to Movable Type's templates and help users update their templates to take advantage of these features.
Here is a list of just some of the new features and enhancements made to Movable Type 4.0's templates:
Here is a list of the archive types available in Movable Type 4.0:
To reduce the number of templates a designer would need to edit to affect changes to their archives, the Date-Based Archive and Category Archive templates found in Movable Type 3.x, which had about 99% in common with one another, have been merged into a single template named "Entry Listing."
Here then are the three archive templates that new blogs are populated with in Movable Type 4.0:
Archive templates are mapped to archive types to determine which template publishes which archive type. Archive types are managed at the bottom of each edit template screen.
The archive pagination that is introduced by Movable Type 4.0 has shown to increase build times by at least 20%. So while Movable Type 4.0 may actually be publishing more (in regards to the number of files), publishing time overall is decreased because the size of each file being published is smaller.
Users who have upgraded from an earlier version of Movable Type can take advantage of this enhancement by making a few changes to their existing Movable Type 3.x templates.
The first thing to make the changes necessary to paginate your category archives.
Now, let's reduce the number of entries that get displayed on your Category Archive pages to decrease the time it takes to publish them.
<MTEntries> tag found in that template and change it to <MTEntries limit="auto"> or <MTEntries limit="10">Setting limit to "auto" limits the output to the number
of entries or the number of days of entries specified as the Entry
Listing Default in Entry Settings. Specifing a specific number limits
the output to that number of entries. The limit modifier is only available in the context of an archive template.
Now that your category archives do not display the entire contents for that category, you will need to provide links to the category archives. The following code will produce an index of the various months within the current category that have entries available:
<mt:ArchiveList archive_type="Category-Monthly">
<a href="<mt:ArchiveLink />"><mt:ArchiveTitle /> (<mt:ArchiveCount />)</a>
</mt:ArchiveList>
Place this code at bottom of your Category Archive template. An advanced option would be to place this code in a conditioned block of code in a sidebar template; find an example of this code in one of the sidebar templates of the MT4 default blog templates.
To take advantage of Movable Type's Pages feature, you will need to create a page archive template and mapping.
You can optionally use an adapted version of the Individual Archive Template for your pages.
Though it may be time consuming... in order to take advantage of all the new features, new archive types, new template tags, new widgets, new template strucure and more... we highly recommend using the Movable Type 4.0 default blog templates and re-implementing your site's design.
Implementing your site's design using the new blog templates will be much simpler than it was with MT3 blog templates due to the restructured templates.
1,
<p><MTSCodeInsert></MTSCodeInsert></p>
2,
<!-- Security Code Check -->
<label for="scode">Security Code:</label><br />
<input type="hidden" id="code" name="code"
value="<$MTSecurityCode$>" />
<img border="0" src="<$MTCGIPath$><$MTSecurityImage$>?
code=<$MTSecurityCode$>"><br />
<input tabindex=3 id="scode" name="scode" /><br /><br />
<!-- end of Security Code Check -->
基于Gmail的信任,我认为我们可以给大家提供邮箱服务了,因为我们的服务没有特殊原因会一直为大家提供,所以可以认为是永久服务,如果有意外发生,我们也会提前和大家沟通,让大家保存所有信息。
采用了google提供的domains服务,可以为大家提供YourName@Trucy.Org的邮箱服务了。该帐户信息也可以享受google提供的其他服务内容:譬如gtalk,日历等服务,而且一般的gmail相关的插件都可以很方便的使用,pop3,smtp和gmail一样可以配置使用。
如果大家有兴趣请到论坛发帖提出需求,或给我们邮件:admin@trucy.org
譬如:
我想要的邮箱名:cyril@trucy.org
我想设置的密码是:****** * (自然只能信件中使用;发帖的请求,我们会设置一个默认密码,并邮件通知你)。
邮局登录地址:
或
PROC是ORACLE数据库提供的编程接口之一,其应用十分的广泛,本文通过一个具体的例子,介绍PROC编程的一些经验及应注意的地方。
例子程序:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sqlda.h>
#include <sqlcpr.h>
EXEC SQL INCLUDE sqlca;
/*RELEASE_CURSOR=YES 使PROC 在执行完后释放与嵌入SQL有关资源*/
EXEC ORACLE OPTION (RELEASE_CURSOR = YES);
EXEC SQL BEGIN DECLARE SECTION;
varchar vc_user[20];
long al_empno=0;
char ac_ename[11]="";
char ac_hiredate[20]="";
double af_sal=0;
EXEC SQL VAR ac_ename IS STRING(11);
EXEC SQL VAR ac_hiredate IS STRING(20);
EXEC SQL END DECLARE SECTION;
/*错误处理函数*/
void sql_error(char *msg)
{
printf("\n%s,%ld,%s\n", msg,sqlca.sqlcode,(char *)sqlca.sqlerrm.sqlerrmc);
EXEC SQL ROLLBACK RELEASE;
exit(-1);
}
main()
{
EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE ERROR: ");
/*连接数据库*/
strcpy(vc_user.arr,"scott/tiger@DEMO");
vc_user.len=16;
exec sql connect :vc_user;
EXEC SQL DECLARE cur_emp CURSOR FOR
SELECT EMPNO, ENAME,to_char(HIREDATE,'yyyy/mm/dd hh24:mi:ss'),SAL FROM EMP;
EXEC SQL OPEN cur_emp;
while(1)
{
al_empno=0;
strcpy(ac_ename,"");
strcpy(ac_hiredate,"");
af_sal=0;
EXEC SQL FETCH cur_emp INTO :al_empno, :ac_ename:ename_ind,
:ac_hiredate:hiredate_ind, :af_sal:sal_ind;
if( sqlca.sqlcode == 1403)
{
break;
}
printf("empno=%ld,ename=%s,hiredate=%s,
sal=%lf\n",al_empno,ac_ename,ac_hiredate,af_sal);
}
EXEC SQL CLOSE cur_emp;
EXEC SQL ROLLBACK WORK RELEASE;
}
读书的日子对我来说是如此漫长!从1985年的9月到现在2006年的6月,这差不多21年来,我都在读书!古人曾经曰过:十年寒窗苦。对我来说,这可是二十年寒窗苦啊。其实,仔细想想,这多年来也不见得有多苦,倒是老爸老妈辛苦阿。
遥想21年前,说实在的,其实也不记得什么了。只不过入学面试那天背诵的《卖炭翁》和《木兰辞》如今已然忘却,只记得当时却技惊四座,连校长都为之感叹:小小年纪,不简单啊!呵呵,现在想来,自己都觉得不可思议。
转眼就匆匆六年过去,上了初中。那时候,读的学校不是重点中学,班级也不是重点班级,但我们班在黑道上很是有名。记得有一次,我们班一个男生被人拦路打劫,当他说出他是我们班的之后,那些个打劫的居然乖乖的双手把钱奉上,还请他大人不要记小人过。人说:近朱者赤,近墨者黑。我在这班里凭着每次考试都入前五,就变得骄傲,不可一世。
风光无限的初中之后,我考入了重点高中。高中,那简直就是大海,任凭如何坚硬的石头都会被磨得圆润,光滑。在高中,我学会了把不会做的题目丢在一边,学会了虚心向别人请教问题,学会了有很多事情即使自己再努力,也有可能不成功的道理。在接连的挫折之后,我以比平时低大约50分左右的成绩考入了大学。
幸亏比较好命,虽然当初考上的不是名牌大学,但在经历大学合并之后,我的大学居然变成了浙江大学,传说中的名校。虽然没有清华北大的有名,但也是不错了。本科的四年被一个政治老师归纳为四句话:大一时不知道自己不知道,大二时知道自己不知道,大三时不知道自己知道,大四时知道自己知道。如今想来果然如此。
不知不觉地就读了硕士,在硕士还没毕业的时候就转了博士,呵呵,成了一般人眼中的第三类人。以前,我觉得“博士”是多么让人敬仰的人啊,如此高不可攀!可如今,我才发现,博士也没什么了不起的,反正一个字混,两个字混混。只不过听上去很牛就是了。这年头,听上去很牛的,又有几个是真的很牛的呢?当然,也有牛的,只不过多乎哉,不多也。
读了这多年的书,别的不多,同学多。同学是我最可宝贵的财富!如果没有他们,我想我一定不会如现在这般快乐。小学,初中,高中,本科,硕士,博士,都有我的知心好友。和他们一起的岁月,让我不觉得学习的烦闷,不觉得读书的孤寂。
读书的日子就要结束了,即将踏上工作岗位,我充满期待。