Mar 29

程式名稱為My fone

載入畫面

操作畫面.
請台灣大哥大的朋友幫忙到 http://liho.tw/fone/測試.
我認為應該有很多錯誤. 因為我不熟台灣大哥大的規則.
如果您知道有計算上的錯誤請您告訴我.謝謝.
有點小累, 先這樣.晚點再補齊.
Tagged with: Javascript • Programming
Mar 24
今天晚上臨時想寫個節費程式. 這樣就可以算到底還有多少通簡訊可以傳. 到底還有幾分鐘通話可以使用. 目前這隻程式還算很陽春. 最好是能夠直接登入emome然後把資料撈回來. Orz 就不用輸入那些有的沒有的通話及簡訊費用了.
畫面大概如下 :

程式名稱為My mPro

載入畫面

大家講使用畫面

元氣型使用畫面

基本型使用畫面
請用iPhone瀏覽 : http://liho.tw/mpro/ 頁面. 記得加入主畫面(Home Screen).
在使用這個節費程式前, 先到 emome 註冊你的帳號. 然後進入我的帳單網頁查詢您的未出帳的資訊. 在進去 My mPro 程式計算目前剩餘通話量.
Tagged with: iphone • Programming
Jan 21
早上7am 這個 lihotw 會為您報台北市天氣.

歡迎加入lihotw.
Tagged with: Life • php • plurk
Jan 20
1
2
| NSDictionary *playerInfo = [aNotification userInfo];
NSLog(@"%@", playerInfo); |
我很好奇這個 NSDictionary 裡面裝了什麼膏藥? 就用NSLog幫忙揭開神祕的面紗 :
Album = “In the Enchanted Garden”;
“Album Rating” = 0;
“Album Rating Computed” = 1;
Artist = “Kevin Kern”;
“Artwork Count” = 1;
Genre = “New Age”;
“Library PersistentID” = “-8755280181446606464″;
Location = “file://localhost/Users/xxxxx/Music/iTunes/iTunes%20Music/Kevin%20Kern/In%20the%20Enchanted%20Garden/07%20Water%20Lilies.mp3″;
Name = “Water Lilies”;
PersistentID = 8747019994823533665;
“Play Count” = 0;
“Play Date” = “2040-02-06 06:28:16 +0800″;
“Player State” = Playing;
“Playlist PersistentID” = “-8755280181446606453″;
“Rating Computed” = 1;
“Skip Count” = 0;
“Skip Date” = “2040-02-06 06:28:16 +0800″;
“Store URL” = “itms://itunes.com/link?n=Water%20Lilies&an=Kevin%20Kern&pn=In%20the%20Enchanted%20Garden”;
“Total Time” = 257802;
“Track Count” = 10;
“Track Number” = 7;
Year = 1996;
另外, 還可以用下列方式
NSString *strOutput = [NSString stringWithFormat:@"%@", playerInfo];
NSString *strOutput = [playerInfo description];
Tagged with: apple • Cocoa • Programming
Jan 13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| int main(int argc, char *argv[])
{
[NSThread detachNewThreadSelector:@selector(checkiTunesStatus) toTarget:self withObject:nil];
}
- (void) checkiTunesStatus
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
while (pTunesRun) {
[NSThread sleepForTimeInterval:1.0];
}
[pool release];
[NSThread release];
} |
這個程式在一般的Application執行沒問題. 但是寫成 widget plugin就死翹翹了. 先自己記錄起來.之後再用這個 codes.
Tagged with: Cocoa • Programming
Jan 07

想要做個比較簡單的介面搜尋歌詞. 下載專輯封面. 還在努力中. 希望能完美完成. 另外也在克服怎樣加速建立歌詞資料庫.
還有希望侵權別被 apple 告. 哈哈.
當時有這個念頭, 其實最終目標是能讓大家透過瀏覽器播放音樂. Google 不是都出了 Google OS? 本機端沒有太大的儲存空間. 一切仰賴網路. 如果蘋果出網頁版的 iTunes 那該有多好.哈哈.
Tagged with: apple • google • itunes
Dec 09
If you do not specify Google Calendar URI, the event will be added to the primary calendar. So, you need to figure out which URI of calendar is the right URI you want to update.
In “Calendar Settings” -> “Calendars”, Select the calendar which you want to update. You will see the link of XML. The XML link will like below :
http://www.google.com/calendar/feeds/#KEY#%40group.calendar.google.com/public/basic
#KEY# is your secret.
Replacing the “public/basic” part with “private/full“. It will become the Google Calendar URI.
http://www.google.com/calendar/feeds/#KEY#%40group.calendar.google.com/private/full
Add the URI as the second parameter in the insertEvent function. Like below :
1
2
| // $createdEntry = $gc->insertEvent($newEntry);
$createdEntry = $gc->insertEvent($newEntry, "http://www.google.com/calendar/feeds/#KEY#%40group.calendar.google.com/private/full"); |
Tagged with: Google APIs • php
Recent Comments