greptilian logo

IRC log for #sourcefu, 2012-12-07

http://sourcefu.com

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
03:39 amal joined #sourcefu
04:01 amal1 joined #sourcefu
04:11 amal joined #sourcefu
14:24 amal joined #sourcefu
14:39 amal1 joined #sourcefu
15:42 spilth joined #sourcefu
15:49 spilth I got timestamps and prettier output working last nigh - http://devlog.spilth.org/2012/12/07/devlog/
16:00 amal joined #sourcefu
16:06 pdurbin looking more like sourcefu all the time :)
16:12 spilth @lucky imitation
16:12 crimsonfubot spilth: http://en.wikipedia.org/wiki/Imitation
16:17 spilth Even the row-highlighting is a rip-off! http://devlog.spilth.org/2012/12/07/devlog/#m10
16:20 pdurbin heh. awesome
16:21 spilth Now to see if I actually use it throughout the day
16:26 pdurbin :)
16:39 spilth Do you find debugging Jekyll converters to be a bit of a mystery?
16:40 pdurbin converters?
16:43 spilth I guess you didn't use a converter, just a custom generator?
16:48 spilth Sorry, this made me think you were using a Jekyll plugin - http://irclog.greptilian.com/sourcefu/2012-12-06#i_641
17:01 spilth I used Sourcefu's Search functionality to find that. I like how it works, showing you the entry and then letting you click through to that day's conversation.
19:02 pdurbin spilth: here's where i'm using that plugin: https://git.huit.harvard.edu/pdurbin/pdurbiniq/blobs/master/_plugins/implicit-layout.rb (among other places)
19:02 pdurbin at the time, in #jekyll, i was told this is "monkey patching"
19:03 spilth cool
19:05 spilth Yes, your "plugin" is actually replacing a method in the Jekyll code - https://github.com/mojombo/jekyll/blob/master/lib/jekyll/convertible.rb
19:06 pdurbin right. that's my understanding of what monkey patching is. ruby people seem to be forever talking about it
19:06 spilth You're re-opening the Jekyll::Convertible module and replacing the read_yaml method
19:07 pdurbin yeah
19:07 spilth I don't believe it's consider a good thing to do. At least not too much. But it gets the jobs done.
19:08 pdurbin if you have a better way please add an answer to http://stackoverflow.com/questions/8490528/how-can-i-make-jekyll-use-a-layout-without-specifying-it
19:09 spilth I think it comes down to Jekyll making itself more extensible regarding layouts.
19:09 spilth http://devblog.avdi.org/2008/02/23/why-monkeypatching-is-destroying-ruby/
19:11 spilth This was an eye-opening book about Ruby - http://pragprog.com/book/ppmetr/metaprogramming-ruby
19:17 spilth You could also fork Jekyll, add your code directly to Jekyll::Convertible and submit a pull request :-)
19:19 spilth Perhaps I will take a look at doing that at home.
19:27 pdurbin that sounds like work. :) i prefer ikiwiki to jekyll these days anyway. but it's good to know jekyll if you want to take advantage of free hosting with GitHub Pages
20:09 codex joined #sourcefu
20:36 spilth Ooh, a wiki that uses Markdown...
20:38 pdurbin yup. http://wiki.greptilian.com/ikiwiki
20:52 spilth For Jekyll, I'd probably propose a template_defaults: entry in the config file so you can set a bunch of things
22:20 spilth I added some notes on how my devlog works: http://devlog.spilth.org/about/ with a nod to you and Dave

| Channels | #sourcefu index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

http://sourcefu.com