2011年5月16日 星期一

舊聞 - University lottery syndicate wins £5m jackpot after devising formula

University lottery syndicate wins £5m jackpot after devising formula

By PAUL SIMS
Last updated at 23:18 24 October 2006


The winning syndicate from Bradford University and College in West Yorkshire
As previous winners will no doubt testify the key to winning the lottery is, by its very nature, purely down to luck of the draw.
But a syndicate of university professors and tutors relied less on chance to conquer mathematical probability to scoop the jackpot.
Using two boxes, 49 pieces of paper and a bunch of clever mathematicians they won £5.3 million on Saturday night after matching all six numbers.
Having failed to win for the first eight years they decided it was time for a change and devised a plan to beat the odds.
Instead of each member randomly choosing numbers or relying on birthdays and significant dates as they had done this time they came up with an unbeatable formulae.
All 49 numbers were written on pieces of paper and placed in one box. Each syndicate member in turn then picked out six numbers, until eight lines were filled, using 48 of the 49 numbers.
The remaining number was then used to start a new line by the next syndicate member, who picked from a second box where the pieces of paper already drawn had been placed.
As a result each number appeared at least twice in the syndicate's 17 lines, with four numbers appearing three times.
The syndicate, from Bradford University and College in West Yorkshire, then set up a computer programme to check the numbers each and every Saturday night.
It would check their numbers against the winning line in a bid to find a match. But, like all methods, it has taken some time to perfect.
In fact, it took four years - but after matching the winning numbers 15, 18, 23, 31, 37, 49 and the bonus ball 38 they finally hit the jackpot and won £5,299,849.
They have since worked out that it will net them £311,755.82p each.
Syndicate leader Barry Waterhouse, 41, who works at the design and printing section of the university, said they had been playing the lottery ever since it began in 1994 with each member picking their own line.
"But we just weren't winning with the numbers being picked that way, so we thought of a different method which would mean all 49 numbers would be used," said Mr Waterhouse.
"We just thought that if all the numbers are in use we must have a good chance of winning and it has proved so, though you never really think it will happen to you.
"We just had to stick with the numbers and we knew we would win eventually."
Fellow syndicate member, David Firth, 63, said: "We have won tenners and the odd £70 in the past, but now this is the big one."
Mr Firth, who now plans to retire from his job as a printer, said he learnt of the win by text from a fellow syndicate member on Saturday evening.
"He had inputted all 17 lines into a computer programme and so all he had to do was type in the winning six numbers, plus bonus ball, to see if we'd won," he added.
"We're so pleased we decided to rehash the way we drew the numbers and were confident that it would get us a win."
Youngest syndicate winner Ben Watson, a 30-year-old graphic designer, intends to spend his winnings on a season ticket for Bradford City.
A fourth syndicate member was named as Jackie Nichol, 59, who was due to retire from the printing offices at the university to set up a business selling soap.
The other university employees who won a share of the jackpot have opted for anonymity.
A spokesperson for Bradford University and College said: "We are delighted for all our lucky winners. They work hard and deserve this success.
"Let's hope lightning strikes twice and some of the other college syndicates scoop another jackpot."
A spokeswoman for Camelot said they were aware of the system employed by the university syndicate.
She said: "We are not overly concerned by it as everybody has a method of trying to win. However, we would say that being in a syndicate does increase your chance of a win as one in four jackpots goes to a syndicate."

Read more: http://www.dailymail.co.uk/news/article-412386/University-lottery-syndicate-wins-5m-jackpot-devising-formula.html#ixzz1MVqGfP97


佢地個方法十分單簡, 頭8注用了48個number, 第9注用餘下的一個號碼+49個中的任何5個, 第10至16(共7注)用了餘下的44個號碼中的42個, 剩下的2個號碼+任何4個就是最後的一注.


買灑49個號碼原來好簡單, 用9注攪掂....
教授頭個9注就係咁買法嫁啦, 至於人人買都有獨中頭獎既機會, 咁就要靠你自己調亂一下d號碼啦!
聰明一:買哂49個號碼
沒有買的號碼開出,不會再發生。
每個人買既號碼都唔同既, 每個人有獨中頭獎機會, 唔會比人地分薄, 咁就要靠你自己調亂一下d號碼啦!

(((教授個17注$85聰明組合http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=412386&in_page_id=1770

教授們連續買了四年才中
 

2011年5月13日 星期五

iPhone Apps 被 reject



 一心想把八字緣繼續發展成有緣人,點知這次被 reject 了。或許因為收費的 apps, Apple 公司要確保質素吧。另一原因或者他以為排八字的 program 是拿別人的 (正如下面的回覆 ...content aggregators, or a collection of links...)所以 reject.  雖然整個程式是 100% 自行開發的,但這也難證明。所以繼續再來變成 standalone 版 再加入同年月日生人的 database。這樣應該可以了。


Hello KAM SHING NG,
Thank you for submitting 有緣人 to the App Store.
We've completed the review of your app, but cannot post this version to the App Store because it did not comply with the App Store Review Guidelines, as detailed below:
  • 12.3: Apps that are simply web clippings, content aggregators, or a collection of links, may be rejected
To reply to this message or to get more information, visit the Resolution Center in iTunes Connect. Do not reply directly to this email.
Regards,
App Review

2011年5月10日 星期二

彩票的學術研究

彩票也不一定要搞到古靈精怪如生肖、坐向、占星等等。這裡有兩份學術研究報告關於彩票選號相關的文獻。用的方法不外乎機率及統計。

概率和統計方法在彩票選號中的應用

An analysis of lottery master guide

個人認為 彩票如果是剛開始沒多久就是最適合用近期的機率猜下一期,這是最有效的。如已經長期開了也沒有轉機器球等等的,難猜得多。這是基於大數定律,當遊戲越玩得耐,結果就趨向平均(這就是平常我們說隨機的原因。所以應該修正為 遊戲玩得越久,機率就是平均的也是沒法猜的),亦即是說每球也有機會中,咁就真是隨機了,無得估。但新的機器、球等的因素被改動,機率就變成偏向某方,這才有可能猜中。香港六合彩正正就是好的時機用機率猜,因換了新機沒多久。這說明結果定有偏重某些號碼的。例如最近連續 4 期出現 30 (49,50,51,52-2011期)。但當越久,30 的機會又會少了 (大數定律)。

49個號碼 任選 6 個,共有

49C6 = 13,983,816 可能的組合

任何一個號碼在 6 次開獎中出現 4 次的機率,就等於

6C4 x 49 x ( 48C5)^4 x (48C6)^2 / (49C6)^6

分子 49 代表出現 4 次的這號碼有 49種可能。在 4 次當中, 另外  5 個號碼必須從其他 48 個號碼裡面選,所以分子當中有個 ( 48C5)^4。而在這個號碼沒有出現的 2 次開獎當中,6個號碼都要從其他 48 個號碼裡面選 (如此才能確定這個號碼沒有出現,否則它未必只出現 4 次,有可能變成 5 次或 6 次)。

2011年5月7日 星期六

彩票騙局

昨日見報紙報導內地什麼港版三中三 新聞發怖會,認真搞笑。還找來演員扮香港局長,簡值離譜。不過他們這些大制作都咪話唔認真,唔知是否真的有人上當。

其實不只內地,美國那邊也有類似的騙局。我對一些機率的遊戲好感興趣,尤其能猜與不能猜之間就更吸引。作為半個研究員的我,當然要親身驗證。所以有段時間亦找過一些外地所謂的 "Guaranteed Lottery System".  其中二個系統我就親身問過"發明者".

第一個 : The Lotto Black Book (http://www.thelottoblackbook.com/index.php?hop=lixiaocom)
點解搵佢? 因為'作者'是某大學的教授 。話說他中個好多次頭獎,最後惹來殺身之禍。因有個人開鎗指住教授話要佢講出點贏的方法。網上還有教授親身講事發經過重有圖添!   好吸引吧!
他聲稱只賣 1000 套。每套 USD$96.83.  我就傳個電郵問教授有沒有些 sample 可一看先。 點知沒有回。我再上網打聽真假,最後終於拿到個 ecopy。一看當中有些細節好像沒有了,大多是廣告。後來再在些討論區了解過,竟然給我找到份原裝正版的,作者當然不是那位鎗傷教授。原裝那份好易明的,當中亦好多啟發性的方法(先不論準不準)。這樣我就好肯定教授是假的了。還有一個破綻。上年 2010 年底我看他說還剩 134 copies, 今天看也是一樣?! 哈 所以外國就喜歡用學術/大學/權威做煙慕。內地同胞就喜歡用聲/色/畫做騙人的成份。成本大得多!

第二個: Lotto Guy Lottery System (http://www.tiptopwebsite.com/lotto)
 選這個因為他是'大學多年制作的成果'。聲稱有晒試驗,重話市面那些無證據的都是假。(賊喊捉喊?!)這系統能提升你的機率 30% 因其他話能提升到 90%  所以 30% 好似好合理。當然我親身發個電郵問能否給我 3 個號碼作測試,回覆好快,如下:

"
Hi, yes our system is real. As for redicting 3 numbers in your Hong Kong Mark Six, lottery systems do not predict numbers. Using our system you may hit winning numbers from the start, but usually it takes a few draws or so. The more you use the system continuously the better your odds if hitting winning number are as you will be removing and adding fresh numbers as needed.
There is no lottery system out there that can guarantee you wins. Lottery systems can only help boost your odds to win. Most lottery systems are based on past drawn numbers, which is ok but not good enough. With our system can incorporate past drawn numbers, hot and cold numbers if you want to, as it will help increase odds even more. 
Our system is a unique chart. If the numbers you chose to play fit with in the chart guide lines, then you can play them (hard to explain it must be in front of you)
Have a nice day!
Kym "

好合理的回覆,不似其他吹噓點準點勁。可惜最後我又做點資料搜集跟一位外國專研究彩票系統的人討論過,原來也是假的。這軟件連個介面都無,真係搵鬼信。

網上騙案真的越來越多樣化,一涉及錢就要好小心,多做點資料搜集以免招致損失。早前我本想參加一個學術研討會(IEEE 網站也有這個 conference!),點知連這類學術的conference也是假的。唉,只嘆一句,世途險惡。

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).