日志标签 ‘iPhone’

推荐一款全平台的记事软件EverNote

2010年4月20日
推荐一款全平台的记事软件EverNote

在twitter上看到有个哥们说”在超市购物,购物单忘在家里了”,哈哈,这记性可真糟糕.不过他如果有Evernote软件就不会有这个麻烦 了.EverNote是一款可以记录很多格式的软件,网页,截图,doc,excel,甚至代码都可以.它支持几乎所有的平台,windows,mac都 有客户端,web也可以直接访问,还有iPhone,android,blackberry,windows mobile等手机平台,比较杯具的是目前不支持symbian,这对中国用户来说实在太糟糕了.

EverNote支持标签,注视,分类,非常方便的搜索功能,你遇到什么东西都可以往里面填,然后就可以自动同步,所有的设备都可以访问了.想当年,我出 去玩只能google一些旅游攻略保存成txt放到手机上来方便查询.现在好了,你可以搜索出攻略,把网页直接copy到evernote里面,图文并 茂,什么也不许要做了,只要拿出手机同步一下,你就可以按图索骥的进行了.

所有这一切都是免费的,但是,但是是有限制的,每个月同步的流量只有40M,单个文件最大25M,同步支持的格式只能是文本,图片,pdf,网页等格式, 如果想要增大流量到500M,单个文件50M,所有格式支持,那么你就要付出5刀/月的代价,这在中国还是有点贵的.不过,免费版基本够用了,如果不够用 那就掏银子吧.还是期望国内有公司能够提供这个好的服务,5元人民币就比较容易接受了.

免费版和收费版的对比如下:

创建自定义的iPhone Application Xcode Template

2009年11月23日

本人不喜欢使用interface builder创建界面,因为它会使整个程序不易读,为了方便起见,就修改了一个不使用IB的模板,免得每次都要手动修改,浪费时间.

xcode的模板文件是放在

/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application

我复制了一份View-based Application然后把名字改为View-based Application No IB
然后把*.xib文件全部删除,然后把xxinfo.plist中的Main nib file base name MainWindow
行删除.
然后再把source文件里面通过*.xib文件创建的window和viewcontroller手工创建,然后大功告成.
以后通过xcode的向导就可以创建不使用IB的应用程序了.
下面是我修改的template,可以拷过去用.

如何使用makefile文件编译安装app到破解的iPhone

2009年8月28日

翻译转帖自:How-To compile iPhone Project in Mac using Makefile instead of Xcode and fake codesign and then install to pwned iPhone

You can use the command line xcodebuild to build and install iPhone project such as

xcodebuild -target Project_Name
xcodebuild install -target Project_Name

Here is an example to compile iPhone Project using Makefile instead of XCode.

The Makefile will compile and codesign the binary using ldid (Intel binary version) and then install the files directly to iPhone /Applications/ folder using ssh

Location of files
—————-
Classes : source code (.m .c .cpp etc)
Resources : png file and other support files
Project folder : *.xib Info.plist

(1) First you need to download this sample zip file and extract it to your Mac and cd to the directory


curl -O http://www.iphone.org.hk/attach/48150-PeoplePickerDemo.zip
unzip 48150-PeoplePickerDemo.zip
cd PeoplePickerDemo

(3) Change the IPHONE_IP in the Makefile to the IP address of iPhone, default is 10.0.2.2

(4) install respring utility in iPhone
make install_respring

(5) run make and make install
make
make install

(6) Test launch the app Demo in iPhone

In order to avoid typing the password using ssh, you can install the ssh public key of your Mac to your iPhone using the following method

(a) keygen in Mac terminal and type (if you haven’t generated it before)
ssh-keygen -t rsa

You will be asked to enter a passphrase, please remember that if you enter that.

(b) create .ssh directory in iPhone (assume ip address of iPhone is 10.0.2.2) and in Mac terminal and type
ssh root@10.0.2.2 'mkdir -p .ssh'
then enter iPhone root password (alpine)

(c) copy mac public key to iPhone, and in Mac Terminal type
cat ~/.ssh/id_rsa.pub | ssh root@10.0.2.2 'cat >> .ssh/authorized_keys'
then enter iPhone root password (alpine)

(d) Edit the file /etc/ssh/sshd_config in iPhone

change these

#StrictModes yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

to


StrictModes no
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

(e)reboot iPhone

To compile ldid in Power PC, do this


wget http://svn.telesphoreo.org/trunk/data/ldid/ldid-1.0.476.tgz

tar -zxf ldid-1.0.476.tgz

# this patch is for PowerPC only
wget -qO- http://fink.cvs.sourceforge.net/viewvc/*checkout*/fink/dists/10.4/unstable/crypto/finkinfo/ldid.patch?revision=1.1 | patch -p0

cd ldid-1.0.476

g++ -I . -o util/ldid{,.cpp} -x c util/{lookup2,sha1}.c

sudo cp -a util/ldid /usr/bin

关于引进iPhone帮联通算个账

2009年8月12日

联通引入iPhone被多次炒作,炒来炒去已经让人生厌,没有了新鲜感。网上很多砖家教授,不知道是受雇佣于移动还是电信,还是因为联通没给他们塞钱,一味的对于引入iPhone拍砖。更有砖家抛出iPhone将会被Ophone替代,真是让人笑掉大牙。iPhone我是很熟的,做为开发者,做为用户,也是用了一年多了。对于Ophone我也见过,不过不是联想那款,而是LG的,我的体验是白给我我也不会去用,具体以后再说。先给联通算算账。

1.如果按传言联通购买500万部iPhone,成本只有2000元的话。即使2500-3000的裸机销售,联通都是稳赚不赔,500w的销量也是很稀松平常,你看看这个价位能买到什么手机就知道。即使成熟如wcdma,也才可以买到E71,黑莓8900,HTC G2,X1,N85等等,TD和evdo基本上没什么可选的。如果有人对联通引进的iPhone没有wifi耿耿于怀的话,其实nokia很多手机行货都没有wifi,但是一样卖的很火。wifi的确很重要,但是绝对不是不可以没有。如果联通能够有比较合适便宜的流量包月,没有wifi的iPhone一样很爽。所以,联通引进iPhone不可能赔本。

2.尽管裸机卖联通也不会赔本,但是显然联通做为运营商肯定不是为了赚这个钱,那么必定会绑定一定的套餐。有了这个套餐,iPhone就可以给联通带来大批的用户。假如联通以3500的价格,绑定每月100的套餐2年或者2500的价格,每月200的套餐2年,还是很有竞争力的。套餐的价格不能直接计入iPhone的成本,你想想,如果你不买联通的iPhone你难道每个月就不会消费200或者100了吗?显然不会影响你的消费的,如果你的消费是低于100的话,你大可以买别人换的iPhone或者水货,相信水货的价格也会大大降低。这样看,引进iPhone不仅不会赔本还会赚钱还会给联通带来用户。

3.如果联通能够获得app store的中国区代理权,那么以后还可以得到和开发者的30%的分成,即使去掉各种测试成本,维护运营成本,还是可以赚一笔钱,当然前提是app store的中国经营权联通能拿到,能够把app store在中国做大做好!

以上分析都是假设,有可能联通的定价更高,套餐更贵,那样的话iPhone可能卖不出去,但是为了不砸手里也会降到一个合理的价格。所以,如果联通充分调查市场的话,价格不会比我预测的高多少。

wcdma的确是个好牌,有很多的终端支持,联通一定不要只把重点放在iPhone上,N97,G2,Hero,idou,….很多的手机体验都很不错,联通都可以以绑定套餐的形式卖给用户,以增加联通的用户。当然,最重要的是把网络建好,服务提高上去,制定切实可行的套餐,只有这样才可以吸引更多的用户加入wcdma阵营,真正的让用户体验到3G。