03 2, 2010

nokia ovi 正在设置...

 看到了Nokia的新的支持软件OVI,于是下载下来试用,据说还有免费语音导航,我也可以试试GPS了,虽然驾照刚被注销……   安装过程没问题,就是连接后一直显示“正在设置...”,无论是蓝牙连接还是USB数据线连接,sync all同步所有的按钮总是出不来,其他功能也都无法使用,好像是连接根本没有成功。   不知何故。   免费导航支持新推出的使用新平台的E72,71还不行,好像是处在免费试用90天,但是我也安装出声音了,就是不知道是不是走流量的高额收费,没敢太多试验。   据说,很快就会普及到E71等机型了。   装个英文版的ovi解决了正在设置...的问题。

08 16, 2007

Movable Type 4.0

What's New in Movable Type 4

Listed below is a comprehensive list of new features that you will find in Movable Type 4.0.

Understanding Your Blogs Better

  1. A completely reinvented user interface
  2. Built in reports on blog activity
  3. Blog-style presentation of your recent content makes it easy to skim and know at a glance how your blogs are doing
  4. Customize your reports and user interface using the same MT template language that publishes your blog
  5. A customizable dashboard to display just the information each user finds valuable
  6. Smarter defaults throughout the system, offering more power with fewer configuration settings than MT 3.0
  7. Powerful listing screens with quick keyboard access keys and the ability to work with multiple selections of entries, comments, or authors
  8. Quick Filters on every listing screen let you jump to the most-frequently-accessed views of your information
  9. Built-in file manager for uploading and reusing assets like images or media files lets you keep track of all the content in your blog, not just entries
Better Publishing

  1. A powerful and simple re-sizable WYSIWYG Editor, with automatic saving of drafts of entries and templates -- never lose a half-written post again
  2. Built-in cross-blog aggregation: Publish pages that include data from some, all, or just one of your blogs
  3. The world's smartest template language, with boolean logic for choosing which content to display. ("Show me posts by 'Jane' in the category 'music' with tags 'bass NOT fish'.")
  4. Live preview shows you your entry before you publish, with full fidelity to your live blog
  5. Smart controls like auto-complete for tags, a calendar selector for scheduling future-dated entries, and a completely redone UI for selecting and creating categories
  6. Support for publishing standalone pages that automatically use blog templates and designs
  7. Better plain-text entry with built-in support for Markdown and Textile, and conversion of MS Word "smart" quotes to HTML entities
  8. Even more SEO-friendly with customizable URLs per entry, per-template, or per-page
  9. A simple integrated IDE for templates, with smart error reporting for template typos
  10. Paginated archives -- easily walk your users through posts by date or author or category
Build Real Community Sites

  1. OpenID support built in
  2. Built-in user registration
  3. Powerful profile pages for every user in your system
  4. Customizable roles and even more granular user permissions let you control exactly what users can access
  5. A ratings framework that lets users rate any item in the system -- entries, comments, and in the future even authors or entire blogs
  6. Easily reply to comments from right within the administration UI
  7. Built in per-author archives let your readers connect with the people who publish the site
  8. Automatically provision a new blog for each user who registers with the system
  9. Built-in support for integrated spam fighting and optionally displaying a CAPTCHA for comments
  10. Integrated email notifications -- let your readers know when a thread they're interested in has updated
The Most Powerful Management Tools Available

  1. A dramatically improved installation experience
  2. Cross-blog management of entries, authors, comments, and community
  3. Customizable, filterable RSS feeds for every management and listing screen in the application
  4. Built-in diagnostic tools for system configuration information and troubleshooting
  5. Blog cloning -- with one click, you can create a new blog that inherits the styles, settings, templates, and configuration of any blog in your system
  6. Full Backup and Restore -- securely archives all your entries, comments, images, files, settings, and templates for safekeeping
  7. Better import and export, with support for importing content all previous versions of Movable Type as well as other popular blogging platforms
A Reinvigorated Community

  1. Create plugins without programming -- plain-text configuration files make it easier than ever to customize MT to your needs
  2. The world's largest single audience of shared templates and themes -- the ability to reuse themes and templates from LiveJournal, Vox, and TypePad lets MT developers create themes that work on over 15 million blogs, with support for the same styles in Habari and Drupal
  3. A fully open-source GPL version of Movable Type
  4. Powerful solution packs -- all the features you want, with no unnecessary complexity
  5. A reborn MovableType.org, acting as a hub for the MT community
  6. A completely reinvented Movable Type Plugin directory, due to be released alongside MT4 -- MT invented blogging plugins and had the first plugin directory, now you can rate, rank, sort, search, and discover plugins, and learn more about their creators
  7. Support for the open source infrastructure shared with other Six Apart platforms, including Memcached support right out of the box
  8. A public subversion repository for Movable Type, featuring nightly builds of fixes and improvements to the platform
  9. An all-new community wiki that is just getting off the ground for capturing conversations and documentation for future reference by the community
  10. A single shared code base for all versions of Movable Type, meaning personal users can benefit immediately from platform improvements created for Enterprise users, or for other Six Apart platforms

08 15, 2007

Upgrading Your MT3 Templates to Movable Type 4.0

大家请暂时不要升级,我们会在后台稳定后,想办法统一为大家升级,或者提供其他简便的升级方法。


官方升级方法如下:

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.

What's New - an Overview

Here is a list of just some of the new features and enhancements made to Movable Type 4.0's templates:

  • New archive types giving publishers a greater range of the types of archives they can create including a variety of category and author archives.
  • Paginated archives allowing publishers to generate more page views, increase ad revenue and speed up publishing.
  • Consolidated archive templates preventing designers from needlessly editing multiple templates that are virtually identical - now edits can happen in one template to affect archives site-wide.
  • Restructured default blog templates to easily affect the look and feel of their entire site (not just archives) by editing fewer templates.
  • New widgets have been added to make blogs more dynamic and richer in content, such as a "Recently Uploaded Photos" widget and more.

New Archive Types

Here is a list of the archive types available in Movable Type 4.0:

  • Entry
  • Daily
  • Weekly
  • Monthly
  • Yearly
  • Author
  • Author-Daily
  • Author-Weekly
  • Author-Monthly
  • Author-Yearly
  • Category
  • Category-Daily
  • Category-Weekly
  • Category-Monthly
  • Category-Yearly
  • Page

New Archive Templates

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:

  1. Entry - default template for publishing an entry (previously individual entry archive)
  2. Entry Listing - default template for all archive lists of entries
  3. Page - default template for publishing a page (sister to Entry archive template)

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.

Upgrading Your Movable Type 3.x Templates

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.

Paginate Your Category Archives

The first thing to make the changes necessary to paginate your category archives.

  1. Navigate to the edit screen for your Date-Based Archive template. At the bottom of the page click the "Create New Archive Mapping" button.
  2. Select "Category Monthly" (or Daily, Weekly or Yearly)
  3. Click the "Add" button

Edit Your Category Archive Template

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.

  1. Edit your Category Archive template.
  2. Look for the <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.

Link to Your New Archives

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.

Create a Page Archive Template

To take advantage of Movable Type's Pages feature, you will need to create a page archive template and mapping.

  1. Create a new archive template called "Page"
  2. Copy the contents of the "Individual Entry Archive" template in to the new "Page" template
  3. At the bottom of the template click the "Create New Archive Mapping" button.
  4. Select "Page" and click "Add"
  5. Save the template
  6. Now when you create new pages, they will use this template.

You can optionally use an adapted version of the Individual Archive Template for your pages.

For the Brave at Heart

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.

07 31, 2007

blog save出错请看这里,谢谢!

如果您保存文件出错,则需要手动修改一下模板,因为我们取消scode这个输入码回复的功能,更方便大家留言,后台采用了别的方法来防止作弊。这次模板变动比较大,请大家不用更新模板,我们会在稳定后统一给大家更新模板,谢谢!

进入方法:
进入后台 -> Design菜单 -> 打开Templates  -> 右侧打开Archieve Templates -> 打开 Individual Entry Archive

查找下面的代码:

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 -->


您的模板可能含有以上一种代码,请您手动删除,重新编辑帖子即可发帖成功,如果您有其他问题,请到论坛或者直接和我们联系,谢谢!

12 12, 2006

楚水邮局

基于Gmail的信任,我认为我们可以给大家提供邮箱服务了,因为我们的服务没有特殊原因会一直为大家提供,所以可以认为是永久服务,如果有意外发生,我们也会提前和大家沟通,让大家保存所有信息。

采用了google提供的domains服务,可以为大家提供YourName@Trucy.Org的邮箱服务了。该帐户信息也可以享受google提供的其他服务内容:譬如gtalk,日历等服务,而且一般的gmail相关的插件都可以很方便的使用,pop3,smtp和gmail一样可以配置使用。

如果大家有兴趣请到论坛发帖提出需求,或给我们邮件:admin@trucy.org

譬如:

    我想要的邮箱名:cyril@trucy.org

    我想设置的密码是:****** *  (自然只能信件中使用;发帖的请求,我们会设置一个默认密码,并邮件通知你)。

 邮局登录地址:

http://gmail.trucy.org

https://www.google.com/a/trucy.org/

08 22, 2006

Pro*c编程

    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;
  }
  

Continue reading "Pro*c编程" »

06 21, 2006

毕业回首

读书的日子对我来说是如此漫长!从1985年的9月到现在2006年的6月,这差不多21年来,我都在读书!古人曾经曰过:十年寒窗苦。对我来说,这可是二十年寒窗苦啊。其实,仔细想想,这多年来也不见得有多苦,倒是老爸老妈辛苦阿。

遥想21年前,说实在的,其实也不记得什么了。只不过入学面试那天背诵的《卖炭翁》和《木兰辞》如今已然忘却,只记得当时却技惊四座,连校长都为之感叹:小小年纪,不简单啊!呵呵,现在想来,自己都觉得不可思议。

转眼就匆匆六年过去,上了初中。那时候,读的学校不是重点中学,班级也不是重点班级,但我们班在黑道上很是有名。记得有一次,我们班一个男生被人拦路打劫,当他说出他是我们班的之后,那些个打劫的居然乖乖的双手把钱奉上,还请他大人不要记小人过。人说:近朱者赤,近墨者黑。我在这班里凭着每次考试都入前五,就变得骄傲,不可一世。

风光无限的初中之后,我考入了重点高中。高中,那简直就是大海,任凭如何坚硬的石头都会被磨得圆润,光滑。在高中,我学会了把不会做的题目丢在一边,学会了虚心向别人请教问题,学会了有很多事情即使自己再努力,也有可能不成功的道理。在接连的挫折之后,我以比平时低大约50分左右的成绩考入了大学。

幸亏比较好命,虽然当初考上的不是名牌大学,但在经历大学合并之后,我的大学居然变成了浙江大学,传说中的名校。虽然没有清华北大的有名,但也是不错了。本科的四年被一个政治老师归纳为四句话:大一时不知道自己不知道,大二时知道自己不知道,大三时不知道自己知道,大四时知道自己知道。如今想来果然如此。

不知不觉地就读了硕士,在硕士还没毕业的时候就转了博士,呵呵,成了一般人眼中的第三类人。以前,我觉得“博士”是多么让人敬仰的人啊,如此高不可攀!可如今,我才发现,博士也没什么了不起的,反正一个字混,两个字混混。只不过听上去很牛就是了。这年头,听上去很牛的,又有几个是真的很牛的呢?当然,也有牛的,只不过多乎哉,不多也。

读了这多年的书,别的不多,同学多。同学是我最可宝贵的财富!如果没有他们,我想我一定不会如现在这般快乐。小学,初中,高中,本科,硕士,博士,都有我的知心好友。和他们一起的岁月,让我不觉得学习的烦闷,不觉得读书的孤寂。

读书的日子就要结束了,即将踏上工作岗位,我充满期待。

06 16, 2006

正则表达式系统教程(转)

前言

  正则表达式是烦琐的,但是强大的,学会之后的应用会让你除了提高效率外,会给你带来绝对的成就感。只要认真去阅读这些资料,加上应用的时候进行一定的参考,掌握正则表达式不是问题。

Continue reading "正则表达式系统教程(转)" »