试用了Mac下所有新浪微博客户端,吐槽下…

把Mac下所有的新浪微博客户端都试用了一遍,包括:

  • Air微博
  • Macbo
  • Mint
  • Weibo for Mac
  • Weibo Air
  • Weibr
  • Weico
  • WeiLark
  • Wing
  • 微波炉

我一个个吐槽下…
Read the rest of this entry »

Add Lion Fullscreen feature in a Xcode 3 project

  1. Open your *.xib file in any text editor.
  2. Search and find 
    <object class="NSWindowTemplate" id="xxxxxxxxx">

  3. Copy and paste the following code between the found <object> tag
    <int key="NSWindowCollectionBehavior">128</int>

  4. 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.

在Mac OS Lion下给TouchPad安装CyanogenMod版Android(Alpha 2.1)

之前在法国电器超市FNAC争取到一台TouchPad 32GB版(现已出)。等了很久终于等到CyanogenMod的Android移植。
这里简单整理一下从网上搜罗的信息,适用于在Mac OS Lion和CyanogenMod TouchPad port Alpha 2.1版。

Read the rest of this entry »

[整理]关于iPhone开发中的绘图

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

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

Read the rest of this entry »

总结: 如何免$99在iOS设备上做联机调试

在越狱过的iOS设备上做联机调试有一个很大的优点——即不需要注册99美元的开发者帐户了。当然,对于已经买过帐户的开发者来说,还有一个优点就是联机测试一些demo的时候不需要临时申请AppID了……

但通过这种方式会不时遇到一些无法调试的奇怪问题。我把网上搜到的一些问题的解决方案翻译并总结在这里,方便大家查阅。

Read the rest of this entry »

iOS device debug CODE_SIGNING_REQUIRED = NO

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!

Update your GitHub fork repo from its original repo

//the active directory in the prompt to the newly cloned "ProjectName" directory
$ cd ProjectName
//Assigns the original repo to a remote called "upstream"
$ git remote add upstream git:/ /github.com/theOriginalAuthor/ProjectName.git
//Fetches any new changes from the original repo
$ git fetch upstream
//Merges any changes fetched into your working files
$ git merge upstream/master

横向比较iOS各拼音输入法在蓝牙键盘上的输入体验

这键盘用了快有一年了,本来是给Mac Pro台式机配的,今天突发奇想,如果哪天我背着蓝牙键盘出门旅游的话,是不是也可以通过蓝牙键盘实现完美的输入体验呢?

赶紧上Cydia把所有中文输入法的最新版本都安装了一遍,并按我对拼音输入法的几点需求来做了一些测试。

我的iPad一代系统版本是4.3.1,iPhone 4系统版本是4.1,测试键盘是Apple Wireless Keyboard US English。

Read the rest of this entry »

GIOTTO’S VGR 9264 MC 三脚架

之前一直在用一个比较普通的伟峰三脚架。最近拍了一些天文作品(比如月球离地球最近的3月19/20日,土星离地球最近的4月4日),终于受不了它的稳定性了……(因为镜头太重焦距太长,需要很强的稳定性……)

于是下决心买个好一点的三脚架。去amazon.fr、ebay.fr以及法国几家电器店做了些功课。发现很多优秀的品牌在法国买不到……

最后看中了GIOTTO’S的三脚架,比较满足我的要求:1,收缩后比较短;2,球形云台;3,能改成单脚架。

在巴黎能找到的GIOTTO’S三脚架里也有好几个型号可选,比如管径25mm的9255和管径28mm的9264。

受昨天看到的文章影响,我决定买大一号的版本。(昨天看到很多人推荐富曼图055,说富曼图190太细了,不好用……)

可惜我在我去的那家店里没有看到28mm管径的5段版本,只看到了4段的9264。(9265是5段的,收缩后更短~而且单脚架也更短~)

下面放一些自己拍的图。不够专业,不敢妄作评论,内行的一看便知好坏~

Read the rest of this entry »

How to add breakpoints in Xcode?

You must know the normal ways:

  • Click on the line number
  • Paste and add a method name in the Breakpoints window (Alt+CMD+B)

But sometimes you may have a chance to fight with an internal function such as “__NSAutoreleaseNoPool():”. How can we pause it?

Here’s the solution:

  1. Start your debug (CMD+Enter)
  2. Goto the GDB window (Shift+CMD+R)
  3. Go into the debug console (Ctrl+C)
  4. Type “br __NSAutoreleaseNoPool” to add the special breakpoint (Don’t forget to press Enter)
  5. Continue your debug (Alt+CMD+P)
  6. You can also remove the breakpoint in the Breakpoints window (Alt+CMD+B)
←Older