본문 바로가기
  • Rise and Change

Languages14

C# -> Java 로 복호화 로직 마이그레이션 과정 아래 C# 복호화 로직을 Java 복호화 로직으로 변경해야 했다. 어떻게 변경했냐는...ChatGPT의 힘을 빌렸다 ㅋ private DESCryptoServiceProvider key = new DESCryptoServiceProvider(); private const string KEY_VALUE = "HELLO KITAE"; if (CypherText.Length == 0) return string.Empty; string[] strArray = CypherText.Split(' '); byte[] buffer = new byte[strArray.Length - 1]; for (i.. 2025. 10. 30.
JDBC 이슈 정리 문제점: 쿼리 속도는 빠른데 Java에서 처리하는 부분이 느림.원인: Statement 객체가 한개씩 데이터를 가져오기 때문.해결법: 한번에 많은 데이터를 가져오도록 하면 됨 (ex. statement.setFetchSize(100) ) 참고:https://stackoverflow.com/questions/36694911/extremely-slow-resultset-next-performancehttps://stackoverflow.com/questions/13882941/what-is-the-maximum-recognized-fetch-size-for-a-resultsethttps://cheese10yun.github.io/spring-batch-reader-performance-2/#google_vi.. 2025. 5. 14.
JS 관련 자료 정리 js resource no cachehttps://stalker5217.github.io/javascript/cache/https://stackoverflow.com/questions/7413234/how-to-prevent-caching-of-my-javascript-file 2024. 11. 25.
인코딩 관련 자료 정리 인코딩이 이렇게 어려운 건줄 몰랐다 ㅠ LED 전광판에 뿌릴 한글 데이터를 만들었는데 이게 제대로 전광판에 표시가 안되고 깨졌다. LED 전광판 프로그램 업체에 물어보니 예전 한글 기반으로 보여주기 때문에 그렇다고 한다. 이 과정에서 완성형과 조합형이라는 분류가 따로 있는 것을 알았다.. 그래서 어떻게 해야됬냐면 기존 한글 완성형을 조합형으로 변환하여 LED 전광판 프로그램에 넘겨주면 제대로 표시가 됬다. (Update) 24.11.28Ha..애초에 조합형으로 뿌려주는 인코딩 방식이 C#에 있었다! ㅠ (1361). 스트링 형태로 보내면 깨지기 때문에 바이트 배열로 보내야 하는게 관건이였다.https://blog.naver.com/baek2187/150033331098 관련해서 참고한 자료들 https:.. 2024. 11. 24.
JS 관련 자료 정리 웹 사이트 접속시 javascript로 number pad 강제로 뜨게 하는법https://stackoverflow.com/questions/48859447/force-numeric-keypad-when-input-type-text 2024. 11. 5.
이벤트 객체 임의로 만들기 이벤트 객체 종류https://dom.spec.whatwg.org/#dom-document-createevent 이벤트 객체 프로퍼티 설정 방법https://stackoverflow.com/questions/27108094/how-to-set-target-property-when-simulating-mouseclick-in-javascript 2024. 7. 15.
datatables 관련 자료 page 갯수 표시안되는 문제 해결 - serverside: false 설정 https://stackoverflow.com/questions/65014870/how-to-add-page-length-in-datatables-when-using-ajax-implementation https://datatables.net/forums/discussion/62594/how-to-set-recordstotal-from-a-server-side-rest 페이지 다시 그릴 때 현재 페이지에서 머무르는 옵션 설정 https://stackoverflow.com/questions/48617903/how-to-redraw-the-data-table-without-losing-the-current-page 페이지를 새로운 .. 2024. 4. 20.
datatables 관련 자료 datatables 관련 검색어 자료만 보여주는 함수 https://datatables.net/reference/api/search() ajax 통신 시 로딩바 보여주고 싶을 때 옵션 https://datatables.net/forums/discussion/22619/how-do-i-show-a-loading-message-when-i-load-the-table-from-a-new-ajax-call columns 옵션 사용법 https://datatables.net/examples/basic_init/data_rendering.html 검색어 입력 이벤트 거는 방법 https://live.datatables.net/jorexujo/1/edit search box에 있는 clear icon 지우기 http.. 2024. 4. 17.
Java 글 목록 https://velog.io/@skyni/series/%EC%9E%90%EB%B0%94 2023. 3. 14.