기계학습 좀 공부해보면서

흐름을 파악하고 어떤식으로 구체화 하는지 방법론을 좀 공부할 필요가 있어서 찾는 중

 

[링크 : https://pytorch.org/]

[링크 : https://skymind.ai/kr/wiki/compare-dl4j-tensorflow-pytorch]

[링크 : http://blog.naver.com/rlaghlfh/221494731829]

Posted by 구차니
Programming/xml2019. 12. 1. 13:50

DOM은 메모리에 다 올리고 한번에 로드해서 여러번 읽는데 유리하다면

SAX는 스트림 파서에 가까워서 쭈욱 읽어 가면서(메모리 적게 사용) 이벤트 방식으로 중간중간 값을 빼내기 불리함

 

dom방식

1. 처음 xml 문서 전체를 메모리에 로드하여 값을 읽습니다.

2. xml 문서 전체가 메모리에 올라가 있으므로  노드 들을 빠르게 검색 하고 데이터의 수정과 구조 변경이 용이 합니다.

3. 호불호가 갈리지만 dom방식으로 xml문서를 핸들링 하는것이 sax방식보다 직관적입니다.

 

sax방식

1. xml 문서를 순차적으로 읽어 내려가며 노드가 열리고 닫히는 부분에서 이벤트가 발생 합니다.

2. xml 문서 전체를 메모리에 올리지 않기 때문에 메모리 사용량이 적고 단순히 읽기만 할때 빠른 속도를 보입니다.

3. 발생한 이벤트를 핸들링 하여 변수에 저장하고 활용하는 방식이기 때문에 문서의 중간 중간 검색하고 노드를 수정하기가 어렵습니다.

4. dom방식에 비해 구현이 방식이 복잡하고 직관적이지 않습니다.

[링크 : http://stg.etribe.co.kr/2014/08/09/xml-파싱시-dom과-sax의-차이/] 원본으로 추정

[링크 : https://humble.tistory.com/23]

[링크 : https://cache798.blog.me/130009188949]

'Programming > xml' 카테고리의 다른 글

xpath exist boolean()  (0) 2019.09.29
xpath 복수개의 attribute 동시에 만족하는 항목 찾기  (0) 2019.09.14
xsd minOccurs, maxOccurs  (0) 2019.09.11
xpath count()  (0) 2019.09.09
xpath xsi  (0) 2019.08.12
Posted by 구차니
Programming/Java2019. 11. 25. 23:42

AES 라고만 주면 어떤게 기본값으로 작동하는지 default 값에 대한 내용이 없다.

  • AES/CBC/NoPadding (128)
  • AES/CBC/PKCS5Padding (128)
  • AES/ECB/NoPadding (128)
  • AES/ECB/PKCS5Padding (128)

[링크 : https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html]

[링크 : https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Cipher]

 

 

[링크 : http://www.fun25.co.kr/blog/java-aes128-cbc-encrypt-decrypt-example]

[링크 : https://medium.com/../aes-256bit-encryption-decryption-and-storing-in-the-database-using-java-..]

 

 

 

 

 

 

 

'Programming > Java' 카테고리의 다른 글

자바 annotation  (0) 2020.06.16
java oop 개념  (0) 2020.01.15
jaxb - Java Architecture for XML Binding  (0) 2019.06.25
jar 실행하기  (0) 2019.01.15
Object.clone()  (2) 2019.01.09
Posted by 구차니
Programming/node.js2019. 11. 6. 20:19

파일이 이상하게 저장되는 것 같아서 찾아보는데

결론만 말하자면.. 순차적으로 쓰는게 아니라 하나의 스트림을 여러군데에서 쓰면 문제의 소지가 있으니

synchronous로 쓰라인데.. 스트림 아웃이면 라인 단위로 되려나 어떻게 처리하게 되려나?

이런 부분을 좀 명확하게 찾아 봐야 할 듯.

 

[링크 : https://www.daveeddy.com/2013/03/26/synchronous-file-io-in-nodejs/]

[링크 : https://stackoverflow.com/...-write-to-append-to-the-same-file-guarantee-the-order-of-executio]

'Programming > node.js' 카테고리의 다른 글

node.js xpath 그리고 boolean  (0) 2019.12.17
node.js JWT with refresh token  (0) 2019.12.10
postgres on node.js  (0) 2019.09.24
json2csv / node.js 에서 NULL 값 출력하기  (0) 2019.09.18
js nested function과 변수 scope  (0) 2019.09.15
Posted by 구차니
Programming/xml2019. 9. 29. 23:03

boolean() 으로 특정 element를 조회하면 될 듯?

 

[링크 : https://stackoverflow.com/questions/5689966/how-to-check-if-an-element-exists-in-the-xml-using-xpath]

 

+

2019.12.17

옛날 글이라 그런가 링크가 깨졌네

The boolean function converts its argument to a boolean as follows:

  • a number is true if and only if it is neither positive or negative zero nor NaN

  • a node-set is true if and only if it is non-empty

  • a string is true if and only if its length is non-zero

  • an object of a type other than the four basic types is converted to a boolean in a way that is dependent on that type

[링크 : https://stackoverflow.com/questions/5689966/how-to-check-if-an-element-exists-in-the-xml-using-xpath]

[링크 : http://www.w3.org/TR/xpath/#function-boolean] << 옛날 링크

 

Rules

The function computes the effective boolean value of a sequence, defined according to the following rules. See also Section 2.4.3 Effective Boolean Value XP31.

  • If $arg is the empty sequence, fn:boolean returns false.

  • If $arg is a sequence whose first item is a node, fn:boolean returns true.

  • If $arg is a singleton value of type xs:boolean or a derived from xs:boolean, fn:boolean returns $arg.

  • If $arg is a singleton value of type xs:string or a type derived from xs:string, xs:anyURI or a type derived from xs:anyURI, or xs:untypedAtomic, fn:boolean returns false if the operand value has zero length; otherwise it returns true.

  • If $arg is a singleton value of any numeric type or a type derived from a numeric type, fn:boolean returns false if the operand value is NaN or is numerically equal to zero; otherwise it returns true.

[링크 : https://www.w3.org/TR/xpath-functions-31/#func-boolean] << 새로운 링크?

 

'Programming > xml' 카테고리의 다른 글

XML DOM과 SAX  (0) 2019.12.01
xpath 복수개의 attribute 동시에 만족하는 항목 찾기  (0) 2019.09.14
xsd minOccurs, maxOccurs  (0) 2019.09.11
xpath count()  (0) 2019.09.09
xpath xsi  (0) 2019.08.12
Posted by 구차니
Programming/Java(Spring)2019. 9. 26. 19:04

기본값은 body size 1MB 라고 한다.

그런 이유로 용량이 큰 걸 받아오면 잘리는 듯..

(특이하게 닫는 태그는 알아서 생성되는 것으로 보인다)

 

[링크 : https://stackoverflow.com/questions/36721635/why-jsoup-does-not-read-all-the-elements-of-the-page]

[링크 : https://jsoup.org/apidocs/org/jsoup/Connection.html#maxBodySize-int-]

 

+

크롬에서 200KB 래서 방심했는데.. gzip으로 압축되서 온게 그 용량

실제로는 2.5MB 이런식으로 크게 와서 body 크기가 1MB에 제한되서 잘린듯..

'Programming > Java(Spring)' 카테고리의 다른 글

spring 다시 시작  (0) 2020.01.15
spring boot 어플리케이션 로그 0:0:0:0:0:0:0:1  (0) 2020.01.13
java 메모리 관련...2?  (0) 2019.07.06
java.lang.OutOfMemoryError: GC overhead limit exceeded  (1) 2019.07.06
mvn -P profile  (0) 2019.06.08
Posted by 구차니
Programming/node.js2019. 9. 24. 17:53

테스트용 was나 하나 짜볼까나...

 

[링크 : https://araikuma.tistory.com/459]

 

+ 2019.12.10

[링크 : https://node-postgres.com/]

'Programming > node.js' 카테고리의 다른 글

node.js JWT with refresh token  (0) 2019.12.10
node.js synchornous file write  (0) 2019.11.06
json2csv / node.js 에서 NULL 값 출력하기  (0) 2019.09.18
js nested function과 변수 scope  (0) 2019.09.15
node.js util.format / sprintf?  (0) 2019.09.10
Posted by 구차니
Programming/node.js2019. 9. 18. 19:29

value = undefined; 로 하면

csv 출력시 ,, 로 NULL 값으로 인식되도록 출력된다.

 

[링크 : https://www.npmjs.com/package/json2csv]

'Programming > node.js' 카테고리의 다른 글

node.js synchornous file write  (0) 2019.11.06
postgres on node.js  (0) 2019.09.24
js nested function과 변수 scope  (0) 2019.09.15
node.js util.format / sprintf?  (0) 2019.09.10
node.js xpath 지원함수 목록  (0) 2019.09.10
Posted by 구차니

{2,3} 2번 이상 3번 이하 반복 인줄 알았으나...

\{2,3\} 을 해주어야 하네?

 

[링크 : http://www.dreamy.pe.kr/zbxe/CodeClip/6331]

 

공백은 [[:space:]] 대괄호가 두개 들어간다.

[링크 : https://zetawiki.com/wiki/Grep_주석과_공백_제외]

Posted by 구차니
Programming/node.js2019. 9. 15. 18:30

함수 내부의 함수는

내부 함수가 포함된 영역의 변수까진 유효하게 건드릴수 있는 듯 하다.

[링크 : https://www.w3schools.com/js/js_function_closures.asp]

'Programming > node.js' 카테고리의 다른 글

postgres on node.js  (0) 2019.09.24
json2csv / node.js 에서 NULL 값 출력하기  (0) 2019.09.18
node.js util.format / sprintf?  (0) 2019.09.10
node.js xpath 지원함수 목록  (0) 2019.09.10
node.js csv2json  (0) 2019.08.21
Posted by 구차니