Thursday, April 18, 2013

Google Glass SDK

https://developers.google.com/glass/authorization

https://developers.google.com/glass/quickstart/java

Emulator:
https://developers.google.com/glass/playground

睇左一回,glass的重點API,timeline, subscription 都是cloud interface。
map API 都只係gen個polyline係map之上。圖像processing能力更是。。。。。。
看來除非和android連動,否則自家製VR 之類的應用好難實現了。


Sunday, April 14, 2013

Powerpoint 2010 開不到 ppt, pptx file.

今天重裝了 Office 2010, 打開一個由客人SEND來的PPT.

 " powerpoint has found a problem with content in xxxx" Repair ???
按下了 repair,
跟手就 "there was an error accessing xxxx" 
叫個客再SEND一次啦. 結果都是開不了.
莫非format不同???
但個客都係講同之前係同一個 office create出來......
Google一下.

Solution 1:
  1. Start PowerPoint 2010. 
  2. On the Home tab, in the Slides group, click New Slide, and then click Reuse Slides. 
  3. In the Reuse Slides pane, click Open a PowerPoint File.
  4.  In the Browse dialog box, locate and then click the presentation file that contains the slide that you want, and then click Open.

個 solution works fine, 但下下都要reuse slides 好煩, 加上又唔係一個permanent solution, 唔合我性格, 只好之後再研究.

後來發現, 原來只係download落來的ppt先有事, 就好大機會是 Trust and Security 的問題了. Easy !
Here we come ~~

Solution 2:
  1.  Right-click on the PowerPoint filename and select Properties.
  2.  In the dialogue box that opens, click on the "Unblock" button. 
  3.  And press OK. 
  4. This will have 'unblocked' the presentation and now you'll be able to open it.

但總不可能次次都去 file properties 做一次unblock. 只好睇下 Powerpoint 入面同Trust and Security 的 setting.

Final Solution:

  1. start PowerPoint 2010. 
  2. on the File tab, click Options, then Trust Center, 
  3. then the Trust Center Settings button. 
  4. click Protected View and uncheck "Enable protected view for files originating from the Internet"
  5. click OK.


I Rest My Case.

Tuesday, April 09, 2013

US Social Security number(SSN), 美國社會安全號碼


原來SSN 係有兩個version:

A) Before 25th June, 2011
http://www.ssa.gov/employer/ssnweb.htm

B) After 25th June, 2011
http://www.ssa.gov/employer/randomization.html.

所以要原全正確的分析一定還要有發出日期 (issue date).

今天先說說 A) issued before 25th June, 2011.

Structure:


社會安全號碼是由九個數字組成的號碼,格式為「AAA-GG-SSSS」。號碼分為三個部份:

1) AAA 區域號碼(area number)是前三位數字, 通常是申請者指定的收件地址州份 或在1973年之前的核發該卡片的機構代碼. 目前,有效的社會安全號碼中,區域號碼不會超過社會安全局所指定的上限772

2) GG 群組號碼(group number)為中間的兩位數字。它們與地理區域或其他資料並沒有任何相關性,僅是為了將號碼平均分配所設計的。群組號碼的範圍從01至99,並不按照數字大小的順序發行。為了管理上的原因,群組號碼依照以下順序發行:

01至09的奇數
10至98的偶數
02至08的偶數
11至99的奇數

3) SSSS 序號(serial number)。它們僅代表數字上的序號,在群組內的範圍從0001至9999。

Validation Rules:


1) 一定是 格式 AAA-GG-SSSS , 11位長

2) 任何數字群組不得全為 「0」(000-##-####、##-00-####、###-##-0000)

3) 區域號碼 (AAA) 不能是 000, 666 或者900到999

4) June 25, 2011之前區域號碼 (AAA)不得超過772

5) 不能落在  987-65-4320 到 987-65-4329 中 (保留作為廣告宣傳使用)

6) 社會安全局發佈了與區域號碼對應的最大群組號碼列表。由於群組號碼是依照一定的順序發行,因此可以藉由無效的群組號碼來辨識不合法的社會安全號碼。
http://www.socialsecurity.gov/employer/ssnvhighgroup.htm

Regular Expressions:


a) 以 Rules 1) 為標準:

^(\d{3}-?\d{2}-?\d{4}|XXX-XX-XXXX)$

b) 以 Rules 1), 2), 3), 4) 為標準

^(?!(000|666))([0-6]\d{2}|7([0-6]\d|7[012]))-(?!00)\d{2}-(?!0000)\d{4}$

至於 5), 6)  就只好自行寫Code 了.

Thursday, April 04, 2013

Network Calculator Pro 4.0.1 for BlackBerry

Whats News:

Complete revamp UI for Blackberry L10 and Tablets !!!!


Descriptions:


This app is specific designed to content the network engineers and students. This app provides real-time calculation and easy-to-use history lookup and copy-and-paste functionality to boost the working and learning efficiency.

The app supports the followings:

  0) CIDR Calculation
  1) Convert Decimal IP to Binary IP
  2) Convert Decimal IP to Hexadecimal IP
  3) Calculate the IP Lookup range
  4) Calculate subnet mask
  5) Calculate available IP address
  6) Support Both IPv4 and IPv6
  7) History for quick re-calculation
  8) Auto-completion
  9) CCNA learning
  10) helper for installing router
  11) multi-language interface including : English, Japanese, Chinese

Screenshots:




Download:

Network Calculator Pro From BlackBerry AppWorld