Featured Posts

新家 Blog 公告 把舊網址的資料搬到新家,所以很多文章都是之前的記錄!

Readmore

相隔兩條平行的鐵道 愛了這樣一場像似有苦無 迷惑了誰確都不是誰的救贖 就像高鐵相隔兩條平行的鐵道 相戀只在一瞬間 離開只不過是換了下一車箱 流浪途中相遇最熟悉陌生人 望著高鐵站月台的位置 只剩下淡淡的祝福

Readmore

好用的Google 日曆,配合Free簡訊通知功能分享!... 前一陣子,在PDA討論區上看到Google日曆可以跟Outlo ok 行事曆同步等等功能 還有一個很吸引我的功能,就是Free簡訊通知功能! 使用方式必需在 "Google日曆"...

Readmore

迷喵 Ticky 填格子的Blog Rss

ubuntu 9 網路設定

Posted by admin | Posted in Linux | Posted on 30-12-2009

0

edu@ubuntu:/etc$ cat resolv.conf
# Generated by NetworkManager
domain xxx.xxx.xxx
search xxx.xxx.xxx
nameserver 168.95.1.1 <–中花電信的DNS

網卡IP 設定

固定IP方式
edu@ubuntu:/etc/network$ cat interfaces
#auto eth0
#iface eth0 inet static
#address 192.168.2.168
#netmask 255.255.255.0
#gateway 192.168.2.254

# DHCP 方式
auto lo
iface lo inet loopback

openURL 用法

Posted by admin | Posted in Iphone 3Gs | Posted on 24-12-2009

0

openURL 用法

 [[UIApplication sharedApplication]
    openURL:[NSURL URLWithString:@"http://www.google.com.tw"]]; 

 [[UIApplication sharedApplication]
    openURL:[NSURL URLWithString:@"tel://0920123123"]]; 

 [[UIApplication sharedApplication] openURL:
    [NSURL URLWithString:@"sms:0920123123"]]; 

 [[UIApplication sharedApplication]
    openURL:[NSURL URLWithString:
    @"mailto:emailAdress?subject=Hello&body=user@mail.com"]];

關閉屏幕和睡眠模式

Posted by admin | Posted in Iphone 3Gs | Posted on 24-12-2009

0

The code below will prevent the iPhone from dimming its screen and ultimately going to sleep.

下面代碼將防止iPhone關閉屏幕和睡眠模式。

?View Code OBJECTIVE-C
1
[UIApplication sharedApplication].idleTimerDisabled = YES;

Xcode 建立 ipa 檔案

Posted by admin | Posted in Iphone 3Gs | Posted on 22-12-2009

0

建立一個 Payload 目錄

把.app 放到Payload 內

壓成zip

或直接把 .app 抓進去Ituns

The version of iPhone OS on “Ticky Iphone”

Posted by admin | Posted in Iphone 3Gs | Posted on 22-12-2009

0

The version of iPhone OS on “Ticky Iphone” does not match any of the versions of iPhone OS supported for development with this copy of Xcode. Please restore the device to a version of the OS listed below. If necessary, the latest version of Xcode is available here.

OS Installed on Ticky Iphone

3.1.2 (7D11)

Xcode Supported iPhone OS Versions
3.1.1 (7C146)
3.1.1 (7C145)
3.1 (7C144)
3.0.1 (7A400)
3.0
2.2.1
2.2
2.1.1
2.1
2.0.2 (5C1)
2.0.1 (5B108)
2.0 (5A347)
2.0 (5A345)

在/Developer/Platforms/iPhoneOS.platform/DeviceSupport/目錄下,做了一個名字叫做 3.1.2 (7D11) 的Symbolic Link,鏈結到3.1的那個目錄就可以了。

ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2\ \(7D11\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1

http://developer.apple.com/iphone/library/qa/qa2009/qa1677.html