2013年4月8日

You have been logged on with Temporary profile

摘要: http://www.sysprobs.com/fix-temporary-profile-windows-7HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileListdelete key with .bak.for domain userAdvanced system settings -> Advanced -> User profiles 阅读全文

posted @ 2013-04-08 14:04 无法显示此网页 阅读(212) 评论(0) 推荐(0) 编辑

2012年3月25日

change android wifi device name

摘要: root and run following$ su# getprop net.hostname# setprop net.hostname whateveryouwantwhere 'whateveryouwant' is the hostname you want.done. 阅读全文

posted @ 2012-03-25 13:00 无法显示此网页 阅读(212) 评论(0) 推荐(0) 编辑

2012年3月14日

c# instantly kill thread with TerminateThread (danger)

摘要: Danger: dead lock or mem leakuse only as Process.Kill() to exit app with defined exit code [DllImport("kernel32.dll")]staticexternboolTerminateThread(inthThread,uintdwExitCode);//[STAThread]staticvoidMain(string[]args){try{Threadt=newThread(()=>{//codeeveninterop});t.IsBackground=true;/ 阅读全文

posted @ 2012-03-14 11:55 无法显示此网页 阅读(748) 评论(0) 推荐(1) 编辑

2012年3月9日

NullReferenceException when call CallNextHookEx in multi-Thread app

摘要: SetWindowsHookEx(WH_MOUSE_LL, mousehookDelegate, intptr, 0)在这里用了一个实例代理没有用匿名,HookProcmousehookDelegate = new HookProc(MouseHookProc);SetWindowsHookEx(WH_MOUSE_LL,MouseHookProc, intptr, 0); 然后在Control.Invoke() 调用。貌似运行了好一会也没有碰到异常了 阅读全文

posted @ 2012-03-09 17:16 无法显示此网页 阅读(272) 评论(0) 推荐(0) 编辑

2011年10月25日

visual studio: Launch the Debugger Automatically

摘要: Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]"debugger"="vsjitdebugger.exe"import this to registry , just edit the appname.second thing is:Control Panel->System->Advanced System 阅读全文

posted @ 2011-10-25 14:08 无法显示此网页 阅读(210) 评论(0) 推荐(0) 编辑

2011年10月13日

简易版可以编辑的drop

摘要: 用input把select给盖住了,缺点是长度不能自适应, 已经写死了<html><style>.back{width:330px;position:relative;margin-top:0px;z-index:0;}.val_input{width:330px;}.val_select{position:absolute;clip:expression("rect(autoautoauto"+(this.offsetWidth-20)+"px)");overflow:hidden;width:350px;}</style 阅读全文

posted @ 2011-10-13 12:54 无法显示此网页 阅读(160) 评论(0) 推荐(0) 编辑

2011年9月28日

WindowsUpdate 8024402C 错误

摘要: add %windir%\system32\svchost.exe in the firewall exception list . 阅读全文

posted @ 2011-09-28 17:53 无法显示此网页 阅读(225) 评论(0) 推荐(0) 编辑

2011年9月21日

clickonce 创建自定义pfx

摘要: http://blogs.msdn.com/b/maximelamure/archive/2007/01/24/create-your-own-pfx-file-for-clickonce.aspxmakecert.exe -sv MyKey.pvk -n "CN=.NET Ready!!!" MyKey.cerpvk2pfx.exe -pvk MyKey.pvk -spc MyKey.cer -pfx MyPFX.pfx -po totothen call "mage" UI 阅读全文

posted @ 2011-09-21 13:53 无法显示此网页 阅读(157) 评论(0) 推荐(0) 编辑

2011年7月29日

创建一个sql临时表

摘要: use master;set nocount on;if DB_ID('Performance') is nullcreate database Performance;gouse Performance;goset nocount on;if OBJECT_ID('dbo.Nums', 'U') is not nulldrop table dbo.nums;create table dbo.nums(n int not null primary key );declare @max as int, @rc as int;set @max = 5 阅读全文

posted @ 2011-07-29 17:39 无法显示此网页 阅读(355) 评论(0) 推荐(0) 编辑

2011年7月24日

ipsec屏蔽土豆广告 2011.7

摘要: @echo offnetsh ipsec static delete allset ipsec_policy=tudouset ipsec_filterlistname=tudou adsset ipsec_actionname=denyset ip_block_list=119.167.203.@echo 1 netsh ipsec static add policy name="%ipsec_policy%"netsh ipsec static add policy name="%ipsec_policy%"@echo 2 netsh ipsec s 阅读全文

posted @ 2011-07-24 02:01 无法显示此网页 阅读(309) 评论(0) 推荐(0) 编辑

导航