tokuhirom's blog
ちょっとした GUI アプリケーションをつくるのに MacRuby はよい選択肢となりうる
ちょっとした GUI アプリをつくるのに MacRuby をつかってみた。結論からいうと MacRuby はよくできているなあ、という印象をえた。 昔、RubyCocoa をさわってみたことはあった
2013-01-04(Fri)
Sinatra っぽく簡単に JS で Dispatch できる micro_dispatcher.js のご紹介
[ javascript 用のシンプルな Dispatcher にはいくつかあるが、どうも満足いくシンプルな実装がなかったのでつくった(というか Caym というオレオレ JS Framework
2013-01-02(Wed)
Shipped Mail::Krohn 0.01
Mail::Krohn is alternative library for Email::Sender. I don't want to use Email::Sender since it dep
2012-12-27(Thu)
Amon2 で bootstrap を明示的によぶケース
Amon2 で bootstrap しているのは、dbh などのリソースのキャッシュのためというのが大きいです。 ですから、無闇に bootstrap メソッドをよびまくるとおかしいことになります。
2012-12-27(Thu)
Amon2 について WEB+DB プレスにかきました
2012-12-26(Wed)
Plack::Util::load_* equivalent in Rack
Plack::Util::load\_psgi/Plack::Util::load\_class equivalent in Rack is Rack::Builder.parse\_file.
2012-12-25(Tue)
cron でうごかしているコマンドをタイムアウトさせる
coreutils の timeout(1) をつかえば OK です。 [ softlimit -t 60 foobar という手もあるけど、CPU時間だから sleep してるとかだと死ねないと
2012-12-19(Wed)
sinatra/json
``` require 'sinatra' require 'json' require "sinatra/json" get '/hi' do json({:x => "Hello W
2012-12-19(Wed)
STF::Dispatcher::Mock::Hash::Mock::Hash とかあったらいいのに
``` package STF::Dispatcher::Mock::Hash::Mock::Hash; use strict; use warnings; use Test::TCP; sub n
2012-12-14(Fri)
proxy.pac を更新しても chrome がキャッシュしてるっぽいときの対策
chromeだったらchrome://net-internals/proxyservice とかでリロードできる。 と、かんかんにおしえてもらった。
2012-12-11(Tue)
Shipped DBD::PassThrough 0.02
DBD::PassThrough という module を shipped です。 DBIx::\* なモジュールの中には $dbh を引数としてうけとらないものが多いのですが、これを無理矢理うけと
2012-12-10(Mon)
Architecture of git-new-workdir
Why is git-new-workdir fast? ``` for x in config refs logs/refs objects info hooks packed-refs remo
2012-12-07(Fri)
DBD::mysql does not supports disconnect_all
``` $_->disconnect for grep { UNIVERSAL::isa($_, 'DBI::db') } @{ +{DBI->installed_drivers()}->{mysql
2012-12-03(Mon)
Wrote unite-git
[ I seem unite.vim's file\_rec is bit slow for me. Then, I wrote yet another source using \`git ls-
2012-11-27(Tue)
Perl Testing Handbook Version 4 がでた
以下の問題を修正しています。 * subtest関数でテストケースをネストさせる、のところの、Scop::Guardでsetup,teardownの例がありそうでない問題を修正 * Test::Sp
2012-11-21(Wed)
EBook::EPUB is awesome.
I used pandoc first to generate epub from markdown text. But I can't generate the epub has satisfica
2012-11-20(Tue)
Today's diary: Devel::StackTrace 1.28 has a bug
Devel::StackTrace 1.28 and 1.29 breaks Plack::Middleware::StackTrace. It's solved. @yoshidaster tel
2012-11-20(Tue)
Notes about Module::Build
When you are switching to Module::Build, you should look your pmsetup again. Because, Module::Buil
2012-11-19(Mon)
shipped ThaiSchema 0.03
ThaiSchema is yet another data validation library, especially JSON. This is a test code from Ukigum
2012-11-19(Mon)
Perl Testing Handbook Version 3 をだした。
Version 2 もだしていたつもりだったのですが、うまくでてなかった。。 しばらくするとでるかとおもいます。主に @hirobanex さんのエントリへのアンサーとなってます。 あと、目次をだ
2012-11-17(Sat)
Shipped Teng::Plugin::TextTable
I shipped Teng::Plugin::TextTable 0.01. You can dump a database data as text table. It's useful
2012-11-15(Thu)
最近の Module::Install で Travis るときの注意ポイント
Module::Build を使うと楽。
2012-11-15(Thu)
はてなブログ1周年おめでとう
はてなブログ1周年おめでとう! [id:hatenablog]( ちょいちょい気になる挙動がでてきたりなんだりありますが、もろもろ対応していただいて最近はつかいやすいです。
2012-11-14(Wed)
Amon2 switched to Module::Build
Amon2 switched to Module::Build. Be carefully. And amon2-setup.pl generates Build.PL instead of Mak
2012-11-12(Mon)
Perl テスティングハンドブックという電子書籍をだしてみた
2012-11-12(Mon)
How can I deny a DB access in a view?
Here is an example code. DBIx::Tracer can hook the DB access in a lexical context. ``` package MyAp
2012-11-09(Fri)
ExtUtils::MakeMaker generates Makefile on child directories.
EU::MM generates Makefile in child directory. ### example I put a 'Makefile.PL' as following: ```
2012-11-09(Fri)
Test::Pretty supports prove!
2012-11-07(Wed)
Test::Stub - yet another stubbing library for Perl5
[ [ I seen a Test::Double module. It's cool. But it have too much dependencies for me. I need m
2012-11-02(Fri)
【Incompatible Change】Web::Query 0.10 contains incompatible change.
Web::Query 0.09- throws exception on non successful http status code. It's very bad interface. I mo
2012-11-01(Thu)
RTed Email::MIME's multipart handling problem
[ This test case is failing. ``` use strict; use warnings; use utf8; use Test::More; use Email::MI
2012-11-01(Thu)
Floating point number decoding in JSON::XS
[ [ In some environment, JSON::XS's floating point number decoder has an issue. Here is code: `
2012-10-25(Thu)
Background of Test::Pretty
Subtest function has entered the "Test :: More" was 0.94. When you no longer need the "done\_testing
2012-10-24(Wed)
Dumper the lexical variables after failed test case(Just Idea)
Hi, I got an another hacking idea for perl testing. Hook the Test::Builder::ok using PadWalker. Du
2012-10-23(Tue)
Test-Pretty - Prettify the Test::More's output
2012-10-23(Tue)
Perl and Hentai
2012-10-22(Mon)
DBIx::TransactionManager の目的と、その使用法について
おはようございます。 DBI では当たり前のように $dbh->do('BEGIN') と $dbh->do('COMMIT') をつかえばトランザクションがつかえるわけですが、なぜ DBIx::T
2012-10-22(Mon)
Shipped Amon2::DBI 0.30, and it contains incompatible changes.
Amon2::DBI 0.30 uses RaiseError for handling exceptions. Older Amon2::DBI's exception handling is co
2012-10-20(Sat)
Github returns stacktrace
``` tokuhirom@www4071uf:~/dev/Acme-Module-Checker$ git push Counting objects: 22, done. Delta compre
2012-10-19(Fri)
Local map-reducing by Parallel::ForkManager
``` use strict; use warnings; use utf8; use 5.010000; use Array::Split qw/split_by/; use Parallel::F
2012-10-18(Thu)
Google Chart で Imp と Click のグラフとかをうまいこと書く
2012-10-17(Wed)
re.pm clobbers $_(5.14.0 〜 5.16.0)
This code makes failure in that version of perl5. ``` % perl -e "require re; re->import('/aa') for
2012-10-17(Wed)
【Important】Furl 0.42 was released, this change may breaks your code if your code is wrong.
Today, I released Furl 0.42. It contains small but important change, suggested by gfx. Furl::HTTP n
2012-10-16(Tue)
Changes for Text::Xslate 1.5024
このバージョンでのアップデートは、-DDEBUGGING 指定の perl、すなわち xs hacker がつかってる Perl をつかわないかぎりは問題がないですので、スルーしても大丈夫です。
2012-10-15(Mon)
How can I make ppport.h by Module::Build?
Following code is works for me. ``` my $class = Module::Build->subclass( code => q{ use Devel
2012-10-15(Mon)
phantomjs を Perl からつかえる Wight をためした記録。
YAPC で motemen さんが発表していた Wight をためしたのでそのメモ。 まだ開発途中なかんじなのでドキュメントなどは揃っていないが、ひととおりのメソッドは用意されている、といった印象
2012-10-13(Sat)
About CVE-2012-5195, noted in perl5143delta
see [
2012-10-13(Sat)
Shipped Router::Simple 0.10!
[ I discussed empty PATH\_INFO handling in PSGI, and i gut a response from miyagawa-san. ref. [
2012-10-11(Thu)
Using memcached with LZ4
Cache::Memcached::Fast uses Compress::Zlib by default to use compression. It's bit slow on high traf
2012-10-10(Wed)
PATH_INFO and Router::Simple
Dear Miyagawa san, Plack::Builder's mount function makes empty string PATH\_INFO on following case.
2012-10-05(Fri)
Let's try "develnytprofhtml --minimal"!
develnytprofhtml is bit slow, you know. why it's slow? so it generates very big 'dot' file for **gr
2012-10-01(Mon)
State of Tiffany.pm
@miyagawa san introduced Tiffany.pm in YAPC::Asia 2012, thanks. The state of Tiffany.pm is stable.
2012-10-01(Mon)
Shipped HTML::Escape, extremely fast HTML escaping
HTML::Escape is a drop out module from Text::Xslate. Text::Xslate have a pretty fast HTML escaping
2012-09-30(Sun)
Rakudo Star speed report 201209
It's 10x faster than 201206. great! ``` Tokuhiros-MacBook-Air.local [master] time perl6 -e 'my $i=0
2012-09-27(Thu)
Digest.pm < 1.17 has vul.
[ Normally, you don't need to pass the digesting algorithm for Digest.pm. This issue is not a big
2012-09-27(Thu)
Re: Text::Xslate::Bridge::FillInForm::Lite
[ こういう単機能なラッパーモジュールをつくらなくていいようにしたいね、という話が Xslate の開発当初からあって(というか俺がいってて)、こういうのがでてくるのは申しわけないなあ、とおもった(
2012-09-22(Sat)
Write a server supports memcached protocol
[ [ I shipped new 'memcached-protocol-server' library to npm registry. You can write a server su
2012-09-22(Sat)
Today's PerlQuiz
Q. ``` use Data::Dumper; my $h1 = +{ a => (split /,/, "")[0], b => 3, }; my $h2 = +{
2012-09-19(Wed)
はてながMarkdown記法に対応していた!!
[
node-function-inspector つくった
[ Perl5 でいうところの UNIVERSAL::which みたいなやつ。 ``` var http = require('http'); var inspect = req
2012-09-17(Mon)
Prev
Next