From: acevest Date: Sat, 4 Mar 2017 06:25:02 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-dsfromkey.html?a=commitdiff_plain;h=7432baad49536aea4b03d52dd00bc00a32580a0c;p=acecode.git ... --- diff --git a/learn/FoodTracker/FoodTracker.xcodeproj/project.pbxproj b/learn/FoodTracker/FoodTracker.xcodeproj/project.pbxproj index f6a26d1..950c7f0 100644 --- a/learn/FoodTracker/FoodTracker.xcodeproj/project.pbxproj +++ b/learn/FoodTracker/FoodTracker.xcodeproj/project.pbxproj @@ -359,6 +359,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = VR7L9Q5L2E; INFOPLIST_FILE = FoodTracker/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -372,6 +373,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = VR7L9Q5L2E; INFOPLIST_FILE = FoodTracker/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate b/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate index e455e34..d7e3178 100644 Binary files a/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate and b/learn/FoodTracker/FoodTracker.xcodeproj/project.xcworkspace/xcuserdata/ace.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate index d764726..e0be8c7 100644 Binary files a/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate and b/tools/AceBox/AceBox.xcodeproj/project.xcworkspace/xcuserdata/Ace.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/tools/comm/identity.py b/tools/comm/identity.py new file mode 100755 index 0000000..98269ff --- /dev/null +++ b/tools/comm/identity.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# ------------------------------------------------------------------------ +# File Name: identity.py +# Author: Zhao Yanbai +# 2016-12-06 17:03:17 星期二 CST +# Description: none +# ------------------------------------------------------------------------ + +def VerifyId(ids) : + weight = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2] + validate = ['1','0','X','9','8','7','6','5','4','3','2'] + if len(ids) != 18 : + return False; + + Sum = 0 + for i in range(17) : + Sum += weight[i] * int(ids[i]) + + if str(ids[-1]) != validate[Sum % 11] : + return False + + return True