hoodwink.d enhanced

Sun Jul 3

Find the name of the newest file of a given type in a directory

class << Dir def newest(glob) self[glob].max {|a,b| File.ctime(a) <=> File.ctime(b) } end end Dir.newest('*.pdf')
16:36 <sam-> do you want to start on our tumblelog app?
16:36 <noradio> we were going to use this as a component of our website once we have one?
16:37 <sam-> i think it'll essentially be our website
16:37 <noradio> please explain the concept of tumblelog
16:37 <sam-> ok
16:37 <sam-> http://chneukirchen.org/blog/archive/2005/04/thoughts-on-vooly.html
16:37 <sam-> you've seen anarchaia right?
16:38 <noradio> yeah, i AGGREGATE IT
16:39 <sam-> so basically it's a blog where all the posts are short and are of a certain "type"
16:39 <sam-> e.g., link with description, or a picture, or an irc quote