XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
摘要: 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 不及格的程序员-八神 阅读(499) 评论(0) 推荐(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 不及格的程序员-八神 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #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 不及格的程序员-八神 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 基本函数直角三角形。如右图,当平面上的三点A、B、C的连线,、、,构成一个直角三角形,其中为直角。对于与的夹角而言:对边(opposite)邻边(adjacent)斜边(hypotenuse)函数英语简写定义关系正弦Sinesin余弦Cosinecos正切Tangenttan余切Cotangentc... 阅读全文
posted @ 2012-08-27 10:26 不及格的程序员-八神 阅读(1472) 评论(0) 推荐(0) 编辑
摘要: 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 不及格的程序员-八神 阅读(682) 评论(0) 推荐(1) 编辑
摘要: 获取app的iap购置项,是通过app的Bundle identifier标识来向apple服务器获取的,在购买指定商品之前,产品队例必须已经获取了产品标识,否则会出错的。我分别设置了我们账号的Bundle identifier,与一个日本账号的Bundle identifier,结果获取的购买项都是各自在iTunes connect中设置好的。但是当我设置成iSlash的Bundle identifier时候,却什么也取不到,不知道为什么呢?。我后来证实也可以获得呵呵!另外在获取购买项时,有时会出现获取不到localizedTitle的情况,苹果很抽风。而且有时会买不到商品的情况,就是你获取 阅读全文
posted @ 2012-06-23 10:41 不及格的程序员-八神 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 昨天北京时间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 不及格的程序员-八神 阅读(1417) 评论(0) 推荐(0) 编辑
摘要: 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 不及格的程序员-八神 阅读(485) 评论(0) 推荐(1) 编辑
摘要: 在StoryBoard中设置弹出Model ViewController时,将segue的presentation项选择为除了UIModalPresentationCurrentContext和Default(它代表目标视图控制器的presentation属性设置,如果目标属性为CurrentContext那么也会发生)之外,当内存紧缺时,父视图都不会viewDidUnload,而XCode3.2则不在呼这一设置,让我很是费解啊。如果想在多于二层的视层控制器保证最后一个视图可以半透显示在上层的话,你必须将最开始的那层视图控制器设置为CurrentContext,但是也导致了它会视图释放掉,然后 阅读全文
posted @ 2012-06-07 17:12 不及格的程序员-八神 阅读(914) 评论(0) 推荐(1) 编辑
摘要: 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 不及格的程序员-八神 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 陏着类似"来电归属地"这样的App越来越多,由于是采用企业开发账号,那么当账号过期之后它们的程序将不能再启动了,它们只有一年的使用时间. 对于这样的壳应用在app store上,对用户的利益是无法保障的,应该被禁止。 items assets kind software-package url http://65.49.26.76/ipa/BlackList.ipa kind full-size-image needs-shine url http://65.49.26.76/tubiao@2x.png kind display-image needs-shine u... 阅读全文
posted @ 2012-06-05 09:52 不及格的程序员-八神 阅读(752) 评论(2) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-06-04 16:39 不及格的程序员-八神 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 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 不及格的程序员-八神 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Summary ARC works by adding code at compile time to ensure that objects live as long as necessary, but no longer. Conceptually, it follows the same me 阅读全文
posted @ 2012-05-31 15:03 不及格的程序员-八神 阅读(914) 评论(0) 推荐(0) 编辑
摘要: 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 不及格的程序员-八神 阅读(254) 评论(0) 推荐(0) 编辑
摘要: C++ CString strFormat; strFormat.Format("keyName:%s\r\n ", entity->cKeyName); ::OutputDebugString(strFormat); // typedef CStringT<TCHAR, StrTraitATL<T 阅读全文
posted @ 2012-05-22 14:12 不及格的程序员-八神 阅读(337) 评论(0) 推荐(0) 编辑
摘要: Core Graphics FrameworkThe Core Graphics framework (CoreGraphics.framework) contains the interfaces for the Quartz 2D drawing API.Quartzis the same advanced, vector-based drawing engine that is used in Mac OS X. It provides support for path-based drawing, anti-aliased rendering, gradients, images, c 阅读全文
posted @ 2012-05-17 09:33 不及格的程序员-八神 阅读(894) 评论(0) 推荐(0) 编辑
摘要: The Mac Application EnvironmentMac OS X incorporates the latest technologies for creating powerful and fun-to-use apps. But the technologies by themselves are not enough to make every app great. What sets an app apart from its peers is how it helps the user achieve some tangible goal. After all, use 阅读全文
posted @ 2012-05-03 11:09 不及格的程序员-八神 阅读(690) 评论(0) 推荐(0) 编辑
摘要: Specifying High-Resolution Images in iOSAny iPhone application built for iOS 4.0 and later should include high-resolution versions of its image resources. When the application is run on a device that has a high-resolution screen, high-resolution images provide extra detail and look better because th 阅读全文
posted @ 2012-04-20 16:46 不及格的程序员-八神 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 1. 我目前设置了双显示在mac系统上,另外一个显示器是原来pc的,时常切换,但在切换成pc时,mac系统内的鼠标滚动出现不平滑状态。。。。 目前系统更新到了mountain lion状况没有改变2.xocde 4.3 bugs, 当xcode窗口跨越两个显示器,这时点击xcode file菜单中的源代码控制器进行代码提交之后,xcode窗口位置会向最左面屏幕偏出许多。。。 阅读全文
posted @ 2012-04-18 09:08 不及格的程序员-八神 阅读(295) 评论(0) 推荐(0) 编辑
摘要: RootViewController.h 作为UINavigatorController根视图,模式弹出新窗口时,新窗口透明的部分无效 (设置UINavigatorController的modalPresentationStyle = UIModalPresentationCurrentContext即可)。1 untitled *vc = [[untitled alloc] initWithNibName:@"untitled" bundle:nil];2 self.modalPresentationStyle = UIModalPresentationCurrentCo 阅读全文
posted @ 2012-04-13 13:44 不及格的程序员-八神 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 为了安装git server ,在xp上安装了copssh,结果就是系统重启后,administrator登录选项没了,只有guest账号了,妈呀guest什么也干不了啊。百度之。先用命令 control userpasswords2进行系统用户登录选项设置页面,新建一个管理员账号,再设置登录时输入用户名与密码。重新登录时ctrl+alt+del输入administrator与密码搞定。 阅读全文
posted @ 2012-04-11 17:43 不及格的程序员-八神 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1 // NOTE: GameCenter does not guarantee that callback blocks will be execute on the main thread. 2 // As such, your application needs to be very care 阅读全文
posted @ 2012-04-11 09:43 不及格的程序员-八神 阅读(1742) 评论(0) 推荐(0) 编辑
摘要: 1 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 2 3 dispatch_async(dispatch_get_main_queue(), ^{ 4 ... 5 [self myMethod]; 6 7 }); 8 9 -(void)myMe 阅读全文
posted @ 2012-04-10 11:19 不及格的程序员-八神 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 开发的一款通用版程序由于the new ipad的出现,运行出现了不兼容现像。原有程序启动图片default.png,default@2x.png,default~ipad.png,出现启动画面偏移问题,解决方式添加default@2x~ipad.png.用xcode4.3版打开项目,调度运行项目,程序布局面目全非,用原来的xcode3.2版则没有问题。 阅读全文
posted @ 2012-04-09 14:13 不及格的程序员-八神 阅读(383) 评论(3) 推荐(0) 编辑
摘要: Technical Q&A QA1681Viewing iPhone-Optimized PNGsQ: When I build my iPhone OS application, Xcode optimizes the PNG files within my application's bundle, meaning that Preview can't display them. How can I view these optimized files?A:When I build my iPhone OS application, Xcode optimizes 阅读全文
posted @ 2012-03-21 09:39 不及格的程序员-八神 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 越狱设备具有程序所在文件夹的读写权限,而非越狱设备只能写document目录,对于程序文件夹的写也是白写,不会记忆的。 阅读全文
posted @ 2012-02-02 15:05 不及格的程序员-八神 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 时隔一年之后这款游戏终于在今天出了第二版了,将它认为是历史上最强的iPhone 3D游戏一点都不过份。首先从南太平洋的新西兰store区下载,4小时后我将其通关。游戏故事曲折,不过还是没能将整个故事讲述请楚,最后还是留下后手与悬念,主角再次陷入痛苦,而它的搭档爱莎又会踏上拯救他的路程。更多图片在相册中 进入相册 http://www.cnblogs.com/ioriwellings/gallery/339591.html 阅读全文
posted @ 2011-12-01 16:02 不及格的程序员-八神 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 同样的代码,模拟器下不工作,真机下可以循环播放。MPMoviePlayerController *theMovie = [[MPMoviePlayerControlleralloc] initWithContentURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"***"ofType:@"mp4"] ]];theMovie.repeatMode=MPMovieRepeatModeOne;theMovie.view.frame = self.view.bounds;[self 阅读全文
posted @ 2011-11-25 15:04 不及格的程序员-八神 阅读(435) 评论(1) 推荐(0) 编辑
摘要: 无线路由识别问题iMac27下无线路由器设置40MHz通道能连上,但无法正确获取IP地址,但我的iPhone4,iPad,iPod均能连接,后来手动设置成20MHZ成功正确获取ip. 这个问题浪费我半天时间,因为iMac是双系统,win7没有此问题可以正确识别无线路由器,所以只好在路由上的设置作各种测试,网上查了一下,遇到此问题的不只我一个。app store软件升级断点续传问题在从xcode4.0升级到4.2的过程中,每次将要完成时都会重头开始再来。。。反复好几次,最后才算成功,600多MB啊,玩呢? 阅读全文
posted @ 2011-11-18 10:58 不及格的程序员-八神 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 在build ios项目时,出现了这样的错误,仔细检测过不是因为开发证书的问题,而是缺少文件造成的,将xcode目录中的签名文件copy到系统目录即可。这是在一台新装的mac上产生的,估计是因为新装的xcode没有装完全造成的。sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_oldsudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin 阅读全文
posted @ 2011-11-03 11:27 不及格的程序员-八神 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: iMac 27 12GB Memory.用来贴补家用,有需要开发项目的可以与我联系 asp.net、组件开发 ,java,javascript,xml/xslt,objective-c 什么都行.目前上架产品包括:少儿有声阅读系列《单刀会》《白蛇传》《空城记》,新闻阅读有 “辽宁日报” “辽宁日报HD”,开发中的还有时尚生活导报。 阅读全文
posted @ 2011-11-02 13:15 不及格的程序员-八神 阅读(452) 评论(0) 推荐(0) 编辑
摘要: Beginning iOS 4 Application Development 6. Keyboard inputswhAt yOu will leArn in thiS chApterHow to customize the keyboard for diff erent types of inp 阅读全文
posted @ 2011-10-22 11:55 不及格的程序员-八神 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 在我开发通用版儿童教育类 iOS App<<单刀会>>中遇到了如下小陷井:在iOS设备中播放视频,iPad与iPhone在界面与形为上有一点小差别....,iPad默认情况会在视频控制器右上角多出一个切换全屏的按钮。同样的代码形成的效果见截图:MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Desc" 阅读全文
posted @ 2011-09-20 15:46 不及格的程序员-八神 阅读(745) 评论(0) 推荐(0) 编辑
摘要: iOS offers a rich set of tools for working with sound in your application. These tools are arranged into frameworks according to the features they provide, as follows:■ Use theMedia Player framework to play songs, audio books, or audio podcasts froma user’s iPod library. For details, seeMedia Playe. 阅读全文
posted @ 2011-08-22 11:48 不及格的程序员-八神 阅读(579) 评论(0) 推荐(0) 编辑
摘要: emulator 仿真器。通过软件方式,精确地在一种处理器上仿真另一种处理器或者硬件的运行方式。其目的是完全仿真被仿真硬件在接收到各种外界信息的时候的反应。我们现在常见的MAME、ePSXe等都是这一类。 仿真器多用于电视游戏和街机,也有一些用于掌上电脑。仿真器一般需要ROM才能执行,ROM的最初来源是一些原平台的ROM芯片,通过一些手段将原程序拷贝下来(这个过程一般称之为“dump”)然后利用仿真器加载这些ROM来实现仿真过程。 仿真器运行的程序一般是与目标机器码相同的二进制码,比如arm指令.很明显示的例子就是android 的apk可执行文件,可以装进emulator和真机中,而simu 阅读全文
posted @ 2011-07-04 15:36 不及格的程序员-八神 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: 作者:不及格的程序员-八神要注意不支持的特性 比如你的手持设备不支持发送短信或邮件的话,创建该类型的类时将返回nil...,这与我们平常习惯性的理解不同,如果是我设计我会让它抛出异常可能会更好,至少不需要查api文档就知道怎么回事。设备的方向 当你在window上连续添加两个景色模式的视图控制器的时候,第二个视图的方向会保持人像模式,并且它的shouldAutorrotateToInterfaceOrientation方法不会被触发...根视图中的输出口 这个算不算,可以根据开发人员的个人理解而定,按传统编程想法,当从nib文件实例化一个视图控制器时,我觉得视图中的所有输出口控件都会自动初.. 阅读全文
posted @ 2011-05-25 10:46 不及格的程序员-八神 阅读(2068) 评论(1) 推荐(1) 编辑
摘要: 作者:不及格的程序员-八神功能简单数学题难倒智能手机(是呼是直指Android,很多用户都会看到该条消息,都会测试在自已的手机中测试,结果会很失望)8.03减去7.96等于多少?答案是0.07。14.52减去14.49等于多少?答案是0.03。这道简单的小数减法题,相信很多小学生都可以很快、很轻易、很从容地解答出来,但让人想不到的是,一部分智能手机却在这个算术题上栽了大跟头。软件及商店总有一些第三方自称是统计机构的组织站出来说某某平台的软件市场的上架软件数量,持续增长大有超过iturn appstore的趋式.数量不是关键,而在于质量啊,到现在我还没有找到在ANDROID平台上出类萃的新闻类软 阅读全文
posted @ 2011-05-12 12:57 不及格的程序员-八神 阅读(3744) 评论(35) 推荐(3) 编辑
摘要: 大部人都说是因为c的方法声明放到.h文件中,而实现的方法(method)要放到.m文件中.也有一部人说是因为Objective-c很有特点的使用了message方式调用方法,所以文件名就定.m吧.but Brad Cox said : "Because .o and .c were taken. Simple as that."!!! 阅读全文
posted @ 2011-05-05 17:33 不及格的程序员-八神 阅读(792) 评论(2) 推荐(0) 编辑
摘要: 推荐一个大众化语言学习的站点: http://code.google.com/p/google-styleguide/它使用xml+xslt的方式解析成HTML页面,并且循续渐近式的介绍每种(比较大众化的,目前收录了 C++ , JavaScript, Objective-C , 和Python )编程语言 .可以作为内部培训资料或是初学者使用.样例:BackgroundObjective-C is a very dynamic, object-oriented extension of C. It's designed to be easy to use and read, whil 阅读全文
posted @ 2011-05-05 13:12 不及格的程序员-八神 阅读(3449) 评论(0) 推荐(0) 编辑