我的Ubuntu 14.04.3 LTS Desktop,我把左測的Files -> Devices 中的Ubuntu System disk給 unmount之後,從公司ssh連回家後發現做什麼都
disk i/o write error。
我強迫重開機後,進入黑白的GRUB command line,用了 set prefix=(hda2,2)/boot/grub ; insmod normal ; normal
也沒有效果。
使用 USB Boot Disk也沒有辦法修復。
我以為這裡面的data都毀了corrupted,救不回來了。
很多人自詡為守法公民,絕不侵害版權,這時我才發現我們每天都做出可能觸法的行為。比如某母親看到自己小孩隨著Beyonce音樂 跳舞很可愛,拍下來分享,就立刻觸犯音樂巨頭的版權。某個人看到NBA一段精彩球賽片段上傳,立刻就觸犯NBA的版權。你把跟朋友在餐廳聚會聊天的影片上傳分享,卻有第三方說你的背景音樂是侵權,而且這音樂還是日本sony or avex,對版權政策強硬。
梁文道提到他唸大學時修哲學系,上中國哲學時,讀的不是翻譯書,理當應該比外國人讀從中文翻成英文的宋明理學書來得容易上手。但他卻偏偏要從英文的中國哲學書讀起,他反而可發現到以中文為母語的人發覺不到的課題。比如說「八卦」這個字我們都耳熟能詳,甚至發展出完全迥異的意義,但英文卻是翻成Eight Elements of Universe(宇宙八元素)。
梁文道認為「翻譯」才能讓我們發覺自己母語的缺陷與不足。
#!/usr/bin/env python3defnearby_bus_stations(lat, lng, apikey=""):
""" Return a list of nearby bus stations around the location Args: lat: (float) latitude in degrees lng: (float) longitude in degrees apikey: Google API Key which enables Place API Yields: tuple(station:str, latitude: float, longitude: float, list[bus: string]) Example: >>> sts = list(nearby_bus_stations(25.021072,121.551788)) >>> print sts[0] ("黎明社教中心", 25.019798, 121.551818, ["懷恩專車S32"])"""
places = get_web_json(
'https://maps.googleapis.com/maps/api/place/nearbysearch/json?'+'key=%s&location=%f,%f'% (apikey, lat, lng) +'&rankby=distance&language=zh-TW&types=bus_station')
if places['status'] =='OK':
for result in places['results']:
placeid = result['place_id']
detail = get_web_json(
'https://maps.googleapis.com/maps/api/place/details/'+'json?key=%s&placeid=%s'% (apikey, placeid) +'&language=zh-TW')
station = detail['result']['name']
loc = detail['result']['geometry']['location']
buspage = get_webpage(detail['result']['url'])
tree = lxml.html.document_fromstring(buspage)
bus_elm = tree.xpath("/html/body/div[1]/div/div[4]/div[4]/div/div/div[2]/div/div[2]/div[1]/div[2]/div/div/div[2]/div/table/tr/td")[0]
buses =list(filter(lambda s: len(s.strip()) >0,
bus_elm.text_content().strip().split()))
yield (station, float(loc['lat']), float(loc['lat']), buses)