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パッケージに対応しています。なので、単純…

Browser cannot play ogg - Webブラウザがoggファイルを再生しない

Problem - 問題 I placed foo.ogg in my web server and foo.html such as私はウェブサーバにfoo.oggというファイルと、以下のようなfoo.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.私は…

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.

from python import fun - episode 1 version 1.0.0 released

from python import funは、プログラミングを題材としたマンガです。ひとりの女の子が、PythonとFreeBSDでプログラミングを始めます。from python import fun is a comic whose theme is programming. One girl starts programming with Python on FreeBSD.V…

Unnamed Fukidashi font 1.1.0 release

Unnamed Fukidashi font is a font for Japanese comics. It is based on Takao Fonts. http://neko-daisuki.ddo.jp/~SumiTomohiko/UnnamedFukidashi

Unnamed Fukidashi font 1.0.0 release

Unnamed Fukidashi font is a font for Japanese Comics. It is based on Takao Fonts. http://neko-daisuki.ddo.jp/~SumiTomohiko/UnnamedFukidashi

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 h…

425.gif

I made an above image. For more information, see http://neko-daisuki.ddo.jp/~SumiTomohiko/425.gif

SumiTomohiko's Personal Page Opened

I opened personal pages. URL is http://neko-daisuki.ddo.jp/~SumiTomohiko/index.html

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

Platform Dell Latitude x300 FreeBSD 8.2 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 …

[Yog] Yog 0.0.10 released

Yog is a dynamic script language like Python and Ruby. Yog's web site is https://github.com/SumiTomohiko/Yog . The documentation is at http://SumiTomohiko.github.com/Yog/.

[Flourish] Flourish 0.0.1 released

Flourish is an action game, with strong inspiration from Brandish for Nippon Falcom.Flourish's web site is http://SumiTomohiko.github.com/flourish/.

[sumix] sumix 20110522221808 released

sumix is a 1-CD Linux distribution based on Tiny Core Linux. The objective of this distribution is providing an easy way for trying softwares written by SumiTomohiko.sumix's web site is http://SumiTomohiko.github.com/sumix/.

Yog 0.0.9リリース

Yog

Yog 0.0.9をリリースしました。Yogは、PythonとRubyの真ん中を目指した軽量スクリプト言語です。 主な変更点 正規表現エンジンがcorgi (http://github.com/SumiTomohiko/corgi) になりました。 特徴 PythonとRubyに似た構文 オブジェクト指向 ガーベージコレ…

corgi 0.0.2リリース

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

corgi 0.0.1リリース

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

${HOME}/include/png.hをconfig.pyに認識させる方法

環境 この記事の内容は、pygame 1.9.1で確認しました。 はじめに 私はよくライブラリをソースからビルドして${HOME}下にインストールしているのですが、このようにしてインストールしたlibpngのヘッダファイル${HOME}/include/png.hを、pygameのconfig.pyが…

Yog 0.0.8リリース

Yog

Yog 0.0.8をリリースしました。Yogは、PythonとRubyの真ん中を目指した軽量スクリプト言語です。 主な変更点 文字列の内部エンコーディングがUTF-32になりました。 特徴 PythonとRubyに似た構文 オブジェクト指向 ガーベージコレクション MITライセンス 必要…

Yog 0.0.7リリース

Yog

Yog 0.0.7をリリースしました。Yogは、PythonとRubyの真ん中を目指した軽量スクリプト言語です。 主な変更点 パフォーマンスチューニングしました。 Windows 2000がサポート外となりました。 特徴 PythonとRubyに似た構文 オブジェクト指向 ガーベージコレク…

ldd

lddがどうやってライブラリのパスを得ているのか、ソースを読んで調べてみたら、TRACE_LOADED_OBJECTS_ALLという環境変数を設定して対象のファイルを実行するかdlopenしているだけだった。 FreeBSDの場合 $ LD_TRACE_LOADED_OBJECTS=yes src/yog-generationa…

gprofで行単位のプロファイルを出力する

環境 この記事の内容は、以下の環境で確認しました。 Ubuntu Linux 8.04 binutils 2.18.1 行単位のプロファイル gprofは従来、関数単位で実行時間を出力します。しかし大きい関数をプロファイルしたとき、関数内のどこで時間がかかっているか知りたくなりま…

TraceMonkey概要

この記事は、http://hacks.mozilla.org/2009/07/tracemonkey-overview/の無許可日本語訳です。Firefox 3.5 has a new JavaScript engine, TraceMonkey, that runs many JavaScript programs 3-4x faster than Firefox 3, speeding up existing web apps and …

Simple Command Line Interface for Ditz - afo released

afo

afo is a yet another command line interface for ditz (http://ditz.rubyforge.org/). afo aims to give almost information of an issue by command line parameters (no interaction). Dependencies The Glorious Glasgow Haskell Compilation System, v…

文字列のSHA1をとる

こうかなあ。 import Codec.Binary.UTF8.String (encode) import Data.ByteString.Lazy (pack) import Data.Digest.Pure.SHA (showDigest, sha1) main = do putStr $ showDigest $ sha1 $ pack $ encode "寿限無寿限無五劫の擦り切れ海砂利水魚の水行末雲来…

ファイルのパスを操作する関数

System.FilePathモジュールにあります (http://hackage.haskell.org/packages/archive/filepath/1.1.0.2/doc/html/System-FilePath.html).

printf

Text.Printfモジュールにあります (http://cvs.haskell.org/Hugs/pages/libraries/base/Text-Printf.html).

リンクエラー

問題 GHC 6.12.2を使って、Text.Regex.Posixモジュールをimportしているコードをコンパイルしようとすると、 ghc -o sourcegrep Main.hs compilation IS NOT required Main.o: In function `s1z1_info': (.text+0x28f1): undefined reference to `__stginit_…

論理否定

not演算子を使います。 $ ghci GHCi, version 6.12.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading …

パスの中のファイル名を得る

System.FilePathモジュールのtakeFileNameが使えます。 $ ghci GHCi, version 6.12.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base …

論理積と論理和

&&演算子と||演算子を使います。 $ ghci GHCi, version 6.12.2: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done.…