上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 69 下一页
摘要: DimCurrentCIAsSystem.Globalization.CultureInfo=System.Threading.Thread.CurrentThread.CurrentCultureSystem.Threading.Thread.CurrentThread.CurrentCulture=NewSystem.Globalization.CultureInfo("en-US")It's a bug about Excel interop.adding the aboveprevious to your code. 阅读全文
posted @ 2012-08-24 12:33 zyip 阅读(269) 评论(0) 推荐(0)
摘要: #defineSWITCH_TAG102-(void)updateSwitch:(id)sender{//toggletheswitchfromitscurrentsettingUISwitch*s=[self.view.windowswitchWithTag:SWITCH_TAG];[ssetOn:!s.isOn];}-(void)updateTime:(id)sender{//setthelabeltothecurrenttime[self.view.windowlabelWithTag:LABEL_TAG].text=[[NSDatedate]description];}//Thisis 阅读全文
posted @ 2012-08-23 19:57 zyip 阅读(297) 评论(0) 推荐(0)
摘要: -(BOOL)connectedToNetwork{//Createzeroaddystructsockaddr_inzeroAddress;bzero(&zeroAddress,sizeof(zeroAddress));zeroAddress.sin_len=sizeof(zeroAddress);zeroAddress.sin_family=AF_INET;//RecoverreachabilityflagsSCNetworkReachabilityRefdefaultRouteReachability=SCNetworkReachabilityCreateWithAddress( 阅读全文
posted @ 2012-08-22 21:20 zyip 阅读(360) 评论(0) 推荐(0)
摘要: If your iOS app generates a crash reportwith the exception code 0x8badfood, thismeans that the iOSwatchdogtimer killed your app because it was unresponsive; such a crash may have been caused by a synchronousnetworking call. 阅读全文
posted @ 2012-08-22 16:48 zyip 阅读(384) 评论(0) 推荐(0)
摘要: classProgram{staticvoidMain(string[]args){stringdate="2011-08-15";DateTimed0=DateTime.Parse(date);Console.WriteLine(d0.ToString("D0IS:yyyy-MM"));DateTimed1=DateTime.Now;Console.WriteLine(d1.ToString("D1IS:yyyy-MM"));intr=GetDateDiffYears(d0,d1);Console.WriteLine(r.ToStr 阅读全文
posted @ 2012-08-16 10:57 zyip 阅读(389) 评论(0) 推荐(0)
摘要: #regionJsonhelperusingSystem.IO;usingSystem.Text;usingSystem.Runtime.Serialization.Json;publicclassJsonHelper{///<summary>///JSON序列化///</summary>publicstaticstringJsonSerializer<T>(Tt){DataContractJsonSerializerser=newDataContractJsonSerializer(typeof(T));MemoryStreamms=newMemorySt 阅读全文
posted @ 2012-08-15 16:14 zyip 阅读(379) 评论(0) 推荐(0)
摘要: -(void)SelectSort{NSLog(@"======startingsort=======");//intarr[100];//for(inti=0;i<100;i++)//{//arr[i]=i;//}intarr[]={1,3,9,5,2,7,10,20,11,6};//NSString*str=[NSStringstringWithFormat:@"I'm:%d",1];for(inti=0;i<10;i++){intmin=i;for(intj=i+1;j<10;j++){if(arr[j]<arr[m 阅读全文
posted @ 2012-08-14 23:14 zyip 阅读(150) 评论(0) 推荐(0)
摘要: staticvoidMain(string[]args){int[]arr=newint[1000];for(inti=0;i<arr.Length;i++){arr[i]=i;}//sequentialForEachintb=0;Stopwatchstopwatch=newStopwatch();stopwatch.Start();foreach(varxinarr){b=b+x;System.Threading.Thread.Sleep(1);//Console.WriteLine(x);}stopwatch.Stop();Console.WriteLine("Sequen 阅读全文
posted @ 2012-08-10 11:26 zyip 阅读(194) 评论(0) 推荐(0)
摘要: http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&referringTitle=Documentationhttp://www.infoq.com/news/2012/07/ironjshttps://github.com/fholm/IronJS 阅读全文
posted @ 2012-07-30 14:31 zyip 阅读(185) 评论(0) 推荐(0)
摘要: Error Unknown server tag 'asp:ListView'. Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 550b12f2-1d78-432c-94f0-0d4bffa54c0b Date and Time: 7/7/2012 11:34:29 PM 修改web。config,加入下面controls中的内容 <pages><controls> <add tagPrefix="asp" namespace= 阅读全文
posted @ 2012-07-26 14:39 zyip 阅读(329) 评论(0) 推荐(0)
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 69 下一页