aaboo’s new bike 2020.07.04

스페셜라이즈드 2020 올 뉴 루베 콤프 ( Gloss Crystal Flake/Black ) 파리-루베에서 6번의 우승을 거두며 루베는 스피드와 부드러움이 공존할 수 있다는 것을 증명했습니다. 하지만 얼마 전까지 타협을 했어야만 했습니다. 하지만 이제는 아닙니다. 올 뉴 루베 프 로는 그 어느 것과도 타협하지 않는 부드러움을 선사합니다. 새로운 퓨쳐샥 1.5, 파베 시트 포스트의 완벽한 밸런스, 타막 SL6와 동등한 … 계속 읽기 aaboo’s new bike 2020.07.04

HTML5 소리 재생

출처: http://m.mkexdev.net/63 HTML <button id="btnWsAudio">재생</button> JAVASCRIPT var wsAudio = null , wsAudio_didUserStop = false , wsAudio_isLoaded = false , soundBook = [ "combat_music.mp3" , "Death_Note_OST.mp3" , "Game_of_Thrones_OST.mp3" , "Harlem_Shake-Washing_Machine.mp3" , "Pacific_Rim_OST.mp3" ] , soundRandomChoosed = soundBook[Math.floor(Math.random()*(soundBook.length))] ; function wsSetup(){ wsAudio = new Audio(); //wsAudio = document.getElementById("wsAudio"); wsAudio.src = '/soundEffect/'+soundRandomChoosed; wsAudio.preload = true; //wsAudio.autoplay = true; … 계속 읽기 HTML5 소리 재생

Javascript 랜덤한 정수 뽑아내기

원리: Math.random() //랜덤한 유리수를 선언함 Math.random()*8 //0~7 까지의 랜덤한 유리수 Math.floor(유리수) //반내림 정수 Math.floor(Math.random()*8) //0~7까지의 랜덤한 정수 Math.floor(Math.random()*8)+1 //1~8까지의 랜덤한 정수 문제 1)  -3 ~ 3 까지의 랜덤한 수를 구하시오(아래 부분을 마우스로 긁어보세요) Math.floor(Math.random()*7) - 6;

Mybatis Insert 한 key값 바로 반환

테이블에 자료를 INSERT를 할 경우, 생성 되어진 Key값을 재사용하고 싶은 경우가 있다. Service.java Mapper mapper = sqlSession.getMapper(Mapper.class); HashMap<String, Object> param = ...; //{value1:"value1", value2:"value2"} int resultCount = mapper.insertAabooTable(param); //새로 인서트된 Row의 key값은 어떻게 가져오지? Mapper.java (interface) int insertAabooTable(@Param("param") Map<String, Object> param); Mapper.xml <insert id="insertAabooTable" parameterType="com.company.aaboo.AabooInsertDto"> INSERT INTO aabooTable (idx, value1, value2) VALUES ( (SELECT MAX(idx)+1 … 계속 읽기 Mybatis Insert 한 key값 바로 반환

리눅스 gzip, gunzip, tar

.gz 형태로 파일 압축 gzip [option] [file_name] //압축해서 aaa.txt.gz 파일로 압축됨(-9:압축률 -v:보기) $ gzip -9v aaa.txt //압축해제 $ gzip -d aaa.txt.gz [option] -n: n은 1부터 9까지 숫자로, 1이 가장 빠르지만 압축률은 가장 낮음-c: 압축 결과를 출력하고 원본파일은 그대로 놔둠-d: 압축 해제-f: 강제 압축-r: 디렉토리 지정시 디렉토리에 포함된 모든 파일 압축-t: 압축 파일 테스트-v: 압축 혹은 해제시 자세한 … 계속 읽기 리눅스 gzip, gunzip, tar

CentOS7에 Node.js12 설치

Update System curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - Install Node.js 12 LTS on CentOS 7 curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash - sudo yum clean all && sudo yum makecache fast sudo yum install -y gcc-c++ make sudo yum install -y nodejs Test $ node -vv12.13.0 참조 https://github.com/nodesource/distributions/blob/master/README.mdhttps://computingforgeeks.com/how-to-install-nodejs-on-centos-fedora/