반응형

예전엔 SqliteOpenHelper 상속받아서 썼었는데, 테이블/쿼리 관련해서 간단히 선언만하면 자동으로 구현소스를 만들어 주는게 있다.


나중에 필요할때 써먹어야겠다. (그동안 만들어 놨던 클래스 안녕 ㅠㅠ)


https://codelabs.developers.google.com/codelabs/android-room-with-a-view/#0

반응형

안드로이드 SQLiteOpenHelper참조하여 만듬

SQLiteOpenHelper.swift


프로젝트에 SQLite3 라이브러리 추가해야함

반응형

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

'develop > javascript' 카테고리의 다른 글

iframe 페이지 전환 시 history추가되지 않게 하기  (0) 2019.03.28
반응형

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

+ Recent posts