tag:blogger.com,1999:blog-378123712024-03-13T11:59:12.592+09:00A diary of a Hungry Software EngineerSoftware Engineer is(should be) a most efficient Problem Solver. Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.comBlogger106125tag:blogger.com,1999:blog-37812371.post-13267752845032595522023-11-10T08:09:00.001+09:002023-11-10T08:09:03.307+09:00[git] Delete all branches except master in windows<p> Powershell command:</p><p><span style="background-color: #e3e6e8; color: #0c0d0e; font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace; font-size: 13px; white-space-collapse: preserve;">,@(git branch | Select-String -Pattern "[^(*?)\s? master]") | ForEach-Object{$_.Line.Trim()} | %{git branch -D $_}</span></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-87513787894089905922023-07-14T03:47:00.006+09:002023-07-14T03:47:47.392+09:00How to measure the productivity of an engineering team<p>Fellow suggests the following 10 measures for engineering metrics. I agree some of them. Let me add my opinon in line. My opinion is based on current company situation that it releases every three months.</p><p>Lead time: Yes. It means from the time of customer request to the time of deployment in production.</p><p>Cycle time: Yes. It means from the time of staring of the developmnet to the time of deployment in production. However I would like to mearsure to the time of master branch merge.</p><p>Number of story points: Yes. I prefer to measure number of stories. Because story points are decided by engineers and it's not correct until the team gets stable. It takes about 1 or 2 years. The problem is after 1 or 2 years, engineers are not in the team.</p><p>Mean time to restore in production: No. Dev and Ops are separated. </p><p>Days worked: Yes, but no. The formula of the productivity is output / input. We can use this as input. The challenge is engineers are in several countries. It's little bit hard to calculate work days with holidays of each country.</p><p>Context switching: No. There is no way to measure it objectively.</p><p>Deploy frequency: No. It should be YES, however current my company has fixed release cycle.</p><p>Change failure rate: Yes. I use this measure like defect count / total count of story and defect.</p><p>Rework ratio: No. There is no way to measure it objectively.</p><p>WIP balance: No. I don't want to measure the process. I prefer to measure the result.</p><p><a href="https://fellow.app/blog/productivity/engineering-metrics-what-they-are-ways-to-measure-them/">https://fellow.app/blog/productivity/engineering-metrics-what-they-are-ways-to-measure-them/</a></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-41317844085598153202023-04-29T09:44:00.000+09:002023-04-29T09:44:05.591+09:00Memo: Build sub module in the parent directory.<p>I had moved to the sub module directory and run the following Gradle command.</p><blockquote><p>gradle build</p></blockquote><p> </p><p>Now I build it in the paraten directory.</p><blockquote><p>gradle :sub-module:build</p></blockquote><p> </p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-44900265804504221592023-03-22T06:02:00.003+09:002023-03-22T06:02:48.095+09:00미국에서 부끄러움은 내 몫<p></p><ol style="text-align: left;"><li> Target 셀프 계산기가 갖고 있던 모든 동전을 먹어버림. 일본처럼 한꺼번에 넣어더니 인식 안 하고 다 먹어버림. 털린 돈만 $11가 넘음.</li><li>SSN 신청하러 SSO 방문했더니 경비원이 "Sign Sign" 소리치길래 뭔 소리가 싶어 가까이 갔더니 더 크게 "Sign Sign" 그러며 밖을 가리키길래 밖을 봤더니 간판이 있길래 그 쪽으로 갔더니 OK라고 함.</li><li>물 500ml 24개와 치킨롤을 사서 Traders Joe's에서 계산하려 하니 나이니나인에잇이라 길래 50불 2장을 냈더니, 일단 50불을 돌려주고 잔돈을 챙겨주더라. 알고 보니 $9.98 였음.</li></ol><p></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-74369588511206375072023-03-04T12:20:00.004+09:002023-03-04T12:20:39.038+09:00미국 도착 후 할 일 순서대로<p>미국, 캘리포니아에 온 지 6개월 인 사람이 생각한 미국에 도착 후 할 일을 순서대로 나열 합니다.</p><p>0. 집: 미국 오기 전 <a href="https://www.theblueground.com/">https://www.theblueground.com/</a> 에서 3개월 살 집을 미리 구하시는 걸 추천합니다. 집 주소가 없으면 은행 계좌, 운전 면허을 받을 수 가 없습니다.</p><p>1. 전화: Target에서 Mint Mobile sim card prepaid $60 구입. 도착 당일 혹은 다음 날 바로 사세요. 밖에서 인터넷을 쓸 수 있으며 통화 무제한이므로 이후 볼 일 볼 때 큰 도움이 됩니다.</p><p>2. Social Security Number: 미국 내 주소가 없어서 안 하고 있었는데 은행 계좌 만들 때 필요하고 발급 받는데 2주까지 걸린다고 해서 회사 주소로 신청. 온라인으로 신청하고 여권, I-94(가장 최근의 출입국 기록), I-129S 챙겨서 그날 바로 Social Security Office 방문하니 간단히 끝남. 미국 도착 후 2일 째 하십시오. I-94가 반영되는데 하루가 걸린다고 합니다.</p><p>3. 집: 저는 미국에 오기 전에 회사에서 소개 시켜 준 Relocity라는 서비스를 사용했는데 최악임. 7월 초 미팅을 가지고 7월 중순부터 집 찾기로 해서 7월 말 후보 집들 몇 개 보내준다고 하더니 8월 중순부터 시작. 약속한 후보 집들 동영상 다 보내 주지도 않음. 첫 집만 보내주고 끝. 공항 근처라 소음은 어떠냐고 물어보니 대답 없음. 답답해서 Zillow에서 직접 집을 찾아 여기 내가 8월 말에 도착할 때까지 계약 끝내도록 했더니 8월 말까지 그 아파트 좋다라고 함. 그래서 신청은? 이러니 매니저한테 설명했으니 온라인으로 신청하라고 함. 8월 30일. 신청하고 이틀이 지나도 연락이 없어 아파트 매니저한테 전화했더니 신청 요금 아직 안 내서 심사 안 하고 있는데 이럼. 카드로 지불 했는데 그게 왜 지불이 안되냐고 따지고 확인하라고 했더니. 수입은 증명 됐으니 여권과 일본 은행 거래명세서(bank statement) 내라고 함. 거래명세서 발급 받는데 며칠 걸린다고 하니 지 퇴근 시간이라며 빨리 끊으라 그럼. 아 놔.<br /> 호텔에 머물다가 0번에 소개한 사이트에서 3개월 지낼 집을 구함. 3개월치 월세를 한번에 지불하므로 몫돈이 필요함.</p><p>4. 은행 계좌: 일본에서 union bank 계좌를 만들었지만, 결국 집과 SSN을 해결하고 Bank of America에서 만듬. Chase는 운전 면허증이 없으면 안 된다고 함.</p><p>5. 자동차: 캘리포니아 운전 면허증이 없어도 구매 가능. 하지만 대출 이자가 비싸 일시불로 살 수 있는 중고차를 구입. 딜러가 필요한 서류나 절차를 다 해 줌. 신용카드로 $5,000 까지만 지불 가능하고, 계좌 이체도 하루 $7,000 이 한도라 2번에 나눠서 이체함.</p><p>6. 운전 면허증: 사실 집을 구하고 바로 취득할 수 있었으나 운전 학원 차를 빌려서 시험을 치러야 했기에, 돈이 들어서 차를 구매하고 운전 면허 실기 시험을 침. 필기는 집과 SSN이 나오고 바로 신청해서 합격 했음. </p><p>7. 집 구하기: 다시 집 구하기. 가족과 함께 살 집을 <a href="https://www.zillow.com/">https://www.zillow.com/</a> 에서 집을 몇 군데 보고 구함. 아직 credit score가 없어서 구하기 힘들었지만 운 좋게 좋은 집 주인을 만나 일반 주택을 구함. 대신 일반 계약 기간이 1년임에 비해 1년 7개월로 길게 계약.</p><p>8. 애들 학교: Elementary, Middle School은 다 같은 학군(District)라서 같은 학군 홈페이지에서 애들을 등록함. 등록에 필요한 서류들은 집 주소가 확인 가능한 집 계약서, 수도나 전기 요금서, Bank statement 등의 서류, 여권, 영어 예방 접정 기록 그리고 TB(결핵) Test 결과가 필요. TB Test 결과 없이 일단 온라인으로 등록 후 학교와 연락을 주고 받아 애들이 미국 입국 후 TB Test를 해서 각 학교 담당자에게 보내고 난 후에 학교 등교일을 확정 받음.</p><p>9. 예방 접종: 캘리포니아에서 요구하는 예방접종 종류와 횟수가 더 많아 학교 입학 후 병원을 예약하여 추가로 접종을 해야 함. 학교에서 의사와 상의하여 추가로 맞추라고 해서 했는데 예약이 2달 후가 됨. 막상 병원에 가니 바로 접종은 안 되고, 다시 예약하고 나중에 다시 와야 함. 아직 끝나지 않았지만 병원을 4번 방문. 학교 담당자에게 부탁해서 추가 접종이 필요한 백신과 횟수를 확인한 후 CVS minute clinic에서 맞추면 더 빨리 끝낼 수 하다.</p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-59740087812272640512023-02-23T03:58:00.002+09:002023-02-23T03:58:25.329+09:00"Login failed for user" to connect SQL Server with SQL Server Authentication<p>This is caused by not having the SQL Server Authentication configured properly. SQL Server authentication is off by default.</p><p>Here is the solution.</p><p></p><ol style="text-align: left;"><li>Open SQL Server Management Studio.</li><li>Connect with Windows Authentication.</li><li>Right click on the database server and go to properties.<br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjr1QH47VibrGKOLGH2DJAPes7rr_lbtpcEMKzwm-8oy5-T56KejFmO-Mg9_B17dboW0kIZyW879FfETc8Cg4MXgwPoX-aXa8i_qB0IEeRZqRAKXr2UMnpmBjDRs6NBq4Cs9S5yKoiJAjxjlZlEOogxXb8951kwHrdWbx8wjocMQGe7W475CqE" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1046" data-original-width="549" height="385" src="https://blogger.googleusercontent.com/img/a/AVvXsEjr1QH47VibrGKOLGH2DJAPes7rr_lbtpcEMKzwm-8oy5-T56KejFmO-Mg9_B17dboW0kIZyW879FfETc8Cg4MXgwPoX-aXa8i_qB0IEeRZqRAKXr2UMnpmBjDRs6NBq4Cs9S5yKoiJAjxjlZlEOogxXb8951kwHrdWbx8wjocMQGe7W475CqE=w202-h385" width="202" /></a></div><br /></li><li>Choose the security option and check "SQL Server and Windows authentication mode".<br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEi9hu87hrnxjUJKEJWXsst_dJ69UKhUTk3DKwto3n-C8B2J48ThwWZ_2NoQlxznPAqaUKWqOATaA71p0ImfL77mylVZAOAbLeQ9hmenATwoLufJpDZv17nIYvawBijkQQPJBVkrWkeIyc3aNjPfdGi1aVqzZq4XMZq0m0m_ow5WCqf8syUb_Z4" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="825" data-original-width="872" height="317" src="https://blogger.googleusercontent.com/img/a/AVvXsEi9hu87hrnxjUJKEJWXsst_dJ69UKhUTk3DKwto3n-C8B2J48ThwWZ_2NoQlxznPAqaUKWqOATaA71p0ImfL77mylVZAOAbLeQ9hmenATwoLufJpDZv17nIYvawBijkQQPJBVkrWkeIyc3aNjPfdGi1aVqzZq4XMZq0m0m_ow5WCqf8syUb_Z4=w335-h317" width="335" /></a></div><br /><br /></li><li>Enable TCP/IP connection in SQL Configuration Manager.<br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgGXGZfeB0OdK5GUL866fPPzl_aCoIbbMr-X2KPCNnQx2VdHlQXiTeEvhAB38YfARVejKXjOoK1XIzKvuCR9wH72_It59UXSD7rQLkZ6hBuNQPFZbnP_47exC7E9XwJz94b8-Bull7bHPfFGP-hYM-aP22pMWOxlFt-Dcx_AWWRtY768Pm_pU4" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="715" data-original-width="946" height="240" src="https://blogger.googleusercontent.com/img/a/AVvXsEgGXGZfeB0OdK5GUL866fPPzl_aCoIbbMr-X2KPCNnQx2VdHlQXiTeEvhAB38YfARVejKXjOoK1XIzKvuCR9wH72_It59UXSD7rQLkZ6hBuNQPFZbnP_47exC7E9XwJz94b8-Bull7bHPfFGP-hYM-aP22pMWOxlFt-Dcx_AWWRtY768Pm_pU4" width="318" /></a></div><br /><br /></li><li>Restart your SQL server.<br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiVvGV68bUol1ajxOUwW90gxtxszL85NBrbyPU2UacIVnOngMVag5a6Me5cAXLXITmU2XZ4dAB4w6uBQE71xv3TuzSmpHLl60OJSgFT49yfOeJahctRV5JvfYe7kyw0u7NYGxN5Xnm-jspWN3PQuh6Yo4bCMeWQg5oodZ13GgCQeulzoa6gitw" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="593" data-original-width="1232" height="154" src="https://blogger.googleusercontent.com/img/a/AVvXsEiVvGV68bUol1ajxOUwW90gxtxszL85NBrbyPU2UacIVnOngMVag5a6Me5cAXLXITmU2XZ4dAB4w6uBQE71xv3TuzSmpHLl60OJSgFT49yfOeJahctRV5JvfYe7kyw0u7NYGxN5Xnm-jspWN3PQuh6Yo4bCMeWQg5oodZ13GgCQeulzoa6gitw" width="320" /></a></div><br /><br /></li></ol><p></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-61071546237250121862022-10-24T15:44:00.003+09:002022-10-24T15:44:25.163+09:00미국 가기 전 일본에서 미리 준비하면 좋은 것들<p></p><ul style="text-align: left;"><li>신용카드: 미국에서 신용카드를 만들기 위해서는 SSN(Social Security Number), 은행 계좌 그리고 Credit History가 필요하다. Credit History는 급여를 제대로 받고 있는가, 신용카드를 연체 없이 사용하고 있는가, 월세를 제 때 잘 내고 있는가로 점수가 결정된다. 문제는 미국에 도착한 직후면 급여 기록도 없고, 월세도 이제 시작이며 더군다나 미국 신용카드 이용 기록이 없다는 것이다. 그래서 대부분 Secured Credit Card를 사용하다 반년 후 보통 신용카드를 신청한다.</li><li> 하지만 Credit History없이 만들 수 있는 카드가 있으니 바로 <a href="https://www.anacardusa.com/">ANA USA</a> 카드와 <a href="https://www.jalusacard.com/">JAL USA</a> 카드다. 일본 항공회사이므로 일본 내 신용정보를 통해서 발급 가능하다. 하지만 혜택이 별로 없는 관계로 대부분 카드를 해지하는데 카드를 해지 할 경우 Credit Score가 낮아지는 경우가 있다.<br /> 나의 추천은 American Express(Amex) 카드다. Amex는 자사 카드의 신용 정보를 이용하여 일본에서의 이용 실적으로 미국에서 동급의 카드를 발급 받을 수 있다. 아쉽게도 한국은 Amex가 단독으로 영업하지 않는 관계로 이 프로그램을 쓸 수 없다. 자세한 내용은 여기에서 확인할 수 있다. <a href="https://www.americanexpress.com/us/customer-service/global-card-relationship/">https://www.americanexpress.com/us/customer-service/global-card-relationship/</a></li></ul><p></p><ul style="text-align: left;"><li>미국 은행 계좌: MUFG(三菱UFJ銀行)의 자회사인 Union Bank 계좌를 일본에서 개설할 수 있다. MUFG 계좌를 가지고 있는 사람만 신청가능하니 없다면 MUFG 개설하고 <a href="https://entry21.bk.mufg.jp/ibhs/dfw/DYC/request/003/indexa.html">https://entry21.bk.mufg.jp/ibhs/dfw/DYC/request/003/indexa.html</a> 에서 신청서를 우편으로 받을 수 있다. 저 처럼 미국에서 일 할 목적이라면 <span style="color: #333333; font-family: Osaka; font-size: x-small;"><span style="background-color: white;">パシフィックリム・カンパニーベネフィット・プログラム(駐在員用)을 선택하도록 한다. <br /> </span></span>해당 계좌의 설명은 <a href="https://www.bk.mufg.jp/tsukau/kaigai/kouza/prcb/index.html">https://www.bk.mufg.jp/tsukau/kaigai/kouza/prcb/index.html</a> 에서 확인 가능하다.<br /><b>아쉽지만 2022년11월22일 도착분까지만 쓸 수 있다.</b></li><li>집: 호텔, Airbnb 아니면 <a href="https://www.theblueground.com/">Blueground</a> 을 통해서 임시로 살 숙소를 마련해서 미국 현지에서 집을 구하는 것이 더 많은 선택지가 있다.</li></ul><p></p><ul style="text-align: left;"><li>일본 은행, 증권 계좌: 사용하고 있지 않는 계좌를 다 없애도록 하자. 미국 세법 상 해외 자산이 만불이상이면 모든 해외 계좌와 잔고를 신고해야 한다고 한다. 자주 쓰지 않는 계좌라면 잔고 확인도 쉽지 않으니 미리미리 없애도록 하자. 그리고 일본 개별 기업 주식, 일본 국채 이외는 보유할 수 없으니 미국 주식, 펀드등은 다 팔아야 한다.</li></ul><p></p><p><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-63545138897815435362022-09-27T04:55:00.003+09:002022-09-27T04:59:47.528+09:001 on 1 six steps<p>1. Rating Report: "On a scale of 1-10, how are you feeling professionally, and on a scale of 1-10, how are you feeling personally?" This question makes you know your direct report's status.</p><p>2. Meaningful Accomplishment: "Since the last time we met, what has been your most meaningful accomplishment?" It provides a chance of the sharing of the win. It might be unknown accomplishment.</p><p>3. Biggest Roadblock: "What is your biggest roadblock right now?" One of manager's responsibilities is to eliminate the roadblock that blocks your direct report's success wasy.</p><p>4. Commitment Check: "Please report on your commitments from our last meeting" Manager and direct report should share the progress of action items from last meeting.</p><p>5. Focus Work: "What priority, project, or problem whould yo ulike to focus on today?" Manager and direct report can have brainstorming or discussion for next step.</p><p>6. Commitment List: "Here are the agreed upon commitments from today" Share action items that are should be checked next 1 on 1.</p><p><br /></p><p>From Colleen Hauk <a href="https://www.linkedin.com/learning/improving-your-leadership-communications/directing-one-on-ones?autoSkip=true&autoplay=true&contextUrn=urn%3Ali%3AlyndaLearningPath%3A1~AAAAAAAhegI%3D1773112&resume=false&u=2193922">Improving Your Leadership Communications</a></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-29169390325703981012022-09-04T08:27:00.002+09:002022-09-04T08:27:22.379+09:00일본에서 미국 L1 비자 받기<p>아래는 미국 L1 비자를 위해 준비했던 문서들입니다. 정확히는 L1 blanket 승인입니다.</p><p></p><ol style="text-align: left;"><li>영어 가족 관계 증명서: 도쿄에 있는 대사관에서 가족 각자 분을 발급 받았습니다. 한글 가족 관계 증명서와 달리 자녀가 나오지 않아서 가족 전원 분 발급 받아야 했습니다.</li><li>최종 학력 졸업 증명서: 다행히 일본에 올 때 발급 받은 영어 대학교 졸업 증명서가 있어서 스캔하여 제출했습니다. 새로 온라인으로 발급 받으려 했으나 비밀 번호를 모르고 본인 인증할 한국 전화번호가 없어서 못 했습니다. 혹시 비자 준비하시려면 미리미리 준비하시길 추천드립니다.</li><li>최종 학력 성적 증명서: 졸업 증명서와 같이 일본 오면서 발급 받은 증명서를 제출.</li><li>이력서: 영어 이력서(resume)를 작성하여 제출.</li><li>자격증: IT 자격증들을 다 제출했습니다. Java, Oracle DB, Azure 등등</li><li>12개월 월급 명세서: 영어로 월급 명세서를 발급 해 주지 않아 번역본을 원본과 같이 제출.</li><li>I-94: 미국 출입국기록입니다. 애들 여권이 바뀌어서 어른 2명만 제출. <a href="https://i94.cbp.dhs.gov/I94/#/recent-search">https://i94.cbp.dhs.gov/I94/#/recent-search</a> 에서 발급 받을 수 있습니다.</li><li>Company Support Letter: 이민 서비스를 제공하는 FRAGOMEN을 통해서 L1 비자를 준비했는데 저의 업무 구체적 내용은 제가 작성하였습니다. 현재 일본 지사에서 하는 일과 미국 본사에서의 업무를 작성.</li><li>여권: 가족 전원분 여권</li></ol><p></p><p>이상의 서류들을 제출하고 3개월 후 드디어 아래의 서류들이 도착했습니다.</p><p></p><ol style="text-align: left;"><li>G-28: Notice of Entry of Appearance as Attorney or Accredited Representative</li><li>I-129S: Petition for a Nonimmigrant Worker</li><li>I-797: Blanket L1 approval</li><li>Letter:저의 업무 내용</li><li>각종회사 소개 서류:</li></ol>이 서류들을 가지고 드디어 비자 신청을 할 수 있습니다. 미국 비자 신청은 <a href="https://ceac.state.gov/genniv/">여기</a>에서 일본을 선택하면 시키는대로 하시면 됩니다. 비자 신청시 아래를 준비하셔야 합니다.<p></p><p></p><ol style="text-align: left;"><li>여권</li><li>사진: 5cm X 5cm, 집 가까이 있는 Ki-Re-i 에서 찍었는데 무조건 제일 좋은 옵션으로 하십시오. 기본 옵션은 배경을 흰 색으로 바꿀 수 없어서 다시 찍어야 했습니다.</li><li>현금 5만엔: 비자 신청시에는 필요 없지만 비자 인터뷰 당일 창구에서 $500 지불해야 합니다. 현금으로 내면 5만엔이지만 카드로 내면 달러로 청구되기 때문에 지금 환율 140엔이면 70,000엔을 내게됩니다. 2022년 6월에 확인한 내용이므로 지금은 다를 수 있습니다.</li></ol>일본에서 비자 신청해서 좋은 점은 비자 인터뷰 날짜를 4일 후 부터 지정할 수 있다는 겁니다. 한국에서는 2,3개월 기다려야 한다고 들었으니 아주 빨리 진행할 수 있습니다.<p></p><p>비자 심사 결과는 일주일 후 연락이 오는데 수령은 대사관이 아닌 외부 업체를 찾아가야 합니다. 택배 수령은 한 사람당 3000엔이 넘어서 직접 찾아갔습니다. 서류 준비 부터 비자 받기까지 총 5개월이 걸렸습니다. <br /><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-81018660372304481772022-03-17T12:30:00.004+09:002023-04-27T06:00:36.665+09:00[memo] git error: cannot lock ref 'refs/remotes/origin...I often face the follwoing error when I run git fetch or git pull.<div><br /></div><div>error: cannot lock ref 'refs/remotes/origin/...</div><div><br /></div><h4 style="text-align: left;">How to solve?</h4><p style="text-align: left;"></p><ul style="text-align: left;"><li>git fetch --prune</li><li>git remote prune origin</li><li>git gc --prune=now</li><li>git remote -v <br />-> copy git info(red color)<br /> origin <span style="color: red;">git@...git</span> (fetch)<br /> origin <span style="color: red;">git@...git</span> (push)<br />-> git remote rm origin<br />-> git remote add origin <span style="color: red;">git@...git</span></li></ul><p></p><ul><li>delete the directory and clone the repogitory. <== final solution...</li></ul><h4 style="text-align: left;">Why?</h4><div>When we run an operation of git, it creates index.lock file inside .git directory to make sure that other git process don't take place during the operation. "error: cannot lock ref " means corruption happened in ./refs directory and cannot create index.lock</div><p style="text-align: left;"><br /></p><p style="text-align: left;"><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-85056872707638592872022-01-31T15:33:00.000+09:002022-01-31T15:33:00.072+09:00未上場外資系のストックオプションの税金と確定申告<p>多くの未上場外資系は税制非適格ストック・オプションに該当すると思います。 </p><p>税制非適格ストック・オプションを権利行使(exercise)した場合、給与所得として所得税の対象になります。※1</p><p><br /></p><p>例えば令和3年(2021年)下記のように行使した場合、115,000円の追加所得になります。</p><p>1000 Grant</p><p>800 Vest</p><p>500 Exercise</p><p>$5 Exercise price</p><p>$7 FMV(Fair Market Value) ※3</p><p>115円 行使日のTTM(<span style="background-color: white; color: #202124; font-family: arial, sans-serif; font-size: 16px;">Telegraphic Transfer Middle Rate</span>) ※4</p><p>追加所得の計算</p><p>(7 - 5) * 500 * 115 = 115,000円</p><p><br />国税庁のページにも下記のように計算式があります。USDベースの株価なので為替計算が必要です。※1, ※2<br /><span style="background-color: white; color: #333333; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; font-size: 15px;">(権利行使時株価 - 権利行使価格) × 株式数 = 所得金額</span></p><p><br /></p><p>所得税額は所得税率によって変わりますが、年収1,000万だと多分23%になると思います。</p><p>115,000 * 0.23 = 26,450円が追加で支払う所得税になります。</p><p><br /></p><p>令和3年の確定申告下記のリンクから作成できます。</p><p><a href="https://www.keisan.nta.go.jp/kyoutu/ky/sm/top#bsctrl">https://www.keisan.nta.go.jp/kyoutu/ky/sm/top#bsctrl</a></p><p></p><div class="separator" style="clear: both; text-align: left;">ここでは作成の詳細は割愛しますが、ポイントになる部分をスクリーンショットとともに説明します。</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">前述した通り給与所得であるため「給与所得」の入力をクリックします。</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgo4PMzsJMZ_kdRaWtfkDlbWO8k-TQYkvYE-9nUGejC_xmdOnbsOZ99kkbt3FhQlXEsJksXV8d7t5vCBOJhp4Ovo0YmbLdYZwIz_QF2YL2_O9r1-GtmGSwmPnDyYPdUgZ75Qx9esE-wq3pvzjLs4yWB-jY_hs3fq8iDbmdpa8Ya_UPAlNldOs0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1033" data-original-width="1282" height="515" src="https://blogger.googleusercontent.com/img/a/AVvXsEgo4PMzsJMZ_kdRaWtfkDlbWO8k-TQYkvYE-9nUGejC_xmdOnbsOZ99kkbt3FhQlXEsJksXV8d7t5vCBOJhp4Ovo0YmbLdYZwIz_QF2YL2_O9r1-GtmGSwmPnDyYPdUgZ75Qx9esE-wq3pvzjLs4yWB-jY_hs3fq8iDbmdpa8Ya_UPAlNldOs0=w640-h515" width="640" /></a></div><br /><div style="text-align: left;"><br /></div><div style="text-align: left;">ストックオプションは年末調整されてないため「書面で交付された年末調整済みでない源泉徴収票の入力」の「入力する」をクリックします。</div><div style="text-align: left;"><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjz-P9XTb7QGA6UJIAqiOglmwzcfGNJ6-qFS85g7TKS7LEvUpL30MtqFaiu5PpQymk4k4iEYyrfjpgZEuBcT1-KiiL3plEJEr8IZtc7fAJl2EOAo4dYsjBuc9zCewtgBOabEBJohdHlIkSxpEA3FHboqC6zX8FzGpyfPru6PSXF_dXyDKnfaOM" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1033" data-original-width="1282" height="515" src="https://blogger.googleusercontent.com/img/a/AVvXsEjz-P9XTb7QGA6UJIAqiOglmwzcfGNJ6-qFS85g7TKS7LEvUpL30MtqFaiu5PpQymk4k4iEYyrfjpgZEuBcT1-KiiL3plEJEr8IZtc7fAJl2EOAo4dYsjBuc9zCewtgBOabEBJohdHlIkSxpEA3FHboqC6zX8FzGpyfPru6PSXF_dXyDKnfaOM=w640-h515" width="640" /></a></div><br />前述した所得金額「115,000」円を①に入力します。</div><div style="text-align: left;">②には税金を支払ってないため「0」を入力します。</div><div style="text-align: left;">④には会社住所と社名を入力します。※2</div><div style="text-align: left;"><br /></div><div style="text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgtOFlD9IL3cqVfQGmIMlRTjPdZJphi7mAvzj7Q71zwfZfQN6u3iM1uprAA-Sevt7Sy5XPDoNOS5_dhLubYEpnGEl3jMKKmprq1w6Fe43fUdl5XbQgsh8aFoHQ8DuuWKo0hi-UJ-t2GFSDc0UFARKdj0Z00cy1eqyxmLRQi5FpaowMVKUlt6n0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="1033" data-original-width="1282" height="515" src="https://blogger.googleusercontent.com/img/a/AVvXsEgtOFlD9IL3cqVfQGmIMlRTjPdZJphi7mAvzj7Q71zwfZfQN6u3iM1uprAA-Sevt7Sy5XPDoNOS5_dhLubYEpnGEl3jMKKmprq1w6Fe43fUdl5XbQgsh8aFoHQ8DuuWKo0hi-UJ-t2GFSDc0UFARKdj0Z00cy1eqyxmLRQi5FpaowMVKUlt6n0=w640-h515" width="640" /></a></div><br /><br /></div></div><p></p><p>※1. <a href="https://www.nta.go.jp/taxes/shiraberu/taxanswer/shotoku/1543.htm">https://www.nta.go.jp/taxes/shiraberu/taxanswer/shotoku/1543.htm</a></p><p>※2. <a href="https://www.keisan.nta.go.jp/r3yokuaru/ocat2/ocat21/cid477.html">https://www.keisan.nta.go.jp/r3yokuaru/ocat2/ocat21/cid477.html</a></p><p>※3. FMVは会社に問い合わせするかCarta等のExercise recordに行使時の価格が表示されます。</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjoW99j6xZn7TsNb9q19ndxdvLb78w9y92MyLykX_e1SjCdvRBn55_JHDILTDWbfkP9qi3cRQnpp-B7tjr_uE-dTpu6CcAudrYWXHUX3ZTD1XDUkAUXYMd8E0RkYlPTeuVzWpoCG9Zce4h4TBibfqTuhgSdindOyYJCcqDMOytXUjdvBUuqSt0" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="431" data-original-width="964" height="286" src="https://blogger.googleusercontent.com/img/a/AVvXsEjoW99j6xZn7TsNb9q19ndxdvLb78w9y92MyLykX_e1SjCdvRBn55_JHDILTDWbfkP9qi3cRQnpp-B7tjr_uE-dTpu6CcAudrYWXHUX3ZTD1XDUkAUXYMd8E0RkYlPTeuVzWpoCG9Zce4h4TBibfqTuhgSdindOyYJCcqDMOytXUjdvBUuqSt0=w640-h286" width="640" /></a></div><br />※4. <a href="https://www.77bank.co.jp/kawase/cash.html">https://www.77bank.co.jp/kawase/cash.html</a><p></p><p><br /></p><p><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com1tag:blogger.com,1999:blog-37812371.post-10316602584881759072022-01-04T14:51:00.000+09:002022-01-04T14:51:23.405+09:00Resolutions of 2022<p> It's new year resolutions for the first time in 10 years. <a href="http://baepiff.blogspot.com/2012/01/new-year-resolutions.html" target="_blank">Here</a> is previous one.</p><p><br /></p><p>Before to set resolutions, I would like to look back 2021. Every year I have 2 major goals, losing my weight and reading a book/month. Yes, I missed them every year. That's why I have them every time. But the miracle ocurred in 2021. I lost 12Kg, lost 18kg but the weight is recovering. And I read 17 books. Working From Home made it!</p><p><br /></p><p>I would like to upgrade my resolutions like below.</p><p>1. Touch 69.9Kg and Keep the weight under 72Kg. Must loose 15.4Kg from Jan. 4th 2022</p><p>2. Write a book review post per month.</p><p>3. Make strong body that I can work for 24 hours without the break.</p><p>4. Be an expert of "Automation".</p><p>5. Make a fun a week.</p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-13405764117031767552021-12-08T12:49:00.002+09:002021-12-08T12:49:12.199+09:00[memo] Could not find method compile() for arguments gradle<p> I got the following error when I build my project.</p><p><span style="color: red;">> Could not find method compile() for arguments [org.slf4j:slf4j-api:1.7.24] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.</span></p><p><br /></p><p>Here is a part of build.gradle</p><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;">compile <span style="color: #6a8759;">'org.slf4j:slf4j-api:1.7.24'<br /></span>compile <span style="color: #6a8759;">'org.slf4j:slf4j-simple:1.7.24'</span></pre><p>I found the anwer <a href="https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle">https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle</a>.</p><p>From gradle 7.0 <i>compile, runtime, testCompile, testRuntime</i> are changed to <b>implementation, runtimeOnly, testImplementation, testRuntimeOnly</b>.</p><p>After I changed to implementation, my project is built successfully.</p><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'JetBrains Mono',monospace; font-size: 10.5pt;">implementation <span style="color: #6a8759;">'org.slf4j:slf4j-api:1.7.24'<br /></span>implementation <span style="color: #6a8759;">'org.slf4j:slf4j-simple:1.7.24'</span></pre><p><br /></p><p><br /></p><p><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-8458777971218693582021-11-01T14:41:00.002+09:002021-11-01T14:41:08.480+09:00[memo] How to confirm port in usage in Windows<p>netstat -ano -p tcp | find "80"</p><p><br /></p><p>netstat is a command to display TCP connections and port.</p><p>-a <span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.</span></p><p><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">-n </span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.</span></p><p><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">-o </span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">Displays active TCP connections and includes the process ID (PID) for each connection. You can find the application based on the PID on the Processes tab in Windows Task Manager. This parameter can be combined with </span><span style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; outline-color: inherit;">-a</span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">, </span><span style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; outline-color: inherit;">-n</span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">, and </span><span style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; outline-color: inherit;">-p</span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">.</span></p><p><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">-p </span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">Shows connections for the protocol specified by </span><em style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; outline-color: inherit;">Protocol</em><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;">. In this case, the </span><em style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; outline-color: inherit;">Protocol</em><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;"> can be tcp, udp, tcpv6, or udpv6. If this parameter is used with </span><span style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 600; outline-color: inherit;">-s</span><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;"> to display statistics by protocol, </span><em style="background-color: white; box-sizing: inherit; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; outline-color: inherit;">Protocol</em><span style="background-color: white; color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px;"> can be tcp, udp, icmp, ip, tcpv6, udpv6, icmpv6, or ipv6.</span></p><p><span style="background-color: white; font-size: 14px;"><span style="color: #171717; font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;"><a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/netstat">https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/netstat</a></span></span></p><p>find is a command to search a string of text</p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-7895720185429363242021-10-06T08:41:00.008+09:002021-10-06T08:41:38.676+09:00[memo] Stop IIS via command line<p>1. windows key and type "cmd"</p><p>2. Choose "command prompt" with "run as administrator"</p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-K9KVMqjyWFc/YVziFtWyp2I/AAAAAAABeS8/g01JvmDrUYU2HIEBZx-mcni-OYUUG4DIwCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="679" data-original-width="827" height="371" src="https://lh3.googleusercontent.com/-K9KVMqjyWFc/YVziFtWyp2I/AAAAAAABeS8/g01JvmDrUYU2HIEBZx-mcni-OYUUG4DIwCLcBGAsYHQ/w452-h371/image.png" width="452" /></a></div><br />3. Type "iisreset /stop"<br /><p></p><p></p><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-ZiucU1fZTDw/YVziafWklLI/AAAAAAABeTI/adPMFNqD7I0E29YH1DWFac6-1pzZCyLIgCLcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="178" data-original-width="368" height="253" src="https://lh3.googleusercontent.com/-ZiucU1fZTDw/YVziafWklLI/AAAAAAABeTI/adPMFNqD7I0E29YH1DWFac6-1pzZCyLIgCLcBGAsYHQ/w523-h253/image.png" width="523" /></a></div><br /><br /></div>Now you can use port 80<br /><br /><p></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-44436185183013777802020-12-23T12:55:00.001+09:002020-12-23T12:55:11.979+09:00[memo] tail -f, grep in windows<p>Run PowerShell</p><p>tail -f</p><p>Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100</p><p><br /></p><p>tail -f | grep</p><p>Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100 | Select-String "Search Word"</p><p><br /></p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-55586507868941212382020-12-23T12:31:00.001+09:002020-12-23T12:31:57.072+09:00[memo] Traefik ver 2.2 log configuration<p>If you search "traefik log file path setting" in Google. The following 2 URLs are top. </p><p>https://doc.traefik.io/traefik/observability/logs/</p><p>https://doc.traefik.io/traefik/v1.7/configuration/logs/</p><p><br /></p><p>I was confused. Because first URL shows the following example.</p><p>[log]</p><p> filePath="/MyLogs/traefik.log"</p><p> format = "json"</p><p> level = "DEBUG"</p><p><br /></p><p>And second URL shows the following example. But it doesn't work with Traefik version 2.2</p><p> logLevel = "DEBUG" </p><p>[traefikLog]</p><p> filePath="/MyLogs//traefikLog.log"</p><p><br /></p><p>Here is my traefik.toml for Traefik version 2.2. I found the reason of 404.</p><p>[log]</p><p> filePath="/MyLogs/traefik.log"</p><p> format = "json"</p><p> level = "DEBUG"</p><p><br /></p><p>[accessLog]</p><p> filePath="/MyLogs//traefikAccess.log"</p>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-56122915117511547012017-01-20T10:34:00.000+09:002017-01-20T11:53:56.539+09:00[memo] How to use jacocoHere is my configuration of pom.xml<br />
<br />
<br />
<script src="https://gist.github.com/baepiff/a08f899f0472742201cc466e9a3b2f53.js"></script><br />
<span style="color: #e8bf6a;"> </span><br />
<span style="color: #e8bf6a;"> </span><br />
<span style="color: #e8bf6a;"> </span><br />
<span style="color: #e8bf6a;"></span><br />
"jacoco-initialize" prepare jacoco-agent before "test" maven lifecycle. And "jacoco-site" export report in "package" maven lifecyccle phase.<br />
<br />
<blockquote class="tr_bq">
mvn clean package</blockquote>
You can see the report in ${your_project_root_directory}/target/site/jacoco/index.html<br />
<br />
I learned how to use jacoco from here.<br />
<a href="http://www.javaworld.com/article/2074515/core-java/unit-test-code-coverage-with-maven-and-jacoco.html">http://www.javaworld.com/article/2074515/core-java/unit-test-code-coverage-with-maven-and-jacoco.html</a><br />
<br />
If you use maven-surefire-plugin and argLine, you would see "Skipping JaCoCo execution due to missing execution data file......" message and failed to create report. Please refer the official document of jacoco.<br />
<a href="http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html">http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html</a><br />
<br />
<blockquote class="tr_bq" style="font-size: 13.3333px;">
If your project already defines VM arguments for test execution, be sure that they will include property defined by JaCoCo.<br />One of the ways to do this in case of maven-surefire-plugin - is to use syntax for <a href="http://maven.apache.org/surefire/maven-surefire-plugin/faq.html#late-property-evaluation" style="background-attachment: initial; background-clip: initial; background-image: url("extern.gif"); background-origin: initial; background-position: left center; background-repeat: no-repeat; background-size: initial; display: inline-block; padding-left: 15px;">late property evaluation</a>:<br /> <plugin><br /> <groupid>org.apache.maven.plugins</groupid><br /> <artifactid>maven-surefire-plugin</artifactid><br /> <configuration><br /> <argline>@{argLine} -your -extra -arguments</argline><br /> </configuration><br /> </plugin></blockquote>
<pre style="font-size: 13.3333px;">
</pre>
<pre style="font-size: 13.3333px;">Here is my real configuration pom.xml</pre>
<script src="https://gist.github.com/baepiff/cc653ed5f6b2dc3530af31dfef471075.js"></script>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-90282919306253669552016-10-05T08:59:00.002+09:002016-10-05T08:59:23.364+09:00[memo] How to check max open files(file descriptors) in LinuxEntire OS<br />
<br />
<pre style="background: rgb(250, 250, 250); border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px inset; color: #454545; font-size: 14px; overflow-x: auto; overflow-y: hidden; padding: 10px;">cat /proc/sys/fs/file-max</pre>
<br />
<br />
Max open file number of each process<br />
<pre style="background: rgb(250, 250, 250); border-radius: 3px; box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px inset; color: #454545; font-size: 14px; overflow-x: auto; overflow-y: hidden; padding: 10px;">ps aux | <a class="keyword" href="http://d.hatena.ne.jp/keyword/grep" style="border-bottom: 1px solid rgb(222, 222, 222); color: lightsteelblue; cursor: pointer !important; font-style: inherit !important; font-weight: inherit !important; pointer-events: auto !important; text-decoration: none; transition: opacity 0.3s ease, border, color, background; word-wrap: break-word;">grep</a> glassfish
#find process id(pid)
grep "open files" /proc/10244/limits
Max open files 65535 65535 files</pre>
Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-87720718323556064212016-03-15T10:32:00.002+09:002016-03-15T10:32:46.155+09:00[memo] How to delete all jobs of jenkinsDelete all jobs<br />
<br />
Go to the following URL.<br />
http://your.jenkins.url/script<br />
<br />
And input the following script<br />
<br />
for(j in jenkins.model.Jenkins.getInstance().getProjects()) {<br />
j.delete();<br />
}<br />
<br />
<a href="http://stackoverflow.com/questions/5076246/hudson-ci-how-to-delete-all-jobs">http://stackoverflow.com/questions/5076246/hudson-ci-how-to-delete-all-jobs</a><br />
<br />Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-53795129856963244992015-09-13T02:46:00.002+09:002015-09-13T02:47:36.126+09:00[memo] How to keep SSH session from disconnection in MacSet 5 minutes for interval.<br />
<br />
vi ~/.ssh/config<br />
ServerAliveInterval 300<br />
TCPKeepAlive yesJoongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-63678912165580117602015-06-15T19:27:00.002+09:002015-06-15T19:50:53.436+09:00[memo] How to show only total for each directoriesdu -csh *<br />
<br />
The -c option can be added to provide a grand total for all of the files and directories that are listed.<br />
The -s (for suppress or summarize) option tells du to report only the total disk space occupied by a directory tree and to suppress individual reports for its subdirectories.<br />
The -h (i.e., human readable) can make the output easier to read by displaying it in kilobytes (K), megabytes (M) and gigabytes (G) rather than just in the default kilobytes.<br />
<br />
Reference<br />
http://stackoverflow.com/questions/10103604/linux-command-line-du-how-to-make-it-show-only-total-for-each-directoriesJoongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-68270540165393057202014-12-09T15:33:00.000+09:002014-12-09T15:33:39.134+09:00[memo] How to change a git URL in all Jenkins jobsEach job's configuration is saved at config.xml. So you just find old URL and change them to new URL like the below.<br />
<br />
<br />
<script src="https://gist.github.com/baepiff/576c94eac079f67181bc.js"></script>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-41631659845723378672014-11-04T12:44:00.002+09:002014-11-04T12:44:41.561+09:00[memo] Delete all remote branches except master, develop and HEAD<script src="https://gist.github.com/baepiff/d016ae26d46a962ec7e4.js"></script>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0tag:blogger.com,1999:blog-37812371.post-12257590771365588262014-09-09T03:24:00.001+09:002014-09-09T03:24:46.078+09:00[memo] How to get hostname with logbackJust use <span style="font-family: Calibri, sans-serif; font-size: 10.5pt;">${HOSTNAME} logback can get hostname. Don't set hostname manually. It may make other engineers try to fix problem on other server. It's my experience. :)</span><br />
<br />
<script src="https://gist.github.com/baepiff/7f4ec7e24e8cd4b2ca72.js"></script>Joongjin Baehttp://www.blogger.com/profile/06971658658857737471noreply@blogger.com0