2011年5月4日 星期三

八字緣

另一新的 apps














Description

想知道自己每小時的運程指數如何?

想知道自己的貴人是誰?
想知道自己的五行屬性嗎?

.........

這一切的一切,都能通過這個軟體得到答案。

八字乃中國人的智慧結晶,憑著天干地支的組合,審察人生的禍福休咎;這個小工具不單止助你排出八字,給出簡單的描述如五行數量,更會透過每個時辰與八字的關係,提供當日的開心指數作為指標。

八字緣軟件簡介 :

1. 基本功能為八字起盤程式
2. 附設每天開心指數




MySQL Cannot start service

遇到以上問題可這樣解決:

安裝時
1) Multifunctional Database
2) Transactional Database Only
3) No-Transactional Database Only <-----選這個 就 ok 或把 my.ini default-storage-engine=INNODB ->> default-storage-engine=MYSIM
搞了半小時才解決...激死

iOS Apps Submission Quick Guide

iphone app submission 是個挺煩的過程,網上找到些 quick guide (http://www.edumobile.org/iphone/iphone-programming-tutorials/submitting-iphone-apps-to-the-apple-app-store-a-step-by-step-guide/)。

Submitting iPhone Apps To The Apple App Store – A Step by Step Guide
On September 13, 2010, in iPhone Programming Tutorials, by vishy

Here’s a quick step by step guideline that you can print and keep hand, to use when your app is ready for submission. I am assuming that the reader of this article has an iPhone Developer License.

Here’s a quick step by step guideline that you can print and keep hand, to use when your app is ready for submission. I am assuming that the reader of this article has an iPhone Developer License.

====== Step 1 ======

Certificate is an essential element to submit or test an application on iphone. It comes with code sign(Signatures) which would verified when an application is submitted on apple store or when tested on iphone.

One can bypass these if an application is installed on jail-break iphone or when submitted on Cydia but this is not possible when one wants submit it to Appstore.

One has to through 2 step procedure to create a certificate from developer portal. I simply copied those two from “iphone developer portal”

[1] Generating Certificate Signing Request

[2] Submitting a Certificate Signing Request for Approval

Generating a Certificate Signing Request:

[3] Open the Utilities folder and launch Keychain Access from the Applications folder.

[4] Set the value of Online Certificate Status Protocol (OCSP) and Certificate Revocation List (CRL) to “off” in the Preferences Menu.

[5] Select Keychain Access -> Certificate Assistant -> Request a Certificate from a Certificate Authority.

[6] Fill in your email address in User Email Address Field. Confirm that this email address is same as provided at the time of registering as iPhone developer.

[7] Fill in your name in the Common Name field. Confirm that this name is same as provided at the time of registering as iPhone developer.

[8] It is not necessary to have an Certificate Authority (CA). The ‘Required’ message would be eliminated after finishing the following step.

[9] Click the ‘save to disk’ radio button if prompted, choose ‘Let me specify key pair information’ and proceed.

[10] If you choose ‘Let me specify key pair’ option then one has provide a file name and click ‘Save’. Select ‘2048 bits’ for Key Size and ‘RSA’ for the algorithm in next screen and proceed.

[11] CSR file would created on the desktop by Certificate Authority.

Submitting a Certificate Signing Request for Approval:

[1] Once CSR file is created log in to the iPhone developer program portal and go to ‘Certificates’> ‘Development’ and select ‘Add Certificate’.

[2] Click the ‘Choose file’ button, select your CSR and click ‘Submit’. The portal will reject the CSR if Key Size is not set to 2048 bit at the time of CSR creation.

[3] This will followed by notification to Team Admins by email of the certificate request.

[4] The change in the certificate status would informed by email on approval or rejection of the CSR by Team Admin.

Download/Installing Certificate on your machine

[5] Once the CSR is approved the Team Members and Team Admins can download their certificates via the ‘Certification’ section of the Program Portal. Choose ‘Download’ next to the certificate name to download your iPhone development certificate to your local machine.

[6] Once this is done double-click the .cer file to launch Keychain Access and install your certificate.

On installation of certificate on your MAC the next step is to create an App ID.

Note: You have to follow this step only once and late you don’t have to make certificates for your other applications.

====== Step 2 ======

Follow the following steps to create an App ID:

[1] Go to ‘App IDs’ and click ‘App ID’ after logging in to iPhone developer program portal.

[2] Populate the ‘App Id Name’ field with your application name (that is – iPhone app) and in ‘App Id’ enter something like com.yourdomain.applicationname (i.e com.edumobile.iphoneapp) and click submit.

[3] Please do note down the “App Id” as this would be utilized in Info.plist, bundle identifier tag.

====== Step 3 ======

Next step would be to create a Provisioning file for our Xcode and is the last step for creating binary which would submit it to Appstore.

[1] After you navigate to ‘Provisioning’> ‘Distribution’ click ‘Add Profile’ in iphone developer program portal.

[2] Choose “App Store” in “Distribution Method”.

[3] In “Profile Name” enter your application name (i.e iphoneapp) which will be your provisioning profile name as well.

[4] In “App ID” select the app name(i.e. iphoneapp) which you created in Step 2.

[5] After downloading the Provisioning profile copy it to your/YourUserName/Library/MobileDevice/Provisioning Profile.

====== Step 4 ======

Now everything is step up, open your project in Xcode

[1] Click “i” Info button after selecting your project from “Group & File” in left side bar.

[2] Navigate to “Configuration” tab and select “Release”. Click the “Duplicate” button from bottom, name is “iphoneDistribution”.

[3] Click on “Build” tab and choose “iphoneDistribution” and enter in “Search in Build Settings” filed ‘Base SDK’ and select the current selected Device and change to what gadget your application is targeting (I prefer “Device-iPhone OS 2.0)

[4] Now in “Search in build setting” field enter “code signing identity” and choose the provisioning profile created earlier in Step 3. Apply the same to the child property “Any iPhone OS Device”.

[5] Once this done close the Info screen and select the “Target”> “Your App” from “Group & File” in left side bar and click on “Info” button again from Xcode.

[6] To be on the safer side repeat step 3 and 4.

[7] With the Info screen still open click on “Properties” tab and enter “App Id”(i.e. com.edumobile.iphoneapp) in Identifier field.

[8] Now that all is done, click on “Build” (cmd+B) from Xcode>Build.

[9] You will find your binary file created on right clicking on “Product”> “YourApp” and selecting “Reveal in Finder”. Zip this file.

====== Step 5 ======

The next step is to submit the binary file created to itunesconnect.

[1] In your browser type https://itunesconnect.apple.com/ (this website is very slow over https) and login using your iPhone developer account.

[2] Click on “Manage Your Account” > “Add Application”

[3] On replying to a simple question from apple you can sumbit your application to app store. You also need few things in your system before you submit your application.

a) Application Name (must be unique)

b) Application description

c) Application Category

d) URL for your application feedback.

e) Icon of your application in 512 x 512 size.

f) Main picture of your application in 320 x 480 or 320 x 460 size. (You have option to submit up to 4 more pictures of your application).

2011年5月3日 星期二

Programming

剛剛 approved 的 iphone apps










預測小孩的高度。以最新的大學科研成果作為計算方法。


A scientific kids height predictor based on the lastest research.
Simply enter both of the parents height and it will predict your kids height. 

2011年4月25日 星期一

比賽獎項及報導

多參與不同比賽方能證明自己的眼光及實力

1. iGoogle Gadget (Hong Kong) Competition 2007
Google 官方介紹: Click Here
Google 公佈結果: Click Here
明報 - 網友發功 iGoogle周身刀小工具設計比賽 「電視遙控器」奪大獎 A26, 17th Dec 2007: Click Here
手機寫Program / 影相為 Design” – Leisure People, Hi-Tech Weekly Issue 482, P100-101, 2008
達人親授活用 iGoogle 實用工具小百科” - PCMarket Vol. 762, P21-25, 2008

2. Hong Kong ICT Awards 2008
日の魅, 大學線月刊‧第八十七期‧二零零八年十二月 Click Here
大公報 2 Nov 2008 Click Here

3. 2009 Windows Mobile Creative Software & Game Design Contest (Hong Kong region) Final Top 15 Entries
4. 2010 Nokia Calling for All Innovators Hong Kong Contest – 1st runner up
5. 2010 Hong Kong RFID Awards 2010: An RFID-based Air Cargo Processing System - Certificate of Merits (Team award)


=============================================================

Google小工具設計比賽 展示香港開發人員無限創意

SMBWorld, 03 December 2007

Google Inc.早前宣佈2007年度Google香港小工具設計比賽的得獎名單。Google邀請香港網頁開發人員及互聯網用戶設計富有本地特色的小工具 (gadget),讓本地用戶自行建立個人化的 iGoogle首頁。評審團最後選出五位優勝者,當中的至尊大獎得主更將會到訪位於美國矽谷的Google總部,親身感受Google獨特的企業文化,並 與iGoogle工程團隊暢談開發本地化小工具方面的經驗及專業知識。有關iGoogle 香港小工具設計比賽的得獎名單及更多資料, 請瀏覽網頁www.google.com.hk/events/gadgetawards/winners.html。
Google 專注加強用戶之互聯網體驗,提供iGoogle及小工具平台,以便設計個人化首頁和互動網上服務。這次比賽旨在鼓勵本地開發人員和互聯網用戶,為香港社群 設計實用和有趣的小工具。參賽的小工具包羅萬有,其中包括本地的交通和天氣情況,以至本地的電視節目表。香港用戶可輕易地將這些本地原創的小工具,加進個 人化的iGoogle首頁當中。
比賽開始後數星期,參賽小工 具已可讓本地的Google用戶試玩。此外,是次比賽的評審團陣容強勁,成員包括:本地著名插畫家及卡通創作人麥家碧、香港電腦學會會長李惠光、香港數碼 娛樂協會主席於積理博士、香港大學教育應用資訊科技發展研究中心教育發展主任余建華,以及Google香港及台灣業務總監張成秀,他們按照參賽作品的外 觀、創意、受歡迎程度、實用性、API使用率,以及技術開發水平,選出各獎項的得獎者。
香 港數碼娛樂協會主席於積理博士表示:「在Web 2.0大趨勢下,本地市場對於個人化網頁及互動網絡小工具的需求日益增加。我們香港數碼娛樂協會很高興看到這些別出心裁的創新小工具,同時亦向全世界展示 了香港開發人員的才華。我們期望日後能繼續舉行更多以本地社群為目標的同類型比賽,讓本港用戶分享更多具創意的小工具。」
Google 香港及台灣銷售總監張成秀表示:「我謹代表評審團,衷心祝賀所有得獎者,表彰他們的獨特創意、實用和具趣味之小工具。我們亦感謝所有參賽者,讓我們感受到 香港開發人員的創意和才華,實在教人振奮。Google致力提供更切合香港用戶社群需求的互聯網體驗。我們的iGoogle平台現已提供這些獲獎的小工 具,讓本地用戶製作及使用個人化網頁時更覺實用和充滿樂趣。」
「Google香港小工具設計比賽 2007」各獎項的得獎者如下:
- 至尊小工具大獎(大獎):「香港電視節目表和YouTube頻道」(吳錦勝及廖振宇)
這 個由吳錦勝及廖振宇攜手開發的小工具,憑非凡創意、視覺特效,以及精彩吸引的操作介面,超越同儕,當中大受歡迎的元素包括整體實用性、易用性,以及趣味 性,尤其是其彩色電視屏幕連遙控器介面。用戶只需利用遙控器,便可揀選特定的本地電視頻道。在轉換頻道時,電視畫面便會顯示詳盡的本地電視台節目表。此 外,這小工具亦是YouTube播放器,用戶只需輸入關鍵字,即可搜尋相關的視像短片。吳錦勝及廖振宇合共開發了多個地道的小工具,充分顯示他們的熱誠, 為香港互聯網用戶設計富有本地特色的小工具。
- 至實用小工具大獎:「香港實時分區天氣」 (陳琦楓)
這個小工具憑藉為本地用戶提供香港實時的天氣預測,勇奪香港至實用小工具大獎。陳琦楓設計的小工具能提供有關氣溫、風速和相對濕度等資料,以及連接香港天文台官方網站。
- 至靚小工具大獎:「最新美容產品提示」(李建輝)
李建輝的小工具可讓用戶隨時得知暢銷美容品牌的最新產品及消息。愛美人士更可按照品牌及產品分類,搜尋所需的美容護膚產品。
- 至具人氣小工具大獎:「六合彩結果」 (周粵佳)
周粵佳設計的小工具讓用戶得知最新一期的六合彩結果。六合彩是由香港賽馬會經辦的
獎券遊戲,深受本地社群歡迎。
- 至地道小工具大獎: 「香港電視節目表和YouTube頻道」(吳錦勝及廖振宇)
除了勇奪至尊大獎,「香港電視節目表和YouTube頻道」亦憑藉其本地化獲得香港至地道小工具大獎。用戶利用這個小工具不僅可以快速查閱香港的電視節目表,更可以搜尋YouTube短片,非常方便。
「Google香港小工具設計比賽 2007」現已圓滿結束,但本地開發的小工具仍然可以提交至www.google.com.hk/ig/submit,並可收集於iGoogle小工具目錄內。現時目錄已備有超過20,000個免費的Google小工具可供下載,用戶可隨意在來自世界各地的各式各樣小工具中,選取喜愛的小工具,並加到iGoogle首頁內。

(source: http://www.smb.com.hk/content/google%E5%B0%8F%E5%B7%A5%E5%85%B7%E8%A8%AD%E8%A8%88%E6%AF%94%E8%B3%BD%E3%80%80%E5%B1%95%E7%A4%BA%E9%A6%99%E6%B8%AF%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1%E7%84%A1%E9%99%90%E5%89%B5%E6%84%8F)

Arithmetic Complexity

數學上有個量度序列的方法叫 Arithmetic Complexity (AC)。這個 AC 是用來量度一串數字的複雜性。定義就是把數字之間的相差統計起來再減 5。舉例如下:

24, 25, 26, 30, 31, 32 所得到的 AC 值是 2 (7-5).

1 (=25-24=26-25=31-30=32-31)
2 (=26-24=32-30)
6 (=30-24=31-25=32-26)
7 (=31-24=32-25)
8 (=32-24)
5 (=30-25=31-26)
4 (=30-26)

總共 7 個不同的相差

而香港六合彩由 49個球開始計 (4 / 7 / 2002)共 1283期,共有
AC1=0
AC2=2
AC3=1
AC4=16
AC5=29
AC6=107
AC7=177
AC8=407
AC9=261

而以新攪珠機起計 (9/11/2010) 合共72期中有:
AC1=0
AC2=0
AC3=0
AC4=0
AC5=3
AC6=4
AC7=9
AC8=24
AC9=19

而在 49 個球抽 6 個球的所有組合中 (49C6 = 13,983,816),

AC0 = 216
AC1= 1027
AC2= 10147
AC3= 34495
AC4= 141271
AC5= 335878
AC6= 1219724
AC7= 1749352
AC8= 4542028
AC9= 2871100
AC10= 3078578

所以填數字時可先對對 AC 值 其實大約在 8-9。

一個幾年前寫下的八字程式 - 八字緣


試在 Google 上打 "八字緣" 竟發現有人拿來賺廣告!?