置顶随笔

[置顶]一个新的Skin

     摘要: 一个新的Skin应用此Skin方法:此Skin已经被dudu添加到博客园的Skin列表中,可以直接选用,不用在"通过CSS定制页面"中输入css代码了。选择 管理/选项/Configure 在页面的:Display Skin列表框选择:Book 选择 管理/选项/Configure 在页面的:Display Skin( 66)列表框选择:gertrude 在 Custom CSS Selector...  阅读全文

posted @ 2006-02-23 13:56 Pharaoh 阅读(1535) | 评论 (45)编辑

2009年6月11日

学习Python,编写了个网站

这段时间学习了一下python,作为练习,编写了个网站:

论坛表情即时贴

思路来源于以前编写的一个Maxthon插件:论坛表情扩展2

页面风格沿用了SkyShow影 的  "论坛表情即时贴"

 论坛表情即时贴

posted @ 2009-06-11 19:03 Pharaoh 阅读(241) | 评论 (0)编辑

2009年5月26日

将Unicode字符串转换为普通文字

     Json传输中文时为了防止乱码,通常我们会进行Unicode编码 ,如{userID:"001",nickname:"\u65e0\u8bed\u68a6" }
    下面的代码,将能完成Unicode的与普通字符的转换功能,函数是在网上找的,做个记号

 

 

private string U2CnCode(string str)
{
    Match m;
    Regex r 
= new Regex("(?<code>\\\\u[a-z0-9]{4})", RegexOptions.IgnoreCase);
    
for (m = r.Match(str); m.Success; m = m.NextMatch())
    {
        
string strValue = m.Result("${code}");   //代码
        int CharNum = Int32.Parse(strValue.Substring(24), System.Globalization.NumberStyles.HexNumber);
        
string ch = string.Format("{0}", (char)CharNum);
        str 
= str.Replace(strValue, ch);
    }
    
return str;
}

 

posted @ 2009-05-26 15:51 Pharaoh 阅读(146) | 评论 (0)编辑

2007年9月26日

测试从Mathon插件发表

测试使用BlogEx发布Blog

BlogEX Neo101 6 个月 以前 发布于 插件

扩展截图

Blogex1

描述

Description

A Blog EXtension for Maxthon.

Add posts to your blog quickly with this Maxthon Sidebar plugin!
You can now post to your blog without having to go to your blog.
Just open the sidebar, press "New article" or "blog this" (if you like to blog about the page you're currently viewing),
enter a message in the WYSIWYG editor and publish it to the web!

You can add multiple blog accounts to the plugin, view your latest posts, edit/update your latest posts,
open and save "drafts", add categories to posts and add new posts of course.


The most important changes in the BlogEX 1.1.0 release are:
- support for Blogger
- improved "articles list" layout
- made it easier to add an account
- improved performance
- fixed a lot of bugs



NOTES

This plugin uses the MetaWeblog API and the Blogger API.

Tested with:
- Wordpress
- Blogger
- LiveJournal
- Windows Live Spaces
- Typepad
- Movable Type

But other blog services might work as well if they support the MetaWeblog or Blogger API.

版本信息

Version 1.2.0 12 April 2007

- Fixed issue with Blogger and updating posts containing images
- Fixed issue with category selection
- Fixed updating post right after publishing

Version 1.2.0 RC-1 7 March 2007

- Added "Settings" panel, making settings easier to customize
- New Multi-language support
- Added Dutch translation
- Added auto save feature
- improved "Blog about this page" feature. Text selection works better, and you can select a much longer text now
- Added plugin name, version and link to support topic on the Maxthon Forum
- User settings are stored in User Account folder in Maxthon 2.0
- Collapse/Expand state in "article list" is saved
- Added option to make all BlogEX links from the sidebar open in one tab
- you can now save a draft without selection a blog first
- small interface improvements
- Fixed prompt to save changes when no changes have been made
- draft list show last-update time
- draft list is sorted by last-update
- Other small changes

posted @ 2007-09-26 10:49 Pharaoh 阅读(186) | 评论 (0)编辑

2007年7月30日

VS集成环境中的JavaScript脚本语法检查

集成在Visual Studio环境中的JavaScript脚本语法检查。
1.可以直接检验js文件,也可以检验html和aspx页面上的脚本语法。
2.集成环境中直接使用,双击定位到语法错误处。
3.支持GB2312和UTF-8格式。
配置和使用见Flash。
下载:http://pharaoh.cnblogs.googlepages.com/jslint.zip

配置中的参数如下:
"PATH\jslint_wsh.js" //Nologo "$(ItemPath)"  /ue
用自己下载的路径替换PATH。添加了引号,避免目录中有空格。


PS:此脚本也可以在UEStudio(ultraedit)集成环境下调用,配置方法见:快捷方便的对js文件进行语法检查。

posted @ 2007-07-30 14:19 Pharaoh 阅读(2475) | 评论 (22)编辑

2007年3月5日

测试用Windows Live Writer

测试用Windows Live Writer修改???

posted @ 2007-03-05 10:40 Pharaoh 阅读(145) | 评论 (0)编辑

2007年1月29日

[转]滚动条颜色生成工具。

posted @ 2007-01-29 10:59 Pharaoh 阅读(134) | 评论 (0)编辑

2007年1月10日

用资源管理器打开“打开文件”对话框的目录。

     摘要: 有时候我们希望用资源管理器打开"打开文件"对话框的当前目录,如果当前目录有子目录,可以在子目录上用右键的"打开"在资源管理器中打开目录,如果没有子目录,还要先回到上一级目录,再找到刚刚的目录打开,如果子目录比较多,找目录就比较麻烦,于是写了一个批处理文件用于解决此问题。打开"运行",输入"sendto",打开"sendto"文件夹。新建一个文本文件,改名为"用资源管理器打开.bat",输入下面的语...  阅读全文

posted @ 2007-01-10 13:08 Pharaoh 阅读(281) | 评论 (0)编辑

用Word2007发Blog的配置方法(多图)。

     摘要: 昨天刚刚配置成功,博客园也有不少人都写了配置方法,还是有人问,就截几个图介绍一下配置方法。在博客园中进入配置。 在页面的底部选中允许Web Service。记录下MetaWeblog的访问地址。 新建账户,提供商选择"其他"。 API选择:MetaWeblog。输入上面的MetaWeblog的访问地址。输入用户名和密码。 确定后就可以使用Word2007发布Blog了。但是图片不能正确上传,dud...  阅读全文

posted @ 2007-01-10 09:11 Pharaoh 阅读(253) | 评论 (0)编辑

2007年1月9日

测试Word2007

     摘要: 从word2007发布。测试图片功能  阅读全文

posted @ 2007-01-09 15:03 Pharaoh 阅读(112) | 评论 (2)编辑

2006年12月20日

用批处理写的显示磁盘剩余空间的小程序。

     摘要: 经常需要用U盘拷一点东西,往往打开了U盘文件夹后想知道U盘还剩余多少空间,需要回到U盘根目录,查看属性了解剩余空间大小,再回到刚刚的目录拷贝文件,于是写了一个批处理文件查看U盘剩余空间。安装:在运行中输入“sendto”打开“sendto”文件夹,将下载的“磁盘剩余空间.bat”文件拷贝到此文件夹中。用法:在资源管理器中右键点...  阅读全文

posted @ 2006-12-20 10:58 Pharaoh 阅读(665) | 评论 (1)编辑

导航

统计

公告

Cheap Domain Names

搜索

 

常用链接

随笔分类(34)

随笔档案(36)

积分与排名

最新评论

阅读排行榜

评论排行榜