分類彙整: 有的沒的

error 0無法連接 iTunes Store ( In-App Purchase )

最近在實作 In-App Purchase
在 iPhone 上測試的時後一直吃到屎….
不斷出現…”error 0 無法連接 iTunes Store”的錯誤.
搞了一兩天…..
最後google了一堆大家的問題
有的說要先上傳 Binary 然後 Reject 才會測通..
也照幹了…
還是失敗…
後來把整個 product 砍掉, 再重建新的…
test user 也重新建…
結果在萬念俱灰的情況下….
他通了……他通了……他通了……他通了……他通了……他通了……他通了……
這篇單純是筆紀一下…

1. 可能要先上傳 Binary ( 近期會再用另一個 Apple id 來建新 App 就可以知道拔獅子的鬃毛會不會長頭髮出來了 )
2. Versions Status : Developer Rejected
3. 在 App details 中的 In-App Purchase 未將Product 加入.
4. 做完這些後重新建一個 test user

第六天

今天整天的計劃就是掃描媽媽的照片,準備做投影片,及將來媽媽的相簿網站用
邊掃邊看我媽年輕時的照片感覺”肉肉的”XD
稱不上正妹,不過就中規中矩的
當時的個性感覺個性應該相當活潑

也在整理照片的時後,感覺媽媽在整理東西處理事情的時後都很有條有序的
很多東西真的都整理的滿好的
在找的過程中也發現媽媽將我過往的獎狀、成績單都留著
還有找到氣喘的就醫記錄、免役證書、幼稚園的畢業紀念冊( 這個最扯, 竟然還留著 )
只能說好吧~媽~~做事這麼有條有序~~我學的還不夠好…可以說幾乎不像你XD

第五天

今天原本是計劃要跑國稅局, 及稅捐處一趟
不過後來因為緊急處理了一下某客戶的mail server 的問題
將spam filter 換成dspam
看一看時間也大約下午了
就準備媽媽頭七的事

約未晚上九點時,師父們也來頌經,整個過程含休息大約2個小時
不過~~我沒有感覺我媽媽有回來的fu…


作詞:李心潔 / 作曲:光良

不願承認 不願面對 我真的愛你很深很深
一個笑容 一句話語 都讓我心跳 很快很快
每個思索 每個欲望 全被你佔據很滿很滿
無法平靜 不想透露 因為愛你快樂 很久很久

情願 醉死在夢裡 當一切都變得無力
情願 為你而美麗 當你呼喚我的名字
情願 默默的隱藏 當它只是一個錯誤
情願 很久的以後 當一切都被時間沖淡 我只會更愛你

英文發音~

通常只要是母音,子音,母音 (子音後立刻有母音,而且是會影響前面的母音結構)
音就會變
且母音後面的子音只能有一個
過多通常就不會改變母音結構
遇到a, e不改變
decade
但遇到 i 就會

decisive
detention
resort

筆記一下

紅豆

每次聽到這首歌….總是有一些過往的畫面一直浮現………………..

還沒好好的感受 雪花綻放的氣候
我們一起顫抖 會更明白 甚麼是溫柔
還沒跟你牽著手 走過荒蕪的沙丘
可能從此以後 學會珍惜 天長和地久

有時候 有時候 我會相信一切有盡頭
相聚離開 都有時候 沒有甚麼會永垂不朽
可是我 有時候 寧願選擇留戀不放手
等到風景都看透 也許你會陪我 看細水長流

還沒為你把紅豆 熬成纏綿的傷口
然後一起分享 會更明白 相思的哀愁
還沒好好的感受 醒著親吻的溫柔
可能在我左右 你才追求 孤獨的自由

benchmarking with sysbench on X3650 M2

手邊剛好有x3650m2的機器
順手測了一下…FreeBSD 7.1 i386 & FreeBSD 8.0 AMD64
Jeff Roberson弄一下..XD
就沒圖先看數據吧…

CPU: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (2266.76-MHz 686-class CPU)
real memory = 2137583616 (2038 MB)==>其實這台機器有12G, 不過i386只抓得到2G
avail memory = 2081353728 (1984 MB)
RAID 5 / 四顆 IBM 43W7538 146.8GB 10Krpm SAS
RAID controller MR10i

——————7.1 i386 ———————–

uname -a
FreeBSD ms1.xxx.xxx.xx 7.1-RELEASE-p9 FreeBSD 7.1-RELEASE-p9 #0: Tue Dec 15 15:53:44 CST 2009 root@xxx.xxx.xxx:/usr/obj/usr/src/sys/GENERIC i386

mysql-server-5.0.77

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=5 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 6075594
write: 0
other: 867942
total: 6943536
transactions: 433971 (7232.78 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 6075594 (101258.95 per sec.)
other operations: 867942 (14465.56 per sec.)
Test execution summary:
total time: 60.0006s
total number of events: 433971
total time taken by event execution: 293.7474
per-request statistics:
min: 0.47ms
avg: 0.68ms
max: 1.16ms
approx. 95 percentile: 0.79ms
Threads fairness:
events (avg/stddev): 86794.2000/4495.36
execution time (avg/stddev): 58.7495/0.10

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=10 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 9777810
write: 0
other: 1396830
total: 11174640
transactions: 698415 (11640.11 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 9777810 (162961.49 per sec.)
other operations: 1396830 (23280.21 per sec.)
Test execution summary:
total time: 60.0007s
total number of events: 698415
total time taken by event execution: 590.1649
per-request statistics:
min: 0.48ms
avg: 0.85ms
max: 205.14ms
approx. 95 percentile: 0.98ms
Threads fairness:
events (avg/stddev): 69841.5000/1335.06
execution time (avg/stddev): 59.0165/0.02

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=15 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 12752964
write: 0
other: 1821852
total: 14574816
transactions: 910926 (15181.88 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 12752964 (212546.30 per sec.)
other operations: 1821852 (30363.76 per sec.)
Test execution summary:
total time: 60.0009s
total number of events: 910926
total time taken by event execution: 886.4647
per-request statistics:
min: 0.56ms
avg: 0.97ms
max: 402.33ms
approx. 95 percentile: 1.01ms
Threads fairness:
events (avg/stddev): 60728.4000/606.53
execution time (avg/stddev): 59.0976/0.02

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=20 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 13327272
write: 0
other: 1903896
total: 15231168
transactions: 951948 (15865.47 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 13327272 (222116.62 per sec.)
other operations: 1903896 (31730.95 per sec.)
Test execution summary:
total time: 60.0012s
total number of events: 951948
total time taken by event execution: 1186.0876
per-request statistics:
min: 0.64ms
avg: 1.25ms
max: 994.84ms
approx. 95 percentile: 1.99ms
Threads fairness:
events (avg/stddev): 47597.4000/2590.43
execution time (avg/stddev): 59.3044/0.04

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=30 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 8234198
write: 0
other: 1176314
total: 9410512
transactions: 588157 (9802.05 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 8234198 (137228.77 per sec.)
other operations: 1176314 (19604.11 per sec.)
Test execution summary:
total time: 60.0034s
total number of events: 588157
total time taken by event execution: 1791.4983
per-request statistics:
min: 0.59ms
avg: 3.05ms
max: 1020.70ms
approx. 95 percentile: 7.91ms
Threads fairness:
events (avg/stddev): 19605.2333/3866.54
execution time (avg/stddev): 59.7166/0.06

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=40 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 6483008
write: 0
other: 926144
total: 7409152
transactions: 463072 (7717.23 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 6483008 (108041.20 per sec.)
other operations: 926144 (15434.46 per sec.)
Test execution summary:
total time: 60.0050s
total number of events: 463072
total time taken by event execution: 2393.3892
per-request statistics:
min: 0.62ms
avg: 5.17ms
max: 1218.90ms
approx. 95 percentile: 11.50ms
Threads fairness:
events (avg/stddev): 11576.8000/390.35
execution time (avg/stddev): 59.8347/0.02

——————-8.0 AMD 64—————————-

uname -a
mysql-server-5.1.41

FreeBSD ms2.xxx.xxx.xx 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=5 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 6130026
write: 0
other: 875718
total: 7005744
transactions: 437859 (7297.57 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 6130026 (102166.01 per sec.)
other operations: 875718 (14595.14 per sec.)
Test execution summary:
total time: 60.0006s
total number of events: 437859
total time taken by event execution: 296.7323
per-request statistics:
min: 0.51ms
avg: 0.68ms
max: 1.45ms
approx. 95 percentile: 0.77ms
Threads fairness:
events (avg/stddev): 87571.8000/2867.68
execution time (avg/stddev): 59.3465/0.03

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=10 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 9962218
write: 0
other: 1423174
total: 11385392
transactions: 711587 (11859.65 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 9962218 (166035.11 per sec.)
other operations: 1423174 (23719.30 per sec.)
Test execution summary:
total time: 60.0007s
total number of events: 711587
total time taken by event execution: 593.2102
per-request statistics:
min: 0.50ms
avg: 0.83ms
max: 2.41ms
approx. 95 percentile: 0.93ms
Threads fairness:
events (avg/stddev): 71158.7000/2261.35
execution time (avg/stddev): 59.3210/0.01

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=15 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 13259092
write: 0
other: 1894156
total: 15153248
transactions: 947078 (15784.37 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 13259092 (220981.20 per sec.)
other operations: 1894156 (31568.74 per sec.)
Test execution summary:
total time: 60.0010s
total number of events: 947078
total time taken by event execution: 889.9460
per-request statistics:
min: 0.63ms
avg: 0.94ms
max: 20.56ms
approx. 95 percentile: 1.06ms
Threads fairness:
events (avg/stddev): 63138.5333/1133.73
execution time (avg/stddev): 59.3297/0.01

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=20 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 13220214
write: 0
other: 1888602
total: 15108816
transactions: 944301 (15737.99 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 13220214 (220331.79 per sec.)
other operations: 1888602 (31475.97 per sec.)
Test execution summary:
total time: 60.0014s
total number of events: 944301
total time taken by event execution: 1190.1741
per-request statistics:
min: 0.74ms
avg: 1.26ms
max: 563.96ms
approx. 95 percentile: 1.87ms
Threads fairness:
events (avg/stddev): 47215.0500/2867.47
execution time (avg/stddev): 59.5087/0.03

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=30 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 13463828
write: 0
other: 1923404
total: 15387232
transactions: 961702 (16027.97 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 13463828 (224391.57 per sec.)
other operations: 1923404 (32055.94 per sec.)
Test execution summary:
total time: 60.0015s
total number of events: 961702
total time taken by event execution: 1789.5202
per-request statistics:
min: 0.81ms
avg: 1.86ms
max: 681.42ms
approx. 95 percentile: 2.84ms
Threads fairness:
events (avg/stddev): 32056.7333/2107.91
execution time (avg/stddev): 59.6507/0.03

[sourcecode language=’sh’]
sysbench –test=oltp –num-threads=40 –mysql-user=root –max-time=60 –mysql-db=test –max-requests=0 –oltp-read-only=on run
[/sourcecode]

OLTP test statistics:
queries performed:
read: 12487580
write: 0
other: 1783940
total: 14271520
transactions: 891970 (14865.73 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 12487580 (208120.26 per sec.)
other operations: 1783940 (29731.47 per sec.)
Test execution summary:
total time: 60.0018s
total number of events: 891970
total time taken by event execution: 2390.2678
per-request statistics:
min: 0.89ms
avg: 2.68ms
max: 726.19ms
approx. 95 percentile: 3.32ms
Threads fairness:
events (avg/stddev): 22299.2500/1868.45
execution time (avg/stddev): 59.7567/0.02