2008-08-29から1日間の記事一覧

ActiveSupport、String#to_date

>> require "rubygems" => true >> require "active_support" => true >> "2008-01-01".to_date => Tue, 01 Jan 2008 >> "2008-01-01".to_date.class => Date

JDK5.0 新機能:EnumSet.complementOf

「4.6. EnumSet」 import java.util.*; enum C2008082900_Color { RED, BLUE, YELLOW, BLACK, WHITE } public class C2008082900 { public static void main(String[] args) { EnumSet<C2008082900_Color> s = EnumSet.complementOf(EnumSet.of(C2008082900_Color.RED)); System</c2008082900_color>…

ディレクティブ nocheck

#!/usr/bin/env perl use strict; use Parse::RecDescent; my $grammar = q{ inputs : rule rule : subrule(s) subrule }; my $parse = new Parse::RecDescent ($grammar); while (<>) { defined $parse->inputs($_) or print "Bad text!\n"; } で、 Warning…

os.tmpname

元 tmpname ? #!/usr/bin/env lua print(os.tmpname()) で、 lua: ./2008082900.lua:3: `tmpname' not supportedあれ? io.tmpfile() を使えということなのか???