查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
posts - 131,  comments - 1166,  trackbacks - 0
摘要: dojo的类机制支持类声明、继承、调用父类方法等功能。dojo在底层实现上是通过操作原型链来实现其类机制的,而在实现继承时采用类式继承的方式。值得一提的是,dojo的类机制允许进行多重继承(注意,只有父类列表中的第一个作为真正的父类,其它的都是将其属性以mixin的方法加入到子类的原型链中),为解决...阅读全文
posted @ 2015-07-31 09:47 不及格的程序员-八神 阅读(7) 评论(0) 编辑
摘要: About Information Property List FilesUILaunchImageFileUILaunchImageFile (String - iOS) specifies the name of the launch image file for the app on olde...阅读全文
posted @ 2015-07-29 11:14 不及格的程序员-八神 阅读(7) 评论(0) 编辑
摘要: 手动切一下 老的push,再切回来,就会出有了,我想是一个bug.Xcode 6 Segue with UINavigationItemup vote0down votefavoriteI've just created a Segue from a ViewController (which is...阅读全文
posted @ 2015-07-27 13:46 不及格的程序员-八神 阅读(10) 评论(0) 编辑
摘要: 游戏光枪的三十年历史一句话看专题:今年是FC光枪问世的三十周年纪念,让我们来说说这款周边的种种故事。光枪和游戏的天作之合作为游戏史上最著名的外设之一,光枪(Light gun)的历史实际上远比电子游戏本身还要来得久远,最早甚至可以追溯到上世纪三十年代。在电子游戏的概念出来之前,以机械结构为主的光枪游...阅读全文
posted @ 2015-07-23 17:58 不及格的程序员-八神 阅读(9) 评论(0) 编辑
摘要: A*寻路算法 (2011-02-15 10:53:11)转载▼标签:游戏分类:算法概述虽然掌握了 A* 算法的人认为它容易,但是对于初学者来说, A* 算法还是很复杂的。搜索区域(The Search Area)我们假设某人要从 A 点移动到 B 点,但是这两点之间被一堵墙隔开。如图 1 ,绿色是 ...阅读全文
posted @ 2015-07-15 11:06 不及格的程序员-八神 阅读(7) 评论(0) 编辑
摘要: 世界超强完美DIY 电子奇才五年全手工制作CPU2015-07-08极客范(点击上方公众号,可快速关注我们)在如今越来越靠程序化、流水线作业来完成生产的制造业中,想找一件手工打造的产品,真是越来越难了。好在当今社会中,还是有一些强人在孜孜不倦的在完成着心中的“完美DIY”梦想。因此也使我们多了一些大...阅读全文
posted @ 2015-07-14 10:34 不及格的程序员-八神 阅读(14) 评论(0) 编辑
摘要: /Library/LaunchAgents//Library/LaunchDaemons阅读全文
posted @ 2015-06-19 16:56 不及格的程序员-八神 阅读(11) 评论(0) 编辑
摘要: Prior to the publication of the IBM technical paper behind what commonly known today as the Doherty Threshold[1]"... it was thought that a relatively ...阅读全文
posted @ 2015-06-16 22:50 不及格的程序员-八神 阅读(9) 评论(0) 编辑
摘要: MSDN Blogs>Zemblanity>Windows And Video MemoryWindows And Video MemoryTom_Mulcahy11 Feb 2009 12:13 PMThe following explanations are overviews. In the ...阅读全文
posted @ 2015-04-17 13:28 不及格的程序员-八神 阅读(20) 评论(0) 编辑
摘要: Sincemy other answer (animating two levels of masks)has some graphics glitches, I decided to try redrawing the path on every frame of animation. So fi...阅读全文
posted @ 2015-02-13 09:07 不及格的程序员-八神 阅读(33) 评论(0) 编辑
摘要: rand(3) / random(3) / arc4random(3) / et al.Written byMattt ThompsononAugust 12th, 2013What passes for randomness is merely a hidden chain of causalit...阅读全文
posted @ 2015-01-27 14:32 不及格的程序员-八神 阅读(379) 评论(0) 编辑
摘要: 在企业分发的app下载过程中,iOS8发现挂在官网上的企业版的app点击了提示是否安装应用程序,但始终安装不上程序,的device console发现安装的时候出现LoadExternalDownloadManifestOperation: Ignore manifest download, alr...阅读全文
posted @ 2014-12-23 10:59 不及格的程序员-八神 阅读(589) 评论(0) 编辑
摘要: 今天测试最新的微信iOS SDK, 仅仅是建了一个空的工程,把sdk加进去运行,就报了以下错误:Undefined symbols for architecture x86_64: "operator delete[](void*)", referenced from: +[WeChat...阅读全文
posted @ 2014-12-16 09:29 不及格的程序员-八神 阅读(592) 评论(0) 编辑
摘要: #include #include // Define a callback to be called when the sound is finished// playing. Useful when you need to free memory after playing.static vo...阅读全文
posted @ 2014-11-24 14:03 不及格的程序员-八神 阅读(26) 评论(0) 编辑
摘要: 最近做了一个cs客户端,可以向服务器注册新用户,界面中有验证码,结果我在服务器那边返回生成的验证码,放到session中。我具然忘了,在客户端内部直接生成随机验证码,这个我以前做过的啊,晕 好久不做这样的程序了,思维都被固封在一个模式中了。好久没写.net了 ,好久没写javascript了。。。阅读全文
posted @ 2014-08-27 10:33 不及格的程序员-八神 阅读(29) 评论(0) 编辑
摘要: PredicateSELFRepresents the object being evaluated.CORE DATARetrieving Specific ObjectsIf your application uses multiple contexts and you want to test...阅读全文
posted @ 2014-08-19 09:37 不及格的程序员-八神 阅读(27) 评论(0) 编辑
摘要: Libraries and frameworks are designated as Required by default, but you can change this designation to Optional.Required libraries must be present on ...阅读全文
posted @ 2014-06-18 16:00 不及格的程序员-八神 阅读(85) 评论(0) 编辑
摘要: Learn about the startup key combinations you can use with Intel-based Macs.You can use the following startup key combinations withIntel-basedMacs.KeystrokeDescriptionPress C during startupStart up from a bootableCD, DVD, or USB thumb drive (such as OS X install media).Press D during startupStart up 阅读全文
posted @ 2014-04-01 17:14 不及格的程序员-八神 阅读(43) 评论(0) 编辑
摘要: Debugging Process StartupQ: How do I debug a process's startup code?A:This depends on how the process is launched. For a typical application-level process, you can debug the startup code by launching it from within the debugger in Xcode. However, there may be circumstances where that's not a阅读全文
posted @ 2014-03-27 17:39 不及格的程序员-八神 阅读(68) 评论(0) 编辑
摘要: Glossary term terminologyCertificate authority A norganization that authorizes a certificate.Certificate signing request(CSR) A file that contains personal information used to generate a signing certificate. This file also contains the public key to be included in the certificate, along with identif阅读全文
posted @ 2014-03-27 16:46 不及格的程序员-八神 阅读(107) 评论(0) 编辑
摘要: I understand that the External Accessory framework in iOS 3.0 and later will allow my application to communicate with Bluetooth devices. So why doesn't my application see the Bluetooth accessory sitting next to my iPhone?A:The External Accessory framework is designed to allow iOS applications to阅读全文
posted @ 2014-02-20 14:25 不及格的程序员-八神 阅读(98) 评论(0) 编辑
摘要: The HTML importer should not be called from a background thread (that is, theoptionsdictionary includesNSDocumentTypeDocumentAttributewith a value ofN...阅读全文
posted @ 2014-02-20 09:42 不及格的程序员-八神 阅读(216) 评论(0) 编辑
摘要: IOS7 app 默认是全屏模式,所以之前的程序窗口会上向移动到状态栏上面,所以在底边会有一条大白边表格单元格,默认是白色背景,之前程序设置的透明效果,这里不在起作用,需要用下面的委托方法改变。- (void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath表格委托方法- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInte阅读全文
posted @ 2013-12-12 10:00 不及格的程序员-八神 阅读(229) 评论(0) 编辑
摘要: file:///Users/yangiori/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS7.0.iOSLibrary.docset/Contents/Resources/Documents/navigation/index.htmlA workaround - open your browser and go to:file:///Users/userName/Library/Developer/Shared/Documentation/DocSets/com.apple阅读全文
posted @ 2013-09-24 13:51 不及格的程序员-八神 阅读(497) 评论(0) 编辑
摘要: High Precision Timers in iOS / OS XThe note will cover the do's and dont's of using high precision timers on iOS and OS X.High Precision Timers in iOS / OS XDo I need a high precision timer?A suggestion for synchronizing with display updatesHow do timers work?How do high precision timers wor阅读全文
posted @ 2013-09-04 17:32 不及格的程序员-八神 阅读(311) 评论(0) 编辑
摘要: Unable to create any keyboard shortcuts after the iOS 6.1.3 update on iPad 3I had two keyboard shortcuts on my device before updating to iOS 6.1.3. After the update I wanted to create two more keyboard shortcuts but I am not able to do so as the area is greyed out. I cannot even delete the old ones.阅读全文
posted @ 2013-06-07 10:49 不及格的程序员-八神 阅读(114) 评论(0) 编辑
摘要: The iPad Split-Keyboard and (Missing) NotificationsPosted on May 19, 2012Developing an app that people actually use is a great way to discover holes in your knowlege of new APIs. I recently released a side project of mine for sale on the App Store under the nameOnePAD. It's an electronic pocket 阅读全文
posted @ 2013-04-25 09:31 不及格的程序员-八神 阅读(286) 评论(0) 编辑
摘要: 中国工参挡全国代表大会为中国工参挡最高领导机关。每5年举行一次,由中央委员会召集。中央委员会认为有必要,或者有三分之一以上的省一级组织提出要求,全国代表大会可以提前举行;如无非常情况,不得延期举行。职权是:讨论和决定重大问题;修改党章;选举中央委员会、中央纪律检查委员会。历次中国工参挡全国代表大会▪中国工参挡第一次全国代表大会( 1921.07 上海→南湖)▪中国工参挡第二次全国代表大会( 1922.07 上海)▪中国工参挡第三次全国代表大会( 1923.06 广州)▪中国工参挡第四次全国代表大会( 1925.01 上海)▪中国工参挡第五次全国代表大会( 1927.04 武汉)▪中国工参挡第六阅读全文
posted @ 2013-03-05 13:14 不及格的程序员-八神 阅读(98) 评论(0) 编辑
摘要: -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{1 if([[segue identifier] isEqualToString:@"groupPopoverSegue"])2 {3 UIViewController *vc = segue.destinationViewController; //popover 视图控制器时,ios5视图控制器会马上执行viewdidload,ios6中当你显示执行第5行语句时也会执行viewdidload。非popover会等prepareFor..阅读全文
posted @ 2013-02-25 15:21 不及格的程序员-八神 阅读(1397) 评论(0) 编辑
摘要: self.contentView 里有时会出这样的子视图。。。。<UILabel: 0x81667f0; frame = (0 0; 0 0); clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x8166880>>阅读全文
posted @ 2013-02-22 17:45 不及格的程序员-八神 阅读(102) 评论(0) 编辑
摘要: (lldb) po [success compare:@"yes"]$1 = 0 <nil>(lldb) p [success compare:@"yes"](int) $2 = 0(lldb) p [success isEqualToString:@"yes"] 安全写法(char) $3 = '\0'(lldb) p success(NSString *) $4 = 0x00000000(lldb) p [success compare:@"yes"] == 0 //NSOrdere阅读全文
posted @ 2013-02-22 16:53 不及格的程序员-八神 阅读(73) 评论(0) 编辑
摘要: 我是从asp时代过来的程序员,那个时代如果你传一个name相同的多个表单元素到后台时,它会形成一个数组,你可以获取name就行了,但是当jQuery1.4出来时就不一样了,它改变了规则,它默认加了[]符号到name后面,变成了name[].{foo: ["bar", "baz"]}会被序列化为 “foo[]=bar&foo[]=baz”.在jQuery 1.3版里,{foo: ["bar", "baz"]}会被序列化为 “foo=bar&foo=baz”.用jQuery.ajaxSettings.t阅读全文
posted @ 2013-02-20 09:10 不及格的程序员-八神 阅读(1300) 评论(2) 编辑
摘要: AX ERROR: Could not find my mock parent, most likely I am stale使用设计好的cell做为表头视图,控制出现的log,挺有意思。 1 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 2 { 3 4 IoriTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"DataDetailHeadCell"]; 5阅读全文
posted @ 2013-02-01 16:52 不及格的程序员-八神 阅读(373) 评论(0) 编辑
摘要: 1 /* Basic data types for Objective C. 2 Copyright (C) 1993, 1995, 1996, 2004 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free S...阅读全文
posted @ 2013-01-31 09:43 不及格的程序员-八神 阅读(199) 评论(0) 编辑
摘要: NSArray enumeration performance examinedOne day, I was thinking about NSArray enumeration (also called iteration): since Mac OS X 10.6 and iOS 4, there's the wonderful new world of blocks, and with it cameenumerateObjectsUsingBlock:. I assumed it must be slower than fast enumeration (for (object阅读全文
posted @ 2013-01-31 09:34 不及格的程序员-八神 阅读(86) 评论(0) 编辑
摘要: Creating a Singleton InstanceSome classes of the Foundation and AppKit frameworks create singleton objects. In a strict implementation, a singleton is the sole allowable instance of a class in the current process. But you can also have a more flexible singleton implementation in which a factory meth阅读全文
posted @ 2013-01-29 11:05 不及格的程序员-八神 阅读(34) 评论(0) 编辑
摘要: 1、Object-C有多继承吗?没有的话用什么代替?cocoa中所有的类都是NSObject的子类多继承在这里是用protocol委托代理来实现的你不用去考虑繁琐的多继承,虚基类的概念.ood的多态特性在obj-c中通过委托来实现.2、Object-C有私有方法吗?私有变量呢?objective-c – 类里面的方法只有两种, 静态方法和实例方法. 这似乎就不是完整的面向对象了,按照OO的原则就是一个对象只暴露有用的东西. 如果没有了私有方法的话, 对于一些小范围的代码重用就不那么顺手了. 在类里面声名一个私有方法@interface Controller : NSObject { NSStr阅读全文
posted @ 2013-01-29 10:05 不及格的程序员-八神 阅读(411) 评论(0) 编辑
摘要: UIDateicker并没有继承UIPickerView,它的宽度只有iphone的宽度,在ipad上直接显示出来非常不协调,所以苹果建议用UIPopoverViewController来显示,所以你可以在里面任意定制。在iphone中显示需要手动配制动画,因为它只是一个视图。所以你有下面几种方式显示出一个UIDatePicker.使用UIView动画块从底部慢慢滑动上来嵌入到UIAlert或者UIActionSheet中将UIDateicker视图做为可输入控件的定制键盘,inputView.最后我的变态方案将两个UIDatePicker一起弹出,形成一个时间区域选择 1 NSLocale 阅读全文
posted @ 2013-01-28 10:54 不及格的程序员-八神 阅读(2475) 评论(0) 编辑
摘要: json:1 [{"iTagID":9,"cTag":"Liuxx测试-标签-1","cUnit":"TT","values":[{"serial_number":1,"cDate":"2012-11-05","fValue":30},{"serial_number":2,"cDate":"2013-01-10","fValue阅读全文
posted @ 2013-01-25 16:35 不及格的程序员-八神 阅读(174) 评论(0) 编辑
摘要: Ah found it, they are saved at:~/Library/Developer/Xcode/UserData/CodeSnippets/Each one is a plist file. In contrast to Xcode 3 there is now one file per snippet.阅读全文
posted @ 2013-01-11 11:15 不及格的程序员-八神 阅读(112) 评论(0) 编辑