MacWiki - コマンド/say
金曜日, 11月 16th, 2007
for x in `ls -l /System/Library/Speech/Voices/ |awk '{print $9}'|xargs basename -s .SpeechVoice`; do echo $x says && say -v $x hello world > /dev/null; done
for x in `ls -l /System/Library/Speech/Voices/ |awk '{print $9}'|xargs basename -s .SpeechVoice`; do echo $x says && say -v $x hello world > /dev/null; done
perlsh を OSX 10.3 + PPC 環境にインストール - あーありがち 2007-08-11
のまんま
1. cpan から install Term::ReadLine::Gnu
2. OSX 10.3 + PPC 環境では readline.h が見つからずに compile 失敗
3. 手元に Fink で入れた Readline があったので、それを使って compile
4. perlsh スクリプトを PATH の通ったところへ install3 では
~/.cpan/build/Term-ReadLine-Gnu-1.16
に入って
perl Makefile.PL –prefix=/sw
make
sudo make installFink じゃない人は /opt とか適当に書き換えるよろし。
4 では
cd eg
sudo install -m 0755 perlsh /usr/local/binあと。perlsh は
#! /usr/local/bin/perl
になっているので、これを自分の使っている Perl インタープリタのパスに書き換えてやる必要あり。
gosh のインライン編集に rlwrap が便利って書いたけど
leditってのもあるそう。
これは Mac だと fink に入っているのでらくちん。
sudo fink install ledit
一緒に OCaml もついてきてしまうが。
ledit gosh -i
VGA Single Chip:
Vendor Name: Pixart Imaging Inc.
Speed: Up to 12 Mb/sec
Product ID: 9728 ($2600)
Bus Power (mA): 500Status: Connected to PixArt PAC7311 based camera
な
ELECOM UCAM-P1S30MWH
を買ってしまい、macam でも動かなかったのですが、
CVSの最新版で動くようになりました。
cvs-build 2007-10-17 だと画面が逆さまになってしまうので
Discussion Forums: Open Discussion
Philips SPC 610NC
By commenting out line 91
// orientation = Rotate180;
in /macam/cameras/PAC7311Driver.m , and build from CVS
flipping is gone.I tested on
ELECOM UCAM-P1S30MWH
which use the same PAC7311 chip as Philips SPC 610NC,
OSX 10.3.9 and 10.4.10.
して、CVSからビルドしてください。
昨日の続き
同じ目に遭っている人発見。グーグル様ありがとう。
Gauche at Lingr > Archives > January 20, 2007
Kahuaのセミナー会場でGaucheのインストールがうまくいってないことを
発見するなんて、かわいそう。(今さらだけど、Lingrすごいね)
hori
# gauche0.8.9のインストールが不完全でした。早々に脱落です(涙)。残り時間は気楽にプロジェクターの画面見てます。shiro
# えー今落として入れるんじゃだめっすかhori
# MacOSX10.3.9には対応してるでしょうか?shiro
# 手元で確認したのは10.4.8です
# 0.8.8までは10.3あたりで確認していたと思うので、引っかかることはなさそうな気もしますが…
# –enable-threads=pthreadsは必須ですhori
# gauche0.8.9のmake checkをやり直してみました。
# 26×26masa.edw
# といわれるのですが……
# 4:21pm (January 20) 26×26hori
#
gauche/net.h:92: error: redefinition of `struct sockaddr_storage’
make[2]: *** [net.o] Error 1gauche/net.h:92: error: redefinition of `struct sockaddr_storage’
make[2]: *** [net.o] Error 1hori
#
In file included from net.c:36:
gauche/net.h:86:1: warning: “_SS_ALIGNSIZE” redefined
In file included from gauche/net.h:44,
from net.c:36:
/usr/include/sys/socket.h:232:1: warning: this is the location of the previous definition
In file included from net.c:36:
gauche/net.h:92: error: redefinition of `struct sockaddr_storage’
make[2]: *** [net.o] Error 1
など。In file included from net.c:36:
gauche/net.h:86:1: warning: “_SS_ALIGNSIZE” redefined
In file included from gauche/net.h:44,
from net.c:36:
/usr/include/sys/socket.h:232:1: warning: this is the location of the previous definition
In file included from net.c:36:
gauche/net.h:92: error: redefinition of `struct sockaddr_storage’
make[2]: *** [net.o] Error 1
など。shiro
# おろ。sockaddr_storageの検出に失敗してるっぽいですhori
# インストールは出来て
#
hori:~/Gauche-0.8.9 tahr$ gosh -V
Gauche scheme interpreter, version 0.8.9 [utf-8,pthreads]hori:~/Gauche-0.8.9 tahr$ gosh -V
Gauche scheme interpreter, version 0.8.9 [utf-8,pthreads]shiro
# configure後に、src/gauche/config.hの
# /* #undef HAVE_STRUCT_SOCKADDR_STORAGE */
# これを
# #define HAVE_STRUCT_SOCKADDR_STORAGE 1
# に変えて、make clean ; make
# してみてくださいhori
# 再make中です。compile.cが長い…
これでうまくいきました。
configure後に、src/gauche/config.hの
/* #undef HAVE_STRUCT_SOCKADDR_STORAGE */
これを
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
に変えて、make clean ; make
してみてください
無事 Gauche がインストールされました。make check も問題なし。
確かに compile.c で死ぬほど時間かかります。
コンピュータの機種: iBook G4
CPU タイプ: PowerPC G4 (1.1)
CPU 速度: 1.07 GHz
二次キャッシュ(CPU 単位): 512 KB
メモリ: 1.25 GB
バス速度: 133 MHz
だと
機種名: Mac mini
プロセッサ名: Intel Core Solo
プロセッサ速度: 1.5 GHz
二次キャッシュ: 2 MB
メモリ: 2 GB
バス速度: 667 MHz
の十倍ぐらいコンパイルに時間がかかる。
おもちゃがやってきた - YUSCO通信 - 楽天ブログ(Blog)でも書かれている謎の部品
iPod nano: Dock アダプタについて
ということで、将来使えるかもしれないアダプタのようです。
確かになんの説明もないのは不親切。
マックのエディタ mi の scheme モード
インストールするときに、
メニューから[オプションメニュー→新規モード(インポート)]で選択するファイル
解凍して出来た scheme を更にダブルクリックしてできる scheme.1 ファイルを
指定しないとインストールできない。まあ StuffItExpanderで解凍してるせいかもしれないが。