2012-05-19
■[Yog] Yog 0.26.0 released
Yog is a dynamic programming language designed to have Python's usefully and
look like Ruby.
Yog's website is http://neko-daisuki.ddo.jp/~SumiTomohiko/yog/index.html
2012-05-07
■Browser cannot play ogg - Webブラウザがoggファイルを再生しない
Problem - 問題
I placed foo.ogg in my web server and foo.html such as
私はウェブサーバにfoo.oggというファイルと、以下のようなfoo.htmlを設置しました。
<!doctype html> <html> <body> <audio controls><source src="foo.ogg"/></audio> </body> </html>
I accessed foo.html to play foo.ogg. But my web browser (Filefox) does not play.
私はfoo.htmlにアクセスしてfoo.oggを再生しようとしました。が、私のウェブブラウザ (Firefox) は再生しませんでした。
原因 - Source
My web server sent x-vorbis as mime type for foo.ogg. My web server has two configurations for ogg.
私のウェブサーバはfoo.oggに対してx-vorbisをMIMEタイプとして応答していました。私のウェブサーバには、以下のふたつの設定がありました。
$ grep -w ogg mime.types application/ogg ogg audio/x-vorbis ogg
Solution - 解決策
I commented out the second line to send mime-type of application/ogg for ogg. My browser now can play ogg.
oggのMIMEタイプとしてapplication/oggを送信するように、2行目をコメントアウトしました。ウェブブラウザは今はoggを再生できます。
■[Python][waf] Making .tar.xz packages with dist target of waf - wafのdistターゲットで.tar.xzパッケージを生成する
tarfile module in Python3.3 can make .tar.xz packages. So all you must do is using Python3.3. Current Python3.3 is alpha version, but I have no trouble about it.
Python3.3のtarfileモジュールは.tar.xzパッケージに対応しています。なので、単純にPython3.3を使えばよいです。現在のPython3.3はalphaバージョンですが、私はこれに関して何の問題も抱えていません。
When you execute waf, please use python3.3 explicitly:
wafを起動するときは、python3.3を明示的に使用してください:
$ python3.3 waf dist

