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 구차니
Programming/xml2019. 9. 14. 18:12

당연(?)하지만 and로 여러개 나열해주면 되는 듯?

 

//category[@name='Sport' and ./author/text()='James Small']

[링크 : https://stackoverflow.com/questions/10247978/xpath-with-multiple-conditions]

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

XML DOM과 SAX  (0) 2019.12.01
xpath exist boolean()  (0) 2019.09.29
xsd minOccurs, maxOccurs  (0) 2019.09.11
xpath count()  (0) 2019.09.09
xpath xsi  (0) 2019.08.12
Posted by 구차니
Programming/xml2019. 9. 11. 13:55

값이 설정 안되어 있으면 기본 값은 minOccurs=1, maxOccurs=1 로 된다고 한다.

 

[링크 : http://tcpschool.com/xml/xml_xsd_occurrenceIndicator]

[링크 : https://stackoverflow.com/questions/4821477/xml-schema-minoccurs-maxoccurs-default-values]

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

xpath exist boolean()  (0) 2019.09.29
xpath 복수개의 attribute 동시에 만족하는 항목 찾기  (0) 2019.09.14
xpath count()  (0) 2019.09.09
xpath xsi  (0) 2019.08.12
xpath concat  (0) 2019.08.08
Posted by 구차니