- Target 셀프 계산기가 갖고 있던 모든 동전을 먹어버림. 일본처럼 한꺼번에 넣어더니 인식 안 하고 다 먹어버림. 털린 돈만 $11가 넘음.
- SSN 신청하러 SSO 방문했더니 경비원이 "Sign Sign" 소리치길래 뭔 소리가 싶어 가까이 갔더니 더 크게 "Sign Sign" 그러며 밖을 가리키길래 밖을 봤더니 간판이 있길래 그 쪽으로 갔더니 OK라고 함.
- 물 500ml 24개와 치킨롤을 사서 Traders Joe's에서 계산하려 하니 나이니나인에잇이라 길래 50불 2장을 냈더니, 일단 50불을 돌려주고 잔돈을 챙겨주더라. 알고 보니 $9.98 였음.
Software Engineer is(should be) a most efficient Problem Solver.
Mar 22, 2023
미국에서 부끄러움은 내 몫
Mar 4, 2023
미국 도착 후 할 일 순서대로
미국, 캘리포니아에 온 지 6개월 인 사람이 생각한 미국에 도착 후 할 일을 순서대로 나열 합니다.
0. 집: 미국 오기 전 https://www.theblueground.com/ 에서 3개월 살 집을 미리 구하시는 걸 추천합니다. 집 주소가 없으면 은행 계좌, 운전 면허을 받을 수 가 없습니다.
1. 전화: Target에서 Mint Mobile sim card prepaid $60 구입. 도착 당일 혹은 다음 날 바로 사세요. 밖에서 인터넷을 쓸 수 있으며 통화 무제한이므로 이후 볼 일 볼 때 큰 도움이 됩니다.
2. Social Security Number: 미국 내 주소가 없어서 안 하고 있었는데 은행 계좌 만들 때 필요하고 발급 받는데 2주까지 걸린다고 해서 회사 주소로 신청. 온라인으로 신청하고 여권, I-94(가장 최근의 출입국 기록), I-129S 챙겨서 그날 바로 Social Security Office 방문하니 간단히 끝남. 미국 도착 후 2일 째 하십시오. I-94가 반영되는데 하루가 걸린다고 합니다.
3. 집: 저는 미국에 오기 전에 회사에서 소개 시켜 준 Relocity라는 서비스를 사용했는데 최악임. 7월 초 미팅을 가지고 7월 중순부터 집 찾기로 해서 7월 말 후보 집들 몇 개 보내준다고 하더니 8월 중순부터 시작. 약속한 후보 집들 동영상 다 보내 주지도 않음. 첫 집만 보내주고 끝. 공항 근처라 소음은 어떠냐고 물어보니 대답 없음. 답답해서 Zillow에서 직접 집을 찾아 여기 내가 8월 말에 도착할 때까지 계약 끝내도록 했더니 8월 말까지 그 아파트 좋다라고 함. 그래서 신청은? 이러니 매니저한테 설명했으니 온라인으로 신청하라고 함. 8월 30일. 신청하고 이틀이 지나도 연락이 없어 아파트 매니저한테 전화했더니 신청 요금 아직 안 내서 심사 안 하고 있는데 이럼. 카드로 지불 했는데 그게 왜 지불이 안되냐고 따지고 확인하라고 했더니. 수입은 증명 됐으니 여권과 일본 은행 거래명세서(bank statement) 내라고 함. 거래명세서 발급 받는데 며칠 걸린다고 하니 지 퇴근 시간이라며 빨리 끊으라 그럼. 아 놔.
호텔에 머물다가 0번에 소개한 사이트에서 3개월 지낼 집을 구함. 3개월치 월세를 한번에 지불하므로 몫돈이 필요함.
4. 은행 계좌: 일본에서 union bank 계좌를 만들었지만, 결국 집과 SSN을 해결하고 Bank of America에서 만듬. Chase는 운전 면허증이 없으면 안 된다고 함.
5. 자동차: 캘리포니아 운전 면허증이 없어도 구매 가능. 하지만 대출 이자가 비싸 일시불로 살 수 있는 중고차를 구입. 딜러가 필요한 서류나 절차를 다 해 줌. 신용카드로 $5,000 까지만 지불 가능하고, 계좌 이체도 하루 $7,000 이 한도라 2번에 나눠서 이체함.
6. 운전 면허증: 사실 집을 구하고 바로 취득할 수 있었으나 운전 학원 차를 빌려서 시험을 치러야 했기에, 돈이 들어서 차를 구매하고 운전 면허 실기 시험을 침. 필기는 집과 SSN이 나오고 바로 신청해서 합격 했음.
7. 집 구하기: 다시 집 구하기. 가족과 함께 살 집을 https://www.zillow.com/ 에서 집을 몇 군데 보고 구함. 아직 credit score가 없어서 구하기 힘들었지만 운 좋게 좋은 집 주인을 만나 일반 주택을 구함. 대신 일반 계약 기간이 1년임에 비해 1년 7개월로 길게 계약.
8. 애들 학교: Elementary, Middle School은 다 같은 학군(District)라서 같은 학군 홈페이지에서 애들을 등록함. 등록에 필요한 서류들은 집 주소가 확인 가능한 집 계약서, 수도나 전기 요금서, Bank statement 등의 서류, 여권, 영어 예방 접정 기록 그리고 TB(결핵) Test 결과가 필요. TB Test 결과 없이 일단 온라인으로 등록 후 학교와 연락을 주고 받아 애들이 미국 입국 후 TB Test를 해서 각 학교 담당자에게 보내고 난 후에 학교 등교일을 확정 받음.
9. 예방 접종: 캘리포니아에서 요구하는 예방접종 종류와 횟수가 더 많아 학교 입학 후 병원을 예약하여 추가로 접종을 해야 함. 학교에서 의사와 상의하여 추가로 맞추라고 해서 했는데 예약이 2달 후가 됨. 막상 병원에 가니 바로 접종은 안 되고, 다시 예약하고 나중에 다시 와야 함. 아직 끝나지 않았지만 병원을 4번 방문. 학교 담당자에게 부탁해서 추가 접종이 필요한 백신과 횟수를 확인한 후 CVS minute clinic에서 맞추면 더 빨리 끝낼 수 하다.
Feb 23, 2023
"Login failed for user" to connect SQL Server with SQL Server Authentication
This is caused by not having the SQL Server Authentication configured properly. SQL Server authentication is off by default.
Here is the solution.
- Open SQL Server Management Studio.
- Connect with Windows Authentication.
- Right click on the database server and go to properties.
- Choose the security option and check "SQL Server and Windows authentication mode".
- Enable TCP/IP connection in SQL Configuration Manager.
- Restart your SQL server.
Oct 24, 2022
미국 가기 전 일본에서 미리 준비하면 좋은 것들
- 신용카드: 미국에서 신용카드를 만들기 위해서는 SSN(Social Security Number), 은행 계좌 그리고 Credit History가 필요하다. Credit History는 급여를 제대로 받고 있는가, 신용카드를 연체 없이 사용하고 있는가, 월세를 제 때 잘 내고 있는가로 점수가 결정된다. 문제는 미국에 도착한 직후면 급여 기록도 없고, 월세도 이제 시작이며 더군다나 미국 신용카드 이용 기록이 없다는 것이다. 그래서 대부분 Secured Credit Card를 사용하다 반년 후 보통 신용카드를 신청한다.
- 하지만 Credit History없이 만들 수 있는 카드가 있으니 바로 ANA USA 카드와 JAL USA 카드다. 일본 항공회사이므로 일본 내 신용정보를 통해서 발급 가능하다. 하지만 혜택이 별로 없는 관계로 대부분 카드를 해지하는데 카드를 해지 할 경우 Credit Score가 낮아지는 경우가 있다.
나의 추천은 American Express(Amex) 카드다. Amex는 자사 카드의 신용 정보를 이용하여 일본에서의 이용 실적으로 미국에서 동급의 카드를 발급 받을 수 있다. 아쉽게도 한국은 Amex가 단독으로 영업하지 않는 관계로 이 프로그램을 쓸 수 없다. 자세한 내용은 여기에서 확인할 수 있다. https://www.americanexpress.com/us/customer-service/global-card-relationship/
- 미국 은행 계좌: MUFG(三菱UFJ銀行)의 자회사인 Union Bank 계좌를 일본에서 개설할 수 있다. MUFG 계좌를 가지고 있는 사람만 신청가능하니 없다면 MUFG 개설하고 https://entry21.bk.mufg.jp/ibhs/dfw/DYC/request/003/indexa.html 에서 신청서를 우편으로 받을 수 있다. 저 처럼 미국에서 일 할 목적이라면 パシフィックリム・カンパニーベネフィット・プログラム(駐在員用)을 선택하도록 한다.
해당 계좌의 설명은 https://www.bk.mufg.jp/tsukau/kaigai/kouza/prcb/index.html 에서 확인 가능하다.
아쉽지만 2022년11월22일 도착분까지만 쓸 수 있다. - 집: 호텔, Airbnb 아니면 Blueground 을 통해서 임시로 살 숙소를 마련해서 미국 현지에서 집을 구하는 것이 더 많은 선택지가 있다.
- 일본 은행, 증권 계좌: 사용하고 있지 않는 계좌를 다 없애도록 하자. 미국 세법 상 해외 자산이 만불이상이면 모든 해외 계좌와 잔고를 신고해야 한다고 한다. 자주 쓰지 않는 계좌라면 잔고 확인도 쉽지 않으니 미리미리 없애도록 하자. 그리고 일본 개별 기업 주식, 일본 국채 이외는 보유할 수 없으니 미국 주식, 펀드등은 다 팔아야 한다.
Sep 27, 2022
1 on 1 six steps
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.
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.
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.
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.
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.
6. Commitment List: "Here are the agreed upon commitments from today" Share action items that are should be checked next 1 on 1.
From Colleen Hauk Improving Your Leadership Communications
Sep 4, 2022
일본에서 미국 L1 비자 받기
아래는 미국 L1 비자를 위해 준비했던 문서들입니다. 정확히는 L1 blanket 승인입니다.
- 영어 가족 관계 증명서: 도쿄에 있는 대사관에서 가족 각자 분을 발급 받았습니다. 한글 가족 관계 증명서와 달리 자녀가 나오지 않아서 가족 전원 분 발급 받아야 했습니다.
- 최종 학력 졸업 증명서: 다행히 일본에 올 때 발급 받은 영어 대학교 졸업 증명서가 있어서 스캔하여 제출했습니다. 새로 온라인으로 발급 받으려 했으나 비밀 번호를 모르고 본인 인증할 한국 전화번호가 없어서 못 했습니다. 혹시 비자 준비하시려면 미리미리 준비하시길 추천드립니다.
- 최종 학력 성적 증명서: 졸업 증명서와 같이 일본 오면서 발급 받은 증명서를 제출.
- 이력서: 영어 이력서(resume)를 작성하여 제출.
- 자격증: IT 자격증들을 다 제출했습니다. Java, Oracle DB, Azure 등등
- 12개월 월급 명세서: 영어로 월급 명세서를 발급 해 주지 않아 번역본을 원본과 같이 제출.
- I-94: 미국 출입국기록입니다. 애들 여권이 바뀌어서 어른 2명만 제출. https://i94.cbp.dhs.gov/I94/#/recent-search 에서 발급 받을 수 있습니다.
- Company Support Letter: 이민 서비스를 제공하는 FRAGOMEN을 통해서 L1 비자를 준비했는데 저의 업무 구체적 내용은 제가 작성하였습니다. 현재 일본 지사에서 하는 일과 미국 본사에서의 업무를 작성.
- 여권: 가족 전원분 여권
이상의 서류들을 제출하고 3개월 후 드디어 아래의 서류들이 도착했습니다.
- G-28: Notice of Entry of Appearance as Attorney or Accredited Representative
- I-129S: Petition for a Nonimmigrant Worker
- I-797: Blanket L1 approval
- Letter:저의 업무 내용
- 각종회사 소개 서류:
- 여권
- 사진: 5cm X 5cm, 집 가까이 있는 Ki-Re-i 에서 찍었는데 무조건 제일 좋은 옵션으로 하십시오. 기본 옵션은 배경을 흰 색으로 바꿀 수 없어서 다시 찍어야 했습니다.
- 현금 5만엔: 비자 신청시에는 필요 없지만 비자 인터뷰 당일 창구에서 $500 지불해야 합니다. 현금으로 내면 5만엔이지만 카드로 내면 달러로 청구되기 때문에 지금 환율 140엔이면 70,000엔을 내게됩니다. 2022년 6월에 확인한 내용이므로 지금은 다를 수 있습니다.
비자 심사 결과는 일주일 후 연락이 오는데 수령은 대사관이 아닌 외부 업체를 찾아가야 합니다. 택배 수령은 한 사람당 3000엔이 넘어서 직접 찾아갔습니다. 서류 준비 부터 비자 받기까지 총 5개월이 걸렸습니다.
Mar 17, 2022
[memo] git error: cannot lock ref 'refs/remotes/origin...
How to solve?
- git fetch --prune
- git remote prune origin
- git gc --prune=now
- git remote -v
-> copy git info(red color)
origin git@...git (fetch)
origin git@...git (push)
-> git remote rm origin
-> git remote add origin git@...git
- delete the directory and clone the repogitory. <== final solution...
Why?
Jan 31, 2022
未上場外資系のストックオプションの税金と確定申告
多くの未上場外資系は税制非適格ストック・オプションに該当すると思います。
税制非適格ストック・オプションを権利行使(exercise)した場合、給与所得として所得税の対象になります。※1
例えば令和3年(2021年)下記のように行使した場合、115,000円の追加所得になります。
1000 Grant
800 Vest
500 Exercise
$5 Exercise price
$7 FMV(Fair Market Value) ※3
115円 行使日のTTM(Telegraphic Transfer Middle Rate) ※4
追加所得の計算
(7 - 5) * 500 * 115 = 115,000円
国税庁のページにも下記のように計算式があります。USDベースの株価なので為替計算が必要です。※1, ※2
(権利行使時株価 - 権利行使価格) × 株式数 = 所得金額
所得税額は所得税率によって変わりますが、年収1,000万だと多分23%になると思います。
115,000 * 0.23 = 26,450円が追加で支払う所得税になります。
令和3年の確定申告下記のリンクから作成できます。
https://www.keisan.nta.go.jp/kyoutu/ky/sm/top#bsctrl
※1. https://www.nta.go.jp/taxes/shiraberu/taxanswer/shotoku/1543.htm
※2. https://www.keisan.nta.go.jp/r3yokuaru/ocat2/ocat21/cid477.html
※3. FMVは会社に問い合わせするかCarta等のExercise recordに行使時の価格が表示されます。
※4. https://www.77bank.co.jp/kawase/cash.html
Jan 4, 2022
Resolutions of 2022
It's new year resolutions for the first time in 10 years. Here is previous one.
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!
I would like to upgrade my resolutions like below.
1. Touch 69.9Kg and Keep the weight under 72Kg. Must loose 15.4Kg from Jan. 4th 2022
2. Write a book review post per month.
3. Make strong body that I can work for 24 hours without the break.
4. Be an expert of "Automation".
5. Make a fun a week.
Dec 8, 2021
[memo] Could not find method compile() for arguments gradle
I got the following error when I build my project.
> 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.
Here is a part of build.gradle
compile 'org.slf4j:slf4j-api:1.7.24'
compile 'org.slf4j:slf4j-simple:1.7.24'
I found the anwer https://stackoverflow.com/questions/23796404/could-not-find-method-compile-for-arguments-gradle.
From gradle 7.0 compile, runtime, testCompile, testRuntime are changed to implementation, runtimeOnly, testImplementation, testRuntimeOnly.
After I changed to implementation, my project is built successfully.
implementation 'org.slf4j:slf4j-api:1.7.24'
implementation 'org.slf4j:slf4j-simple:1.7.24'
Nov 1, 2021
[memo] How to confirm port in usage in Windows
netstat -ano -p tcp | find "80"
netstat is a command to display TCP connections and port.
-a Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.
-n Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.
-o 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 -a, -n, and -p.
-p Shows connections for the protocol specified by Protocol. In this case, the Protocol can be tcp, udp, tcpv6, or udpv6. If this parameter is used with -s to display statistics by protocol, Protocol can be tcp, udp, icmp, ip, tcpv6, udpv6, icmpv6, or ipv6.
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/netstat
find is a command to search a string of text
Oct 6, 2021
[memo] Stop IIS via command line
1. windows key and type "cmd"
2. Choose "command prompt" with "run as administrator"
3. Type "iisreset /stop"
Now you can use port 80
Dec 23, 2020
[memo] tail -f, grep in windows
Run PowerShell
tail -f
Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100
tail -f | grep
Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100 | Select-String "Search Word"
[memo] Traefik ver 2.2 log configuration
If you search "traefik log file path setting" in Google. The following 2 URLs are top.
https://doc.traefik.io/traefik/observability/logs/
https://doc.traefik.io/traefik/v1.7/configuration/logs/
I was confused. Because first URL shows the following example.
[log]
filePath="/MyLogs/traefik.log"
format = "json"
level = "DEBUG"
And second URL shows the following example. But it doesn't work with Traefik version 2.2
logLevel = "DEBUG"
[traefikLog]
filePath="/MyLogs//traefikLog.log"
Here is my traefik.toml for Traefik version 2.2. I found the reason of 404.
[log]
filePath="/MyLogs/traefik.log"
format = "json"
level = "DEBUG"
[accessLog]
filePath="/MyLogs//traefikAccess.log"
Jan 20, 2017
[memo] How to use jacoco
"jacoco-initialize" prepare jacoco-agent before "test" maven lifecycle. And "jacoco-site" export report in "package" maven lifecyccle phase.
mvn clean packageYou can see the report in ${your_project_root_directory}/target/site/jacoco/index.html
I learned how to use jacoco from here.
http://www.javaworld.com/article/2074515/core-java/unit-test-code-coverage-with-maven-and-jacoco.html
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.
http://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html
If your project already defines VM arguments for test execution, be sure that they will include property defined by JaCoCo.
One of the ways to do this in case of maven-surefire-plugin - is to use syntax for late property evaluation:
org.apache.maven.plugins
maven-surefire-plugin
@{argLine} -your -extra -arguments
Here is my real configuration pom.xml
Oct 5, 2016
[memo] How to check max open files(file descriptors) in Linux
cat /proc/sys/fs/file-max
Max open file number of each process
ps aux | grep glassfish #find process id(pid) grep "open files" /proc/10244/limits Max open files 65535 65535 files
Mar 15, 2016
[memo] How to delete all jobs of jenkins
Go to the following URL.
http://your.jenkins.url/script
And input the following script
for(j in jenkins.model.Jenkins.getInstance().getProjects()) {
j.delete();
}
http://stackoverflow.com/questions/5076246/hudson-ci-how-to-delete-all-jobs
Sep 13, 2015
[memo] How to keep SSH session from disconnection in Mac
vi ~/.ssh/config
ServerAliveInterval 300
TCPKeepAlive yes
Jun 15, 2015
[memo] How to show only total for each directories
The -c option can be added to provide a grand total for all of the files and directories that are listed.
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.
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.
Reference
http://stackoverflow.com/questions/10103604/linux-command-line-du-how-to-make-it-show-only-total-for-each-directories