環島自駕。主要是從 Waikiki Beach 開始,逆時針地繞着島轉了一圈。沒有去西邊,而是從北邊直接開回來的。一天如果早點出發是完全足夠的,只是我們比較 laid back 所以到後來有點倉促,從 north shore 開始開回來時已經天黑了。值得一提的是環島遊租敞篷真的很爽!雖然我們租的時候可能算是旺季,價格特別貴大概80一天,但我們還是不後悔的,因爲實在是太過癮了:夏威夷的氣候非常適合敞篷,溫度不冷不熱,風吹過來是一種很涼爽的感覺,而不像北加那樣是冰涼冰涼的,或者像別的內陸城市那樣風也是熱的(其實 Maui 也是潮溼悶熱)。另外一定要做好防曬。租車是在 Waikiki Avis,本來預訂了一部基本的 Mustang,Agent 問我要不要加一點錢 Upgrade 成 GT。當時還是蠻興奮的,結果他說弄錯了,GT 以及租出去了… 但還是 Upgrade 成了一部配置好一點的 Mustang。
環島遊很棒,我們從 Waikiki 開始,經過了 Diamond Head State Beach (不是 park,這個是在南邊的沙灘),恐龍灣,然後一直繞着海岸線直到 north shore。路上風光非常漂亮,以至於我們停在了太多地方拍照而後面太趕。其中恐龍灣我們並沒有去浮潛,而是進去就出來了,因爲要收門票 :/ 我們打算第二天才去,所以直接 skip 了。
第2天
參觀幾個主要的景點,包括珍珠港,鑽石頭山 Hiking,以及恐龍灣浮潛。
珍珠港想必不用我多提。最出名的景點是 USS Arizona 號,是日軍偷襲珍珠港當天直接炸沉的一艘戰艦,穿上近千人直接喪生!這艘船的殘骸一直留在珍珠港,部分還露出水面。政府在上面建了一個類似紀念堂的小建築,需要從珍珠港做船前往。值得一提的是這個船是可以提前預訂的。門票免費,只是收一點手續費。但是由於太 popular,一般早早就預訂完了。不過,提早 24 小時還會有一批票放出,我們就是提早一天搶到的票。當然也有一定的 walk in 名額,但可能會很浪費時間。
這天我們乘坐了 Island Air 的小飛機前往 Maui。有趣的是,這班飛機在 HNL 里是被認爲『commuter』,是在 commuter terminal 里登機的,對於通勤的島民來說簡直是打飛的上班。行程非常短,只飛了大概30分鐘就到達茂宜。來之前並不清楚茂宜這個島,來了後,才發覺自己太喜歡它了!
Dropbox recently removed its public folder feature, which was used to host my blog's images. I have to figure out a solution to host and fix the paths to these images…
Dropbox announced that As of March 15, 2017 the Public folder in your Dropbox account has been converted into a standard folder. Sad, all my previous links are hosted on Dropbox, and they all become invalid URLs.
I figured that I have to use another image hosting service. After some searching online, Cloundinary seems to be a good option. One design of my hosted images are that they are organized in sub-folders under a 'blog' folder. This means that if I want to seamlessly convert the links, I need to preserve the folder structure too.
Cloudinary seems to suggest they support auto-creating folders. Unfortunately that does not quite work for me.
In fact, I wrote a small script to do this.
Upload a folder to cloudinary
1234567891011121314151617181920
importosimportcloudinaryimportcloudinary.uploaderimportcloudinary.api# Upload the folder in rootdir to cloudinary, preserving the file structurecloudinary.config(cloud_name="<name>",api_key="<your key>",api_secret="<your secret>")rootdir='blog'forroot,subs,filesinos.walk(rootdir):forfileinfiles:cloudinary.uploader.upload(os.path.join(root,file),folder=root,use_filename=True,unique_filename=False,resource_type='auto')
With that, I did a simple sed run on all my post sources:
Upload a folder to cloudinary
1
sed-i'''s/<dropbox base url>/<cloundinary base url>/'*.markdown
then rake preview. Boom! All the images are shown again!