<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>PARK4139.log</title>
        <link>https://velog.io/</link>
        <description>산책과 코드가 좋아요</description>
        <lastBuildDate>Thu, 22 Feb 2024 04:51:25 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>PARK4139.log</title>
            <url>https://velog.velcdn.com/images/a_life_balancer/profile/01173abf-fe71-4c3d-bcc4-91cdcbf8c557/image.ico</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. PARK4139.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/a_life_balancer" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[[UTC/GMT/표준시] 전세계인의 시간에 대한 이해✍
]]></title>
            <link>https://velog.io/@a_life_balancer/UTCGMT%ED%91%9C%EC%A4%80%EC%8B%9C-%EC%A0%84%EC%84%B8%EA%B3%84%EC%9D%B8%EC%9D%98-%EC%8B%9C%EA%B0%84%EC%97%90-%EB%8C%80%ED%95%9C-%EC%9D%B4%ED%95%B4</link>
            <guid>https://velog.io/@a_life_balancer/UTCGMT%ED%91%9C%EC%A4%80%EC%8B%9C-%EC%A0%84%EC%84%B8%EA%B3%84%EC%9D%B8%EC%9D%98-%EC%8B%9C%EA%B0%84%EC%97%90-%EB%8C%80%ED%95%9C-%EC%9D%B4%ED%95%B4</guid>
            <pubDate>Thu, 22 Feb 2024 04:51:25 GMT</pubDate>
            <description><![CDATA[<p><br>✍ 생각 정리</p>
<blockquote>
<p><code>세계인이 사용하는 시간을 이해하자</code></p>
</blockquote>
<p>프로그램을 만들었는데 시간이 맞지 않아. 이를 고치기 위해서 시간에 대해서 이해가 필요했다.
그동안 이해하는데 어려워 그냥 이해하지 않은채 살고 있었는데 더 이상은 안되겠다 이해해야겠다.
빠르다? 느리다? 이런 표현을 쓰니까 헷갈린다. 이게 상대적으로 표현한 건데 이해하기가 쉽지 않았다.
이제 생각이 어느정도 정리된것같아. 생각을 정리하는데 도움이 됬던 내용을 기록한다.
나는 살면서,
지역적으로 시간대역을 나눈 그림을 언젠가 본적이 있었다.
그리고 UTC + 9 = KST 이런 공식을 어디선가 본적이 있었다.
그것을 바탕으로 생각을 시작했다.
움직이는 시간을 이해하기 위해서
우선 움직이지 않는 시간을 이해하기 위해서 나는 가정을 했다.
전세계가 스크린샷 찍듯 캡쳐되었다.
미국인의 휴대폰시계와 한국인의 휴대폰시계를 가져왔다.
그 시계는 서로 다른 시간을 가르키고 있을까?.
일반적이라면 그렇다.
나라마다 서로 다른 시간을 쓰는 것일까? 나는 그렇다고 생각했다.
구글링해보니, 그 시간을 &quot;표준시&quot; 라고 부른다. 이 &quot;표준시&quot;는 &quot;나라별로 다르다&quot; 조금 더 구체적으로는 &quot;지역별로 다르다&quot;
동시간대에 지역별 &quot;표준시&quot;는 다르다. &quot;표준시&quot;는 그 지역에서 사람들이 일반적으로 사용하는 시간
표준시를 얻기 위해서는 &quot;기준시&quot;를 얻어야한다. &quot;기준시&quot; 는 UTC 라고 부르며 어려운 말로 &quot;세계협정시&quot; 라고 한다.</p>
<p>UTC + 9 = KST
UTC + 9 = KST, 이를 다르게 표현하면 &quot;UTC+09&quot; 라고 표현한다 KST 는 &quot;UTC+09&quot; 를 따른다고 할 수 있다
미국은 나라가 커서 여러개의 &quot;표준시&quot; 를 갖는다.
미국 한국 시차라고 구글링하니 &quot;미국 워싱턴 DC&quot; 를 꼭 집어 이야기 한다. 지역기준을 &quot;미국 워싱턴 DC&quot; 로 잡은 것을 이야기 해준 것이다.
표준시를 구하기 위해서는 UTC 를 알아야한다.</p>
<p>UTC - 5= &quot;미국워싱턴DC 표준시&quot; # &quot;영국그리니치 천문대&quot;  와 미국워싱턴DC 의 상대적인 시간차 표현 공식, 미 동부 표준시 를 따르는 것으로 보임.</p>
<pre><code>UTC + 9  = KST
UTC + 9 - 14 = KST - 14
UTC - 5 = KST - 14
KST - 14= &quot;미국워싱턴DC 표준시&quot; # 미국워싱턴DC 와 대한민국 의 상대적인 시간차 표현 공식

UTC + 0= &quot;영국그리니치천문대 표준시&quot; # UTC 는 &quot;영국그리니치천문대 평균시&quot;
UTC - 0= &quot;영국그리니치천문대 표준시&quot;
UTC = &quot;영국그리니치천문대 표준시&quot;</code></pre><p>결론, 우리가 일반적으로 말하는 시간 은 &quot;표준시&quot; 를 의미하며 지역에 따라 다르다.
우리가 시간대가 다른 어떤 지역에 가서 &quot;표준시&quot; 가 다름을 인지했을 때 그 지역의 표준시로 설정하고 싶어졌다면 &quot;표준시&quot; 를 알기 위해 그 지역사람에게 시간을 물어봐도 좋고.
 그 지역 &quot;표준시&quot; 를 알고 싶으면 &quot;그 지역의 표준시&quot; 를 구글링하면 된다.</p>
<p>예를 들어, 내가 &quot;한국&quot;에서 &quot;미국워싱턴DC&quot; 로 이동했는데 내 전자기기/손목시계/시계 가 시간이 주변의 시간과 다르다고
그 지역 &quot;표준시&quot; 를 알고 싶으면 &quot;그 지역의 표준시&quot; 를 구글링한다.
알았을 떄는 &quot;미국워싱턴DC 표준시&quot; 이렇게 구글링하면
미국 워싱턴 DC 워싱턴 D.C. 시간대(GMT-5)
수요일, 2024년 2월 21일, 오후 11:20 이라고 얻을 수 있다.
이 날짜와 시간으로 내 시간과 관련된 물건들을 설정하면 된다.</p>
<p>덧붙여, UTC 는 다른 말로 GMT 라고 부를 수 있다.
현재는 UTC가 공식적인 용어,일상적인 대화에서는 두 용어를 거의 동일한 의미로 사용할 수 있습니다.</p>
<p>이해가 덜 된 부분
Eastern Daylight Time (EDT)으로
1시간 빨라진다.
UTC-5 와 UTC-4 가 Daylight Time 이 적용이 되냐에 따라 전환되는 듯하다. 써머타임 이런 것도 있다.</p>
<p><br>✍ 생각 요약</p>
<pre><code>어느 지역에 갔는데 시간대가 바뀌는 지역이라면 컴퓨터/시계/스마트폰 등의 시간을 수정해야한다. 그 지역의 표준시로 설정하면 된다.

써머타임 같은 것 때문에 UTC 표현식이 시기적으로 변경되는 지역도 있다. 

이런 경우를 아우르는 코드를 작성하려면
UTC 표현식 변경될 때 마다 시간이 수정되도록 코드를 작성해야 할 필요가 있어보인다.

설정을 알아서 해주는 편리한 라이브러리도 있다</code></pre>]]></description>
        </item>
        <item>
            <title><![CDATA[[파이썬] port vs port[0] 디버깅 기록✍]]></title>
            <link>https://velog.io/@a_life_balancer/%ED%8C%8C%EC%9D%B4%EC%8D%AC-port-vs-port0</link>
            <guid>https://velog.io/@a_life_balancer/%ED%8C%8C%EC%9D%B4%EC%8D%AC-port-vs-port0</guid>
            <pubDate>Sun, 11 Feb 2024 07:23:30 GMT</pubDate>
            <description><![CDATA[<p><br>✍ 문제 인식</p>
<blockquote>
<p><code>UvicornUtil.Settings.port</code> vs <code>UvicornUtil.Settings.port[0]</code>?</p>
</blockquote>
<p>위 코드는 내가 작성한 코드들인데 <code>UvicornUtil.Settings.port</code>로 호출하기를 기대하고 작성하였다.
그런데 안되는 것이다. <code>UvicornUtil.Settings.port[0]</code> 로 호출을 해야하더라.
port 데이터 타입이 기대와 다르게, 자꾸 튜플로 오는 거다.
너무 높은 버전의 python 버전(python3.12.0)과 라이브러리 호환성 문제인지 디버깅하다가. ChatGPT 에게 물어보니 tuple 로 올 수도 있다고 말해준 것을 믿고, 개발을 진행했다. 디버깅을 하다가 결국 못찾고, 최종의도 된대로 동작은 되는 것은 확인하고 진행했다.
그런데, 또 class 를 작성할 일이 있어서 작성을 했는데 왠걸 이번엔 UvicornUtil.Settings.port 이러한 꼴로 동작을 하더라..
내 작업물의 문제로 생각되서 코드를 VSCODE 에서 작성된 텍스트들을 비교해봤는데..
원인을 찾았다. 뭐가 잘못 됬냐면, 범인은 바로 <code>,</code> 이다.</p>
<p><br>✍ BEFORE </p>
<pre><code class="language-py">class foo:
    field= &quot;3&quot;,</code></pre>
<p><br>✍ 시도 대안</p>
<pre><code>, 를 제거한다</code></pre><p><br>✍ AFTER</p>
<pre><code class="language-py">class foo:
    field= &quot;3&quot;</code></pre>
<p><br>✍ 생각 정리</p>
<blockquote>
<p>디버깅 시에는 코드를 <code>겸손히 다시보자</code></p>
</blockquote>
<p>이렇게 수정을 하니 데이터 타입이 의도한 대로 문자열로 나오더라. 
관련 로직을 데이터 타입을 튜플로 가정한채로 작성을 해버렸다. 
잘못 가정된 부분을 모두 다시 수정해야 했다. 
불필요한 공수가 추가로 들었다...</p>
<p>이번 문제의 경우, 파이썬은 <code>compile error</code> 가 없는 <code>인터프리터 언어</code>이기에 에러가 뜨지도 않고
심지어 문법적인 로직이 중간에 틀렸음에도, 놀랍게도 의도한 형태로 런타임에서 코드가 잘(?) 동작하고 있다...
또한, IDE 문법 <code>lints</code> 해주는 기능에서도 시현되지 않는다. </p>
<p>이런 코드를 만들어 놓고, 문제없는 코드라 판단을 할뻔하였다.
이게 토이프로젝트여서 다행이지, 실제 프로젝트에서 이런 문제를 저지른 채로 장기간 코드가 작성되었다고 하면....</p>
<p>ChatGPT 3.5의 정직한 말투는 아주 진짜인듯 들릴때가 많지만, 내용이 틀릴 수 있음을 반드시 감안해야한다.
도움이 되는 부분을 활용하고 적절한 판단을 할 수 있도록 하자.  </p>
<p><br>✍ 생각 요약</p>
<pre><code>ChatGPT 활용하되 맹신 금물
VSCODE 텍스트 비교기능 땡큐
&quot;,&quot; 실수 잘 좀 보자.</code></pre>]]></description>
        </item>
        <item>
            <title><![CDATA[move the files from departure to destination 0.0.9.bat]]></title>
            <link>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.9.bat</link>
            <guid>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.9.bat</guid>
            <pubDate>Mon, 25 Apr 2022 12:50:06 GMT</pubDate>
            <description><![CDATA[<p>rem 1   from Desktop to Destination
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot;)&amp;&amp; move &quot;%%i&quot; &quot;%%~xi&quot;</p>
<p>rem 1.1
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
mkdir &quot;%destination%&quot;</p>
<p>rem 1.2
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for /d %%i in (.*) do move &quot;%%i&quot; &quot;%destination%&quot;</p>
<p>rem 1.3
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%destination%&quot; &quot;%destination% - %%i&quot;</p>
<p>rem 1.4
setlocal
set username=박 정 훈
set destination=C:\Users\박 정 훈\Desktop\Destination
cd &quot;C:\Users%username%\Desktop&quot;
mkdir jhptemp
for /d %%i in (&quot;sorted by extension*&quot;) do move &quot;%%i&quot; &quot;jhptemp&quot;
move &quot;jhptemp&quot; &quot;%destination%&quot;
cd &quot;%destination%&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do set yyyymmddhhmm=%%i
ren &quot;jhptemp&quot; &quot;%yyyymmddhhmm%&quot;</p>
<p>rem 2 
setlocal
set departure=C:\Users\박 정 훈\Desktop\departure
set destination=C:\Users\박 정 훈\Desktop\destination
cd &quot;%departure%&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do set yyyymmddhhmm=%%i
for /r %%i in (<em>.</em>) do ren &quot;%%i&quot; &quot;%%<del>ni - %yyyymmddhhmm%%%</del>xi&quot;
for /r %%i in (<em>.</em>) do move &quot;%%i&quot; &quot;%destination%&quot;
for /f &quot;usebackq delims=&quot; %%i in (<code>&quot;dir /s /b /ad | sort /r&quot;</code>) do rd &quot;%%i&quot; 2&gt;NUL
cd &quot;%destination%&quot;
for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (
if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot;
move &quot;%%i&quot; &quot;%%~xi&quot;
)
mkdir &quot;sorted by extension&quot;
for /d %%i in (.*) do move &quot;%%i&quot; &quot;sorted by extension&quot;
mkdir &quot;jhptemp&quot;
move &quot;sorted by extension&quot; &quot;jhptemp&quot;
ren &quot;jhptemp&quot; &quot;%yyyymmddhhmm%&quot;</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[move the files from departure to destination 0.0.8.bat]]></title>
            <link>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.8.bat</link>
            <guid>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.8.bat</guid>
            <pubDate>Thu, 21 Apr 2022 15:04:54 GMT</pubDate>
            <description><![CDATA[<p>rem    rem 1   from Desktop to Destination
rem    setlocal
rem    set username=박 정 훈
rem    set destination=sorted by extension
rem    cd &quot;C:\Users%username%\Desktop&quot;
rem    for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (
rem    if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot; 
rem    move &quot;%%i&quot; &quot;%%~xi&quot;
rem    )
rem<br>rem<br>rem<br>rem    rem 1.1
rem    setlocal
rem    set username=박 정 훈
rem    set destination=sorted by extension
rem    cd &quot;C:\Users%username%\Desktop&quot;
rem    mkdir &quot;%destination%&quot;
rem<br>rem<br>rem    rem 1.2
rem    setlocal
rem    set username=박 정 훈
rem    set destination=sorted by extension
rem    cd &quot;C:\Users%username%\Desktop&quot;
rem    for /d %%i in (.<em>) do move &quot;%%i&quot; &quot;%destination%&quot;
rem<br>rem<br>rem    rem 1.3
rem    setlocal
rem    set username=박 정 훈
rem    set destination=sorted by extension
rem    cd &quot;C:\Users%username%\Desktop&quot;
rem    for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%destination%&quot; &quot;%destination% - %%i&quot;
rem<br>rem<br>rem<br>rem    rem 1.4
rem    setlocal
rem    set username=박 정 훈
rem    set destination=C:\Users\박 정 훈\Desktop\Destination
rem    cd &quot;C:\Users%username%\Desktop&quot;
rem    mkdir jhptemp
rem    for /d %%i in (&quot;sorted by extension</em>&quot;) do move &quot;%%i&quot; &quot;jhptemp&quot;
rem    move &quot;jhptemp&quot; &quot;%destination%&quot;
rem    cd &quot;%destination%&quot;
rem    for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do set yyyymmddhhmm=%%i
rem    ren &quot;jhptemp&quot; &quot;%yyyymmddhhmm%&quot;
rem<br>rem    </p>
<p>rem 2 
setlocal
set departure=C:\Users\박 정 훈\Desktop\departure
set destination=C:\Users\박 정 훈\Desktop\destination
cd &quot;%departure%&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do set yyyymmddhhmm=%%i
for /r %%i in (<em>.</em>) do ren &quot;%%i&quot; &quot;%%<del>ni - %yyyymmddhhmm%%%</del>xi&quot;
for /r %%i in (<em>.</em>) do move &quot;%%i&quot; &quot;%destination%&quot;
for /f &quot;usebackq delims=&quot; %%i in (<code>&quot;dir /s /b /ad | sort /r&quot;</code>) do rd &quot;%%i&quot; 2&gt;NUL
cd &quot;%destination%&quot;
for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (
if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot;
move &quot;%%i&quot; &quot;%%~xi&quot;
)
mkdir &quot;sorted by extension&quot;
for /d %%i in (.*) do move &quot;%%i&quot; &quot;sorted by extension&quot;
mkdir &quot;jhptemp&quot;
move &quot;sorted by extension&quot; &quot;jhptemp&quot;
ren &quot;jhptemp&quot; &quot;%yyyymmddhhmm%&quot;</p>
<p>rem<br>rem<br>rem          rem 2, need to rewrite
rem          rem setlocal
rem          rem set destination = C:\Users\박 정 훈\Desktop\destination
rem          rem cd %%destinaiton%%
rem          rem for /r %%i in (<em>.</em>) do ren &quot;%%i&quot; &quot;%destination%&quot;
rem<br>rem<br>rem          rem 3 모든 파일에 날짜를 지우기
rem<br>rem<br>rem<br>rem<br>rem<br>rem          rem ip 변경
rem          netsh -c int ip set address name=&quot;로컬 영역 연결&quot; source=static addr=11.11.11.11 mask=255.255.255.0 gateway=11.11.11.1 gwmetric=0
rem<br>rem<br>rem          rem 자동IP 변경
rem          netsh -c int ip set address name=&quot;로컬 영역 연결&quot; source=dhcp
rem<br>rem<br>rem          rem DNS 변경
rem          netsh -c int ip set dns name=&quot;로컬 영역 연결&quot; source=static addr=111.111.111.11 register=PRIMARY
rem<br>rem<br>rem<br>rem          rem 자동DNS 변경
rem          netsh -c int ip set dns name=&quot;로컬 영역 연결&quot; source=dhcp
rem          </p>
]]></description>
        </item>
        <item>
            <title><![CDATA[move the files from departure to destination 0.0.1.bat]]></title>
            <link>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.1.bat</link>
            <guid>https://velog.io/@a_life_balancer/move-the-files-from-departure-to-destination-0.0.1.bat</guid>
            <pubDate>Thu, 21 Apr 2022 12:27:42 GMT</pubDate>
            <description><![CDATA[<p>rem 1 
setlocal
set departure=C:\Users\박 정 훈\Desktop\departure
set destination=C:\Users\박 정 훈\Desktop\destination
cd &quot;%departure%&quot;
for /r %%i in (<em>.</em>) do move &quot;%%i&quot; &quot;%destination%&quot;
for /f &quot;usebackq delims=&quot; %%i in (<code>&quot;dir /s /b /ad | sort /r&quot;</code>) do rd &quot;%%i&quot; 2&gt;NUL</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[organize desktop 0.0.5.bat]]></title>
            <link>https://velog.io/@a_life_balancer/organize-desktop-0.0.5.bat</link>
            <guid>https://velog.io/@a_life_balancer/organize-desktop-0.0.5.bat</guid>
            <pubDate>Thu, 21 Apr 2022 11:59:59 GMT</pubDate>
            <description><![CDATA[<p>rem 1
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (
if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot; 
move &quot;%%i&quot; &quot;%%~xi&quot;
)</p>
<p>rem 1.1
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
mkdir &quot;%destination%&quot;</p>
<p>rem 1.2
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for /d %%i in (.*) do move &quot;%%i&quot; &quot;%destination%&quot;</p>
<p>rem 1.3
setlocal
set username=박 정 훈
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%destination%&quot; &quot;%destination% - %%i&quot;</p>
<p>rem 1.4
setlocal
set username=박 정 훈
cd &quot;C:\Users%username%\Desktop&quot;
mkdir jhptemp
for /d %%i in (&quot;sorted by extension*&quot;) do move &quot;%%i&quot; &quot;jhptemp&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;jhptemp&quot; &quot;%%i&quot;</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[local back up 0.0.2.bat]]></title>
            <link>https://velog.io/@a_life_balancer/technical-document-local-back-up-0.0.2.bat</link>
            <guid>https://velog.io/@a_life_balancer/technical-document-local-back-up-0.0.2.bat</guid>
            <pubDate>Wed, 20 Apr 2022 23:57:45 GMT</pubDate>
            <description><![CDATA[<p>setlocal
set n=MPT CBT SRS
set x=.docx
mkdir &quot;%cd%&quot;Recycle bin&quot;&quot;&gt;nul 2&gt;&amp;1 &amp; pushd &quot;%cd%&quot;Recycle bin&quot;&quot;
copy /y &quot;..%n%%x%&quot; .
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%n%%x%&quot; &quot;%n% - %%i%x%&quot;
popd
endlocal</p>
<p>setlocal
set n=MTD AVD SRS
set x=.docx
mkdir &quot;%cd%&quot;Recycle bin&quot;&quot;&gt;nul 2&gt;&amp;1 &amp; pushd &quot;%cd%&quot;Recycle bin&quot;&quot;
copy /y &quot;..%n%%x%&quot; .
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%n%%x%&quot; &quot;%n% - %%i%x%&quot;
popd
endlocal</p>
<p>setlocal
set n=MTD CDD
set x=.docx
mkdir &quot;%cd%&quot;Recycle bin&quot;&quot;&gt;nul 2&gt;&amp;1 &amp; pushd &quot;%cd%&quot;Recycle bin&quot;&quot;
copy /y &quot;..%n%%x%&quot; .
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%n%%x%&quot; &quot;%n% - %%i%x%&quot;
popd
endlocal</p>
<p>timeout /t 2</p>
<p>rem get date and time by using powershell command and rename destination folder as &quot;destination - yyyy mm dd hh mm&quot;
setlocal
set n=&quot;back_up&quot;
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%n%&quot; &quot;%n% - %%i&quot;</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[organize desktop 0.0.4.bat]]></title>
            <link>https://velog.io/@a_life_balancer/organize-desktop-0.0.3</link>
            <guid>https://velog.io/@a_life_balancer/organize-desktop-0.0.3</guid>
            <pubDate>Wed, 20 Apr 2022 23:43:18 GMT</pubDate>
            <description><![CDATA[<p>rem 1.3 enter desktop, here
setlocal
set username=jhp01
set destination=sorted by extension
cd &quot;C:\Users%username%\Desktop&quot;</p>
<p>rem 1.4 orgnize files in desktop, move them into folders that named including extension, here
setlocal
set username=jhp01
set destination=sorted by extension
for %%i in (<em>.</em>) do if not &quot;%<del>nx0&quot;==&quot;%%</del>nxi&quot; (
if not exist &quot;%%<del>xi&quot; md &quot;%%</del>xi&quot; 
move &quot;%%i&quot; &quot;%%~xi&quot;
)</p>
<p>rem 1.5 make destination folder, here
setlocal
set username=jhp01
set destination=sorted by extension
mkdir &quot;%destination%&quot;</p>
<p>rem 1.6 move folders named including extension into destination folder, here
setlocal
set username=jhp01
set destination=sorted by extension
for /d %%i in (.*) do move &quot;%%i&quot; &quot;%destination%&quot;</p>
<p>rem 1.7 get date and time by using powershell command and rename destination folder as &quot;destination - yyyy mm dd hh mm&quot;
setlocal
set username=jhp01
set destination=sorted by extension
for /f &quot;delims=&quot; %%i in (&#39;Powershell.exe get-date -Format &#39;yyyy MM dd HH mm&#39;&#39;) do ren &quot;%destination%&quot; &quot;%destination% - %%i&quot;</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[IDE003(For RPA of Excell) - 2022 04 21 08 41]]></title>
            <link>https://velog.io/@a_life_balancer/IDE003For-RPA-of-Excell</link>
            <guid>https://velog.io/@a_life_balancer/IDE003For-RPA-of-Excell</guid>
            <pubDate>Wed, 20 Apr 2022 21:23:37 GMT</pubDate>
            <description><![CDATA[<p>technical stacks
windows 10
openpyxl</p>
<p>pip install openpyxl
from openpyxl import Workbook
Workbook()
Workbook().active
Workbook().active.title = &quot;sheet 000&quot;
Workbook().save(&quot;jhp RPA.xlsx&quot;)
Workbook().close()</p>
<p>Workbook().create_sheet(&quot;sheet 002&quot;,3)
Workbook().create_sheet(&quot;sheet 003&quot;,4)    # create sheet as sheet 003 at index 4
Workbook().create_sheet().title = &quot;sheet 001&quot;    # replace sheet title
Workbook().save(&quot;jhp RPA.xlsx&quot;)</p>
<p>Workbook()[&quot;sheet 002&quot;]        # dictionary 형태로 sheet에 접근
Workbook()[&quot;sheet 002&quot;][&quot;a1&quot;] = &quot;text001&quot;
Workbook()[&quot;sheet 002&quot;][&quot;a2&quot;] = &quot;text002&quot;
Workbook()[&quot;sheet 002&quot;][&quot;a3&quot;] = &quot;text003&quot;
Workbook()[&quot;sheet 002&quot;][&quot;b1&quot;] = &quot;text001&quot;
Workbook()[&quot;sheet 002&quot;][&quot;b2&quot;] = &quot;text002&quot;
Workbook()[&quot;sheet 002&quot;][&quot;b3&quot;] = &quot;text003&quot;
Workbook().copy_worksheet(Workbook()[&quot;sheet 002&quot;]
Workbook().copy_worksheet(Workbook()[&quot;sheet 002&quot;].title = &quot;copied sheet&quot;
Workbook().save(&quot;jhp RPA.xlsx&quot;)</p>
<p>Workbook().sheetnames                # show it
Workbook()[&quot;sheet 002&quot;][&quot;a1&quot;].value    # show it
Workbook()[&quot;sheet 002&quot;].cell(row=1, column=1).value        # a1
Workbook()[&quot;sheet 002&quot;].cell(column=1, row=1).value        # a1
Workbook().save(&quot;jhp RPA.xlsx&quot;)</p>
<p>Workbook()[&quot;sheet 002&quot;].cell(column=1, row=1).value = 10</p>
<p>from random import *
for x in range(1,11):
    for y in range(1,11):
        Workbook()[&quot;sheet 002&quot;](row=x, column=y, value=radiant(0,100))</p>
<p>index=0
for x in range(1,11):
    for y in range(1,11):
        Workbook()[&quot;sheet 002&quot;](row=x, column=y, value=index)
        index = index + 1</p>
<p>from openpyxl import load_workbook
load_workbook(&quot;jhp_RPA002.xlsx&quot;).active
for x in range(1,11):
    for y in range(1,11):
        print(load_workbook.cell(row=x,column=y).value, end=&quot; &quot;)    # end 역할 이 뭐지?
    print()                # 얘가 줄바꿈을 만들어준다.</p>
<p>from openpyxl import load_workbook
load_workbook(&quot;jhp_RPA002.xlsx&quot;).active
for x in range(1,load_workbook(&quot;jhp_RPA002.xlsx&quot;).active.max_row + 1):
    for y in range(1,load_workbook(&quot;jhp_RPA002.xlsx&quot;).active.max_column + 1):
        print(load_workbook.cell(row=x,column=y).value, end=&quot; &quot;)
    print()</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[IDE002(for scrawling weather ) - 2022 04 20 09 44]]></title>
            <link>https://velog.io/@a_life_balancer/IDE002for-weather-scrawling-2022-04-20-09-44</link>
            <guid>https://velog.io/@a_life_balancer/IDE002for-weather-scrawling-2022-04-20-09-44</guid>
            <pubDate>Wed, 20 Apr 2022 00:45:26 GMT</pubDate>
            <description><![CDATA[<h1 id="ide002-stacks">IDE002 stacks</h1>
<pre><code>windows 10
pip 22.0.4
pipenv 
python 3.9
setuptools 62.1.0
requests 2.27.1
BeautifulSoup4 4.11.1</code></pre><h1 id=""></h1>
<pre><code>rem check version
pip --version
python3 --version</code></pre><h1 id="python-3">python 3</h1>
<pre><code>rem enter https://www.python.org/downloads/windows/
rem replace path length limit disable</code></pre><h1 id="add-path-of-pythonexe-to-path-as-system-variable">add path of python.exe to path as system variable</h1>
<pre><code>rem enter position of python.exe
rem copy address of python.exe
rem enter 고급 시스템 설정
rem alt n(환경 변수)
rem click path of 시스템 변수
rem alt i(edit)
rem alt n(새로 만들기)
rem save and get out</code></pre><h1 id="pipenv">pipenv</h1>
<pre><code>cmd.exe
pip install pipenv
mkdir &quot;virtual_environment_IDE001&quot;
cd &quot;virtual_environment_IDE001&quot;
pipenv &quot;virtual_environment_IDE001&quot;
pipenv shell
exit     #if you want to shutdown &quot;virtual_environment_IDE001&quot;</code></pre>]]></description>
        </item>
    </channel>
</rss>