<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>阿坤的BLOG</title><link>http://blog.csdn.net/akunshenjk/</link><description>天地生人,有一人应有一人之业;人生在世,生一日当尽一日之勤</description><dc:language>zh-CN</dc:language><lastUpdateTime>Fri, 25 Jul 2008 14:58:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>阿坤</dc:creator><title>文件按时间排序(FileInfo)</title><link>http://blog.csdn.net/akunshenjk/archive/2008/07/25/2710020.aspx</link><pubDate>Fri, 25 Jul 2008 14:55:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/07/25/2710020.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2710020.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/07/25/2710020.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2710020.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2710020</trackback:ping><description>天气超热，感冒了，体温比气温还高，随便写点东西玩玩。



言归正传，System.IO读取文件夹下的所有文件时，我们需要根据文件最后修改时间来排序，以前觉得好难；最近想通了，很简单。写了一个Demo:



using System;
using System.Data;
using System.IO;

namespace FilesSort
{
    public class Class1
    {
        /// 
        /// 读取目录
        /// 
        private string strDirectory = string.Empty;

        public Class1(string strDirectory) {
            this.strDirectory = strDirectory;
        }
        /// 
        /// 获取文件列表
        /// 
        /// 
        p&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2710020.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>其实很穷</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2599768.aspx</link><pubDate>Mon, 30 Jun 2008 22:33:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2599768.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2599768.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2599768.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2599768.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2599768</trackback:ping><description>&lt;p&gt;今天算算了，发现自己真的很穷。&lt;/p&gt;&lt;p&gt;以为工资涨了，手里的钞票会多起来；仔细一算才发现，自己还是一个穷光蛋。&lt;/p&gt;&lt;p&gt;工资到手还掉房贷，所剩已不多；日常生活费又花掉1K，还有乱78糟的开销，又要1K，剩在手里还有几个钢镚。连一个雪糕都买不到。真TM的穷。&lt;/p&gt;&lt;p&gt;菜价涨了，粮油涨了，电有涨了，连上个超市，塑料袋还有收钱了；钱，TM的都跑人家口袋去了。&lt;/p&gt;&lt;p&gt;穷就一个字。&lt;/p&gt;&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2599768.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>电涨了</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2597874.aspx</link><pubDate>Mon, 30 Jun 2008 13:04:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2597874.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2597874.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/30/2597874.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2597874.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2597874</trackback:ping><description>      今天看看QQ新闻说电价要涨了，说实话本不想说什么，但心里有些憋。

      2008年的唯一关键字--涨,

      年初雪灾造成蔬果、禽肉类价格飙升，在农贸市场最便宜的没又低于5块的。

      超市的商品偷偷摸摸的涨了，没人知晓。

     粮油也在不停的喊要涨价。

     现在终于轮到电价的了，

     下一个轮到什么呢？

     不知道，有点是知道的肯定不会轮到我们的口袋。。。。。。。
&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2597874.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>Web控件的效率测试</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/24/2582786.aspx</link><pubDate>Tue, 24 Jun 2008 17:19:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/24/2582786.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2582786.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/24/2582786.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2582786.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2582786</trackback:ping><description>引言：微软在推出asp.net的同时，推出了很多附带的web控件；这些丰富的控件使得我们很容易实现一些在asp里比较难实现的效果，使得我们的开发变得很轻松，也吸引了很多初学者。但是视乎很少人考虑过web控件的执行效率，今天我们已Repeater 控件为例来测试一下Web控件的执行效率。&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2582786.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>Ajax有条件的跨域访问</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539798.aspx</link><pubDate>Thu, 12 Jun 2008 14:47:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539798.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2539798.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539798.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2539798.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2539798</trackback:ping><description>有网友说通过Iframe等一系列操作能实现Ajax的跨域操作，可惜我都没测试成功，可能我太笨了，先敲下自己。

前不久帮人搞sina的股票实时图，我去查看了sina的源代码，顺便扣了下来，经自己的改造成了如下形式：

if(document.getElementById('MyScript')){                    document.body.removeChild(document.getElementById('MyScript'));                }                var element = document.createElement("script");                element.id='MyScript';                element.type = "text/javascript";                        element.charset = "gb2312";                                if(typeid==0){&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2539798.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>老外写的一个javascript下Date格式化函数</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539638.aspx</link><pubDate>Thu, 12 Jun 2008 14:15:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539638.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2539638.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539638.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2539638.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2539638</trackback:ping><description>Date.prototype.format = function(mask) {
	var d = this;
	var zeroize = function (value, length) {
		if (!length) length = 2;
		value = String(value);
		for (var i = 0, zeros = ''; i  99) m = Math.round(m / 10);
					return zeroize(m);
			case 'tt':	return d.getHours() &lt; 12 ? 'am' : 'pm';
			case 'TT':	return d.getHours() &lt; 12 ? 'AM' : 'PM';
			case 'Z':	return d.toUTCString().match(/[A-Z]+$/);
			// Return quoted strings with the surrounding quotes removed
			default:	return $0.substr&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2539638.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>基于AjaxPro的javascript 数据绑定控件GridView(2.01版)</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539590.aspx</link><pubDate>Thu, 12 Jun 2008 14:08:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539590.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2539590.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/12/2539590.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2539590.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2539590</trackback:ping><description>去年写了一个javascript 的GridView,基本满足当时的需求，最近需求变了，需要对GridView进行升级了。

/*---------------------------------------------------------- *  JavaScript GridView create by Shenjk *  it's use to JavaScript DataSet Bind *  Author: shenjk *  Date:   2007-06-27 *  Modify: 2008-06-12 *	Version:2.01 *-----------------------------------------------------------*/  /*--------------------------------------------------  * Class:       GridView  * @Parameter:  container   控件容器  * @Parameter:  datasource  数据源(类型为DataTabl&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2539590.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>SQLite Helper类</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/10/2531550.aspx</link><pubDate>Tue, 10 Jun 2008 15:27:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/10/2531550.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2531550.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/10/2531550.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2531550.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2531550</trackback:ping><description>SQLite是一个开源数据库，现在已变得越来越流行，它的体积很小，被广泛应用于各种不同类型的应用中。SQLite已经是世界上布署得最广泛的SQL数据库引擎，被用在无以计数的桌面电脑应用中，还有消费电子设备中，如移动电话、掌上电脑和MP3播放器等。SQLite的源码就放在公有领域（即WikiPedia的public domain)中。&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2531550.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>ubuntu使用体会</title><link>http://blog.csdn.net/akunshenjk/archive/2008/06/07/2520265.aspx</link><pubDate>Sat, 07 Jun 2008 15:02:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/06/07/2520265.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2520265.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/06/07/2520265.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2520265.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2520265</trackback:ping><description>以前玩过redhat带桌面系统的，玩得很累；一大堆命名，记不住，对着命令表，需要什么就查什么，相当的累。

最近听说ubuntu版本都到了8.04了，而且桌面系统很好很强大；于是去官方下了一个，安装。说实话，安装真的很简单，比windows安装起来方便多了。

点了几下鼠标，等了约20分钟后，系统安装完成了。进入桌面系统，还是蛮漂亮的，赞一个先。
&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2520265.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>Lucene.Net浅谈三(搜索结果排序)</title><link>http://blog.csdn.net/akunshenjk/archive/2008/04/22/2313543.aspx</link><pubDate>Tue, 22 Apr 2008 08:37:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/04/22/2313543.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2313543.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/04/22/2313543.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2313543.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313543</trackback:ping><description>在前一篇文章中，我说到了Lucene.Net的搜索结果排序问题。当时，我的想法是将DateTime 转换成float 去进行排序；初一看似乎没什么问题，想法也很好。可是最近测试人员老是报告说：排序很乱，不是按照他们的时间来排的。我就奇怪了。

仔细检查，原来是float的精度问题造成的，float精度 7位。具个例子：
&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2313543.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>ASP.NET MVC Preview 2 安装辅助工具</title><link>http://blog.csdn.net/akunshenjk/archive/2008/04/18/2303240.aspx</link><pubDate>Fri, 18 Apr 2008 10:44:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/04/18/2303240.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2303240.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/04/18/2303240.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2303240.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2303240</trackback:ping><description>运行文件AspNetMVCPreview2-setup.msi进行安装,安装完成后发现在VS2008里面并没有MVC模板出现

解决方法：

修改如下文件夹名称（x为您对应的安装盘符）：

x:\Program Files\Microsoft Visual Studio 9.0\Common7
\IDE\ItemTemplates\CSharp\Web\MVC\1033

x:\Program Files\Microsoft Visual Studio 9.0\Common7
\IDE\ItemTemplatesCache\CSharp\Web\MVC\1033

为

x:\Program Files\Microsoft Visual Studio 9.0\Common7
\IDE\ItemTemplates\CSharp\Web\MVC\2052

x:\Program Files\Microsoft Visual Studio 9.0\Common7
\IDE\ItemTemplatesCache\CSharp\Web\MVC\2052

&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2303240.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>Lucene.Net浅谈二(搜索结果排序)</title><link>http://blog.csdn.net/akunshenjk/archive/2008/04/16/2297408.aspx</link><pubDate>Wed, 16 Apr 2008 16:02:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/04/16/2297408.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2297408.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/04/16/2297408.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2297408.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2297408</trackback:ping><description> 离前一篇文章的发布时间，已经很久了，一直很忙，不得空写blog.今天抽空写一点东西，关于Lucene.Net搜索结果排序的问题。

Lucene.Net搜索结果排序的类：Sort 

构造函数:

public Sort(); 
public Sort(SortField); 
public Sort(SortField[]); 
public Sort(string); 
public Sort(string,bool); 
public Sort(string[]); 
构造函数写得比较清晰，这里就不做过多的介绍，仅提醒一句：对于需要排序的字段，编入索引的方式最好采用：UN_TOKENIZED ,否则当索引数多的时候，你就要忍受它的速度了。
&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2297408.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>基于Lucene.net开源搜索 浅谈</title><link>http://blog.csdn.net/akunshenjk/archive/2008/03/28/2226040.aspx</link><pubDate>Fri, 28 Mar 2008 15:22:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/03/28/2226040.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2226040.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/03/28/2226040.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2226040.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2226040</trackback:ping><description>Lucene.Net 创建全文搜索最核心的内容是Create Index 和 Search ,而创建索引是后面搜索的基础，因为后面的搜索是使用索引来搜索的。对于创建索引，Lucene.Net 专门提供了个类实现,其中 Lucene.Net.Index..IndexWrite 创建索引并将索引写入文件，对应的Lucene.Net.Index..IndexReader 实现从文件夹中将索引读出来，以便对索引进行修改等操作&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2226040.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>TM皮肤调色板不完全实现(4) --基本功能的实现</title><link>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114706.aspx</link><pubDate>Sat, 23 Feb 2008 10:52:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114706.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2114706.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114706.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2114706.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2114706</trackback:ping><description>滑块已经基本实现我们的要求了。 

接下来实现基本功能：

1.RGBHSV(新建一个类 CColorConvert)

头文件ColorConvert.h

// ColorConvert.h: interface for the CColorConvert class.
//
/**///////////////////////////////////////////////////////////////////////

#if !defined(AFX_COLORCONVERT_H__C06B43EE_791D_407B_ADC2_3A3EA91FE13C__INCLUDED_)
#define AFX_COLORCONVERT_H__C06B43EE_791D_407B_ADC2_3A3EA91FE13C__INCLUDED_

#if _MSC_VER &gt; 1000
#pragma once
#endif // _MSC_VER &gt; 1000
typedef struct...{
    int R;
    int G;
   &lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2114706.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>阿坤</dc:creator><title>TM皮肤调色板不完全实现(3) --滑块的完善</title><link>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114687.aspx</link><pubDate>Sat, 23 Feb 2008 10:43:00 GMT</pubDate><guid>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114687.aspx</guid><wfw:comment>http://blog.csdn.net/akunshenjk/comments/2114687.aspx</wfw:comment><comments>http://blog.csdn.net/akunshenjk/archive/2008/02/23/2114687.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/akunshenjk/comments/commentRss/2114687.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2114687</trackback:ping><description>上一篇中，滑块的基本功能已经实现了。但是外观上还不能满足我们的要求。

这里我们将主要完善滑块轨道的外观：

 

这里我们要准备三副图片 存放在/res/文件夹下，分别表示色调，饱和度和亮度

 H.gif  S.gif  B.gif

这里我采用的gif图片，而不是bmp位图；主要是色彩上gif更能满足我的要求。

我利用IPicture将这图片加载到程序中，当然还可以用GDI+实现。

自定义函数：CNewSlider::DrawBKChannel(CDC *pDc, CRect rc)
&lt;img src ="http://blog.csdn.net/akunshenjk/aggbug/2114687.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>