代码改变世界

简单的,分词算法

2008-08-05 09:10 by Virus-BeautyCode, 1377 阅读, 0 推荐, 收藏, 编辑
摘要:一个简单的英文分词程序转载:http://west263.com/info/html/chengxusheji/Javajishu/20080404/57978.html在实验室接手的第一个任务,写一个英文分词程序,要将形如:Books in tuneBoxes are for Chinese-Children!断为:Book in tune Box are for Chinese child,也... 阅读全文

Get与Post的区别

2008-08-03 20:47 by Virus-BeautyCode, 848 阅读, 0 推荐, 收藏, 编辑
摘要:转载:http://blog.163.com/lizhenlong_gis@126/blog/static/3579917120085801519514/Get与Post的区别表单提交中Get和Post方式的区别有5点 1. get是从服务器上获取数据,post是向服务器传送数据。 2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在UR... 阅读全文

SQL获取所有数据库名、表名、储存过程以及参数列表

2008-08-03 14:12 by Virus-BeautyCode, 42490 阅读, 12 推荐, 收藏, 编辑
摘要:1.获取所有用户名:SELECT name FROM Sysusers where status='2' and islogin='1'islogin='1'表示帐户islogin='0'表示角色status='2'表示用户帐户status='0'表示糸统帐户2.获取所有数据库名:SELECT Name FROM Master..SysDatabases ORDER BY Name3.获取所有表名... 阅读全文

myeclipse,hibernate,不能产生sessionfactory,错误

2008-07-31 15:58 by Virus-BeautyCode, 604 阅读, 0 推荐, 收藏, 编辑
摘要:有可能是由于有些表存在外键的约束,这时候需要将这些表全部反hibernate,就是全部从表自动逆向成hibernate,这个错误就消失了。但是HQL老是提示 association references unmapped class的错误,查询错误有哪位知道为留个言,谢谢了根据错误提示,意思就是Association references unmapped class: com.virus.res... 阅读全文

mysql解决中文乱码,插入中文错误,Data too long for column 'name' at row 1

2008-07-31 14:55 by Virus-BeautyCode, 4844 阅读, 0 推荐, 收藏, 编辑
摘要:1、在导入数据前执行以下命令即可:set SESSION sql_mode='';2、 附上一个简单的sql测试代码: #drop database test_001;create database test_001 default character set utf8 collate utf8_general_ci;use test_001; create table config ( id... 阅读全文

c#,winform,z顺序,控件重叠

2008-07-31 10:20 by Virus-BeautyCode, 12844 阅读, 1 推荐, 收藏, 编辑
摘要:控件的Z顺序就是控件在绘制时候哪个在上哪个在下的顺序,就像PhotoShop里面图层顺序,Z顺序越小就在下面,如果控件区域有重叠那就会Z顺序大的遮住Z顺序小的。多个控件如果重叠的话,按照Z顺序决定如何显示,Z顺序在下的先绘制,Z顺序再上的后绘制 带到Z顺序前面就是把该控件最后绘制,它不会被其他控件覆盖掉、保证让你看得到这个控件CodeCode highlighting pro... 阅读全文

java链接mysql数据库的连接字符串

2008-07-31 09:01 by Virus-BeautyCode, 2730 阅读, 0 推荐, 收藏, 编辑
摘要:平时没有amp;就是jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK加入hibernate之后需要修改配置中的串,加上amp;转义字符jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=GBK 阅读全文

c#,winform,contextmenutrip,treeview,右键快捷菜单,定位问题,当前节点

2008-07-30 13:59 by Virus-BeautyCode, 5384 阅读, 0 推荐, 收藏, 编辑
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private void maintainLoginUserMenuItem_Click(object sender, EventArgs e) { if (... 阅读全文

识别身份证号码的省

2008-07-25 09:21 by Virus-BeautyCode, 385 阅读, 0 推荐, 收藏, 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->create function f_getcityfromcid (@cid varchar(18)) returns varchar(50) as begin declare @acity varcha... 阅读全文

mssql,检测数据库表是否存在

2008-07-21 11:06 by Virus-BeautyCode, 1008 阅读, 0 推荐, 收藏, 编辑
摘要:判断数据库表是否存在 MS SQL Server: 临时表要用下面的方法判断create table #test(name char(8))if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#test') and type='U') print '#test exists' 用户... 阅读全文

如何获得硬盘序列号

2008-07-18 14:31 by Virus-BeautyCode, 3852 阅读, 0 推荐, 收藏, 编辑
摘要:本文是我摘抄网上的东西,谢谢硬盘序列号(Serial Number)不等于卷标号(Volume Name),后者虽然很容易得到,但是格式化分区后就会重写,不可靠。遗憾的是很多朋友往往分不清这一点。 要得到硬盘的物理序列号,可以通过WMI,也就是Win32_PhysicalMedia.SerialNumber。可惜的是Windows 98/ME的WMI并不支持这个类,访问时会出现异常。 受陆... 阅读全文

c#,timer,winform,notifyicon,contextMenuStrip,定时查杀指定的进程,时间间隔可以设置,

2008-07-17 17:59 by Virus-BeautyCode, 1564 阅读, 0 推荐, 收藏, 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Syst... 阅读全文

c#,windows service,system.threading.timer

2008-07-17 17:43 by Virus-BeautyCode, 1633 阅读, 0 推荐, 收藏, 编辑
摘要:[代码] 阅读全文

SQL,不定条件查询,case,when,then,end,isnull,join,inner,on

2008-07-11 11:07 by Virus-BeautyCode, 1558 阅读, 0 推荐, 收藏, 编辑
摘要:[代码] 阅读全文

获取安装程序的目录

2008-07-10 18:18 by Virus-BeautyCode, 526 阅读, 0 推荐, 收藏, 编辑
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private string getpath() { string str = Assembly.GetExecutingAssembly().GetName().C... 阅读全文
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 36 下一页