代码改变世界

oracle导入excel数据

2012-10-11 10:32 by 蜡笔小旧, 168 阅读, 0 推荐, 收藏, 编辑
摘要:在plsql developer里输入select t.*, t.rowid from ckb_propertydefine t从 excel数据表中copy的数据,然后将鼠标在plsql developer的列名称上单击,最后使用快捷键ctrl + v 参考:http://blog.csdn.net/47522341/article/details/2203487 阅读全文

《正则表达式必知必会》笔记

2012-09-21 17:51 by 蜡笔小旧, 180 阅读, 0 推荐, 收藏, 编辑
摘要:1. Ben 匹配my name is Ben.2. '.'单字匹配 c.tcatcotcotton3. '\'元字符s1.xlss2.xls4. []字符集合区间, [0123456789]=[0-9]as RegEx or regex5. 非'^' 例:[^B]en6.转义符为反斜杠 '\',需要匹配'\'本身用'\\'7.空白元字符 [\b]回退 \f换页符 \n换行符 \r回车符 \t制表符 \v垂直制表符8.匹配数字与非数字元字符[0-9] = \d[^0-9] = \D9.任何一个字母数 阅读全文

[转] IIS网站自动启动

2012-09-19 17:47 by 蜡笔小旧, 347 阅读, 0 推荐, 收藏, 编辑
摘要:【英文】Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series)http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx【中文】VS 2010 和 .NET 4.0 系列之《自动启动ASP.NET应用》篇http://blog.csdn.net/wenjie315130552/article/details/6855067 阅读全文

jquery getJSON IE8 cache

2012-09-18 11:31 by 蜡笔小旧, 700 阅读, 0 推荐, 收藏, 编辑
摘要:今天用firefox调试了个统计数据代码没问题,用IE8跑发现取的数据不对,原以为是ExtJs的缓存问题,结果发现是IE缓存的问题。解决办法有两种:(1)服务端(未测试asp.net mvc):public class NoCacheAttribute : ActionFilterAttribute{ public override void OnActionExecuted(ActionExecutedContext context) { context.HttpContext.Response.Cache.SetCacheability(HttpCacheabil... 阅读全文

win7开启AHCI蓝屏

2012-08-16 09:00 by 蜡笔小旧, 232 阅读, 0 推荐, 收藏, 编辑
摘要:1.regedit->HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci下的 start->改为02.在BIOS里改成AHCI模式3.进入系统更新驱动(如win没自动安装可上官网下)相关链接:http://blog.oobeta.com/archives/2012/02/06/2273.htmlhttp://ask.zol.com.cn/q/19363.html 阅读全文

【转】windows has blocked this software because it can't verify the publisher

2012-08-07 18:29 by 蜡笔小旧, 2161 阅读, 0 推荐, 收藏, 编辑
摘要:1. Open internet explorer, click Tools – Internet Options .2. Click the Security tab – Custom Level button.Under ActiveX ensure the following are set to enabledRun ActiveX and plug-ins – EnabledDownload Signed ActiveX Control – EnabledScript ActiveX controls marked as safe for scripting – EnabledSet 阅读全文

免安装版Notepad++注册windows右键菜单

2012-07-23 19:01 by 蜡笔小旧, 1096 阅读, 0 推荐, 收藏, 编辑
摘要:REGEDIT4[HKEY_CLASSES_ROOT\*\Shell\NotePad++][HKEY_CLASSES_ROOT\*\Shell\NotePad++\Command]@="D:\\Program Files\\npp\\unicode\\notepad++.exe \"%1\"" 最后一行是绿色NOTEPAD++的位置。【转】http://312788172.iteye.com/blog/739495--------------------------------------------另注:windows 7下测试通过,需修改注册表权限。 阅读全文

【转】.NET DateTime.Now.ToString

2012-05-26 11:21 by 蜡笔小旧, 254 阅读, 0 推荐, 收藏, 编辑
摘要:今天我在使用 DateTime.Now.ToString("yyyy/MM/dd") 输出的结果是 2006-03-16 而不是我想要的 2006/03/16,都快把我郁闷的不行了。后来用了一个方法解决:DateTime.Now.ToString("yyyy/MM /dd").Replace("-", "/"),这种方法虽然可以解决问题(后面证明这个方法并不太管用),但感觉总是很别扭,后来请教了韩磊老大,恰巧他也遇到过同样的问题,原因就是在 ToString() 的时候这个方法是直接以系统的日期格式设置输出的,所以 阅读全文

.NET URL Encode remark

2012-05-12 01:11 by 蜡笔小旧, 668 阅读, 0 推荐, 收藏, 编辑
摘要:.NET为例:如: /Home/Index?key=套餐程序能读到正确的值.Requst["key"]为"套餐"/Home/Index?key=%e5%a5%97%20%e9%a4%90值Requst["key"]也为"套餐", 切记不是”%e5%a5%97%20%e9%a4%90“NOTICE:<%= Url.Action("Index", "Home", new {key="套餐"}) %>Url.Action会做encoderef:htt 阅读全文

Using Cache Versus Application[ref]

2011-12-01 09:51 by 蜡笔小旧, 221 阅读, 0 推荐, 收藏, 编辑
摘要:Using Cache Versus ApplicationIt might appear that there are close likenesses between the Cache and HttpApplicationState classes. Both have the capability to store data in an application-wide context, and the syntax for dealing with them is basically identical. The differences, however, are great.Bo 阅读全文
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页