使用Windows Live Writer 在你的WordPress博客上发布日志

    博客现在已经成为我们这些网络一族不可缺少的一部分了.大家都会到各个网站上写博客.大都数朋友都是直接登录博客的网站上写博客的.虽然现在的在线编辑器已经发展得很完善了,定时保存,所见即所得,插入图片,表格等功能.但大家用起依然还不是十分流畅.

    现在已经有很多可以离线写博客的软件,Windows Live Writer就是其中的绞绞者之一.

    下面由肥占向大家介绍一下 Windows Live Writer 在 WordPress 博客上写日志的方法.

    1,首先当然就是要下载 Windows Live Writer 这一个软件啦.下载地址: http://download.live.com/writer

     2,要让你的WordPress 博客支持 XML-PRC ,设置方法: WordPress后台 设置->撰写 勾选XML-PRC即可.如下图所示:
WordPress_2009-01-09_124829

    3,安装你下载回来的 Windows Live Writer.安装方法跟MSN的安装方法一样,一直点下一步即可.

    4,安装完成后,会出来一个对话框,您选择哪种日志服务?由于这里我们用的是WordPress不在前三项列表中,我们选择最后一项.如下图:
WindowsLiveWriter_2009-01-09_123931

    5,添加你的日志帐户.如下图:
WindowsLiveWriter_2009-01-09_124137

6,这里会出现自动设置日志帐户,要稍等.见下图:
WindowsLiveWriter_2009-01-09_124310

7,这一步会同现询问是否创建临时日志,点击 "是".
WindowsLiveWriter_2009-01-09_124332

8,你的设置已经完成.这里你可以更改你博客的别名.
WindowsLiveWriter_2009-01-09_124414

9,激动人心的时候开始了,你现在就可以使用 Windows Live Writer 离线写你的博客了.
WindowsLiveWriter_2009-01-09_124703

Posted in 网站应用 | 2 Comments

测试一下用Windows Live Writer 发布日志

首先是超链接 博客园博客 .

再是插入一张图片:
2009-01-09_101105

再来一段代码的.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Data.Linq;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
 
namespace LinqTest
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataClasses1DataContext ctx = new DataClasses1DataContext();
            StreamWriter sw = new StreamWriter(Server.MapPath("log.txt"), true);
            ctx.Log = sw;
 
            // add
            //Employees emp = new Employees();
            //emp.EmployeeID = 10;
            //emp.Address = "luo hu word finance center.";
            //emp.FirstName = "james";
            //emp.LastName = "wu";
            //emp.Country = "china";
            //ctx.Employees.InsertOnSubmit(emp);
 
            //update
            Employees emp = ctx.Employees.Single(eemp => eemp.EmployeeID == 10);
            emp.Address = "luo hu word finance center.";
            emp.FirstName = "sun";
            emp.LastName = "su";
            ctx.SubmitChanges();
 
            //list
            Table<Employees> Employees = ctx.GetTable<Employees>();
            GridView1.DataSource = from ee in Employees where ee.EmployeeID > 0 select new { 員工姓名 = ee.FirstName + ee.LastName, 員工ID = ee.EmployeeID, 地址 = ee.Address };
            GridView1.DataBind();
 
            sw.Close();
        }
    }
}

配置方法见: 使用Windows Live Writer 在你的WordPress博客上发布日志

Posted in 业界新闻 | Leave a comment

为wordpress的评论加上验证码

wordpress的匿名评论如果打开,那垃圾广告真是多不胜数.没办法,只好安装一个评论图形验证码插件来防止这一个问题.
插件下载地址: http://www.theblog.ca/anti-spam

效果图如下:

评论验证码

评论验证码

也可以试一下肥占博客的评论功能.

Posted in 网站应用 | 1 Comment

博客升级为WordPress 2.7

WordPress2.7新版本已经发布一个多月了,一直没有时间升级.今天晚上睡不着觉又没有什么新的东西学习.顺便就自己的博客升级了吧.
最吸引人的是官方已经支持中文了,不用再自己去找汉化包了. 中文版下载: http://cn.wordpress.org/
升级后,博客站点基本没有什么变化,变化最大是的后台,变得漂亮了,变得更易用了!以下是后台截图.

wordpress2.7后台截图

wordpress2.7后台截图

Posted in 网站应用 | Leave a comment

支付宝又出招收费了

    淘宝在我的生活中已经越来越重要了,很多东西我都会直接在淘宝上购买.这次变更的协议虽然对本人影响不大.下面是协议的内容:

关于变更《支付宝服务协议》的公告
 
 
亲爱的支付宝用户:
       自2009年1月1日零时开始,支付宝(中国)网络技术有限公司(以下称“支付宝”)对在支付宝网站上使用“我要收款”、“我要付款”功能,及通过“阿里旺旺”使用“AA收款”功能(上述功能以下统称“指定功能”),生成收款或付款交易订单,并完成收款或付款的支付宝用户,按照支付宝账户的类型提供每月5000元等金额的免费交易流量,对实际交易金额超过该免费交易流量的,收取一定比例的服务费用。具体收费细则以变更后的《支付宝服务协议》及其附件《支付宝服务收费规则》进行明确,其中主要内容包括:
        1、对于在淘宝网等支付宝商家网站上直接使用支付宝服务完成的交易,不受本次《支付宝服务协议》变更的影响,仍无需支付服务费用。
        2、支付宝用户以完成“支付宝认证”的认证账户使用指定功能完成相应交易的,在一个自然月内,该支付宝用户名下所有认证账户,可累计免费完成人民币5000(伍仟)元以内的交易流量。
        3、支付宝用户以未完成“支付宝认证”的非认证账户使用指定功能完成相应交易的,每一个非认证账户在完成“支付宝认证”前,可通过指定功能免费完成人民币500(伍佰)元的交易流量。
        4、支付宝用户直接登录支付宝网站使用指定功能,主动生成收款或付款交易订单所完成的交易金额超出以上5000元或500元的免费交易流量(以下称收费交易流量)的,超出部分需向支付宝支付超1.5%的服务费用,且单笔收费交易应支付的服务费用最低为人民币一元,最高为人民币一百元。其中,对于使用“我要收款”功能和“AA收款”功能完成收费交易流量的支付宝用户,服务费用在交易完成时直接从该支付宝用户应收取的交易款项中扣减,对于使用“我要付款”功能进行收费交易的支付宝用户,服务费用从该支付宝用户进行交易的支付宝账户余额中扣减,支付宝账户余额不足的,相应的收费交易将视为无效交易,无法完成。
       具体规则以《支付宝服务收费规则》(附件一)及《支付宝服务协议》(附件二)的约定为准。

详见官方详细说明:
http://club.alipay.com/show_thread-20—6982137-.htm?src=yy_content_index_news02

Posted in 业界新闻 | 1 Comment

asp.net连接mysql字符校对不匹配

今天升级了一个原来由Visual Studio 2002开发的一个asp.net+mysql项目,升级到.net framework 2.0后,编译没有任何错误,但居然不能运行了,提示信息如下:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT), (gb2312_chinese_ci,COERCIBLE), (gb2312_chinese_ci,COERCIBLE)

解决办法如下:
1,修改数据库/表/字段的编码.
2,执行之前加上set names latin1;
3,更改my.ini的init-connect=” latin1″(没有则加上).
4,查询时加上强制字符编码转换
   select * from table where name = ‘xxx’ COLLATE latin1_swedish_ci

Posted in ASP.NET, DataBase | Leave a comment

PowerDesigner生成PHP代码

随着团队开发的普及,使用PowerDesigner来进行UML建模的朋友已经越来越多.在默认情况下可以由模型图直接可以生成JAVA/C#/C++等多种语言代码.但并不支持 PHP.
但是PowerDesigner可以通过语法文件插件的形式实现生成其他面向对象语言的代码.PHP已经有人帮我们写好了这一个语法文件了,我们要做的工作只是把它下载回来,复制到本地目录就可以了.

我们可以从sourcegorge上下载 php.xol 文件.下载地址:http://sourceforge.net/projects/papple/

也可以直接从本站下载: http://fatjames.extjs.org.cn/files/php.xol.zip

解压 php.xol.zip 后,把php.xol文件复制到PowerDesigner的安装目录 Resource Files\Object Languages 目录下面.默认路径为: “C:\Program Files\Sybase\PowerDesigner 12\Resource Files\Object Languages” .

PowerDesigner 生成 PHP 代码

PowerDesigner 生成 PHP 代码

生成结果如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
//
// +------------------------------------------------------------------------+
// | PHP Version 5                                                          |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License,        |
// | that is available at http://www.php.net/license/3_0.txt.               |
// | If you did not receive a copy of the PHP license and are unable to     |
// | obtain it through the world-wide-web, please send a note to            |
// | license@php.net so we can mail you a copy immediately.                 |
// +------------------------------------------------------------------------+
// | Author:                                                                |
// +------------------------------------------------------------------------+
//
// $Id$
//
 
 
/**
* @author       Administrator
*/
class SurveyBus
{
 
    /**
    * @var      long
    */
    public $busId;
 
    /**
    * @var      String
    */
    public $routeNo;
 
    /**
    * @var      int
    */
    public $typeId;
 
    /**
    * @var      String
    */
    public $engName;
 
    /**
    * @var      String
    */
    public $chiName;
 
    /**
    * @var      String
    */
    public $bounds;
 
    /**
    * @var      int
    */
    public $distId;
 
    /**
    * @var      String
    */
    public $distCode;
 
    /**
    * @var      String
    */
    public $busDay;
 
    /**
    * @var      int
    */
    public $allSchNo;
 
    /**
    * @var      int
    */
    public $amSchNo;
 
    /**
    * @var      int
    */
    public $pmSchNo;
 
    /**
    * @var      Date
    */
    public $inputTime;
 
    /**
    * @var      Date
    */
    public $modifyTime;
 
    /**
    * @var      enum('yes','no')
    */
    public $delFlag;
}
 
?>
Posted in 开发工具 | Leave a comment

深圳最新地铁线路规划图(16条)

找了很久才找到的,跟大家分享一下!

原图下载地址:
http://www.rayfile.com/zh-cn/files/3082fcde-046a-11de-b53f-0014221b798a/

Posted in 生活乐事 | Tagged , | Leave a comment

Power Designer 12.5下载(Vista可用)

以前一直用Power Designer V11,前段时间换了Vista系统后,V11的版本居然不能用了,没办法,只好去sybase的官方网站下了一个最新版的V12.5.虽然只是试用版的,但感觉还是非常不错.

原版下载地址: http://download.sybase.com/eval/PowerDesigner/powerdesigner125_eval.exe

如果需要用到破解版的朋友,可以参考这篇文章.

http://www.cnblogs.com/andan/articles/1318960.html

附截图:

Posted in DataBase | 2 Comments

mysql被sun收购后第一次改版

很久没有去mysql.com了,由于工作需要今天出差到集团另一家子公司.需要将该公司现有的资源放到互联网上去.而他们内部网络采用mssql数据库,外部則用mysql,这样就需要将mssql导入到mysql中.需要用到mysql的odbc.于是就到mysql.com下载一个,一打开吓了一跳,首页居然跟原来一点都不一样了.看了很久地址栏,还以为是打错了网址呢.

新版首页截图:

Posted in 业界新闻 | Tagged | Leave a comment

eclipse GANYGEDE(3.4.1) 安装svn

  前段时间下载了个最新的pdt2.0程式,一直忙着公司的.NET系统.晚上终于有一点点时间把程序安装上了.顺便下载了一个最新的svn回来安装.发现居然不能使用,出错信息如下:

SVN: ‘0×00400006: Validate Repository Location’ operation finished with error: Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Client.
Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Client.

原来eclipse3.4开始已经不内置 SVN connector library 了,需要自己安装.解决办法如下(100%成功):

   1. Go to Help->Software Updates.
    2. Click on the “Available Software” tab.
    3. Unfold the Ganymede->Collaboration Tools node, and if your experience is like mine, you will see the “SVN Team Provider (Incubation)” item with this version identifier, “0.7.1.I20080612-1500″. What you really need (since the Subversive/Polarion team posted updates) is the version from 2008-08-01.
    4. Click on “Manage Sites…”.
    5. Uncheck the “Ganymede” checkbox (http://download.eclipse.org/releases/ganymede)
    6. Scroll down to find “http://download.eclipse.org/technology/subversive/0.7/update-site/”, select it and click “OK”.
    7. You should be back on the “Available Software” tab, with only the subversive items present. Unfold the “Subversive SVN Team Provider Plugin (Incubation)” item, and you will see the “SVN Team Provider (Incubation)” item. Note that the version identifier is “0.7.3.I20080814-1500″.
    8. Check the box, and click”install”. The install will be change to an update. Restart Eclipse at the end of the install.
    9. Go to “Help->Software Updates”.
    10. Choose the “Available Software” tab.
    11. Click the “Add Site” button, and add “http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/”.
    12. Check the SVNKit Connectors and click “Install”. Restart Eclipse at the end of the install.
    13. Subversive should be working !

    Thanks to Frank Carver and Graig Thomas

form:http://yangzb.javaeye.com/blog/237790

Posted in 开发工具 | Tagged , , | 1 Comment