2010/11/27

Courbatures partout

photo
Biei.Japan

Apres avoir vote pour l’élection du maire dans mon école primaire, j'ai fait du vélo cet après-midi. Originalement, je voudrais jouer au basket-ball tout seul au parc prés de la rivière; malheureusement, je ne pouvais pas trouver la balle que j'avait achetée quelques mois avant. Donc, comme d'habitude, j'ai fait un tour a vélo seulement.

Il faisait beau pendant le tour, pas très chaud, pas très froid non plus. En écoutant la radio avec le casque de mon baladeur, je me promenais lentement. Enfin, a cause d'avoir allé trop long, j'ai courbatures partout, vraiment épuisé.

2010/11/24

How to install boshiamy input method under ubuntu 10.10

P2060491
Fly.Annecy

After installing ubuntu 10.10 on my computer, I found that SCIM is gone!

I already used to installing boshiamy input in SCIM every time i re-install linux OS on my computers. This time, I should find another way around. The following website is what I found to help me resolve this problem. Basically, it's much easier than what I've done for having Boshiamy work on SCIM. I just need to install a package and select the input method in the configuration UI! Well, let's call it IMPROVEMENT.

Well, til now, I still don't know why SCIM is removed from 10.10..

REF:
http://sreal.pixnet.net/blog/post/31827824

2010/11/21

手機男友

R8054048
Koriyama.Japan

ひとりで遠い国で頑張ってた思い出、時々思い出す。
いつか戻れるの。

= = = =

怪怪的劇情。

2010/11/18

水煮三國 -- 成君憶

PB064195
Annecy.France


秋,在空中飛舞著

= = = =

透過三國的故事來闡述管理學上的奧義。
一方面讓三國的故事不再單單只是歷史的事件;另一方面讓管理的訣竅有了良好的驗證和例子。
對於想要一窺管理領域的人,是本值得一讀的書。

REF:
http://www.books.com.tw/exep/prod/booksfile.php?item=0010249545

2010/11/10

Simple Random Image Viewer in Python

P5055943
Nice.France

畫畫,是個人的事。
只要有心,人人都是個畫家。

*****

Usually, I use my flickrRandomImage python script to fetch some random images from my flickr account to amuse myself. However, it heavily depends on the internet access speed. When the network traffic is jammed, it takes a long time to generate 10 thumbnails for each run. Therefore, I decided to go for another way: create a simple image viewer which can randomly pick photos from a designated folder on local hard disk.

Once the decision is made, it won't take too much time to find a starting solution. By choosing python as the development programming language, I can easily find the samples I need on the internet. The first step is to find a workable image viewer written in python. This is not a difficult task because python's library set is very rich; image viewer is something people tend to write as a sample app.

Well, this's what I found:creating-a-simple-photo-viewer-with-wxpython/.
This sample basically provides most of the features I need:
1) pop up a directory dialog to choose a folder
2) to view images in forward/backward direction
3) to toggle Slide View

What's left is:
1) load image files recursively in a folder
2) show image randomly instead of in predefined sequence
3) rotate the image according to the exif orientation information
4) launch image file format associated application to do other actions
5) track the viewed sequence in order to view backward

solution:
1) this is easy part. Check out os.path.walk and search on the internet.
2) use "from random import choice"
3) import exif.py and check the value of "Image Orientation".
    use wxImage.Rotation90 to rotate image accordingly
4) use os.startfile()
5) use a list to keep track of viewed photos

SOURCE:
http://dl.dropbox.com/u/10576598/image_viewer3.py

乩童警探 一二集

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