SumiTomohikoの日記 このページをアンテナに追加 RSSフィード

2012-05-19

[] 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-vorbisMIMEタイプとして応答していました。私のウェブサーバには、以下のふたつの設定がありました。

$ 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.

oggMIMEタイプとしてapplication/oggを送信するように、2行目をコメントアウトしました。ウェブブラウザは今はoggを再生できます。

[][] 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

2012-05-04

from python import fun - episode 1 version 1.0.0 released

f:id:SumiTomohiko:20120504050627p:image

from python import funは、プログラミングを題材としたマンガです。ひとりの女の子が、PythonFreeBSDプログラミングを始めます。

from python import fun is a comic whose theme is programming. One girl starts programming with Python on FreeBSD.

Visit from python import fun's web site.

rush's page is opened.

rush is a interactive shell of run. rush's base is zsh, so rush's UI is same as that of zsh.

Visit rush's web site.

2012-05-03

Unnamed Fukidashi font 1.1.0 release

f:id:SumiTomohiko:20120503152406p:image

Unnamed Fukidashi font is a font for Japanese comics. It is based on Takao Fonts.

2011-11-28

Unnamed Fukidashi font 1.0.0 release

Unnamed Fukidashi font is a font for Japanese Comics. It is based on Takao Fonts.