- Canoo WebTest
ブラウザを使用しないJavaベースのツール - watir
IE, FireFox を ruby で制御してサイトをテストする - Selenium
IE, FireFox, Safari などをテーブル形式の設定で制御してサイトをテストする
2009年10月7日水曜日
Webアプリの Regression Test Tool
2009年8月21日金曜日
pythonの日本語文字コード変換を賢くする
NKF-python -> http://city.plala.jp/moin/NkfPython
# tar xvzf nkf-2.0.9.tar.gz
# cd nkf-2.0.9
# tar xvzf ../NKF_python20090602.tgz
# cd NKF.python/
# python setup.py install
2009年6月5日金曜日
Linux Tips
プログラムから sudo を実行すると sudo: sorry, you must have a tty to run sudo と言って怒られる。
さしあたって、以下のように Defaults requiretty をコメントアウトすればよい。
## Disable "ssh hostname sudo", because it will show the password in clear. # You have to run "ssh -t hostname sudo". ##Defaults requiretty
2009年5月10日日曜日
2009年3月5日木曜日
2009年3月4日水曜日
VirtaulBox Tips
共有フォルダ
VirtualBox の共有フォルダの設定で、ホストOSのフォルダを共有フォルダに設定して、ゲストOSがWindowsの場合は net use z: \\vboxsvr\<共有フォルダ名> を、Linuxの場合は mount -t vboxsf <共有フォルダ名> /mnt/hostfs を実行する。
ssh-agent の自動起動
以下のスクリプトを .bash_profile などに追加しておけばよい。
SSH_ENV=$HOME/.ssh/environmentfunction start_agent {echo "Initialising new SSH agent..."/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}echo succeededchmod 600 ${SSH_ENV}. ${SSH_ENV} > /dev/null/usr/bin/ssh-add;}# Source SSH settings, if applicableif [ -f "${SSH_ENV}" ]; then. ${SSH_ENV} > /dev/null#ps ${SSH_AGENT_PID} doesn't work under cywginps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {start_agent;}elsestart_agent;fi
2009年3月1日日曜日
sc.exe
Windows NT サービスを制御するコマンドラインプログラム。
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc [command] [service name] ...
The option has the form "\\ServerName"
Further help on commands can be obtained by typing: "sc [command]"
Commands:
query-----------Queries the status for a service, or
enumerates the status for types of services.
queryex---------Queries the extended status for a service, or
enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.
The following commands don't require a service name:
sc
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService
2009年2月28日土曜日
Cygwin に python の MySQLdb をインストール
Python と setuptools のインストール
- cygwin の setup.exe で Python / python パッケージをインストール。
- http://pypi.python.org/pypi/setuptools から setuptools-0.6c9-py2.5.egg をダウンロード。(py2.5 は Python のバージョン番号)
- cygwin のシェルから sh setuptools-0.6c9-py2.5.egg を実行して setuptools をインストール。これで、easy_install が使用できるようになる。
MySQLクライアントのインストール
cygwin の setup.exe で Devel / gcc と Devel / make をインストールしておく。
http://dev.mysql.com/downloads/ から接続する MySQL のバージョンのソースファイルをダウンロード。
$ tar xvzf mysql-5.1.31.tar.gz$ make
$ cd mysql-5.1.31
$ ./configure --prefix=/usr/local/mysql --without-server
$ make install
/usr/local/mysql/bin に移動して、mysql -h 127.0.0.1 で MySQL サーバに接続できることを確認する。
mysql -h localhost とした場合は、TCPではなく unix socket で接続しようとするので注意。
MySQLdb のインストール
PATH=/usr/local/mysql/bin:$PATH easy_install MySQL-python
2009年2月20日金曜日
AWS EC2 Tips
インスタンスは起動しているのに、HTTPやsshなどで接続できない
- 稀にネットワークで接続できなくなることがある。その場合は、rebootすれば接続できるようになる。
m1.large でメールが送れない
- maillog に sendmail[3991]: NOQUEUE: SYSERR(ncsrv): can not chdir(/var/spool/clientmqueue/): Permission denied と出力されていたので、
chmod g+s /usr/sbin/sendmail.sendmail
で解決。
TimeZone を東京にする
- root でログインする
- mv /etc/localtime /etc/localtime-old で現在の設定を保存
- ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
ec2-register が check your S3 ACLs are correct という
- バンドルイメージをアップロードしたバケット全体に、za-team@amazon.com の read 権限を許可する
2009年1月11日日曜日
登録:
投稿 (Atom)

