distance는 KM단위
100 미터는 0.1


select *, (6371 * acos(cos(radians(".$_GET['lat'].")) * cos(radians( lat )) * cos( radians( lon ) - radians(".$_GET['lon'].") ) + sin( radians(".$_GET['lat'].") ) * sin( radians( lat ) ) ) ) AS distance from gps where distance <= 0.1;

a태그에 download 속성을 추가한다. 값은 임의 지정가능
<a href="https://www.xpressengine.com/layouts/xe_v4/img/bi-lg.png&quot; download="image">image_down</a>

ipa파일이 프로비저닝 설정하는 방식이 plist파일을 쓰는 방식으로 변경되었다.

(8.3.0 버전 빌드)

(8.3.0 이전버전 빌드)



기존 


scheme = [

"dev_debug",

"prod_debug",

]


system("xcodebuild clean -project #{proj_name}/#{proj_name}.xcodeproj")

system("xcodebuild archive -project #{proj_name}/#{proj_name}.xcodeproj -scheme #{scheme[i]} -archivePath build/#{scheme[i]}.xcarchive")

system("xcodebuild -exportArchive -archivePath build/#{scheme[i]}.xcarchive -exportPath build/#{scheme[i]}.ipa -exportFormat ipa -exportProvisioningProfile #{profile}")



변경

system("xcodebuild clean -workspace #{proj_name}/#{proj_name}.xcworkspace -scheme #{scheme[i]}")

                system("xcodebuild archive -workspace #{proj_name}/#{proj_name}.xcworkspace -scheme #{scheme[i]} -archivePath build/#{scheme[i]}.xcarchive GCC_PREPROCESSOR_DEFINITIONS='$GCC_PREPROCESSOR_DEFINITIONS DIST=1'")

                system("xcodebuild -exportArchive -archivePath build/#{scheme[i]}.xcarchive -exportPath build/ipas -exportOptionsPlist adhoc.plist")



plist 파일


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <key>compileBitcode</key>

    <false/>

    <key>method</key>

    <string>ad-hoc</string>

    <key>teamID</key>

    <string>팀ID(apple 개발자 사이트에서 확인)</string>

    <key>provisioningProfiles</key>

    <dict>

        <key>번들ID</key>

        <string>개발자사이트에 등록한 provisioning명</string>

    </dict>

</dict>

</plist>



Math.max( document.body.scrollHeight, document.body.offsetHeight, 

         document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight );

jdk 1.3

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase13-419413.html


jdk 1.4

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase14-419411.html


jdk 1.5

http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html


jdk 1.6

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html


jdk 1.7

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html


jdk 1.8

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

ssh 설정
ssh -L [local port]:[remote]:[remote port] -i [pem path] [user]@[host]

ssh -L 10001:192.168.0.1:3306 -i ~/Documents/dev/db.pem ec2-user@aws.com -N

-L : 로컬 포트 포워딩
-i : PEM 파일 경로
-N : ssh 포트포워딩만 사용(host 접속은 안함)
-f : 백그라운드 모드로 실행


포트포워딩 된 로컬 포트로 접속
mysql -P 10001 -h 127.0.0.1 -p -u coke

-h를 지정하지 않으면 접속되지 않는다

Xcode 8.3.3 기준으로 작성


간단하게 indicator만 라이브러리에 추가 한 후 사용하는 방법으로 설명


1. 라이브러리 프로젝트 생성




2. 스토리보드에 UIViewController 추가

  - 스토리보드 이름에 유의 (프로젝트 명과 동일하게 만듬)







3. 번들 타겟 추가 및 수정








4. 번들에 리소스 추가




5. 번들에 있는 스토리보드 사용

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"testLib" bundle:[NSBundle bundleWithPath:[[NSBundle mainBundle]             pathForResource:@"testLibBundle" ofType:@"bundle"]]];

[self.view addSubView:((UIViewController *)[sb instantiateViewControllerWithIdentifier:@"IndicatorVC"]).view];



출처: https://developer.vuforia.com/forum/cylinder-targets/pepsi-max-can


  1.     Obtain the dimensions of the CanArtwork_PepsiMAX.JPG artwork (=2500H x 1301W)
  2.     Determine the scene unit length you want to specify (for CylinderPepsiMaxCanMeasured.zip, you used 90) - this corresponds to the artwork's height in #1
  3.     Use an aspect ratio conversion tool to calculate the new height-to-width ratio, based upon the scene unit length used. This will give the updated "width" in scene units (=173) - this corresponds to the artwork's width in #1. Note that the aspect ratio of the original artwork is preserved, which is critical to detection and tracking performance.
  4.     Considering that the scene unit "width" of the can is actually the circumference, convert this to the diameter (=55)
  5.     Create your cylinder target using: Length=90, Top Diameter=55, Bottom Diameter=55


'develop > 공통' 카테고리의 다른 글

JDK SE 구버전(1.3~1.7) 설치 URL  (0) 2017.12.19
ssh 포트포워딩(mysql) 및 접속  (0) 2017.11.07
GCM, FCM 서버에서 데이터 전송 형태  (0) 2017.03.15
신입 개발자 역량평가(퍼옴)  (0) 2017.03.04
sqlite  (0) 2014.12.18

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\] \W\[\033[m\]\$ "

export CLICOLOR=1

export LSCOLORS=ExFxBxDxCxegedabagacad

'develop > Mac OS' 카테고리의 다른 글

JD-GUI with java 8+  (0) 2021.06.07
Big Sur 업데이트 이후 Eclipse실행 오류 해결  (0) 2021.02.18
Mac에서 숨김파일/폴더 표시  (0) 2017.03.23
mac os에서 wget 설치  (0) 2014.03.27

아래의 내용을 app의 build.gradle에 추가하지 않으면 aar파일을 인식 할 수 없다


repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}

aar파일은 app/libs에 복사 후 아래와 같은 내용을 추가한다.


dependencies {
...
compile '{패키지명}:{aar 파일 이름}:{aar버전}@aar'
}


+ Recent posts