XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
posts - 103,  comments - 1164,  trackbacks - 0
公告
  2013年4月25日
摘要: 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 不及格的程序员-八神 阅读(86) 评论(0) 编辑
  2013年3月5日
摘要: 中国工参挡全国代表大会为中国工参挡最高领导机关。每5年举行一次,由中央委员会召集。中央委员会认为有必要,或者有三分之一以上的省一级组织提出要求,全国代表大会可以提前举行;如无非常情况,不得延期举行。职权是:讨论和决定重大问题;修改党章;选举中央委员会、中央纪律检查委员会。历次中国工参挡全国代表大会▪中国工参挡第一次全国代表大会( 1921.07 上海→南湖)▪中国工参挡第二次全国代表大会( 1922.07 上海)▪中国工参挡第三次全国代表大会( 1923.06 广州)▪中国工参挡第四次全国代表大会( 1925.01 上海)▪中国工参挡第五次全国代表大会( 1927.04 武汉)▪中国工参挡第六阅读全文
posted @ 2013-03-05 13:14 不及格的程序员-八神 阅读(32) 评论(0) 编辑
  2013年2月25日
摘要: -(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 不及格的程序员-八神 阅读(37) 评论(0) 编辑
  2013年2月22日
摘要: self.contentView 里有时会出这样的子视图。。。。<UILabel: 0x81667f0; frame = (0 0; 0 0); clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x8166880>>阅读全文
posted @ 2013-02-22 17:45 不及格的程序员-八神 阅读(20) 评论(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 不及格的程序员-八神 阅读(19) 评论(0) 编辑
  2013年2月20日
摘要: 我是从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 不及格的程序员-八神 阅读(378) 评论(1) 编辑
  2013年2月1日
摘要: 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 不及格的程序员-八神 阅读(109) 评论(0) 编辑
  2013年1月31日
摘要: 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 不及格的程序员-八神 阅读(25) 评论(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 不及格的程序员-八神 阅读(29) 评论(0) 编辑
  2013年1月29日
摘要: 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 不及格的程序员-八神 阅读(17) 评论(0) 编辑
  2013年1月28日
摘要: UIDateicker并没有继承UIPickerView,它的宽度只有iphone的宽度,在ipad上直接显示出来非常不协调,所以苹果建议用UIPopoverViewController来显示,所以你可以在里面任意定制。在iphone中显示需要手动配制动画,因为它只是一个视图。所以你有下面几种方式显示出一个UIDatePicker.使用UIView动画块从底部慢慢滑动上来嵌入到UIAlert或者UIActionSheet中将UIDateicker视图做为可输入控件的定制键盘,inputView.最后我的变态方案将两个UIDatePicker一起弹出,形成一个时间区域选择 1 NSLocale 阅读全文
posted @ 2013-01-28 10:54 不及格的程序员-八神 阅读(52) 评论(0) 编辑
  2013年1月11日
摘要: 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 不及格的程序员-八神 阅读(84) 评论(0) 编辑
摘要: Your app has aUIWindow, which contains your root view controller's view, which contains the button:UIWindowyour root viewUIButtonWhat you didn't understand is that theUIWindowrotates the user interface by applying a rotation transform to your root. Take a look at the view hierarchy when the 阅读全文
posted @ 2013-01-11 10:14 不及格的程序员-八神 阅读(89) 评论(0) 编辑
  2013年1月10日
摘要: -阅读全文
posted @ 2013-01-10 17:03 不及格的程序员-八神 阅读(97) 评论(0) 编辑
摘要: When you run the Build and Archive command, Xcode 3.2.2 or later fetches your application binary and its associated.dSYMfile and saves them in your home folder. The.dSYM, which contains symbol information that are useful for debugging and symbolizing crash reports, is created by setting the "De阅读全文
posted @ 2013-01-10 14:09 不及格的程序员-八神 阅读(109) 评论(0) 编辑
摘要: Using Injection it is possible to make a change to the implementation of an Objective-C® class and have it take effect as soon as the class is saved without having to restart the application. This feature works for OS X and iOS applications in the simulator and on iOS devices.阅读全文
posted @ 2013-01-10 13:58 不及格的程序员-八神 阅读(18) 评论(0) 编辑
  2012年12月29日
摘要: Three20框架好久不用了,而且也已经过时了,不过它在当时来讲确认解决了许多麻烦,省确了许多代码,仅此环念。最近用xcode4.2打开老项目后发现,不能编译,解决掉那些被警告的过时api后又发现 “Empty TTTableViewHeaders displaying although they shouldn't!”,因为苹果在ios5这后表格行为发生了变化。不过最为有趣的是我使用xcode3.2编译到我的ios5真机中,显示是正确的,而用xcode4.2编译就会出现empty head.tableView:heightForHeaderInSection:Special Cons阅读全文
posted @ 2012-12-29 13:39 不及格的程序员-八神 阅读(141) 评论(0) 编辑
  2012年12月27日
摘要: UIView Class Reference - Instance MethodslayoutSubviewsLays out subviews.- (void)layoutSubviewsDiscussionThe default implementation of this method does nothing on iOS 5.1 and earlier. Otherwise, the default implementation uses any constraints you have set to determine the size and position of any su阅读全文
posted @ 2012-12-27 11:11 不及格的程序员-八神 阅读(173) 评论(0) 编辑
  2012年11月21日
摘要: Today, i had trying update my project with three20 to ios6, but somethings had raised that it reports errors (e.g. _tapCount,_view can not by finded) in fileUIViewAdditions.m.打开文件后发现里面有宏定义,判断如果是调试阶段,会使用 私有变量 输出某些信息,结果屏避之再编译就可以了。 1 / Remove GSEvent and UITouchAdditions from Release builds 2 #ifdef ..阅读全文
posted @ 2012-11-21 16:23 不及格的程序员-八神 阅读(128) 评论(0) 编辑
  2012年11月8日
摘要: 在非arc与arc的环境中使用时,导致程序crash. 1 //当前类使用-fno-objc 编译 2 3 needle_ = [[MyView alloc] init]; 4 5 needleLayer = [CALayer layer]; 6 needleLayer.delegate = self.needle; 7 8 9 - (void)dealloc10 { 11 [needle_ release];12 [needleLayer release];13 [super dealloc]; //crash14 }...阅读全文
posted @ 2012-11-08 09:50 不及格的程序员-八神 阅读(136) 评论(2) 编辑
  2012年11月6日
摘要: 1 #define PSIZE 16 // size of the pattern cell 2 3 static void MyDrawStencilStar (void *info, CGContextRef myContext) 4 { 5 int k; 6 double r, theta; 7 8 r = 0.8 * PSIZE / 2; 9 theta = 2 * M_PI * (2.0 / 5.0); // 144 degrees10 11 CGContextTranslateCTM (myContext, PSIZE/2,...阅读全文
posted @ 2012-11-06 16:09 不及格的程序员-八神 阅读(109) 评论(0) 编辑
  2012年10月31日
摘要: 最近用objective-c画图形,当时我就是想无论在Mac或Windows平台中都存在绘图环境(并且graphics content都拥有图形环境状态堆栈)的概念,这种绘图模型是谁发明的,最早使用这种模式的是什么编程平台?终于找到最原始的出处:来自Adobe的postscript,我认为是在苹果成立初期与Adobe在激光打印机上的合作中此技术被苹果所借鉴.Display PostScript(orDPS) is agraphical user interface(GUI) system for computers which uses thePostScript(PS) imaging mo阅读全文
posted @ 2012-10-31 17:00 不及格的程序员-八神 阅读(130) 评论(0) 编辑
摘要: Configuring the ViewportSafari on iOS displays webpages at a scale that works for most web content originally designed for the desktop. If these default settings don’t work for your webpages, it is highly recommended that you change the settings by configuring the viewport. You especially need to co阅读全文
posted @ 2012-10-31 15:48 不及格的程序员-八神 阅读(93) 评论(0) 编辑
  2012年10月29日
摘要: Cheryl Simmons - MSFT13 May 2007 9:36 PM1Periodically someone questions me about a caution that appears in all of the System.Drawing.* namespace overview topics. It reads:"Classes within theSystem.Drawingnamespace are not supported for use within a Windows or ASP.NET service. Attempting to use 阅读全文
posted @ 2012-10-29 17:02 不及格的程序员-八神 阅读(55) 评论(0) 编辑
  2012年10月16日
摘要: Mac OS 升级到 Mountain Lion 10.8.2 后,Xcode 4.5 的 git gui 功能失效了,准备降级到lion.在 Google 查到有许多美国或日本朋友也遇到了此类问题。我们这次损失很大,所有客户端都不能与 git 仓库同步了。不能在 organizer 中连接局域网内 git 服务器,提示用户名或密码错误,但命令行依然好使,github 也能连上。Mountain Lion 杀伤力这么巨大?很多软件都不兼容,比如最简单的屏幕保护screenstagram.最新情况,Administrator用户名是首字母大写,修正后可以正常重新(新建)连接git仓库了,但是这仍阅读全文
posted @ 2012-10-16 14:06 不及格的程序员-八神 阅读(257) 评论(0) 编辑
摘要: 1、用Disk Utility(在实用工具里面)把Xcode 3.2.x的磁盘映像转换成一个可读写的dmg文件。转 换好后双击它,让Finder在设备里面显示它。在Finder里面右键Xcode包(Xcode and iOS SDK),选择“Show Packages”进入Contents文件夹。(右键xcode包,打开方式,选择实用工具下的Disk Utility(磁盘工具),会弹出来一个框,宽上边功能条里有转换,选择转换成可读写,然后选择转换到桌面。转换好了后双击转换后的包,出来准备安装的 框,右键Xcode and iOS SDK,选择显示包内容)2、用TextEdit打开iPhoneS阅读全文
posted @ 2012-10-16 13:33 不及格的程序员-八神 阅读(124) 评论(0) 编辑
  2012年9月24日
摘要: #define DEGREES_TO_RADIANS(d) (d * M_PI / 180)/* [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.35]; self.rotaImageView.layer.transform = CATransform3DRotate(self.rotaImageView.layer.transform, 3*M_PI, 0, 0, 1); [UIView commitAnimations];...阅读全文
posted @ 2012-09-24 09:20 不及格的程序员-八神 阅读(204) 评论(0) 编辑
  2012年8月27日
摘要: 基本函数直角三角形。如右图,当平面上的三点A、B、C的连线,、、,构成一个直角三角形,其中为直角。对于与的夹角而言:对边(opposite)邻边(adjacent)斜边(hypotenuse)函数英语简写定义关系正弦Sinesin余弦Cosinecos正切Tangenttan余切Cotangentcot正割Secantsec余割Cosecantcsc注:中国大陆早期教科书中多将正切、余切写作tg,ctg,现已废弃不用。另见:三角恒等式#基本关系[编辑]罕见函数除了上述六个基本函数,历史上还有下列几个罕见的函数:正矢余矢半正矢半余矢外正割外余割[编辑]历史早期对于三角函数的研究可以追溯到古代,现阅读全文
posted @ 2012-08-27 10:26 不及格的程序员-八神 阅读(52) 评论(0) 编辑
  2012年6月25日
摘要: With a variable typedid, you can send it any known message and the compiler will not complain. With a variable typedNSObject *, you can only send it messages declared by NSObject (not methods of any subclass) or else it will generate a warning. In general,idis what you want.idmeans "an object&q阅读全文
posted @ 2012-06-25 13:05 不及格的程序员-八神 阅读(155) 评论(0) 编辑
  2012年6月23日
摘要: 获取app的iap购置项,是通过app的Bundle identifier标识来向apple服务器获取的,在购买指定商品之前,产品队例必须已经获取了产品标识,否则会出错的。我分别设置了我们账号的Bundle identifier,与一个日本账号的Bundle identifier,结果获取的购买项都是各自在iTunes connect中设置好的。但是当我设置成iSlash的Bundle identifier时候,却什么也取不到,不知道为什么呢?。我后来证实也可以获得呵呵!另外在获取购买项时,有时会出现获取不到localizedTitle的情况,苹果很抽风。而且有时会买不到商品的情况,就是你获取阅读全文
posted @ 2012-06-23 10:41 不及格的程序员-八神 阅读(149) 评论(0) 编辑
  2012年6月22日
摘要: 昨天北京时间6月21日,在测试APP内购的时候 SKProduct 的属性localizedTitle突然为null了,其它属性正常,而前一天代码还好使,反重调试无果....今天果断再次google,发现美国那边也不只一人出现同样的问题,所以断定是苹果出了问题.http://stackoverflow.com/questions/11134303/nil-localizedtitle-in-skproducthttps://devforums.apple.com/thread/155695?start=0&tstart=0https://discussions.apple.com/me阅读全文
posted @ 2012-06-22 08:56 不及格的程序员-八神 阅读(130) 评论(0) 编辑
  2012年6月8日
摘要: IntroductionIn-App Purchase allows you to embed a store directly within your application. You implement In-App Purchase in your application using the Store Kit framework. Store Kit connects to the App Store on your application's behalf to securely process payments from the user. Store Kit prompt阅读全文
posted @ 2012-06-08 10:02 不及格的程序员-八神 阅读(153) 评论(0) 编辑
  2012年6月7日
摘要: 在StoryBoard中设置弹出Model ViewController时,将segue的presentation项选择为除了UIModalPresentationCurrentContext和Default(它代表目标视图控制器的presentation属性设置,如果目标属性为CurrentContext那么也会发生)之外,当内存紧缺时,父视图都不会viewDidUnload,而XCode3.2则不在呼这一设置,让我很是费解啊。如果想在多于二层的视层控制器保证最后一个视图可以半透显示在上层的话,你必须将最开始的那层视图控制器设置为CurrentContext,但是也导致了它会视图释放掉,然后阅读全文
posted @ 2012-06-07 17:12 不及格的程序员-八神 阅读(99) 评论(0) 编辑
  2012年6月6日
摘要: being retina display does not depend only on the ppi. it also depends on the viewing distance.using the formula a = 2tan-1(h/2d) at 15 inches(2.54厘米) away qualifies for a retina display.the eyes cannot discern the pixels at the distance, which is the essence of Retina Display.Retina 屏幕究竟是如何定义的?为何分辨率阅读全文
posted @ 2012-06-06 10:02 不及格的程序员-八神 阅读(158) 评论(0) 编辑
  2012年6月5日
摘要: 陏着类似"来电归属地"这样的App越来越多,由于是采用企业开发账号,那么当账号过期之后它们的程序将不能再启动了,它们只有一年的使用时间. 对于这样的壳应用在app store上,对用户的利益是无法保障的,应该被禁止。<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">阅读全文
posted @ 2012-06-05 09:52 不及格的程序员-八神 阅读(302) 评论(2) 编辑
  2012年6月4日
posted @ 2012-06-04 16:39 不及格的程序员-八神 阅读(155) 评论(0) 编辑
  2012年5月31日
摘要: Generated by APNs for each deviceDifferent from UDID entered into Program PortalDevice token value may changeApp is restored to a new deviceSame device is erased then app is reinstalled without restore uniquely identifies deviceCall registration API at each app launch and then send to server every t阅读全文
posted @ 2012-05-31 15:16 不及格的程序员-八神 阅读(104) 评论(0) 编辑
摘要: SummaryARC works by adding code at compile time to ensure that objects live as long as necessary, but no longer. Conceptually, it follows the same memory management conventions as manual reference counting (described inAdvanced Memory Management Programming Guide) by adding the appropriate memory ma阅读全文
posted @ 2012-05-31 15:03 不及格的程序员-八神 阅读(103) 评论(0) 编辑
  2012年5月30日
摘要: Including QuickTime Movies In A Web PageNow that you've finished compressing your movie, you can deploy it to the web.QuickTime movies can be included in a web page allowing visitors to your website to experience media seamlessly inside their browser. This is accomplished by adding some HTML to 阅读全文
posted @ 2012-05-30 14:22 不及格的程序员-八神 阅读(87) 评论(0) 编辑
  2012年5月22日
摘要: 败家苹果参考直接引用http://pubs.opengroup.org/onlinepubs/009695399/functions/printf.html文档来说明格式化的使用,可该文档没有微软的MSDN说的清楚明确,看看下面MSDN给出的格式说明可以说明一切。%[flags][width][.perc] [F|N|h|l]type1.type 含义如下: d 有符号10进制整数 i 有符号10进制整数 o 有符号8进制整数 u 无符号10进制整数 x 无符号的16进制数字,并以小写abcdef表示 X 无符号的16进制数字,并以大写ABCDEF表示 F/f 浮点数 E/e ...阅读全文
posted @ 2012-05-22 14:12 不及格的程序员-八神 阅读(90) 评论(0) 编辑
仅列出标题  下一页