end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

2017-01-01から1ヶ月間の記事一覧

64bit整数等の巨大な数の乱数発生は、Math::BigInt::Random for perl

http://search.cpan.org/perldoc?Math%3A%3ABigInt%3A%3ARandom ↓こうかな? #!/usr/local/bin/perl use strict; use Math::BigInt; use Math::BigInt::Random; use Data::Dumper; main(); sub main { my $max = 18_446_744_073_709_551_615; my $i = 0; whil…

MIME::QuotedPrint for perl による Quoted-Printable エンコーディング

http://search.cpan.org/perldoc?Email%3A%3AStuffer http://search.cpan.org/perldoc?Email%3A%3AMIME Email::Stuffer & Email::MIME を読んでたら、Email::MIME では、encoding に base64 or quoted-printable or 8bit を指定できるらしい。 quoted-printa…

client (javascript)側で、ログ出力し、それをサーバへ送信

qiita.com 上記を参考に、以下のように書いてみた。 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <button type="button" onClick="log.error('LOG1','LOG2' );">TEST ERROR<…</button></body></html>

eclipseのプラグイン一覧をequinoxコンソールで確認

普通?にeclipseを起動し、メニューバー -> Help -> Installation Details で表示されるダイアログでも確認できますが、 windowsのコマンドプロンプトを起動し、equinoxコンソールでも次のように確認できます。 C:\>cd \eclipse C:\eclipse> eclipsec.exe -co…

perlからc/c++ の関数利用は FFI::Platypus >> perlxs

FFI::Platypus - search.cpan.org どうやら最近は、FFI::Platypus なるmoduleが存在し、 xs よりも簡単に c/c++ の関数を利用できるみたい。 SYNOPSIS のサンプルコードやdocumentを参照する限り、簡単そ