2022 台灣駕照換日本駕照

2022年11月29日,我來到東京都鮫洲運轉免許試驗場,辦理台灣駕照換日本駕照。窗口自下午三點不再受理申請,但會把已經收到的申請處理完。

第一步:報到
首先到三樓「外国免許切替」窗口,免抽號碼牌現場排隊。給受理人員台灣機車與汽車駕照、以上兩者的日文譯本、台灣出入境紀錄、在留卡、記載國籍的住民票、護照。
由於我沒有小張的證件照,受理人員請我先到一樓拍證件照。

第二步:拍照
在一樓的快照機花了 ¥800 拍了新的一組證件照,接著就回到三樓等叫號(我是 64 號)。這邊拍的照片是貼在駕照申請表上面的,駕照用的照片後面才會拍。

第三步:交照片
這邊需要耐心等叫號,不用主動過去窗口,等到叫號後再把剛才拍的照片交給受理人員。

第四步:繳費
帶著駕照申請書至繳費窗口繳費,¥7400。

第五步:視力測驗
到一樓做視力測驗,包含視力與辨色。測驗完後會拿到一張測驗結果。

第六步:核對資料
回到「外国免許切替」窗口把視力檢查結果交給受理人員。這時候會核對姓名、生日等資料,建議檢查片假名姓名是否正確。我發現跟我的健康保險證不同拼音,馬上請對方修改了,幸好不用重跑流程。

第七步:設定密碼
受理人員請我到旁邊的機器設定兩組四位數字的密碼,將來讀取駕照內部資料時會用到的樣子。設定完密碼後,機器會印出一張密碼紙,這張紙自己保存就好,不需要交給受理人員。等待叫號後回到窗口,受理人員把台灣駕照與在留卡還給我,並解釋兩輪駕照的規定、駕照期限和住址更新。

  • 兩輪駕照:只能騎125cc以下、不可上高速公路
  • 駕照期限:領到駕照之後三次生日之後的一個月到期。到期前兩個月內可以更新駕照(假設生日是二月,到期日就是三月,一月至三月之間可以更新駕照)。
  • 住址更新:到附近的派出所、駕照更新中心或駕照考場更新住址

第八步:拍駕照照片
到一樓駕照攝影區拍駕照用的照片。請不要跑去快照機拍照。

第九步:等待領照
到二樓等待叫號領駕照,這邊的號碼為「運転免許証交付通知書」(一張細細長長的紙條)上面寫的「照会番号」,我的是 40106。這步應該是整個換照流程最花時間的,建議趁這個空檔記錄剛才設定的密碼,以免未來需要時完全想不起來,或是找不到密碼紙。

第十步:領駕照
叫到號之後到窗口,發照人員會收走「運転免許証交付通知書」。拿到日本駕照後可以利用旁邊的讀卡機查詢和列印駕駛人國籍,這時需要輸入稍早設定的密碼。不使用讀卡機直接離開也是可以的。恭喜你換到日本駕照了!

Transfer Shares out of Shareworks

E*Trade brokerage account

DTC code: 0385
Brokerage Firm: Etrade
Account Number: <your E*Trade account number>
Account Currency: US Dollars

Brokerage Contact Name: General Service
Brokerage Phone Number: 8003872331

Brokerage Firm Address:
Harboside 2
200 Hudson St, Suite 501
Jersey City, New Jersey 07311
United States

Buy digital music from Amazon Japan without Japan credit card

  1. Apply for an Amazon Japan account at http://www.amazon.co.jp/ (Amazon.co.jp account is different from Amazon.com account. If you have an Amazon.com account, you still need to apply for an Amazon.co.jp account. But you can use the same email for both accounts.)
  2. Buy an Amazon Gift card using the credit card you have and redeem it to your Amazon.co.jp account.
  3. Remove all credit cards not issued in Japan.
  4. Get an IP at Japan. (e.g. using VPN Gate)
  5. Browse and buy the music you like and download the music file.
  6. You can turn off the proxy or end your VPN session now.
  7. Enjoy!

CA DMV Transfer Ownership

Reference:
https://dmv.ca.gov/portal/dmv/detail/pubs/brochures/howto/htvr32

My condition:
The car is over 10 years old.
There is no lienholder.
The car is a gift.
The Certificate of Title of the car is missing.

Disclaimer:
I won’t be responsible for any consequences to anyone following this post.

Seller does before Transfer

Seller in 5 days of transfer

Buyer submits forms in 30 days to DMV

[Linux] Squid proxy server authentication configuration

Installation

apt-get install squid3

After the installation completes, the squid should be running on port 3128.

Configure authentication

  1. Edit /etc/squid3/squid.conf

Uncomment and edit (change YOUR_REALM to anything you like):

auth_param digest program /usr/lib/squid3/digest_file_auth -c /etc/squid3/passwords
auth_param digest children 20 startup=0 idle=1
auth_param digest realm YOUR_REALM
auth_param digest nonce_garbage_interval 5 minutes
auth_param digest nonce_max_duration 30 minutes
auth_param digest nonce_max_count 50

Add (authenticated is just a ACL rule name, you can change it to anything you want)

acl authenticated proxy_auth REQUIRED
http_access allow authenticated
  1. Prepare a hashed password (choose an username you like):
echo -n USERNAME:REALM:PASSWORD | md5sum
# For example
# echo -n myjian:YOUR_REALM:TheBestSingerMiku | md5sum
  1. Create /etc/squid3/passwords, adding the following lines to the file:
USERNAME:REALM:HASHED_PASSWORD
# For example
# myjian:YOUR_REALM:e191cd6679af60e277c18ab040462428
  1. Test if the password file works perfect by run:
/usr/lib/squid3/digest_file_auth -c /etc/squid3/passwords

Input "USERNAME":"REALM" to get the hash. For example, input "myjian":"YOUR_REALM" and press enter.
The program will respond with the hashed password. If there is no valid input, the program will print “ERR". Input Ctrl-D on a single line and press enter to finish the program.

Reference

Setting Up a Web Proxy with Squid

[Apache2] Enable HTTPS

Environment:
Ubuntu 14.04
Apache 2.4

Steps:
1.
Edit /etc/apache2/sites-available/default-ssl.conf

SSLEngine on
SSLCertificateFile
SSLCertificateKeyFile

2.

cd /etc/apache2/sites-enable/
ln -s ../sites-available/default-ssl.conf default-ssl.conf

3.

cd /etc/apache2/mods-enable/
ln -s ../mods-available/ssl.conf ssl.conf
ln -s ../mods-available/ssl.load ssl.load
ln -s ../mods-available/socache_shmcb.load socache_shmcb.load

4.

service apache2 restart

[HTML] href=‘‘#’’ vs. href=‘‘javascript: void(0)’’

長久以來的疑問終於獲得解答。

href="#"

會回到網頁開頭。除非 onclick 的回傳值是 false

這件事情進一步釐清以下兩行程式碼的不同:

onclick="foo()"
onclick="return foo()"

onclick 的值就是一個 function,也就是說上面兩行其實是

onclick="function(){ foo() }"
onclick="function(){ return foo() }"

所以前者是沒有回傳值的,後者才真的回傳了 foo() 的回傳值。

href="javascript: void(0)"

void (expression) 是捨棄 expression 的值。在這裡的作用,就是沒有作用,讓連結按下去只會觸發 onclick, onmousedown 等事件的 Event Handler 而不會真的連到某個地方。

Reference:
http://stackoverflow.com/questions/134845/href-attribute-for-javascript-links-or-javascriptvoid0

[XeLaTeX] Break long URLs

Reference:
Line breaks and the URL package – TeX – LaTeX Stack Exchange

Add the following lines in the preamble.

\usepackage{hyperref}
\renewcommand{\UrlBreaks}{\do\/\do\-\do\_\do\.\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z}

This is just a work around.

[XeLaTeX] Couldn’t open font map file "kanjix.map"

Reference:
xetex – Couldn’t open font map file “kanjix.map". with MiKTeX – TeX – LaTeX Stack Exchange

Environment:
MiKTeX 2.9 on Windows 7

  1. Open "[MiKTeX path]\dvipdfm\config\dvipdfmx.cfg"

  2. Find the line containing f kanjix.map

  3. Insert a % in the beginning of this line, so it becomes %f kanjix.map

  4. Save the file

  5. Run “xelatex [your document name].tex" and there is no Couldn't open font map file "kanjix.map". warning anymore!