3 08 2018
				
					
					 Haeng Ho Kang | OS, Linux/Unix |  
				 
								
		
		
			
			
			
			
				
					
				|  | [root@nuriware bin]# dd if=/dev/zero of=/root/swapfile bs=1024 count=5000000   5000000+0 records in   5000000+0 records out   5120000000 bytes (5.1 GB) copied, 25.8677 s, 198 MB/s | 
				
			 
		 
 
		
		
			
			
			
			
				
					
				|  | [root@nuriware bin]# chmod 600 /root/swapfile | 
				
			 
		 
 
		
		
			
			
			
			
				
					
				|  | [root@nuriware bin]# mkswap /root/swapfile   mkswap: /root/swapfile: warning: don't erase bootbits sectors           on whole disk. Use -f to force.   Setting up swapspace version 1, size = 4999996 KiB   no label, UUID=ad13ad1b-8f68-42f9-affe-0556f9541342 | 
				
			 
		 
 
		
		
			
			
			
			
				
					
				|  | [root@nuriware bin]# swapon /root/swapfile | 
				
			 
		 
   
		
		
			
			
			
			
				
					
				| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [root@nuriware bin]# swapon /root/swapfile   [root@nuriware bin]# free -m                total       used       free     shared    buffers     cached   Mem:         32080      31722        357       8371        329      12158   -/+ buffers/cache:      19234      12845   Swap:         4882          0       4882   [root@nuriware bin]# swapoff /root/swapfile   [root@nuriware bin]# free -m                total       used       free     shared    buffers     cached   Mem:         32080      31729        350       8371        330      12158   -/+ buffers/cache:      19241      12838   Swap:            0          0          0 | 
				
			 
		 
   swap delete 
		
		
			
			
			
			
				
					
				| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | [root@nuriware bin]# swapoff /root/swapfile   [root@nuriware bin]# free -m                total       used       free     shared    buffers     cached   Mem:         32080      31729        350       8371        330      12158   -/+ buffers/cache:      19241      12838   Swap:            0          0          0   [root@nuriware bin]# rm /root/swapfile   rm: remove 일반 파일 `/root/swapfile'? y   [root@nuriware bin]# | 
				
			 
		 
   reboot : setting 
		
		
			
			
			
			
				
					
				|  | [root@nuriware bin]# vi /etc/rc.local | 
				
			 
		 
 
		
		
			
			
			
			
				
					
				|  | #!/bin/sh   #   # This script will be executed *after* all the other init scripts.   # You can put your own initialization stuff in here if you don't   # want to do the full Sys V style init stuff.   touch /var/lock/subsys/local   swapon /root/swapfile | 
				
			 
		 
  
				 
							
			
					
			
				1 08 2018
				
								
		
		
			
			
			
			
				
					
				|  | haengho-gang-ui-MacBook-Pro:~ lovelittlelong$ ps -ef| grep tomcat     501   698     1   0  1:00PM ??        23:23.56 /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/bin/java -Dcatalina.base=/Users/lovelittlelong/app/web/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2 -Dcatalina.home=/Users/lovelittlelong/program/apache-tomcat-8.0.43 -Dwtp.deploy=/Users/lovelittlelong/app/web/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps -Djava.endorsed.dirs=/Users/lovelittlelong/program/apache-tomcat-8.0.43/endorsed -Dfile.encoding=UTF-8 -classpath /Users/lovelittlelong/program/apache-tomcat-8.0.43/bin/bootstrap.jar:/Users/lovelittlelong/program/apache-tomcat-8.0.43/bin/tomcat-juli.jar org.apache.catalina.startup.Bootstrap start     501   962   934   0  1:48PM ttys000    0:00.00 grep tomcat   haengho-gang-ui-MacBook-Pro:~ lovelittlelong$ kill -9  698 | 
				
			 
		 
   서비스 포트 상태 확인 
		
		
			
			
			
			
				
					
				|  | haengho-gang-ui-MacBook-Pro:~ lovelittlelong$ netstat -ant | grep 8080   tcp46      0      0  *.8080                 *.*                    LISTEN      | 
				
			 
		 
    
				 
							
			
					
			
				13 07 2018
				
					
					 Haeng Ho Kang | Programming, Swift, Mac OS |  
				 
								ERROR ITMS-90087 …x86_64, i386 ‘ 의 경우 x86_64, i386을 제거한다. 
		
		
			
			
			
			
				
					
				|  | haengho-gang-ui-MacBook-Pro:Frameworks lovelittlelong$ lipo -info ./Realm.framework/Realm   Architectures in the fat file: ./Realm.framework/Realm are: i386 x86_64 armv7 arm64   haengho-gang-ui-MacBook-Pro:Frameworks lovelittlelong$ lipo -remove i386 ./Realm.framework/Realm -o ./Realm.framework/Realm   haengho-gang-ui-MacBook-Pro:Frameworks lovelittlelong$ lipo -remove x86_64 ./Realm.framework/Realm -o ./Realm.framework/Realm   haengho-gang-ui-MacBook-Pro:Frameworks lovelittlelong$ lipo -info ./Realm.framework/Realm   Architectures in the fat file: ./Realm.framework/Realm are: armv7 arm64 | 
				
			 
		 
      
				 
							
			
					
			
				29 06 2018
				
					
					 Haeng Ho Kang | OS, Mac OS |  
				 
								Home-brew install 
		
		
			
			
			
			
				
					
				|  | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | 
				
			 
		 
     ffmpeg install 
		
		
			
			
			
			
				
					
				|  | brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools | 
				
			 
		 
   ffmpeg update 
		
		
			
			
			
			
				
					
				|  | brew upgrade --HEAD ffmpeg | 
				
			 
		 
   app store preview video  example 
		
		
			
			
			
			
				
					
				|  | ffmpeg -i 4EB80F9F-2BB6-4072-ABBF-889F44F00B22.MOV -r 25 -acodec copy -vf scale=1080:1920 AEB80F9F-1080_1920.MOV | 
				
			 
		 
 
		
		
			
			
			
			
				
					
				|  | ffmpeg -i IMG_0078.PNG -vf scale=1242:2208 O_IMG_0078.PNG | 
				
			 
		 
   
		
		
			
			
			
			
				
					
				|  | ffmpeg -i 동영상.avi -ss 600 -t 120 결과물.avi   (동영상.avi 의 600초 지점부터 120초간 자르고 결과물.avi로 저장) | 
				
			 
		 
   MP4 변환  : App Store 업로드를 위한 1.iphone으로 녹화후 -> frame 4배로 느리게 ffmpeg -i original.mp4 -vf “setpts=(4/1)*PTS” -an pts_screerecord.mp4 2.영상 사이즈 변경 ffmpeg -i original.mp4 -vf scale=1080:1920   out.mp4 3.시간대로 자르기 ffmpeg […]
				 
							
			
					
			
				12 06 2018
				
					
					 Haeng Ho Kang | Programming, Java |  
				 
								Main build   Goals: clearn install -Pproduction pom.xml      
				 
							
			
					
			
				25 05 2018
				
					
					 Haeng Ho Kang | Programming, Android |  
				 
								File>setting>Build, Execution, Deployment에서 instant Run 클릭 후 체크를 해제하면 에러가 나지 않습니다.
				 
							
			
					
			
				26 03 2018
				
					
					 Haeng Ho Kang | Programming, Android |  
				 
								안드로이드 Firebase  안내 https://firebase.google.com/docs/cloud-messaging/android/client 1)Firebase에 앱추가 1)프로젝트를 생성후 앱 추가를 누른다. 앱프로젝트의 >app> build.gradle에서 
		
		
			
			
			
			
				
					
				|  | defaultConfig { applicationId "kr.or.xxxx.xxxx" minSdkVersion 16 targetSdkVersion 25 versionCode 112 versionName "1.1.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } | 
				
			 
		 
 2)패키지명을 kr.or.xxxx.xxxx 로 안드로이드 패키지 이름으로 지정후 google-sevices.json을 다운받아 앱프로젝트> app 팀에 복사한다. 3)완료 위에서와 같이 프로젝트>build.gradle에 
		
		
			
			
			
			
				
					
				|  | buildscript {     repositories {         jcenter()         google()     }     dependencies {         classpath 'com.android.tools.build:gradle:3.0.1'         classpath 'com.google.gms:google-services:3.1.0'           // NOTE: Do not place your application dependencies here; they belong         // in the individual module build.gradle files     } } | 
				
			 
		 
 그리고  프로젝트>app>build.gradle 
		
		
			
			
			
			
				
					
				|  | apply plugin: 'com.google.gms.google-services' | 
				
			 
		 
 추가한다. 그리고 dependencies부분에 
		
		
			
			
			
			
				
					
				|  | compile 'com.google.firebase:firebase-messaging:11.8.0' | 
				
			 
		 
 넣어준다. 2) 앱에 Firebase 추가 Android Studio 에서 Firebase Assistant를 여는 방법 Tools> Firebase 를 […]
				 
							
			
					
			
				23 03 2018
				
					
					 Haeng Ho Kang | Programming, Swift |  
				 
								Firebase의 가이드, https://firebase.google.com/docs/cloud-messaging/ios/client?authuser=0 1)프로젝트를 만든다 developer.apple.com에 해당 프로젝트의 정보를 등록해서 App IDS가 필요하고 Push Notifications 의 Certificates에 등록되어야 한다. 여기서 발급한 키는 이제 사용하지 않아도 된다 Apple에서 Keys라는 메뉴를 만들어서 하나의 Key로 Firebase의 인증을 처리 할수 있다 iOS의 프로젝트를 추가 위해서는 (1)bundle id  (2)앱 ID prefix가 필요함 2)앱에 Firebase 추가 https://console.firebase.google.com/?pli=1에 접속 프로젝트를 추가한다. 화면을 […]
				 
							
			
					
			
				21 03 2018
				
					
					 Haeng Ho Kang | DataBase, Oracle |  
				 
								에러 
		
		
			
			
			
			
				
					
				|  | [ktest] /home/FILE]imp userid=nuriware/password@ktest file='tbccm03c_table.dmp' tables='tbccm03c'   IMP-00038: Could not convert to environment character set's handle IMP-00000: Import terminated unsuccessfully | 
				
			 
		 
   해결 파일위치 [ktest] /home/FILE]ls tbccm03c_table.dmp 디레토리 생성 
		
		
			
			
			
			
				
					
				| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | [ktest] /home/FILE]sqlplus   SQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 21 13:44:20 2018   Copyright (c) 1982, 2016, Oracle. All rights reserved.   Enter user-name: nuriware Enter password: Last Successful login time: Wed Mar 21 2018 13:42:52 +09:00   Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production   SQL> create directory tabledump as '/home/FILE'; create directory tabledump as '/home/FILE'   Directory created. | 
				
			 
		 
 이때 권한 확인 chown -R oracle:oinstall FILE 임포트 
		
		
			
			
			
			
				
					
				|  | [ktest] /home/FILE]ls -al 합계 208 drwxr-xr-x. 2 oracle oinstall 31 3월 21 13:31 . drwxr-xr-x. 5 root root 45 3월 21 13:30 .. -rwxr-xr-x. 1 oracle oinstall 212992 3월 21 13:31 tbccm03c_table.dmp   [ktest] /home/FILE]impdp userid=nuriware/password@ktest directory=tabledump dumpfile='tbccm03c_table.dmp' tables='tbccm03c' | 
				
			 
		 
  
				 
							
			
					
			
				8 09 2017
				
								1.Xcode에서 인증서 재발급 – Xcode의 preference -> Accounts -> Manager Cetificated를 선택 + 를 누르고 맞는 인증서 선택한 그리고 developer.apple.com > Certificates를 누르면 만들어져 있다 이걸 다운받으면 됩니다. 2. 처음 부터 만들경우 토큰을 테스트하려면 iphone을 연결해야 한다. 그리고 bundle Identifier를  developer.apple.com 의 Certificates, Identifiers & Profiles > Identifiers > App IDS 밑에  Name 과  ID를 […]