自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(13)
  • 资源 (4)
  • 收藏
  • 关注

原创 Lucene无法搜索数字、字母

问题描述: 被索引的文本:luxu001207的博客 当输入关键词l001或0012时,返回结果为0 当输入关键词001207可正确返回结果 为什么会出现这种情况呢? 因为Lucene对数字、字母的索引是按“单词”的概念来进行索引的,连续的字母、数字、下划线、中横线,Lucene将之当做一个单词进行索引,因此搜索的时候必须输入整个单词才能正确返回结果。

2012-10-10 13:03:13 778

原创 新浪微博Oauth2.0登录(二)

Robots、ParseJson请参考《新浪微博Oauth2.0登录(一)》 第一步,申请appKey,这里不多说,自己去看新浪的说明即可 第二步,引导用户跳转至新浪登录页(请求授权) 参考http://open.weibo.com/wiki/Oauth2/authorize的说明 string apiKey = "App Key";//申请的App Key string ap

2012-09-27 16:09:29 1204

原创 新浪微博Oauth2.0登录(一)

先贴两个类,一个是解析json的(解析json的网上有很多dll可以直接用,效果都差不多,这里是我自己写的),一个是抓取远程信息的 using System; using System.IO; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Gener

2012-09-27 15:40:21 1038

原创 swfupload 上传中文文件名乱码的解决方式(asp.net)

//碰到这个问题,网上搜了下解决方式,无果,于是自己想办法解决掉了 //我的解决方式如下 string fname = postfiles[0].FileName;//得到客户端的文件名,这里是乱码 try { byte[] bytes = Encoding.Con

2011-09-24 17:48:07 615

原创 从oracle10g将包含clob字段的数据导入oracle 9i

今天从oracle10g将包含clob字段的数据导入oracle 9i中,在网上搜到的方法是说从9i的客户端导出的bmp文件可以直接导入9i的数据库,但试了N次都没成功,最后只好自己动手写代码导,现将主要思路公布: 思路: 先生成建表的语句,然后自己写代码来实现生成i

2011-08-16 17:30:20 615

原创 javascript写的不间断向左/向右滚动的代码,图片or文字都可以

<!--//主要的滚动函数//如果滚动的效果正好是需要的效果//那么你只需要直接调用这个函数即可var moveTag=function(obj){ var _this = this; _this.speed = 10;//移动的速度 _this.space = 16 * _this.speed;//移动间隔的时间 obj.scrollLeft=0;//

2009-02-15 22:05:00 3310

原创 数据导出到excel

 using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Data;using System.Data.OleDb;//using Microsoft.Office.Interop.Excel;using Ccdodo.Common;n

2009-01-22 23:38:00 507 1

原创 asp.net在线压缩、解压缩

 using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Web;using Microsoft.Win32;using System.Runtime.InteropServices;using System.Diagnostics;us

2009-01-22 23:27:00 560 1

原创 列出指定目录下的目录/文件

 JavaScriptLab-3 BOM<!--body{margin-left:0px;margin-top:10px;margin-right:0px;margin-bottom:10px;}#div{margin-left:auto;margin-right:auto;width:96%;}#pbody{border:#88cee9 1px sol

2009-01-22 23:21:00 318

原创 发段分页代码吧,asp的

//分页函数 //psize:每页显示的数据数 //pindex:当前页码 //tbName:表名 //keyIndex:根据什么字段分页,一般是自增长类型(access数据库的自动编号) //where:查询条件 //order:排序条件,缺省为" order by " &keyIndex &" desc" //总记录数与总页数可从返回的结果集中直接

2009-01-22 23:16:00 337

原创 最近看到好多帖子说网站被注入了,就发点跟这个相关的代码吧

#region 用正则判断是否匹配特定字符 public static bool isMatch(string val, string reg) { if (val == null || val == "") return false; return new R

2009-01-22 23:12:00 634

原创 C#中文分词

using System;using System.IO;using System.Text;using System.Collections;using System.Collections.Generic;using System.Text.RegularExpressions;/* 作者:卢楚风 个人网站:www.ccdodo.com

2008-06-29 22:42:00 3171 3

原创 比较简单的拆词查询

if not object_id(KeywordTable) is null drop table KeywordTablecreate table dbo.KeywordTable(id int identity (1,1) not null,Primary key(id),num int not null default 0,keyword nvarchar(50) not null de

2008-04-09 18:02:00 1817

asp.net在线压缩/解压缩

恩,还有遍历目录的方法。<br>没资源分了,混点资源分下东西

2008-06-04

C#写的分词程序(含词典)

C#写的分词程序(含词典),仅供学习参考使用<br>

2008-06-29

asp.net 2.0分页

呃...论坛的附件也能跑这来?

2008-01-10

C#解析JSON

C#解析JSON字符串的类,现成好用的插件已经很多,这个类比较简单,仅供参考。

2014-06-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除