永远的SKYFEI
喜欢在阳光下,光着脊梁,挥汗如雨地工作,每次回头擦汗,看到的都是成就!
摘要: 摘自:http://www.cnblogs.com/bomo/p/4815963.html文档注释,可以在调用时显示注释信息,让调用者更好的理解方法的用途。注释方法:/// 注释 和 /** 注释 */ 在调用时,Xcode可以显示注释信息,注意 "/**" 是两个"*", 一颗星注释时,不能显示提... 阅读全文
posted @ 2015-12-03 16:55 skyfei 阅读(1282) 评论(0) 推荐(1) 编辑
摘要: iOS 升级到8.3 以后就不能用iFunBox 这样的工具看沙箱里的文件了(非共享的), 而开发时我们的数据库文件又不在共享目录里。关于这个问题,我们可以看模拟器里的沙箱文件, iOS8.0 以后,模拟器沙箱路径为:file:///Users/xxx/Library/Developer/CoreS... 阅读全文
posted @ 2015-09-18 15:19 skyfei 阅读(832) 评论(0) 推荐(1) 编辑
摘要: [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:urls];/* Activate the Finder, and open one or more windows selecting the files at the g... 阅读全文
posted @ 2015-07-15 12:00 skyfei 阅读(944) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Win32;RegistryKeyregKeyRegistryKey.FromHandle(Registry.LocalMachine.Handle,RegistryView.Registry64);regKey.OpenSubKey("****"); 阅读全文
posted @ 2011-06-10 14:51 skyfei 阅读(514) 评论(0) 推荐(0) 编辑
摘要: step1: reconstruct the WebClient classpublicclassMyWebClient:WebClient{protectedoverrideWebRequestGetWebRequest(Uriaddress){HttpWebRequestrequest=base.GetWebRequest(address)asHttpWebRequest;request.Timeout=-1;request.CachePolicy=newSystem.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLe. 阅读全文
posted @ 2011-04-08 10:46 skyfei 阅读(452) 评论(0) 推荐(0) 编辑
摘要: steps:open the window code page, and find the construction function;add code like below:publicMainWindow(){InitializeComponent();//CreatetheCommandBinding.CommandBindingcmd=newCommandBinding();cmd.Command=ApplicationCommands.New;cmd.Executed+=newExecutedRoutedEventHandler(CommandBinding_CmdKey_Exec. 阅读全文
posted @ 2011-04-08 10:07 skyfei 阅读(502) 评论(0) 推荐(1) 编辑
摘要: adb get the android version 阅读全文
posted @ 2011-02-12 15:35 skyfei 阅读(480) 评论(1) 推荐(0) 编辑
摘要: In android vcard file, the QuotedPrintable string will be like:ENCODING=QUOTED-PRINTABLE:=E9=A3=9E;=E5=88=98;=E7=A7=8D;=E5=85=88=E7=94=9F;=E5=8F=B7while in the outlook vcard, itwill like:ENCODING=QUOTED-PRINTABLE:=E5=95=8A=E5=95=8Athat mean that the android will not encode the normail charso update 阅读全文
posted @ 2010-12-23 14:48 skyfei 阅读(500) 评论(0) 推荐(0) 编辑
摘要: Win From Version:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Management;usingSystem.Runtime.InteropServices;namespaceSyncContac 阅读全文
posted @ 2010-12-23 14:41 skyfei 阅读(3698) 评论(1) 推荐(1) 编辑
摘要: 原帖:http://www.vckbase.com/document/viewdoc/?id=1708八、线程的同步  虽然多线程能给我们带来好处,但是也有不少问题需要解决。例如,对于像磁盘驱动器这样独占性系统资源,由于线程可以执行进程的任何代码段,且线程的运行是由系统调度自动完成的,具有一定的不确定性,因此就有可能出现两个线程同时对磁盘驱动器进行操作,从而出现操作错误;又例如,对于银行系统的计算... 阅读全文
posted @ 2009-12-23 16:00 skyfei 阅读(324) 评论(0) 推荐(0) 编辑