XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
摘要: 你是否曾经苦恼于理解你的代码,而去尝试打印一个变量的值? NSLog(@"%@", whatIsInsideThisThing); 或者跳过一个函数调用来简化程序的行为? NSNumber *n = @7; // 实际应该调用这个函数:Foo(); 或者短路一个逻辑检查? if (1 || theB 阅读全文
posted @ 2015-02-15 14:32 不及格的程序员-八神 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Since my other answer (animating two levels of masks) has some graphics glitches, I decided to try redrawing the path on every frame of animation. So 阅读全文
posted @ 2015-02-13 09:07 不及格的程序员-八神 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 有时候,我们的app在测试时需要连接到一个testing服务器,在打包为企业证书的app时又需要连接到另一个ad hoc 服务器,或者我们想企业证书打包的app和debug模式打包的app有不同的APP Bundle Identifier,以在一个测试机上同时安装....等等这些与App开发没有实际 阅读全文
posted @ 2015-02-12 20:43 不及格的程序员-八神 阅读(353) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-02-09 20:48 不及格的程序员-八神 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 你还记得“软件真的好难做”中的那个有意思的例子吗?那个例子告诉我们软件开发中假设可能会是致命的事。今天,我又在StackOverflow上看到一个关于时间的问题——为什么1927年12月31日的午夜时间这么奇怪?提问题的这个人给了下面的一段java代码(我做一些修改,保证让你可以copy过去就可以编 阅读全文
posted @ 2015-02-06 11:35 不及格的程序员-八神 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 在数学运算当中经常会涉及到判断两个数是否相等的情况 对于整数很好处理 A==B这样的一个语句就可以解决全部的问题 但是对于浮点数是不同的 首先,浮点数在计算机当中的二进制表达方式就决定了大多数浮点数都是无法精确的表达的 现在的计算机大部分都是数字计算机,不是模拟机,数字机的离散化的数据表示方法自然无 阅读全文
posted @ 2015-02-05 22:04 不及格的程序员-八神 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 虽然大家都不愿意看到程序崩溃,但可能崩溃是每个应用必须面对的现实,既然崩溃已经发生,无法阻挡了,那我们就让它崩也崩得淡定点吧。 IOS SDK中提供了一个现成的函数 NSSetUncaughtExceptionHandler 用来做异常处理,但功能非常有限,而引起崩溃的大多数原因如:内存访问错误,重 阅读全文
posted @ 2015-02-05 14:16 不及格的程序员-八神 阅读(429) 评论(2) 推荐(0) 编辑
摘要: Robert Penner's Easing Functions A collection of swappable functions that add flavor to motion. Visualize Easing Cheat Sheet for jQuery, CSS, SCSS Eas 阅读全文
posted @ 2015-02-04 19:50 不及格的程序员-八神 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 在图形学中判断一个点是否在多边形内,若多边形不是自相交的,那么可以简单的判断这个点在多边形内部还是外部;若多边形是自相交的,那么就需要根据非零环绕数规则和奇-偶规则判断。 判断多边形是否是自相交的:多边形在平面内除顶点外还有其他公共点 内-外测试 不自交的多边形:多边形仅在顶点处连接,而在平面内没有 阅读全文
posted @ 2015-02-03 22:30 不及格的程序员-八神 阅读(44) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-01-29 14:23 不及格的程序员-八神 阅读(3) 评论(0) 推荐(0) 编辑
摘要: rand(3) / random(3) / arc4random(3) / et al. Written by Mattt Thompson on August 12th, 2013 What passes for randomness is merely a hidden chain of cau 阅读全文
posted @ 2015-01-27 14:32 不及格的程序员-八神 阅读(2503) 评论(0) 推荐(0) 编辑
摘要: 在企业分发的app下载过程中,iOS8发现挂在官网上的企业版的app点击了提示是否安装应用程序,但始终安装不上程序,的device console发现安装的时候出现LoadExternalDownloadManifestOperation: Ignore manifest download, alr... 阅读全文
posted @ 2014-12-23 10:59 不及格的程序员-八神 阅读(2040) 评论(0) 推荐(0) 编辑
摘要: 今天测试最新的微信iOS SDK, 仅仅是建了一个空的工程,把sdk加进去运行,就报了以下错误: Undefined symbols for architecture x86_64: "operator delete[](void*)", referenced from: +[WeChatApiUt 阅读全文
posted @ 2014-12-16 09:29 不及格的程序员-八神 阅读(7206) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2014-12-04 17:09 不及格的程序员-八神 阅读(40) 评论(0) 推荐(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 不及格的程序员-八神 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 最近做了一个cs客户端,可以向服务器注册新用户,界面中有验证码,结果我在服务器那边返回生成的验证码,放到session中。我具然忘了,在客户端内部直接生成随机验证码,这个我以前做过的啊,晕 好久不做这样的程序了,思维都被固封在一个模式中了。好久没写.net了 ,好久没写javascript了。。。 阅读全文
posted @ 2014-08-27 10:33 不及格的程序员-八神 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Predicate SELF Represents the object being evaluated. CORE DATA Retrieving Specific Objects If your application uses multiple contexts and you want to 阅读全文
posted @ 2014-08-19 09:37 不及格的程序员-八神 阅读(515) 评论(0) 推荐(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 不及格的程序员-八神 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Learn about the startup key combinations you can use with Intel-based Macs. You can use the following startup key combinations with Intel-based Macs. 阅读全文
posted @ 2014-04-01 17:14 不及格的程序员-八神 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Debugging Process Startup Q: How do I debug a process's startup code? A: This depends on how the process is launched. For a typical application-level 阅读全文
posted @ 2014-03-27 17:39 不及格的程序员-八神 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Glossary term terminology Certificate authority A norganization that authorizes a certificate. Certificate authority A norganization that authorizes a 阅读全文
posted @ 2014-03-27 16:46 不及格的程序员-八神 阅读(523) 评论(0) 推荐(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 不及格的程序员-八神 阅读(356) 评论(0) 推荐(0) 编辑
摘要: The HTML importer should not be called from a background thread (that is, the options dictionary includesNSDocumentTypeDocumentAttribute with a value 阅读全文
posted @ 2014-02-20 09:42 不及格的程序员-八神 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: IOS7 app 默认是全屏模式,所以之前的程序窗口会上向移动到状态栏上面,所以在底边会有一条大白边表格单元格,默认是白色背景,之前程序设置的透明效果,这里不在起作用,需要用下面的委托方法改变。- (void)tableView:(UITableView*)tableViewwillDisplayCell:(UITableViewCell*)cellforRowAtIndexPath:(NSIndexPath*)indexPath表格委托方法- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInte 阅读全文
posted @ 2013-12-12 10:00 不及格的程序员-八神 阅读(358) 评论(0) 推荐(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 不及格的程序员-八神 阅读(846) 评论(0) 推荐(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 不及格的程序员-八神 阅读(848) 评论(0) 推荐(0) 编辑
摘要: Unable to create any keyboard shortcuts after the iOS 6.1.3 update on iPad 3 I had two keyboard shortcuts on my device before updating to iOS 6.1.3. A 阅读全文
posted @ 2013-06-07 10:49 不及格的程序员-八神 阅读(339) 评论(0) 推荐(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 不及格的程序员-八神 阅读(664) 评论(0) 推荐(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 不及格的程序员-八神 阅读(2348) 评论(0) 推荐(0) 编辑
摘要: self.contentView 里有时会出这样的子视图。。。。<UILabel: 0x81667f0; frame = (0 0; 0 0); clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x8166880>> 阅读全文
posted @ 2013-02-22 17:45 不及格的程序员-八神 阅读(253) 评论(0) 推荐(0) 编辑
摘要: (lldb) po [success compare:@"yes"] $1 = 0 <nil> (lldb) p [success compare:@"yes"] (int) $2 = 0 (lldb) p [success isEqualToString:@"yes"] 安全写法 (char) $ 阅读全文
posted @ 2013-02-22 16:53 不及格的程序员-八神 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 我是从asp时代过来的程序员,那个时代如果你传一个name相同的多个表单元素到后台时,它会形成一个数组,你可以获取name就行了, 但是当jQuery1.4出来时就不一样了,它改变了规则,它默认加了[]符号到name后面,变成了name[]. {foo: ["bar", "baz"]} 会被序列化为 阅读全文
posted @ 2013-02-20 09:10 不及格的程序员-八神 阅读(3104) 评论(3) 推荐(0) 编辑
摘要: 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 不及格的程序员-八神 阅读(919) 评论(0) 推荐(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 redistrib... 阅读全文
posted @ 2013-01-31 09:43 不及格的程序员-八神 阅读(537) 评论(0) 推荐(0) 编辑
摘要: public class UDIParser { /// <summary> /// 数据库UDI解析规则数据映射:iKeyID, cDateFormat, cKeyValue, iPos_From, iPos_To, /// </summary> public static System.Coll 阅读全文
posted @ 2013-01-31 09:34 不及格的程序员-八神 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Creating a Singleton Instance Some classes of the Foundation and AppKit frameworks create singleton objects. In a strict implementation, a singleton i 阅读全文
posted @ 2013-01-29 11:05 不及格的程序员-八神 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1、Object-C有多继承吗?没有的话用什么代替? cocoa 中所有的类都是NSObject 的子类 多继承在这里是用protocol 委托代理 来实现的你不用去考虑繁琐的多继承 ,虚基类的概念.ood的多态特性 在 obj-c 中通过委托来实现. 2、Object-C有私有方法吗?私有变量呢? 阅读全文
posted @ 2013-01-29 10:05 不及格的程序员-八神 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: UIDateicker并没有继承UIPickerView,它的宽度只有iphone的宽度,在ipad上直接显示出来非常不协调,所以苹果建议用UIPopoverViewController来显示,所以你可以在里面任意定制。 在iphone中显示需要手动配制动画,因为它只是一个视图。所以你有下面几种方式 阅读全文
posted @ 2013-01-28 10:54 不及格的程序员-八神 阅读(4003) 评论(0) 推荐(0) 编辑
摘要: json: 效果图: 阅读全文
posted @ 2013-01-25 16:35 不及格的程序员-八神 阅读(708) 评论(0) 推荐(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 不及格的程序员-八神 阅读(311) 评论(0) 推荐(0) 编辑