๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • A space that records me :)

์ „์ฒด ๊ธ€76

[Python] ํŒŒ์ผ/ํด๋” ๊ฒ€์ƒ‰,์ด๋™,๋ณต์‚ฌ,์‚ญ์ œ ๋ชจ๋“ˆ ๋ชจ๋“ˆ๋ช… : ffworker # Module name is ffworker # file : find, copy, move, delete # folder : find, delete from datetime import datetime, date, timedelta import shutil as sh import os, glob def _printline(): print('='*49) def _printstart(work_type,*message): print('- Start '+work_type+' (',datetime.now().strftime('%Y-%m-%d %H:%M:%S'),') -') if message: _printline() for msg in message: if msg is not None.. 2021. 4. 2.
[bat] ๋””์Šคํฌ ์šฉ๋Ÿ‰ ๋กœ๊ทธ ์ถœ๋ ฅ @echo off :: C drive format_table PowerShell "Get-WmiObject win32_logicaldisk -filter """DeviceID='c:'""" | FT DeviceID, @{Name='DiskSize (GB)'; E={\"{0:N1} GB\" -F($_.Size/1GB)}}, @{Name='FreeSpace (GB)'; E={\"{0:N1} GB\" -F($_.freespace/1GB)}}" :: C drive Size PowerShell "$size=(Get-WmiObject win32_logicaldisk -filter """DeviceID='c:'""").Size; [math]::Round($size/1GB, 2).toString();" :: C dri.. 2021. 4. 2.
[JAVA] jar ํŒŒ์ผ CMD๋กœ ์‹คํ–‰์‹œ ํ•œ๊ธ€ ๊นจ์ง ํ˜„์ƒ cmd๋กœ jar์‹คํ–‰ ํ›„ ์•Œ ์ˆ˜ ์—†๋Š” nullํฌ์ธํ„ฐ ์—๋Ÿฌ ๋ฐœ์ƒ. key๋กœ value๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋กœ์ง์—์„œ ๋ฐœ์ƒ but) spring boot๋กœ ์‹คํ–‰ํ•˜๋ฉด ์—๋Ÿฌ๊ฐ€ ์•ˆ๋‚จ. ๋ถ„์„ํ•ด๋ณด์•„๋„ ์—๋Ÿฌ ๋ฐœ์ƒํ•  ์ด์œ ๊ฐ€ ์ „ํ˜€ ์—†์Œ. ์—ฌ๊ธฐ์„œ key๊ฐ’์ด ํ•œ๊ธ€๋กœ ๋˜์–ด ์žˆ์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ ํ•œ๊ธ€ ๊นจ์ง ์˜ˆ์ƒํ•ด๋ด„. cmd์ฐฝ์œผ๋กœ ๋Œ๋ฆด ๋•Œ ํ•œ๊ธ€ ์ธ์ฝ”๋”ฉ์„ ํ•ด์ฃผ๊ธฐ ์œ„ํ•ด์„œ jar์‹คํ–‰ ์‹œ ์•„๋ž˜์˜ ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•ด์ค˜์•ผ ํ•œ๋‹ค. -Dfile.encoding=UTF-8 java -jar -Dfile.encoding=UTF-8 [jarํŒŒ์ผ] 2021. 4. 2.
[jui] xtable grid filter xtable ๊ทธ๋ฆฌ๋“œ ํ•„ํ„ฐ๋ง ๊ธฐ๋Šฅ ์ปค์Šคํ…€ ๋ฌด์กฐ๊ฑด ํ™”๋ฉด์— ์ถœ๋ ฅ๋œ string์œผ๋กœ ํ•„ํ„ฐ๋งํ•˜๋„๋ก ์ˆ˜์ • function xtableFilterChange(_xtable , column){ if(_xtable == null){ return; } var f = function(xtable) { return function(data,index) { var flag = true; xt = xtable; $.each(Object.keys(column),function(colIdx) { var _str = this.toString(); var _colIdx = xt.options.fields.indexOf(_str); if (_colIdx < 0){ _colIdx = 0; } var _searchStr = column[_s.. 2021. 2. 1.
[Spring] SSH ํ„ฐ๋„๋ง(Port Forwarding) - gradle ๊ฐœ๋ฐœ ํ™˜๊ฒฝ Spring Tool Suite 3 gradle bild.gradle ์˜์กด์„ฑ ์ถ”๊ฐ€ dependencies { // ssh ํ„ฐ๋„๋ง // https://mvnrepository.com/artifact/com.jcraft/jsch compile("com.jcraft:jsch:0.1.55") } Config ์„ค์ • package kr.co.innerwave.quetone.collector.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration.. 2021. 1. 28.
[Spring Boot] RabbitMQ ์‚ฌ์šฉ RabbitMQ๋ž€ ? 2020/11/19 - [IT story] - [RabbitMQ] RabbitMQ๋ž€? [RabbitMQ] RabbitMQ๋ž€? 2020 KT CPN ์‹œ์Šคํ…œ FM ์„œ๋ฒ„ ๊ฐ„์— ๋…ธํ‹ฐ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด ์‚ฌ์šฉ ๋Œ€ํ‘œ์ ์œผ๋กœ ํ•œ ์„œ๋ฒ„์—์„œ ์บ์‹œ๊ฐ€ ๋ณ€๋™๋˜๋ฉด, ๋‹ค๋ฅธ ์„œ๋ฒ„์—๋„ ๋™์ผํ•œ ์ž‘์—…์„ ํ•˜๋„๋ก ํ•˜๊ธฐ ์œ„ํ•จ์ด๋‹ค. RabbitMQ ๊ณ„๋… RabbitMQ๋ž€? AMQP ํ”„๋กœํ† ์ฝœ์„ ๊ตฌํ˜„ yjkim97.tistory.com ์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” RabbitMQ๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฌผ๋ ค์žˆ๋Š” ์„œ๋ฒ„์—๊ฒŒ ๋…ธํ‹ฐ๋ฅผ ๋ณด๋‚ด์ฃผ๋Š” ๋กœ์ง์„ ๊ตฌํ˜„ํ•ด ๋ณด์•˜๋‹ค. RabbitMQ ์„œ๋ฒ„๋Š” ์ด๋ฏธ ๊ตฌํ˜„๋˜์–ด ์žˆ๋‹ค๊ณ  ๊ฐ€์žฅํ•œ๋‹ค. config.properties.xml spring.rabbitmq.host= #host spring.rabbitmq.port= #port spr.. 2021. 1. 6.
[Spring] ModelAndView๋กœ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ (@Component, Bean ๋“ฑ๋ก) ์ง์ ‘ ๊ฐœ๋ฐœํ•œ ํด๋ž˜์Šค๋ฅผ Bean์œผ๋กœ ๋“ฑ๋กํ•˜์—ฌ, ํŒŒ์ผ ๋‹ค์šด ๋‹ค์šด๋กœ๋“œ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค. Bean์œผ๋กœ ์ƒ์„ฑ ์‹œ @Component์–ด๋…ธํ…Œ์ด์…˜์„ ์‚ฌ์šฉํ•˜๊ณ , @ComponentScan์–ด๋…ธํ…Œ์ด์…˜์œผ๋กœ Bean์œผ๋กœ ๋“ฑ๋กํ•ด์ค€๋‹ค. @Component์–ด๋…ธํ…Œ์ด์…˜์œผ๋กœ ์ƒ์„ฑ๋œ Bean์„ ๋“ฑ๋ก์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์€ ๋‘ ๊ฐ€์ง€๋‹ค. 1. ApplicationContext.xml์— ์ด๋Ÿฐ ์‹์œผ๋กœ xml์— bean์„ ์ง์ ‘ ๋“ฑ๋ก 2. @ComponentScan(basePackages = { "com.kt.tbb.iptv.coupon.config", "com.kt.tbb.iptv.coupon.business" }) ์‹์œผ๋กœ ์–ด๋…ธํ…Œ์ด์…˜์„ ์‚ฌ์šฉํ•˜์—ฌ ๋“ฑ๋ก 1. @ComponentScan @ComponentScan ์–ด๋…ธํ…Œ์ด์…˜์€ @Component ์–ด๋…ธํ…Œ์ด์…˜ ๋ฐ st.. 2020. 12. 30.
[JAVA] PropertyDescriptor ํด๋ž˜์Šค ํ•˜์œ„ํด๋ž˜์Šค : IndexedPropertyDescriptor ์ƒ์œ„ํด๋ž˜์Šค : FeatureDescriptor PropertyDescriptor๋Š” Object์˜ ํ•œ์Œ์˜ ์ ‘๊ทผ์ž ๋ฉ”์„œ๋“œ(getMethod, setMethod)์˜ ์†์„ฑ์„ ๋‹ค๋ฃจ๋Š” ํด๋ž˜์Šค์ด๋‹ค. A PropertyDescriptor describes one property that a Java Bean exports via a pair of accessor methods. ์ƒ์„ฑ์ž PropertyDescriptor(String propertyName, Class beanClass) get/set ์ ‘๊ทผ์ž ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์†์„ฑ์— ๋Œ€ํ•œ PropertyDescriptor๋ฅผ ๊ตฌ์„ฑํ•œ๋‹ค. PropertyDescriptor(String propertyName, Cla.. 2020. 11. 30.
[JAVA] ReflectionUtil [util] - ReflectionUtil.java package com.kt.tbb.iptv.coupon.framework.util; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Array; import java.lang.reflect.Field; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.uti.. 2020. 11. 30.