# 缩进 # 缩进的设置 1. autoindent (ai) > Copy indent from current line when starting a new line (typing in Insert mode or when using the "o" or "O" command). If you do not type anything on the new...
分类:
其他好文 时间:
2014-08-27 13:16:38
阅读次数:
213
ALTER TABLE `tableName` ADD `updateAt` TIMESTAMP NULL ON UPDATE CURRENT_TIMESTAMP;
分类:
数据库 时间:
2014-08-27 12:48:58
阅读次数:
241
Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]"WindowSize"=dword:00170058"ScreenBufferSize"=dword:01900...
--登入数据库进行dml操作
[oracle@ora10g ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 26 13:40:37 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved....
分类:
其他好文 时间:
2014-08-26 17:19:26
阅读次数:
297
今天是在吾索实习的第35天。 最近在使用HttpContext.Current.Session来获取Session["..."]的值时,常常会弹出错误——“未将对象引用设置到对象的实例”。 所以,在网上搜索了一番,发现如下解决方法:引用:using System.Web.SessionSta...
分类:
其他好文 时间:
2014-08-26 15:24:56
阅读次数:
152
250分题:给定一个4位字符串initial和rotate这个字符串的方式,然后再给另一个字符串current,问current能否由initial通过rotate得到,需要几次rotate?简单的模拟题,把rotate模拟好就行。代码:TireRotation500分题:给定一个等式,求出这个等式...
分类:
其他好文 时间:
2014-08-26 13:10:56
阅读次数:
146
HttpCookie cookie = HttpContext.Current.Request.Cookies["__shareuser"] ?? new HttpCookie("__shareuser");//检查是否存在 __shareuser Cookie如果不存在 ,新增一个cookie.V...
分类:
其他好文 时间:
2014-08-26 09:39:55
阅读次数:
203
/** * 按照页码取值(从current_page页开始,每页page_size条) * @param key * @param params * @param current_page * @param page_size * @return */ public Paginat...
分类:
数据库 时间:
2014-08-25 20:53:54
阅读次数:
477
public void ProcessRequest(HttpContext context) { string esOIDs = System.Web.HttpContext.Current.Request["esOIDs"]; string userID=Sy...
分类:
Web程序 时间:
2014-08-25 19:12:34
阅读次数:
224
在项目中需要记录文本日志,为了加快响应速度所以用到了多线程。但是以前的方法是不支持多线程的,程序运行错误。追踪代码发现提示HttpContext为空。1.HttpContext.Current表示当前HttpRequest 对应的Context对象 httpContext.current在不同的h....
分类:
编程语言 时间:
2014-08-25 18:57:15
阅读次数:
226