2010/05/02

Iron Man II. Banlieue 13 II. Rahtree Returns: Rahtree Returns

R8080081
Shidin.Taiwan

連兩天騎腳踏車。
週六想要一路騎到鶯歌,不過出門太晚,再加上姿勢似乎不大對;
才騎到板橋就沒力了。
在高台停下來,拿出TH55看了好一會兒東野圭吾的小說才往回走。
快到永和時,有一個地方可以坐在腳踏車道旁,看著夕陽,感覺很好。
5/1 家裡→板橋→家裡 (~28km)

週日去石碇,回程則是走深南路,爬過滿是斜坡的山丘,
然後再一路滑到中研院路。從忠孝東路左轉敦化南路。
雖然敦化南路有"所謂"的腳踏車專用道,
但根本是雞肋,每一段路上都有汽車臨停,非得要切到內線慢車道才能再前進。
既然政府要推專用道,就要認真取締;
不然當初就不要花這筆錢啊。
5/2 家裡→深坑→石碇→南港→東區→家裡 (~30km)

= = = =
鋼鐵人二,沒有第一集好看。
原來摩洛哥還蠻美的。當初去尼斯應該要順便去一下的。
看到電影裡的賽車片段,沒想到賽車可以這麼熱血啊~
其他的情節和特效,就不提了,
因為沒有什麼特別的。

暴力禁區13二,要寫網誌時,才發現這是續集。
看的時候,沒有字幕,法文又退化得差不多了,所以只能抓抓關鍵字,猜個大概。
印象比較深刻的是電影中兩位男主角的武打動作,
和其中有一段很長的Parkour片段。
對了,男主角之一的David Belle,就是Parkour的創始者一。
法文…該加油了。

609猛鬼套房二,也是要寫網誌時,才知道它也是續集。
這週末,是續集週吧。
泰國的恐怖片,穿插了很多搞笑的元素,讓整體不會過於恐怖。
不過,裡頭還是有很多嚇人的場面,心臟還是大顆一點比較好。


REF:
http://en.wikipedia.org/wiki/Parkour

2010/04/17

French 20071010

feuille
la suède
la suisse
les Bays-pas
certe = bien sûr
turc -> turque
grec -> grecque
Ils habitent
Pérou -> péruvien
méditerranéens
de méditerrané
la riz cuit <-> cru
les sports aquatiques
   nautiques
poissons crus
le denmark, les danois
phare
échiquier 棋盤
une mutation = un grand changement
ont eu à cœur = avoir envie = vouloir très fort
une priorité: la chose le plus important
dirigeants: les personnes qui conduit le pays

, viragule
km2 -> carré
sommet: 頂峰
francophones/francophiles (aime le ~)
62 ans -> l'âge de la retraite
1945 -> 1990 très belle période
au coude à coude: égale
en 1801: en mille huit cent un
  :en dix-huit cent un
un recensement = compter la population
a crû = croitre = augmenter
cru -> croire
des jets d'eau naturels
pollution forte
ciel est toujours gris
large = étroit
grand != petit
le main -d'œuvre est moins chère
les 4 saisons sont très marquée.

la population est serrée.
beaucoup d'espace.
courant
l'avortement: abortion
récemment

2010/04/11

2010/04/09

消失

PB203563
Central Park.NYC.US

電腦重灌,才剛寫好沒用幾天的script就都沒了。

2010/04/04

Flickr Random Image Picker

P6216480
Annecy.France

It's a small tool written to randomly show my photos from flickr. I quite enjoy viewing photos in this way. It helped me to discover photos that I didn't notice before. However, there are some limitations to it:
1. in current configuration, 10 photos will be shown every time I launch it. it takes too much time to do so. I have to wait for tens of seconds or even longer.
2. in GUI version, no thread is implemented, so the UI is blocked after the button is pressed.

To make it better, I did some minor changes:
1. create a thread for fetching photos from flickr, and use wx events to post event to htmlwindow. Don't know how to use lock or mutex under python yet, though...
import threading
from time import sleep

(FetchDoneEvent, EVT_FETCH_DONE) = wx.lib.newevent.NewEvent()

class FetchThread(threading.Thread):
def __init__(self,w):
threading.Thread.__init__(self)
# windows for posting events
self.w = w

def run (self):
fi = None
for x in range(10):
print x
if fi == None:
(content,fi) = fetch_photo()
else:
content = fetch_photo(fi)

evt = FetchDoneEvent(source=content)
while (self.w.loading):
sleep(0.5)
wx.PostEvent(self.w, evt)

class MyHtmlWindow(html.HtmlWindow):
def __init__(self, parent, id ):
html.HtmlWindow.__init__(self, parent, id, style=wx.NO_FULL_REPAINT_ON_RESIZE)
self.Bind(EVT_FETCH_DONE, self.OnFetchDone)
self.loading = 0

def OnLinkClicked(self, linkinfo):
import os
os.startfile(linkinfo.GetHref())

def OnFetchDone(self, e):
#self.LoadPage("myflickr.html")
self.loading = 1
if self.start_fetching != 1:
self.AppendToPage(e.source)
else:
self.SetPage(e.source)
self.start_fetching = 0
self.loading = 0

class SimpleFrame(wx.Frame):

def __init__(self, *args, **kwargs):
...

def OnButtonClicked(self,e):
FetchThread(w=self.html).start()
self.html.SetPage("

Fetching......

")
self.html.start_fetching = 1
2. add a function to only return a photo info at a time, instead of returning a html file with 10 photo infos.
def fetch_photo(fi=None):
print 'fetch_photo'
if fi == None:
fi = FlickrIndex(API_KEY, SECRET_KEY, MY_USER_ID)
return fi.print_random_photos(10),fi
else:
return fi.print_random_photos(10)

乩童警探 一二集

接連看了兩集。第一集還算新鮮,到了第二集就看得比較慢了。一來,劇情雖然常會提到乩童,但真的跟乩童又沒有什麼關係。第二集後半大概就猜出是怎麼一回事了,但還是很享受在作者解釋的過程。只是前面舖陳有點久,而且人物有點多,再加上我是斷斷續續的看,看到後來都快忘了誰是誰,或是誰曾經出過什麼...