2012年8月21日

摘要: 今天遇到安装ntfs 3g后,找不到libfuse库的报错,就到网上找答案,一找不要紧,发现关于如何卸载ntfs 3g很多误人子弟的说法.其实卸载ntfs-3g的答案就在其手册中,第五页明明白白的写了如何卸载. 可以再NTFS-3G的偏好设置里有个按钮.如果这样仍然无法卸载, 可以直接执行一个shell脚本即可. 这个脚本的路径在/System/Library/Filesystems/ntfs-3g.fs/Support/uninstall-ntfs-3g.sh下面是手册中的描述.2.2 Uninstalling NTFS-3G NTFS-3G can be easily uninstalle 阅读全文
posted @ 2012-08-21 14:13 dqshll 阅读(3690) 评论(0) 推荐(0) 编辑

2012年8月20日

摘要: 这几天折腾我的cocos2d的工程,做了两件事1. 应用了cocos3d v0.7.1,把几个3d动画,包括pod文件和贴图成功地跑起来了.实现了2d和3d混合的界面.2. 升级cocos2d,从v1.0.1升级到v2.0.因为openGL的版本不同,还改动了不少代码.建议大家要升级的千万不要相信官网的option1,一定选择option2,就是重新建一个干净的工程,把自己的code加进去,这是最有效的方法,可以避免大部分问题.结果发现这两件事不能兼容,因为最新的cocos3d v0.7.1是基于cocos2d v1.0.1,根本不兼容cocos2d v2.0. 根本原因还是openGL的版本 阅读全文
posted @ 2012-08-20 12:03 dqshll 阅读(3671) 评论(0) 推荐(1) 编辑

2012年8月17日

摘要: 对全屏的截图我们可以通过按 苹果键(花键)+Shift键+3来执行,之后伴随着清脆的一声提示音后,在桌面上就会生成一个图片文件,这就是刚刚截屏的图片了,默认文件类型是PNG的。 自定义截屏是很方便的一个功能,是可以通过按 苹果键(花键)+ Shift键 + 4来执行,当执行组合按键之后鼠标指针的光标会变成十字,现在你就可以画出你想要截取屏幕的范围了,画好后截出的图片也会放在桌面上。另外,如果在按 苹果键(花键)+Shift键+4后按下 空格键,鼠标指针就会变成一个小照相机,这时是截取对象方式的截屏,把小照相机放在你想截图的窗口上按鼠标左键后就执行了对该窗口的截屏,很方便吧,还有一个用法就... 阅读全文
posted @ 2012-08-17 17:15 dqshll 阅读(167) 评论(0) 推荐(0) 编辑
摘要: when you want to convert your music or sound effect file to your ios application, you need to convert them to some audio format even though iOS can support many format to achieve performance and decrease your app size.there are some good command0: afplay xxx.xxx can test if it can be played after yo 阅读全文
posted @ 2012-08-17 17:14 dqshll 阅读(307) 评论(0) 推荐(0) 编辑
摘要: There are 4 resolution ios devices currently: iphone, iphone 4(s), ipad1/2, new ipad, feel painful about this? don't tell your feeling to android developers.in cocos2d, just use suffix to the image files or atlas as below rules:static NSString *__suffixiPhoneRetinaDisplay =@"-hd"; // f 阅读全文
posted @ 2012-08-17 17:10 dqshll 阅读(168) 评论(0) 推荐(0) 编辑
摘要: some time we need to figure out if any resoures files are already packed in the app. we can find it from mac under the path as below, in this case the app name is 3dhw:/Users/dingqun2008/Library/Developer/Xcode/DerivedData/3dhw-dychilwmyhglaeaalsypvckomsud/Build/Products/Debug-iphoneos/3dhw.app/3dhw 阅读全文
posted @ 2012-08-17 16:59 dqshll 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1. create a batchnode like with the picture created by Textures PakerCCSpriteBatchNode *spriteSheet =[CCSpriteBatchNode batchNodeWithFile:@"AnimBear.jpg"];2. cache sprite frames with plist (also created together with above)[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFil 阅读全文
posted @ 2012-08-17 16:56 dqshll 阅读(200) 评论(0) 推荐(0) 编辑

2011年8月1日

摘要: 前几天看了几个android 的demo源代码,其中有些中文注释.在我的eclipse中显示乱码.上网找了找解决,最后试了一下,可能是版本问题,新的eclipse上略有不同是这样的:选中要改文字编码的工程->右击选properties->Resource->text file encoding一栏,选择other,下拉菜单中如果没有GBK,就主动输入GBK.然后点击ok.中文就出来了. 阅读全文
posted @ 2011-08-01 11:06 dqshll 阅读(645) 评论(0) 推荐(0) 编辑

2010年8月25日

摘要: rmp -q -a如果想把结果输出到一个文件可以这样rmp -q -a > ver_list.txt 阅读全文
posted @ 2010-08-25 10:56 dqshll 阅读(384) 评论(0) 推荐(0) 编辑

2009年2月16日

摘要: 方法1、在WinXP里进行禁用操作比较方便。右键单击“我的电脑”里的光盘图标,选择“属性”,在弹出的窗体中选择“自动播放”选项卡,在这里用户可以针对“音乐文件”、“图片”、“视频文件”、“混合内容”和“音乐CD”五类内容设置不同的操作方式,都选用“不执行操作”即可禁用自动运行功能,“确定”后设置立即生效。方法2、将服务 SHELL HARDWARE DETECTION 关闭,也可以禁止设备自动播放... 阅读全文
posted @ 2009-02-16 13:23 dqshll 阅读(355) 评论(0) 推荐(0) 编辑

导航