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

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.

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

from python import fun - episode 1 version 1.0.0 released

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.

Unnamed Backup Tool 0.0.1 released

Unnamed Backup Tool is a backup tool for Unix. Features are;

  • backuping to a remote server or a local directory.
  • using SSH for remote backup.
  • backuping into year-month-dayThour:minute:second,millisecond directory.
  • incremental backup using hard links. If a file is unchanged, Unnamed Backup Tool makes a hard link to a previous one.
  • backuping not only files itself, but also metadata such as permissions and owners under .meta directory.
  • acceptable UTF-8 filename.

URL is http://neko-daisuki.ddo.jp/~SumiTomohiko/UnnamedBackupTool/index.html

Avoiding "WARNING: system temperature too high, shutting down soon!"

Platform

Problem

My FreeBSD machine shutted down with the following logs;

WARNING: system temperature too high, shutting down soon!
acpi_tz0: WARNING - current temperature (84.0C) exceeds safe limits

"sysctl hw.acpi.thermal.tz0.passive_cooling" showed zero.

Solution

The next configuration in /etc/sysctl.conf can stop this problem.

hw.acpi.thermal.user_override=1
hw.acpi.thermal.tz0._PSV=75C
hw.acpi.thermal.tz0.passive_cooling=1

I found that dev.cpu.0.freq decreased in high load.

$ sysctl dev.cpu.0.freq hw.acpi.thermal.tz0.temperature
dev.cpu.0.freq: 1000
hw.acpi.thermal.tz0.temperature: 75.0C

dev.cpu.0.freq had been always 1400 without the above configuration.

Yog 0.0.9リリース

Yog 0.0.9をリリースしました。Yogは、PythonRubyの真ん中を目指した軽量スクリプト言語です。

主な変更点

特徴

必要なもの

バグ管理

バグなどは、http://neko-daisuki.ddo.jp/~SumiTomohiko/yog/issues/index.htmlで見れます。
オリジナルのデータは、ソースのissuesディレクトリにあります。

ダウンロード

以下からダウンロードできます。

ドキュメント

ドキュメントは、以下にあります。

corgi 0.0.2リリース

corgiは、正規表現ライブラリです。Python正規表現をベースにしています。ドキュメントは、http://SumiTomohiko.github.com/corgi/にあります。ソースコードは、http://github.com/SumiTomohiko/corgi/downloadsからダウンロードできます。