Googler

两情相悦,又岂在朝朝暮暮。

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页

2011年5月31日

DbUtility

摘要: public static void BackupSQLServerDB(string connectionString, string backupPath) { using (SqlConnection conn = new SqlConnection(connectionString)) { //string sql = "use master;backup database " + conn.Database + " to disk='" + backupPath + "'"; string sql = &qu 阅读全文

posted @ 2011-05-31 19:41 RockyLOMO 阅读(1538) 评论(0) 推荐(0) 编辑

2011年5月23日

C# SkipList

摘要: SkipListSkipListNode /// <summary> /// Represents a node in a SkipList. A SkipListNode has a Height and a set of neighboring /// SkipListNodes (precisely as many neighbor references as its Height, although some neighbor /// references may be null). Also, a SkipListNode contains some piece of d 阅读全文

posted @ 2011-05-23 13:19 RockyLOMO 阅读(746) 评论(0) 推荐(0) 编辑

2011年5月18日

c# 渐变算法

摘要: /// <summary> /// 渐变算法 /// </summary> /// <param name="sourceImg">位图源(物理路径)</param> /// <param name="colorHead">起点色(HTML格式)</param> /// <param name="colorTail">终点色(HTML格式)</param> /// <param name="imgPath"> 阅读全文

posted @ 2011-05-18 15:40 RockyLOMO 阅读(3067) 评论(1) 推荐(0) 编辑

2011年5月17日

DbCommand Extensions

摘要: public static DbCommand AddInParameter(this DbCommand cmd, string parameterName, object value) { DbParameter para = cmd.CreateParameter(); para.ParameterName = parameterName; para.Value = value ?? DBNull.Value; cmd.Parameters.Add(para); return cmd; } public static DbCommand AddInParameter(this DbCom 阅读全文

posted @ 2011-05-17 17:11 RockyLOMO 阅读(419) 评论(0) 推荐(0) 编辑

2011年5月8日

SetNoCache()

摘要: public static void SetNoCache() { HttpContext context = HttpContext.Current; context.Response.Buffer = true; context.Response.Charset = "gb2312"; context.Response.ContentType = "text/plain"; context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1); context.Response.Cache.SetEx 阅读全文

posted @ 2011-05-08 12:29 RockyLOMO 阅读(300) 评论(0) 推荐(0) 编辑

2011年5月7日

Graph 数据结构

摘要: NodeGraphNode /// <summary> /// Represents a node in a graph. A graph node contains some piece of data, along with a set of /// neighbors. There can be an optional cost between a graph node and each of its neighbors. /// </summary> /// <typeparam name="T">The type of data 阅读全文

posted @ 2011-05-07 21:52 RockyLOMO 阅读(532) 评论(0) 推荐(0) 编辑

2011年5月5日

SpinWait

摘要: /// <summary> /// SpinWait只有在SMP或多核CPU下才具有使用意义。在单处理器下,旋转非常浪费CPU时间,没有任何意义。 /// 自旋锁特性导致其比较适用一些轻量级,极短时间的多核cpu系统上的锁保护。 /// </summary> public struct SpinWait { public static readonly bool IsSingleProcessor; private const int yieldFrequency = 4000; private const int yieldOneFrequency = 3 * yie 阅读全文

posted @ 2011-05-05 10:00 RockyLOMO 阅读(903) 评论(0) 推荐(0) 编辑

2011年4月7日

缩略图

摘要: View Code /// <summary> /// 缩略图 /// </summary> /// <param name="srcImage">要缩略的图片</param> /// <param name="thumSize">要缩放的尺寸</param> /// <param name="mode">缩略模式</param> /// <param name="alignment">对齐方式</pa 阅读全文

posted @ 2011-04-07 18:28 RockyLOMO 阅读(322) 评论(0) 推荐(0) 编辑

2011年4月6日

asp.net 实体类赋值

摘要: View Code private const string ScriptSetFunction = "(function(o,v){o=document.getElementById(o)||document.getElementsByName(o)[0];if(o)o.value=v;return arguments.callee;})"; public static void SetHtmlPost(Page page, object entity) { StringBuilder script = new StringBuilder(ScriptSetFunctio 阅读全文

posted @ 2011-04-06 09:22 RockyLOMO 阅读(796) 评论(0) 推荐(0) 编辑

2011年4月5日

AppDiag类

摘要: AppDiag#define TRACE//#undef TRACE#define PerfMonitorusing System;using System.Diagnostics;using System.Reflection;using System.Web;using System.Threading;namespace Rocky{ public static class AppDiag { public const string DebugSymbal = "DEBUG";#if TRACE /// <summary> /// Trace Enhanc 阅读全文

posted @ 2011-04-05 16:59 RockyLOMO 阅读(315) 评论(0) 推荐(0) 编辑

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 22 下一页

导航

Apple/苹果笔记本 Mac Air MC968CH/A 行货在保 I5 11寸 超级本