2008年4月10日

mysql 中文支持

摘要: 修改mysql 目录下的 my.ini 把 default-character-set 全部变为gbk default-character-set=utf8 CREATE TABLE `tablename1` ( `aaa` varchar(222) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /**... 阅读全文

posted @ 2008-04-10 14:32 gwazy 阅读(268) 评论(0) 推荐(0) 编辑

2008年4月7日

ubuntu 设置自动tomcat

摘要: 安装 tomcat 就不说了,比较简单 1 sudo mv apache-tomcat-6.0.14 /usr/local/tomcat 2 vi ~/.bashrc 添加下边到末尾 export JAVA_HOME=/usr/lib/jvm/java-6-sun 3 sudo vi /etc/init.d/tomcat 拷贝下边 # Tomcat auto-st... 阅读全文

posted @ 2008-04-07 17:50 gwazy 阅读(401) 评论(0) 推荐(0) 编辑

2008年3月21日

c++ 获取最后一次文件编辑时间

摘要: CFileFind finder; CString strPath="c:\\aaaa.txt"; BOOL bWorking = finder.FindFile(strPath); if (bWorking) { ... 阅读全文

posted @ 2008-03-21 09:53 gwazy 阅读(709) 评论(0) 推荐(0) 编辑

2008年3月20日

dataGridView DataGridViewCheckBoxColumn 列的选择与反选择

摘要: 注意设置 DataGridViewCheckBoxColumn 列的TrueValue 和 FalseValue 值分别为 true,false private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (... 阅读全文

posted @ 2008-03-20 11:25 gwazy 阅读(2625) 评论(0) 推荐(0) 编辑

2008年3月19日

最近很心烦。。

摘要: 干什么都不顺。。。 阅读全文

posted @ 2008-03-19 16:56 gwazy 阅读(232) 评论(0) 推荐(0) 编辑

2008年1月29日

VC:CString用法整理(转载)

摘要: 1.CString::IsEmpty BOOL IsEmpty( ) const; 返回值:如果CString 对象的长度为0,则返回非零值;否则返回0。 说明:此成员函数用来测试一个CString 对象是否是空的。 示例: 下面的例子说明了如何使用CString::IsEmpty。 // CString::IsEmpty 示例 CString s; ASSERT( s.IsE... 阅读全文

posted @ 2008-01-29 15:31 gwazy 阅读(37093) 评论(0) 推荐(0) 编辑

2007年12月26日

asp.net ajax 提交中,暂停提交

摘要: from msdn protected void Button1_Click(object sender, EventArgs e) { System.Threading.Thread.Sleep(3000); Label1.Text = System.DateTime.Now.ToString(); } ... 阅读全文

posted @ 2007-12-26 09:54 gwazy 阅读(813) 评论(1) 推荐(0) 编辑

2007年12月25日

开机启动自动运行!

摘要: #region开机启动项 /// /// ///是否启动 ///启动值的名称 ///启动程序的路径 publicstaticvoidRunWhenStart(boolStarted,stringname,stringpath) { RegistryKeyHKLM=Registry.LocalMachine; RegistryKeyRun=H... 阅读全文

posted @ 2007-12-25 15:56 gwazy 阅读(1067) 评论(0) 推荐(0) 编辑

2007年12月18日

.3.5 DataPager 分页

摘要: 跳转到第几页 public void TemplatePagerField_OnPagerCommand(object sender, DataPagerCommandEventArgs e) { switch (e.CommandName) { ... 阅读全文

posted @ 2007-12-18 10:17 gwazy 阅读(1607) 评论(0) 推荐(0) 编辑

2007年12月15日

linq 常用的语法

摘要: //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; using System.Linq; static class Samples { static int[... 阅读全文

posted @ 2007-12-15 10:14 gwazy 阅读(361) 评论(0) 推荐(0) 编辑

2007年12月14日

linq 关联查询

摘要: 可得会在以后的实体类中能用到 using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; u... 阅读全文

posted @ 2007-12-14 09:08 gwazy 阅读(3172) 评论(1) 推荐(0) 编辑

2007年12月12日

fastreport 4.3 补丁

摘要: fastreport 4.3 对中文支持相当糟糕。。折腾我两天。今天才发现有补丁呢。。 http://www.cnblogs.com/Files/gwazy/04110903832.rar 阅读全文

posted @ 2007-12-12 17:38 gwazy 阅读(801) 评论(1) 推荐(0) 编辑

2007年12月8日

Ms rdlc 打印

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Reporting.Wi... 阅读全文

posted @ 2007-12-08 15:37 gwazy 阅读(1782) 评论(0) 推荐(0) 编辑

2007年12月3日

肩周炎自我锻炼(组图)

摘要: 最近可能是项目有点忙,得肩周炎了。。。真不爽。。 http://health.sohu.com/20050315/n224673702.shtml 阅读全文

posted @ 2007-12-03 09:08 gwazy 阅读(1128) 评论(0) 推荐(0) 编辑

2007年11月26日

堆排序算法详解

摘要: 对关键字序列42,13,91,23,24,16,05,88建堆。 阅读全文

posted @ 2007-11-26 14:29 gwazy 阅读(1823) 评论(2) 推荐(0) 编辑

2007年11月21日

红伞各版key 申请和下载

摘要: P版3个月KEY申请地址 http://www1.avira.com/de/evaluate/chip.php S版3个月KEY申请地址 http://www.avira.com/en/evaluate/vnu.php 官方网站 http://www.avira.com/en/pages/index.php C版免费版 http://dl5.avgate.net/down/wi... 阅读全文

posted @ 2007-11-21 13:14 gwazy 阅读(380) 评论(1) 推荐(0) 编辑

2007年11月20日

第一个Hibernate 程序终于测试通过了

摘要: java 好多地方都要自己配置,习惯了 vs 的东西,真是不适应。 CurUser.java package test; public class CurUser { private String Curid; private String Name; public String getCurid() { retu... 阅读全文

posted @ 2007-11-20 11:36 gwazy 阅读(389) 评论(0) 推荐(0) 编辑

2007年11月8日

jsp+mysql 数据库操作

摘要: package test; import java.sql.*; public class Conn { static String data ="jdbc:mysql://localhost/first"; static java.sql.Statement st; public static void databaseconnect() { //函数用于 连接数据... 阅读全文

posted @ 2007-11-08 18:00 gwazy 阅读(708) 评论(0) 推荐(0) 编辑

Project facet Java version 6.0 is not supported 解决办法

摘要: 最近在学java,比起.net 还有好的不适应的地方 我的机子 jdk1.5.0_06+eclipse3.2 +com.sysdeo.eclipse.tomcat_3.1.0 找了好多资料也没个解决办法。 折腾了好久终于好了。。 进入工作空间以后(启动后)先 设置完毕后,新建web 项目,一切正常。。。 阅读全文

posted @ 2007-11-08 10:29 gwazy 阅读(4769) 评论(1) 推荐(0) 编辑

2007年10月25日

东软C#编程规范

摘要: 写了好几年代码了,风格还和以前一样,写过的代码自己都不想看。在网上找了东软的,有时间自己好好看看吧。 和我一样的朋友也看看吧。。。 http://www.cnblogs.com/Files/gwazy/东软代码规范.rar 阅读全文

posted @ 2007-10-25 10:27 gwazy 阅读(618) 评论(2) 推荐(0) 编辑

2007年10月10日

c#数据运算处理时注意的

摘要: 上午做个东西,只有一运算后的结果就变了 有兴趣的朋友跟踪一下 double CurY = this.panel1.Width * 18.0 / 20.0 / 80.0 * 80.0; double Cury = this.panel1.Width * 18 / 20 / 80 * 80; 阅读全文

posted @ 2007-10-10 14:35 gwazy 阅读(307) 评论(1) 推荐(0) 编辑

2007年9月27日

验证码控件

摘要: 自定义控件部分 using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.Web... 阅读全文

posted @ 2007-09-27 16:27 gwazy 阅读(976) 评论(6) 推荐(0) 编辑

企业库2.0 使用注意的

摘要: 在 asp.net 中只需引用 Microsoft.Practices.EnterpriseLibrary.Common.dll Microsoft.Practices.EnterpriseLibrary.Data.dll 数据库操作即可正常运行。 在 winform 中 还需要引入一个Microsoft.Practices.ObjectBuilder.... 阅读全文

posted @ 2007-09-27 11:03 gwazy 阅读(219) 评论(0) 推荐(0) 编辑

2007年9月12日

Microsoft Silverlight vs 2008 相关开发下载

摘要: http://www.microsoft.com/downloads/thankyou.aspx?familyId=69540337-b619-4a47-ac27-52d8af3a7830&displayLang=en&hash=cNSKymT65ZiGJ6Eh6XIO6JmjLMeCi5%2b2y%2bwOzaHqpL6uV94BPzsQLsv3VKWWh2%2fOzvtQc0qAkyF8c... 阅读全文

posted @ 2007-09-12 11:21 gwazy 阅读(487) 评论(1) 推荐(0) 编辑

2007年8月13日

泛型学习

摘要: using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebContr... 阅读全文

posted @ 2007-08-13 13:33 gwazy 阅读(291) 评论(0) 推荐(0) 编辑

2007年8月2日

Linq 学习1

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Data;using System.Configuration;using System.Collections;using System.Linq;... 阅读全文

posted @ 2007-08-02 09:41 gwazy 阅读(259) 评论(0) 推荐(0) 编辑

2007年7月26日

CodeSmith 使用

摘要: CodeSmith 以前只是听说,用了一下还不错。适合我这种每天写垃圾代码的人 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CREATE PROCEDURE dbo.Delete/*================================... 阅读全文

posted @ 2007-07-26 18:02 gwazy 阅读(431) 评论(1) 推荐(0) 编辑

c# 进程间同步实现

摘要: 转自msdn 的。。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// This example shows how a Mutex is used to synchronize access// to a protected resource.... 阅读全文

posted @ 2007-07-26 17:42 gwazy 阅读(1070) 评论(0) 推荐(0) 编辑

2007年7月21日

C#下载大文件并实现断点续传

摘要: 转自http://5543541.qzone.qq.com/blog/23 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> System.IO.Stream iStream = null; byte[] buffer = new Byte[1... 阅读全文

posted @ 2007-07-21 11:16 gwazy 阅读(1935) 评论(1) 推荐(0) 编辑

2007年7月19日

sql 添加删除字段

摘要: sql 添加删除字段 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->use dsoaif exists (select * from syscolumns where id =object_id('Calendar_Detail') and name... 阅读全文

posted @ 2007-07-19 17:56 gwazy 阅读(2065) 评论(0) 推荐(0) 编辑

导航