본문 바로가기

Programming

(45)
JavaFx Drag N Drop event / 자바Fx 드래그앤드롭 이벤트 처리 / Java, C++, example JavaFx Drag N Drop event / 자바Fx 드래그앤드롭 이벤트 처리 / Java, C++, example I use JavaFx ImageView component in example code, we could use many other components like TableView, Button, or.. etc... maybe. That'll do catch event well... DragOver and DragDrop events are in Initialize using lambda function when Controller class is created. I use this event function as drag image file and show it, but we coul..
How to print out value of variable in Matlab / 맷랩 변수 출력하기 / Example 예제 How to print out value of variable in Matlab / 맷랩 변수 출력하기 / Example 예제 간단하게 앞에 disp 쳐주고 괄호열고 변수명을 쳐주면 변수 안의 값이 출력된다.매트릭스면 매트릭스, 정수면 정수~ It's simple, just type disp and bracket for variableName. Then you can see value of variable.If variable is Mat, then it'll display matrix.. disp( ${variableName} ) 한글 공식 문서 ( 여기 ) Eng official docs ( Here ) e.g. A = [15 150];S = 'Hello World.'; Display the valu..
Aracade Intro #24 minesweeper. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #24 minesweeper. Algorithm, 알고리즘, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Q. In the popular Minesweeper game you have a board with some mines and those cells that don't contain a mine have a number in it that indicates the total number of mines in the neighboring cells. Starting off with some arrangement of mines we want to create a Minesweeper game setup. 지뢰찾기 게임에..
Difference between Char and Varchar in Database datatype, 데이터베이스 자료형 Varchar 와 Char 의 차이점 Difference between Char and Varchar in Database datatype, 데이터베이스 자료형 Varchar 와 Char 의 차이점 I got this article from ( here ) 원문보기 ( here ) Difference between Char and Varchar Data Type ‘Char’ is a fixed-length data type which is used to store character string value of fixed length, whereas ‘Varchar’ is a variable-length data type which is used to store variable length alphanumeric data. 'Char' 은 고..
Apache POI library excel file, Mat in OpenCV to Excel file / 아파치 POI 라이브러리 엑셀파일 쓰기 OpenCV Mat 에서 엑셀파일 만들기 (java, c++) Apache POI library excel file, Mat in OpenCV to Excel file / 아파치 POI 라이브러리 엑셀파일 쓰기 OpenCV Mat 에서 엑셀파일 만들기 (java, c++) Java 에서 OpenCV 를 이용하여 Mat data를 만들었을 때 POI로 엑셀 저장을 하기 위한 메소드 Method for saving Mat data in Java OpenCV using POI 설명 저장할 excel 파일 경로+이름(absolutePath) 과, 저장할 Mat 을 입력받는다.Mat 의 channel 은 sheetrows 는 rowcols 는 cell (엑셀에서) 저장 잘된다. Description Input absolutePath of file we wanna save (..
Java Math class - squareRoot, power num example / 자바 - 루트, 제곱 값 예제 Java Math class - squareRoot, power num example / 자바 - 루트, 제곱 값 예제 squareRoot - 제곱근 (루트 씌운 값) power - 거듭제곱 두개 다 Math 클래스에서 바로 호출해서 사용 가능하다. Both can be used in Math class in Java e.g. Math.sqrt(value); Math.pow(value, intNum); Code.. lemme see code..... 코드.. 코드를 보자......... public static void main(String[] args) { int testNum1 = 16;float testNum2 = 625f;double testNum3 = 169;System.out.println("..
Aracade Intro #22 avoidObstacles. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #22 avoidObstacles. Algorithm, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Q. You are given an array of integers representing coordinates of obstacles situated on a straight line. Assume that you are jumping from the point with coordinate 0 to the right. You are allowed only to make jumps of the same length represented by some integer. Find the minimal len..
Aracade Intro #21 isIPv4Address. Algorithm, 알고리즘, Codefights, CodeSignal, regx, 정규표현식, 코드파이트, 코드시그널, c++ java c# scalar Aracade Intro #21 isIPv4Address. Algorithm, Codefights, CodeSignal, 코드파이트, 코드시그널, c++ java c# scalar Q. An IP address is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. There are two versions of the Internet protocol, and thus two versions of addresses. One of them is the IPv4 address. IP주소..