20080326 gzip ICSharpCode 日历控件
http://www.shengfang.org
GZip
加入ICSharpCode.SharpZipLib.dll的引用,在#Develop的安装目录下的\SharpDevelop\bin目录下。然后在程序中使用using语句把GZip类库包含进来。
由于GZip没有BZip2的简单解压缩方法,因此只能使用流方法来进行解压缩。具体的方法见程序的说明。
编译程序,然后在命令行方式下输入GZip 文件名(假设建立的C#文件是GZip,就可以生成压缩文件;输入GZip -d 文件名,就会解压出文 件来(-d是用来表示解压,你也可以使用其他的符号)。
using System;
using System.IO;
using ICSharpCode.SharpZipLib.GZip;
class MainClass
{
public static void Main(string[] args)
{
if (args[0] == "-d") { // 解压
Stream s = new GZipInputStream(File.OpenRead(args[1]));
//生成一个GZipInputStream流,用来打开压缩文件。
//因为GZipInputStream由Stream派生,所以它可以赋给Stream。
//它的构造函数的参数是一个表示要解压的压缩文件所代表的文件流
FileStream fs = File.Create(Path.GetFileNameWithoutExtension(args[1]));
//生成一个文件流,它用来生成解压文件
//可以使用System.IO.File的静态函数Create来生成文件流
int size = 2048;//指定压缩块的大小,一般为2048的倍数
byte[] writeData = new byte[size];//指定缓冲区的大小
while (true) {
size = s.Read(writeData, 0, size);//读入一个压缩块
if (size > 0) {
fs.Write(writeData, 0, size);//写入解压文件代表的文件流
} else {
break;//若读到压缩文件尾,则结束
}
}
s.Close();
} else { // 压缩
Stream s = new GZipOutputStream(File.Create(args[0] + ".gz"));
//生成一个GZipOutputStream流,用来生成压缩文件。
//因为GZipOutputStream由Stream派生,所以它可以赋给Stream。
FileStream fs = File.OpenRead(args[0]);
/生成一个文件流,它用来打开要压缩的文件
//可以使用System.IO.File的静态函数OpenRead来生成文件流
byte[] writeData = new byte[fs.Length];
//指定缓冲区的大小
fs.Read(writeData, 0, (int)fs.Length);
//读入文件
s.Write(writeData, 0, writeData.Length);
//写入压缩文件
s.Close();
//关闭文件
}
}
}
使用ICSharpCode.SharpZipLib.dll实现在线解压缩
http://blog.csdn.net/MaleLionOfWakeUp/archive/2008/03/18/2193480.aspx
http://www.dc9.cn/post/Python-gzcompress-php-net.html
总算在C#.NET,Python,Ruby上实现了php的zlib的gzcompress函数
PRB: 工具箱或菜单项是 VisualBasic IDE 中缺少
症状
当您打开 VisualBasic 项目, 您将不能查看工具箱或几项是从菜单选项丢失。
回到顶端
原因
此问题的一个可能的原因是注册表损坏。
回到顶端
解决方案
要重置为其默认设置, 选项请按照下列步骤操作:
1. 右击主菜单栏并选择 自定义 。 自定义 对话框打开。
2. 选择 工具栏 选项卡并单击 Reset 按钮。
3. 自定义 对话框保持打开, 右击要在主菜单栏 (例如, 文件、 编辑和等等), 重置, 然后选择 重置 选项所有菜单选项。
4. 关闭 自定义 对话框。
I can no longer make exe's in VB6. The Make exe item on the File menu is
grayed out. I have been creating exe files for at least a year on this
machine, but suddenly no go. I did have a few VB crashes when I was working
on creating an OCX. I'm guessing that one of these crashes caused the
problem. The only way to make an executable now is to have my project in a
project group. I can then Make Project Group and select the project that I
want. It's a pain for project groups with lots of projects, however.
http://support.microsoft.com/kb/266747/en-us
http://blog.csdn.net/kimsoft/archive/2006/05/24/753225.aspx
[2008-03-22更新]一个JavaScript WEB日历控件,支持IE6,FireFox,可支持不同语言版本,目前支持中英文
http://www.notii.com/2007/05/top-5-javascript-framework.html
Top 5 Javascript 框架
ExtJS(http://extjs.com/)和DWR( http://www.getahead.ltd.uk/dwr/)。
http://www.open-open.com/67.htm
Java开源AJAX框架
http://blog.csdn.net/cityhunter172/archive/2006/11/28/1417752.aspx
推荐兼容 IE、 FireFox 的 javascript 日历控件
http://blog.csdn.net/cityhunter172/archive/2006/11/28/1417752.aspx
http://code.google.com/p/kimsoft-jscalendar/downloads/list
http://dev.csdn.net/author/Jason009/65c69cc4e34a4ef783c45add211105e0.html
gzip压缩算法
http://ms.mblogger.cn/downmoon/posts/19951.aspx
http://hi.baidu.com/huohuoluo/blog/item/122bf562f40946dde6113a42.html
一个不错的js日期控件
http://www.cnblogs.com/xgpapa/archive/2007/08/07/846985.html
超级简单好用的JS日期控件
http://hi.baidu.com/sunweiliang/blog/item/d181d5b49b4d7c778ad4b2c5.html
js 日期控件
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=121&threadID=36592
JS日期控件
http://www.iusesvn.com/html/02/9502-2640.html
SVN总结