Geek@Paris
  • Install Xcode 3.2.6 on Lion & Mountain Lion

    2013-04-12

    Although I figured out how it works by myself, I still wanted to find some simpler procedures. Finally, I found these 2 tutorials from Eugene’s blog, which are so perfect that I’d like to share them.

    The original URLs are:
    http://hamstergene.github.io/blog/2012-04-03-xcode3-lion
    http://hamstergene.github.io/blog/2012-11-13-xcode3-mountain-lion

    In case they are not available one day in the future (best not, it’s hosted on github…), I copied its content here as a backup.

    Read More »

    Author:admin | Categories:DeviOSIT | Tags:
  • MacIdea 3周年·编程大赛——Python版参考答案

    2012-09-04

    2012年8月1日,MacIdea论坛举办了一次小小的编程比赛。比赛内容是让大家做3个算法题,外加1个MacIdea创始人hdfdisk提供的附加题。

    我向来喜欢这种挑战自我的小比赛,第一时间就去凑热闹了,公司的活都不干了……

    几年前就想学Python,一直没找到切入点。这次比赛是一个不错的机会,我毅然决然地调动了所有资源开始学习Python,从研究Python开发环境到上网搜索入门教材和范例,废寝忘食了几天,在家都顾不上搭理老婆了…

    如今距离比赛结束(2012年8月14日)有2个多星期了,8月初提交完答案后我再也没管过它。现在答案和成绩都出来后,找个时间坐下来再好好看看这3个算法题的解题思路,参考参考别人的答案。

    结合各家精华,用依旧生疏的Python知识完善了一下我的一份答案,放在这里以备查阅。

    详情请查看正文:

    PS:由于试题内容比较长,我把它们放在文章末尾部分了。

    Read More »

    Author:admin | Categories:DevPython | Tags:
  • How to manually remove the Interface Builder plugin dependency for BGHUDAppKit

    2012-08-07

    Xcode 4 doesn’t support Interface Builder Plugin any more, so we have to remove all 3rd party Interface Builder Plugins.

    Unfortunately, all the *.xib files in my project can’t be managed by Xcode 4 automatically, it told me that the given plugin file of BGHUDAppKit can’t be decoded by some errors…So I have to remove the plugin dependency by hands without any other choice:(

    The following list is the procedure which I succeeded with at last.

    Read More »

    Author:admin | Categories:Dev | Tags:
  • Add Lion Fullscreen feature in a Xcode 3 project

    2011-11-04
    1. Open your *.xib files by Interface Builder 3.2.6 (which is included in Xcode 3.2.6), press OPT+CMD+I to open the Info panel, change “Development Target” to “Interface Builder 3.2”.
    2. Open your *.xib file in any text editor (Such as Kod, Sublime Text 2, TextMate, etc.).
    3. Search and find
      <object class="NSWindowTemplate" id="xxxxxxxxx">
    4. Copy and paste the following code between the found object tag
      <int key="NSWindowCollectionBehavior">128</int>
    5. Save and build your project, you will see the full-screen button on the top-right corner of your window if your system is Lion.
    Author:admin | Categories:Dev | Tags:
  • [整理]关于iPhone开发中的绘图

    2011-06-16

    src: happy do: iPhone中的绘图相关资料

    iPhone中,主要通过下面的几个技术来绘图
    OpenGL, Quartz, UIKit or Core Animation

    Read More »

    Author:admin | Categories:DeviOS | Tags:
  • iOS device debug CODE_SIGNING_REQUIRED = NO

    2011-05-07

    First

    cd /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOSXXXX.sdk/
    sudo vi SDKSettings.plist

    Then

    1. Type your password then enter.
    2. Type i
    3. Modify CODE_SIGNING_REQUIRED to NO
    4. Press ESC
    5. Type :wq
    6. Press Enter
    7. Go to Xcode project’s info, modify Code Signing Identity to NO.
    8. Relaunch your Xcode and here we go!
    Author:admin | Categories:Dev | Tags: