- jcode.plで半角カタカナを全角カタカナにしてフォーム送信させる
$buffer1 = $buffer;
$buffer1 =~ s/%([0-9a-fa-f][0-9a-fa-f])/pack(c, hex($1))/eg;
$kcode = jcode::getcode(*buffer1); こちらをまずは採用
- UbuntuでQRコードを自作しよう
$ sudo apt-get install qrencode
- v8コンパイルエラー
$ g++ --version g++ (ubuntu 4.4.3-4ubuntu5) 4.4.3 copyright (c) 2009 free software foundation, inc. this is free software; see the source for copying conditions. there is no warranty; not even for merchantability or fitness for a particular purpose. ばっちりビンゴ
- Perlは簡単だね
#文字列の文字コードを取得する
#--------------------------------------------#
sub string2bytes {
my $str = shift || return ( undef );
my $fmt = shift || '% x ' ;
$str =~ s/ (.) / sprintf( $fmt , ord( $1 )) /eg ;
return ( $str );
}
- [Ruby] 単体テストツールと、コマンド実行テスト 〜 その1: 検討
# 関数 func01() のテスト
def test_func01
assert_equal(xxxxx, @obj.func01()) # テスト対象のメソッドを呼び出す
end # 関数 func02() のテスト
def test_func02
assert_equal(xxxxx, @obj.func02())
end
end
- LeopardでCPANモジュールをインストール
$ sudo -h cpan password: (略) would you like me to configure as much as possible automatically? [yes] (リターンキー) (略) cpan[1] quit
- Mapae on Fedora10
$ su -
# perl -mcpan -e 'install jcode'
# perl -mcpan -e 'install soap::lite'
|