2010年4月29日 星期四

Signedness of char is compiler-specific

Can someone explain how the signedness of char is platform specific?
http://stackoverflow.com/questions/1211982/can-someone-explain-how-the-signedness-of-char-is-platform-specific

Now for char. The standard doesn't say which of those two interpretations should be correct.

(..........)

Some compilers offer a command-line switch to control which one it will be. Some compilers have different defaults depending on what OS they're running on, so they can match the OS convention.

In most code, it really shouldn't matter. They are treated as three distinct types, for the purposes of overloading. Pointers to one of those types aren't compatible with pointers to another type. Type calling strlen with a signed char* or an unsigned char*; it won't work.

Use signed char when you want a one-byte signed numeric type, and use unsigned char when you want an one-byte unsigned numeric type. Use plain old char when you want to hold characters.

(..........)

It's more correct to say that it's compiler-specific and you should not count on char being signed or unsigned when using char without a signed or unsigned qualifier.

Otherwise you would face the following problem: you write and debug the program assuming that char is signed by default and then it is recompiled with a compiler assuming otherwise and the program behaviour changes drastically. If you rely on this assumption only once in a while in your code you risk facing unintended behaviour in some cases which are only triggered in your program under specific conditions and are very hard to detect and debug.


BUSYBOX - Frequently Asked Questions - Portability
http://www.busybox.net/FAQ.html#portability
On a related note, we made the "default signedness of char varies" problem go away by feeding the compiler -funsigned-char. This gives us consistent behavior on all platforms, and defaults to 8-bit clean text processing (which gets us halfway to UTF-8 support).

拆裝 四方軸 屈柄 與 BB

9. How To Replace Cotterless Crank Arms
http://bicycletutor.com/replace-cotterless-cranks/

10. How To Replace a Cartridge Bottom Bracket
http://bicycletutor.com/cartridge-bottom-bracket/

車友不敗家12-舊式BB保養上油
http://www.mobile01.com/topicdetail.php?f=318&t=492385

拆、洗、裝舊款脾 + BB 心教學
http://www.vicky-plaxton.net/plaxtonl/bikes/installbb.html

單車保養教學,單車傳動系統重點保養(上集)
http://tw.myblog.yahoo.com/giant-nantun/article?mid=3220&sc=1

BB右側拆不下來 拆右側BB教學
http://www.dnstw.com/2009/10/bb-bb.html

2010年4月28日 星期三

Extracting a subdirectory from git as a new git repository

git-filter-branch
http://ftp.sunet.se/pub/Linux/kernel.org/software/scm/git/docs/v1.6.0.6/git-filter-branch.html

Moving a git repository subdirectory to its own repository
http://www.mikechambers.com/blog/2009/11/04/moving-a-git-repository-subdirectory-to-its-own-repository/

Splitting a subpath out into a new repo
http://help.github.com/splitting-a-subpath-to-a-new-repo/

Checkout subdirectories in Git?
http://stackoverflow.com/questions/180052/checkout-subdirectories-in-git

Extracting a subdirectory from git as a new git repository
http://www.pither.com/articles/2009/02/04/extracting-a-subdirectory-from-git-as-a-new-git-repository

新竹 五指山

五指山
http://www.tonyhuang39.com/tony0422/tony0422.html

百年寺廟「灶君堂」,灶君堂左側有「玉皇宮」,後上方有「盤古廟」,附近還有「五峰寺」

新竹五指山群峰(H1061m)
http://gohiking.myweb.hinet.net/h5/SJUfingers.htm
五指山腳下寺廟林立,較具規模者有灶君堂、盤古廟、玉皇宮、觀音禪寺等寺廟,終年香煙鼎盛

登山補給站 休閒旅行登山知識庫 - 記錄 區 - 文章編號 # 7941 主題 : 新竹五指山尋幽攬勝
http://www.keepon.com.tw/ActiveSite/Article/One.asp?ArticleID=7941

新竹五指山盤古廟
盤古開天大帝總廟
http://tw.myblog.yahoo.com/jw!mv0VLsSVHxjsI6V9mfOF04O7tw--/article?mid=1704&prev=1713&next=1512&l=f&fid=22

進香(新竹五指山灶君堂、盤古廟)
http://tw.myblog.yahoo.com/jpsporst-baseballcards/article?mid=895&prev=901&next=780

神明在鬥法,五指山上有妖孽!
http://tnews.cc/035/newscon1.asp?number=6655

艱辛的路程--新竹五峰鄉五指山單車行
http://tw.myblog.yahoo.com/jupiter-hu/article?mid=492

五指山進香團(OFF-ROAD)(應該是台北的五指山)
http://www.bike-mania.net/?page_id=92

Convert Perl script to C

Perl 語言全面編譯(二)
http://fanqiang.chinaunix.net/a4/b3/20010419/150532_b.html

即使你只有一行的 “print “hello world”;”都需要無數行的定義才會出現這樣的效果。但是令人驚奇的是perl編譯的這個“hello world”比C/C++的編譯的可執行文件還要小。採用PerlCC轉換出來的C源代碼幾乎是不可讀(不可理解)的,幾乎比匯編語言還令人費解。

2010年4月26日 星期一

git-cvs

Initialization
git cvsimport -v -d <CVSROOT> -C <destination> <cvs_module>
git cvsimport -v -d :pserver:anonymous@rstplib.cvs.sourceforge.net:/cvsroot/rstplib -C rstplib rstplib

(<cvs_module> is in fact the directory structure in the CVSROOT)

Configuration Tweaks
mkdir .git/refs/remotes/<remote> -p; cp .git/refs/heads/* .git/refs/remotes/<remote> -a;
git config cvsimport.module <cvs_module>
git config cvsimport.r <remote>
git config cvsimport.d <CVSROOT>

(<remote>: mean remote branch on this git repository, just like the branch "orign" to "git clone" or the branch "git-svn" to "git svn", just cvsimport doesn't do it for you. "cvs" or "git-cvs" is good)
(what if there are new branch on cvs server?)

Incremental Imports/Update repository to the latest
In root directory of git repository and on master branch. With above git config,

git cvsimport

or run the original command again but omit the parameter -C
git cvsimport -r <remote> -d <CVSROOT> <cvs_module>




1. cd ../myproj
2. cvs up -d
3. for i in `GIT_DIR=../git-piscine-j01/.git git-cherry origin work | sed -n 's/^+ //p'`; do echo Exporting $i; GIT_DIR=../git-piscine-j01/.git git-cvsexportcommit -c -p -v $i || break; done
4. cvs diff -u
5. git-cvsimport -v -C ../git-myproj -a
6. cd ../git-myproj
7. git checkout origin
8. git merge master
9. git checkout master


- - - update-git.sh - - -
git-cvsimport -v -C ../git-project
cd ../git-project
git checkout master
git merge origin

- - - export-commits.sh - - -
for i in `GIT_DIR=../git-project/.git git-cherry origin master | sed -n 's/^+ //p'`; do echo Exporting $i; GIT_DIR=../git-project/.git git-cvsexportcommit -c -p -v $i || break; done



git for CVS users
http://kernel.org/pub/software/scm/git/docs/v1.4.4.4/cvs-migration.html

Git CVS tutorial
http://dabase.com/e/09017/

CVS to GIT and back
http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html

使用 git 來 mirror CVS repository
http://cyt93cs.pixnet.net/blog/post/26629828

How to export revision history from mercurial or git to cvs?
http://stackoverflow.com/questions/584522/how-to-export-revision-history-from-mercurial-or-git-to-cvs/584567

2010年4月25日 星期日

openssl

openssl req -newkey rsa:1024 -x509 -nodes -keyout test_key.pem -new -out test_cert.pem

openssl s_server -cert test_cert.pem -key test_key.pem -state -debug

openssl s_client -debug -state
openssl s_client -debug -state -connect :993


An Introduction to OpenSSL Part One
http://www.symantec.com/connect/articles/introduction-openssl-part-one

An Introduction to OpenSSL, Part Two: Cryptographic Functions Continued
http://www.symantec.com/connect/articles/introduction-openssl-part-two-cryptographic-functions-continued

An Introduction to OpenSSL, Part Three: PKI- Public Key Infrastructure
http://www.symantec.com/connect/articles/introduction-openssl-part-three-pki-public-key-infrastructure

An Introduction to OpenSSL, Part Four: The SSL and TLS Protocols
http://www.symantec.com/connect/articles/introduction-openssl-part-four-ssl-and-tls-protocols

2010年4月20日 星期二

出動 必傷 魔咒

忘記多久以前了
先是後輪外胎崩了,換了內外胎
然後前輪撞到階梯,凹了


感覺實在很不好,一直在修東西
過了好久才提起勁想修
好不容易去買了個前輪框(雙層框,$750)裝上去,看起來還不錯用,
才出去個兩次,爆胎,好,補好隔天再上
後輪竟然給我花鼓爆掉....


當時人正在寶ㄧ水庫上,運氣好還一路滑回來
回來才把後輪卸下,承軸就這樣掉了下來



原來是承軸斷了....


一路騎一路掉,回來只剩下四顆鋼珠了

結果不到一個禮拜換了一整套輪組......

還有什麼要壞的,來吧來吧,沒在怕的了.......



調鋼絲器, $150


拆鎖牙飛輪, $200

2010年4月9日 星期五

桃太郎(日本童謠)

http://www.wretch.cc/blog/Sasori/26349810



http://www.youmaker.com/

桃(もも)太(た)郎(ろう)さん 桃(もも)太(た)郎(ろう)さん
お腰(こし)につけた 黍(きび)団(だん)子(ご)
一(ひと)つわたしに くださいな

やりましょう やりましょう
これから鬼(おに)の 征(せい)伐(ばつ)に
ついて行(い)くなら やりましょう

行(い)きましょう 行(い)きましょう
あなたについて どこまでも
家来(けらい)になって 行(い)きましょう

そりゃ進(すす)め そりゃ進(すす)め
一(いち)度(ど)に攻(せ)めて 攻(せ)めやぶり
つぶしてしまえ 鬼(おに)が島(しま)

おもしろい おもしろい
のこらず鬼(おに)を 攻(せ)めふせて
分(ぶん)捕(どり)物(もの)を えんやらや

万(ばん)々歳(ざい) 万(ばん)々歳(ざい)
お伴(とも)の犬(いね)や 猿(さる)雉(き)子(じ)は
勇(いさ)んで車(くるま)を えんやらや



桃太郎さん 桃太郎さん
お腰につけた 黍団子
一つわたしに くださいな

やりましょう やりましょう
これから鬼の 征伐に
ついて行くなら やりましょう

行きましょう 行きましょう
あなたについて どこまでも
家来(けらい)になって 行きましょう

そりゃ進め そりゃ進め
一度に攻めて 攻めやぶり
つぶしてしまえ 鬼が島

おもしろい おもしろい
のこらず鬼を 攻めふせて
分捕物を えんやらや

万々歳 万々歳
お伴の犬や 猿雉子は
勇んで車を えんやらや

平假名歌詞

ももたろうさん ももたろうさん
おこしにつけた きびだんご
ひとつわたしに くださいな

やりましょう やりましょう
これからおにの せいばつに
ついていくなら やりましょう

いきましょう いきましょう
あなたについて どこまでも
けらいになって いきましょう

そりゃすすめ そりゃすすめ
いちどにせめて せめやぶり
つぶしてしまえ おにがしま

おもしろい おもしろい
のこらずおにを せめふせて
ぶんどりものを えんやらや

ばんばんざい ばんばんざい
おとものいぬや さるきじは
いさんでくるまを えんやらや

中譯

桃太郎啊 桃太郎啊
繫在你腰上的糯米團
給我一個吧

給你吧 給你吧
現在就去討伐惡鬼
一起去的話 就給你囉

走吧 走吧
跟著你 不管到哪裡
讓我們成為你的家臣 一起去吧

就這樣前進 就這樣前進
一舉進攻 攻破
擊潰那惡鬼之島

真是痛快 真是痛快
攻破所有的惡鬼
奪回被搶的寶物 嘿呀

萬萬歲 萬萬歲
我的好同伴 小狗 小猴 小雉雞
奮勇推著車 嘿呀


【日本昔ばなし】桃太郎
http://cet.hjenglish.com/subject/xsj/page/79570/
http://jp.hjenglish.com/page/79570/
昔、昔、ある所におじいさんとおばあさんが住んでいました。おじいさんは山へ柴刈りに、おばあさんは川へ洗濯に行きました。すると大きな桃が流れてきました。

「なんと大きな桃じゃろう!家に持って帰ろう。」とおばあさんは背中に担いで帰って行きました。

桃を切ろうとすると、桃から大きな赤ん坊が出てきました。

「おっと魂消るた。」二人は驚いたけれども、とても幸せでした。

「何という名前にしましょうか。」

「桃から生まれたから、桃太郎というのはどうだろう。」

「それがいい。」

桃太郎はあっと言う間に大きくなり、立派な優しい男の子になりました。

ある日のことです。桃太郎は二人に言いました。

「鬼ケ島に悪い鬼が住んでいると聞きました。」

「時々村に来て悪いことをするのでみんな困っている。」とおじいさんが言いました。

「それでは私が行って退治しましょう。おかあさん、黍団子を作って下さい。」

おばあさんはとてもおいしい日本一の黍団子を作りました。桃太郎は腰の袋に入れるとさっそく鬼ケ島に向けて旅立ちました。

途中、桃太郎は犬に会いました。「桃太郎さん、袋の中に何が入っているだい。」

「日本一の黍団子だよ。」

「僕に一つくれればお伴します。」犬は桃太郎から一つ団子をもらい家来になりました。

桃太郎と犬が歩いて行くと、猿がやってきました。

「桃太郎さん、袋の中に何が入っているんだい。」

「日本一の黍団子だよ。」

「僕に一つくれればお伴します。」猿は桃太郎から一つ団子をもらい家来になりました。

しばらく行くと、雉が飛んできました。

「桃太郎さん、袋の中に何が入っているんだい。」

「日本一の黍団子だよ。」

「僕に一つくれればお伴します。」雉は桃太郎から一つ団子をもらい家来になりました。

しばらく行くと鬼ケ島が見えてきました。

「あれが鬼ケ島に違いない。」犬が吠えました。

「お城が見える。」猿が叫びました。

「飛んでいって見てきます。」雉が鳴きました。

鬼ケ島に着くと、お城の門の前に、大きな鬼が立っていました。桃太郎は大きな石を掴むと鬼に向かって投げました。猿は門に登り鍵を開けました。雉は鬼の目をつつきました。

「こりあ参った。」鬼は逃げていきました。

「助けてくれ。」とお城からたくさんの鬼が出てきました。

ついに大きな鬼が出てきました。

「生意気な小僧。俺様が懲らしめてやる。」大きな鉄棒を振り回しながら言いました。

「あなたが頭ですか。」と言うと桃太郎はすばやく鉄棒のに飛び乗りました。

「悪い鬼、村人に悪いことをしたからには許せない。私の拳を受けてみろ。」

「アイタタ、ごめん。ごめん。許してくれ。降参だ。」

「本当に約束するか。」

「約束する。嘘はつきません。宝物をやります。」

桃太郎はお城の金や銀や織物や、荷車一杯の宝物を手に入れました。

とても素晴らしい一日でした。

译文:

在很久很久以前,有个地方住着一位老爷爷和一位老奶奶。老爷爷到山里砍材去时老奶奶则到河边洗衣去。过了一会儿,一颗很大的桃子从河里流了下来。

「多么大的一颗桃子啊!我把它带回家里去。」老奶奶说道,把桃子背在背后回家去。

她一把桃子切开后,从桃子里出现了一个大婴孩。

「哎啊!我的天啊!」二人虽然感到惊讶,可是却也感到非常的幸福。

「该给他取个什么名字好呢?」

「既然是从桃子里出生的,那就叫他桃太郎,你觉得怎样?」

「那很好啊。」

在二人谈话的当儿,桃太郎瞬间变大,变成了优秀和善的男孩子。

有一天,,桃太郎对二人说道。

「我听说妖怪岛里住着一个坏妖怪。」

「因为他偶尔会到村子里来搞破坏所以让大家感到困扰。」老爷爷说道。

「那么我去把他打退吧。妈妈,请为我做黍子米粉团。」

老奶奶做了非常美味可口的黍子米粉团。桃太郎把它们收在腰间的袋子里,马上出发前往妖怪岛。

途中,桃太郎遇见了一条狗。

「桃太郎先生,你袋子里放了些什么东西啊?」

「是日本第一的黍子米粉团哟。」

「你给我一个的话,我就跟随你。」狗儿从桃太郎那里得到一个黍子米粉团后成为他的随从。

桃太郎和狗走着走着,一只猴子走了过来。

「桃太郎先生,你袋子里放了些什么东西啊?」

「是日本第一的黍子米粉团哟。」

「你给我一个的话,我就跟随你。」猴子从桃太郎那里得到一个黍子米粉团后成为他的随从。

走了一会儿,一只野鸡飞了过来。

「桃太郎先生,你袋子里放了些什么东西啊?」

「是日本第一的黍子米粉团哟。」

「你给我一个的话,我就跟随你。」野鸡从桃太郎那里得到一个黍子米粉团后成为他的随从。

过了不久,终于看到妖怪岛了。

「那个肯定就是妖怪岛。」狗吠叫了。

「可以看见城堡了。」猴子呼喊了。

「我飞过去看看。」野鸡啼叫了。

一抵达妖怪岛,城门前面就站着一个大妖怪。桃太郎抓起了一个大石头向妖怪抛过去。同时,猴子爬上门打开了锁而野鸡则啄妖怪的眼睛。

「我真的受不了了。」妖怪落荒而逃。

「请帮忙我们。」从城里逃出来许多妖怪说道。

终于有个大妖怪出来了。

「自大的小家伙。就由我来教训你。」一边说着一边挥舞着大铁棒。

「你就是首领吗?」桃太郎说道,轻巧迅速地跳上了铁棒。

「可恶的妖怪,我是不会放过对村民做尽坏事的你。尝尝我的拳头。」

「啊,好痛,好痛,对不起。对不起。原谅我。我投降。」

「此话当真?」

「当真,决无虚言。我不会骗你的。我把宝物全给你。」

桃太郎把城堡里的金子、银子和纺织品等等到手的所有宝物放入载货车。

真是非常美好的一天啊。


故事簡介

很久很久以前,一個偏僻的小村子裡住著一對老夫婦,老夫婦很想生小孩,卻生不出來。有一天老婆婆在河邊洗衣服時,撿到一個大桃子,她很高興的帶著桃子回家,結果從桃子裡蹦出一個小孩,便為他取名叫「桃太郎」。長大後的桃太郎要前往鬼之島為民除害,一路上桃太郎用糯米團(黍団子)收留了小白狗、小猴子、小雉雞,最後團結一心,成功消滅了可惡的鬼怪。桃太郎帶回來很多財寶後,和父母過著幸福的日子。


つける【着ける】
〔体に帯びる〕wear; put on (▼wearは着けている状態,put onは着ける動作を示す)

やる【▲遣る】
5 〔与える〕give

なら
1 〔…だとすれば〕
そういう話なら引き受けましょう
If that is the case, I will do it.
他言しないなら話してやろう
I will tell you on condition that you keep it to yourself.
2 〔…に関して言えば〕
山なら富士が一番だ
When it comes to mountains, Fuji is supreme.
彼女は花ならばらというところだ
If I were to compare her to a flower, it would be to a rose.
田中ならいません
(You want) Tanaka? He's out.
その件なら人事課に行ってくれ
Go to the personnel section about that.
私なら異存はない
As for me, I have no objection.
3 〔それなら〕
なら,なぜあの時そう言わなかったのだ
If so [Then], why didn't you say so at the time?


ついていく【付いて行く】
I
1 〔後に〕follow
子供が母親の後からちょこちょこ付いて行った
The child toddled along after his mother.
2 〔一緒に〕go [come] with
あなたに付いて行きたい
I'd like to go [come] with you.
娘の卒業式には妻が付いて行くことになっています
My wife is going to accompany our daughter to her graduation ceremony.


けらい【家来】
a retainer, a follower; 〔封建時代の〕a vassal, (the lord's) retinue (▼集合的)
家来にする
take ((a person)) into one's service/accept ((a person)) as a retainer
家来になる
enter ((a person's)) service
あいつは田中の家来だ
He is Tanaka's follower.

そりゃく【粗略・疎略】
【例文】
品物を粗略に扱う
handle an article roughly
この問題は粗略にすることは出来ない
This problem can't be treated [passed over] lightly.

そりゃ

* (連語)
* 〔「それは」の転〕それでは。そりゃあ。
*
o 「—弱る」
o 「—そうだ」
* 1 (感)
* 注意を喚起したり、指示したりするときに用いる語。そら。
*
o 「—、投げるぞ」

すすめる【進める】
1 〔前進させる〕
将軍は兵を国境まで進めた
「The general led the army [The general's troops advanced] to the frontier.
彼は (将棋の) 歩を進めた
He moved the pawn forward.
車をこの線まで進めて下さい
Move the car up to this line.
2 〔進展させる〕
彼は交渉を進めた
He proceeded [went ahead] with the negotiations.
この計画を進めてください
Please go on [ahead] with this plan./Please carry this program forward.
新工法は工事を進めるのに役立った
The new technique in engineering served to speed up the construction work.
この縁談を進めていいね
Then it's all right to 「act on [go ahead with/proceed with] this suggestion for a match?
3 〔昇進させる〕
功績により彼は位一級を進められた
On account of his distinguished service, he was promoted one grade in rank.
4 〔食欲を盛んにする〕
この調味料は食欲を進める
This seasoning stimulates the appetite.
5 〔時刻を早くする〕
時計を5分進めた
I set the clock five minutes early./I put [moved] the clock forward [ahead] by five minutes.
6 〔程度を高める〕
もう一歩進めて考えてみなさい
Go a step further in your thinking.


いちどに【一度に】
〔同時に〕at once, at a time, at the same time, simultaneously; 〔一挙に〕at 「a stretch [one sitting]; 〔皆いっしょに〕all together
一度に二つの事に集中することはできない
You can't concentrate on two things at a time.
みんな一度に入ろうとしては駄目だ
Don't try to get in all together.
一度にどっと疲れが出た
「All at once [Suddenly] I felt exhausted.


せめる【攻める】
attack; assault; make an attack [assault]((on)); ((文)) assail
敵を攻める
attack the enemy
激しく攻めて要塞を占領する
take [win] a fortress by assault


やぶる 【敗る】

* (動ラ下二)
*
o 補足説明「やぶる(破)」と同源

やぶる 【破】

* 暦注の十二直の一。訴訟談判・家屋の取り壊しなどに吉、約束相談に凶という日。

やぶる【敗る】
defeat; beat
強敵を敗った
He defeated [beat] a powerful rival.

つぶす【×潰す】
I
1 〔押し付けて形を崩す〕crush; smash
ぶどうをつぶしてぶどう酒を作る
crush grapes and make wine
じゃがいもをつぶす
mash potatoes
2 〔金属製品をとかす〕⇒いつぶす(鋳潰す)
3 〔畜殺する〕
にわとりをつぶしてスープにした
I killed a chicken and made soup with it.
4 〔埋めふさぐ〕
穴をつぶす
fill up a hole
II
1 〔体面・名誉を傷付ける〕
彼女は父親の顔をつぶした
She made her father lose face./She embarrassed [shamed] her father.
2 〔空いた時間を費やす,空費する〕
暇をつぶす
kill time
定年後の父はぶらぶらして時間をつぶしている
My father is simply idling away his time since retirement.
3 〔財産などを失う,破産させる〕
彼は身代をつぶした
He wasted [squandered] his fortune.
彼は計画的に会社をつぶした
He bankrupted his company deliberately.
4 〔駄目にする,役に立たなくする〕
大声を出し過ぎて声をつぶしてしまった
I shouted so much that I 「lost my voice [went hoarse].
経済の混乱がわずか1年間に3人の首相をつぶした
The financial chaos brought down three prime ministers in a single year.

まえ【前】
1 〔顔の向いている方〕
前に進む
proceed/go forward
それは目の前にある
It is right in front of you.
まっすぐ前を見なさい
Look straight ahead [before you].
前の車に衝突した
He ran into the car ahead of him.
前にならえ
Stand at arm's length!
2 〔面前〕
人の前で恥をかかされた
I was disgraced 「in front of people [in public].
子供の前でそんな話はよしなさい
Don't talk about things like that in front of the children.
3 〔正面〕
家の前の通り
the street in front of the house
恥ずかしくて彼女の顔を前から見られなかった
I was too shy to look her full in the face.
4 〔物の先の方〕
前から5番目の席
the fifth seat from the front
前の車両
the front cars
行列の前の方に立つ
stand near the head of a line
5 〔ある事柄と対した時の状況〕
折角の親切も厳格な規則の前では役に立たなかった
Her kindness was of no use in the face of the strict rules.
6 〔今より以前〕
前の校長
the former principal
前の授業には出席しなかった
I didn't attend the last class.
その子は前に会った時より随分大きくなっている
The child has grown a lot since I saw him last.
彼には前に会ったと思う
I think I met him before.
3年前に家を建てた
I built my house three years ago.
前にはここに銀行があった
There used to be a bank here.
彼のことは前から聞いている
I have often heard of him.
7 〔ある時より以前〕
戦争の始まる2年前でした
It was two years before the war broke out.
10月3日より前に返事をください
Please reply before [no later than] October 3.
前の晩に読んだ本を彼に貸した
I lent him the book I had read 「the night before [the previous night].
1時5分前です
It's five (minutes) to [((米))of] one.
30前の女
a woman who is not thirty yet/a woman under [on the right side of] thirty
8 〔順序の先の方〕
前のページに
on the previous page
前からの約束があります
I have a previous engagement.
山田氏の前の知事はだれでしたか
Who was the governor prior to Mr. Yamada?
前の半分
the first half
前の例は後のよりよい
The former example is better than the latter.

おもしろい【面白い】
1 〔楽しい,興味をそそられる〕interesting; 〔人を楽しませる〕amusing
このごろ勉強が面白い
Recently I've come to enjoy my studies.
会社の仕事は面白くない
My work at the office isn't interesting [any fun].
会は面白かったですか
Did you enjoy the meeting?
ああ面白かった〔何かが終わって〕
That was fun.
魚が面白いように釣れた
The fish were biting like crazy.
あれはなかなか面白い男だ
He's a very interesting fellow./〔ちょっと変わっていて〕He's quite a character.
2 〔こっけいな〕funny
せりふが面白い芝居だ
The dialogue of the play is witty.
このまんがは面白くなかった
This cartoon wasn't funny.
3 〔「面白くない」の形で,望ましくない〕
どうも病状が面白くない
The patient isn't doing very well.

のこらず【残らず】
all⇒ぜんぶ(全部)
知っていることは残らずお話ししました
I have told you all I know.
彼らは一人残らず不適格だと分かった
They proved unqualified 「to a man [to the last man].
卵は一つ残らず腐っていた
Every single egg was addled.
大きなステーキを残らず平らげた
He ate up every bite [scrap] of the big steak.

ぶんどり 【分捕り】

* ぶんどること。特に戦場で、敵の武器などを奪い取ること。
*
o 「予算の—合戦」
o 「—品」

ともなう【伴う】
1 〔付随する〕
登山は多くの危険を伴う
Mountain climbing involves many risks.
その事業には大きな困難が伴った
((文)) The undertaking was attended with much difficulty.
雨はひどい風を伴った
The rain was accompanied by a high wind.
権利には責任が伴う
Rights and responsibilities go hand in hand.
少子化に伴って大学志願者が減った
With the drop of the birthrate, the number of college applicants has decreased.
2 〔連れて行く〕
彼は秘書を伴って出掛けた
He went out accompanied by his secretary.
学生を伴って博物館へ行った
I went to the museum with my students.
彼は旅行にはいつも妻を伴って行く
He always takes his wife with him on his trips.
3 〔釣り合いがとれる〕
彼は収入に伴わない趣味の持ち主だった
He pursued hobbies that were out of keeping with his income.

いさむ【勇む】
【例文】
彼らは勇んで闘技場に入って来た
They came into the arena in high spirits.
馬があんなに勇んでいる
Look at that horse prancing along!

とものかい【友の会】
【例文】
釣友の会
an anglers' society
料理友の会
a cooking club




http://f7.wretch.yimg.com/sasori/111/1600535740.mp3
http://www.youmaker.com/video/sa?id=7a847a3357da432cb39732594152a9a0001
http://s1.youmaker.com/other/2007/5-19/mp35935367087a847a3357da432cb39732594152a9a0001.mp3

2010年4月3日 星期六

藍光 Full HD 1080P 影視錄 ZP-600T

藍光 Full HD 1080P 影視錄 ZP-600T

能錄影真的很爽,似乎還可以錄AV in

在數位電視的節目表可以直接設定預約錄影,但有沒有預約過不知道,且在預約錄影時卻不知道這個時段是錄什麼,檔名應再加上節目名稱會更好;同時只能有8組設定;預約錄影有每天、一至五等等的週期設定;錄影時不能看其他台或看影片

"快速安裝指南",上面所列的"包裝內容","8. 使用者手冊" 竟然被貼掉了,真是見鬼了


遙控器 還是很複雜,像 數位電視的節目表 竟然是左下角的 "EPG",那它旁邊的"TTX"是什麼? 鬼才知道

機殼設計 光以 螺絲 來說就比 人因魔力影音霸 DB-204 好一萬倍,只是硬碟是鎖下面的,鎖上後硬碟超難放進去的







2010年4月1日 星期四

git references

sadly requesting help
http://www.spinics.net/lists/git/msg127901.html

git update-ref refs/remotes/git-svn <commitid>


Feature or a bug: git aliases are executed in git-root directory
http://www.spinics.net/lists/git/msg129149.html
Yes, put this script in your path (and make it executable):

cat > git-meld << EOF
#!/bin/sh

GIT_EXTERNAL_DIFF='git-diff-to-meld-redirect' git diff "$@"
EOF


git log of remote repositories.
http://www.spinics.net/lists/git/msg129120.html
git fetch; git log ..origin ;
git log ..@{u}
git fetch --dry-run


Creating a git branch without ancestry
http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/

Re: Please default to 'commit -a' when no changes were added
http://www.spinics.net/lists/git/msg129989.html
(uses a script git-ci)

How can I commit only part of a file in git
http://stackoverflow.com/questions/1085162/how-can-i-commit-only-part-of-a-file-in-git
git add -p filename
s to split whatever change into smaller chunks.
y to stage that chunk
d to exit or go to the next file


Re: How to undo changes?
http://www.spinics.net/lists/git/msg130306.html
Undo the changes in one of the changed files
git checkout -- <file>

Recover commits from deleted branch, or finding dangling commit
to list the SHA-1s of all dangling objects.
git fsck --lost-found





Introducing GIT_DIR environment variable.
http://www.gelato.unsw.edu.au/archives/git/0505/3338.html

How to make public repository GIT_DIR=my-git.git git-init Command not found.
http://git.661346.n2.nabble.com/How-to-make-public-repository-GIT-DIR-my-git-git-git-init-Command-not-found-td1516647.html

git-filter-branch(1) Manual Page
http://ftp.sunet.se/pub/Linux/kernel.org/software/scm/git/docs/v1.6.0.6/git-filter-branch.html


Re: Git Master Master Replication
http://www.spinics.net/lists/git/msg130948.html
By editing .git/config you can setup unlimited amount of locations of
where to pull from and where to push to (and you can pull from many
locations to a same branch and push one branch to many locations)

[remote "server-uk"]
push = +refs/heads/master:refs/heads/master
push = +refs/heads/uk/*:refs/heads/*
pushurl = bla.co.uk

Similarly you can specify pulls using * or specifing each one.

.git/config is extremly flexible I'm sure you can make it work with
any amount of remotes

git archive --prefix=foo/ $sha1 | gzip > foo.tar.gz

See git-archive(1).

ARM caches variants

ARM caches variants
http://www.spinics.net/lists/arm-kernel/msg84792.html

VIVT cache has the following issues:
- issue #1; two processes may use the same virtual address for different
physical addresses, but will share the same cache line and see memory
corruption if no precaution is taken;

- issue #2; two processes may use different virtual addresses for the
same physical address (shared mapping), but will use different cache
lines, causing all sorts of incoherence if no precaution is taken;

- issue #3; the same process may use different virtual addresses for the
same physical address (same shared mapping mapped several time in the
same process virtual memory), basically almost the same issue as issue #2.

The Linux kernel, solves issue #1 and #2 by flushing the cache at every
context switch, and issue #3 by remapping the multiply mapped shared
mapping in "uncacheable, buffered only" mode if write buffer is
sufficiently well behaved, or "uncacheable, unbuffered" mode if write
buffer is buggy.

Now, if we look at VIPT, aliasing caches:
- the physical tagging solves issue #1 automatically,
- the cache colouring technique used in arch_get_unmapped_area solves
issue #2 and #3 by ensuring that the areas using the same physical
address will end up using the same cache lines, and avoid aliases "by
construction".

VIPT non-aliasing caches have none of the three issues.

(.....................)

ARMv7 has non-aliasing VIPT D-cache

(.....................)

the I-cache on ARMv7 is an aliasing VIPT

(.....................)

Flushing the L1 cache has to use the virtual address even on PIPT
caches. In the Linux case, you can't use the kernel linear mapping to
invalidate an I-cache line if the intention is to use the code in user
space with a different virtual address.